Skip to content

More with the zfs external drive

May 2, 2006

I decided to start again from fresh with my USB external drive to get the original plan back on track.

Using "format -e" the Solaris format program will "see" removable media which what it considers the USB mass storage to be.

Then it lets you label the drive. I chose to put an EFI label on it just in case I get the chance to plug it into a SPARC system. Two 30G slices to act as mirrors for the laptops even though they only have 10G ZFS pools at the moment it won’t stay that way. The rest of the disk is just space to dump things.

* /dev/rdsk/c4t0d0s0 partition map * * Dimensions: *     512 bytes/sector * 321672960 sectors * 321672893 accessible sectors * * Flags: *   1: unmountable *  10: read-only * *                          First     Sector    Last * Partition  Tag  Flags    Sector     Count    Sector  Mount Directory        0      4    00         34  62914560  62914593        1      4    00   62914594  62914560 125829153        3      4    00  125829154 195827388 321656541        8     11    00  321656542     16384 321672925

While vold does not mount the pools automatically it is easy to import the pool with the extra data and online the mirror to sync things up:

2137 # zpool import removable 2138 # zpool online mypool c4t0d0s0 Bringing device c4t0d0s0 online 2139 # zpool status   pool: mypool  state: ONLINE status: The pool is formatted using an older on-disk format.  The pool can         still be used, but some features are unavailable. action: Upgrade the pool using ‘zpool upgrade’.  Once this is done, the         pool will no longer be accessible on older software versions.  scrub: resilver completed with 0 errors on Mon May  1 22:28:19 2006 config:          NAME          STATE     READ WRITE CKSUM         mypool        ONLINE       0     0     0           mirror      ONLINE       0     0     0             c0d0p3    ONLINE       0     0     0             c4t0d0s0  ONLINE       0     0     0  errors: No known data errors    pool: removable  state: ONLINE  scrub: none requested config:          NAME        STATE     READ WRITE CKSUM         removable   ONLINE       0     0     0           c4t0d0s3  ONLINE       0     0     0  errors: No known data errors 2140 # zpool export removable 2141 #  zpool offline mypool c4t0d0s0 Bringing device c4t0d0s0 offline 2142 #

Now the same on the other laptop using slice 1:


: sigma IA 3 $; zpool online home c6t0d0s1 Bringing device c6t0d0s1 online : sigma IA 4 $; zpool status   pool: home  state: ONLINE status: One or more devices has experienced an unrecoverable error.  An         attempt was made to correct the error.  Applications are unaffected. action: Determine if the device needs to be replaced, and clear the errors         using ‘zpool clear’ or replace the device with ‘zpool replace’.    see: http://www.sun.com/msg/ZFS-8000-9P  scrub: resilver in progress, 0.01% done, 7h49m to go config:          NAME          STATE     READ WRITE CKSUM         home          ONLINE       0     0     0           mirror      ONLINE       0     0     0             c0d0s7    ONLINE       0     0     0             c6t0d0s1  ONLINE       0     0     1  errors: No known data errors    pool: removable  state: ONLINE  scrub: none requested config:          NAME        STATE     READ WRITE CKSUM         removable   ONLINE       0     0     0           c6t0d0s3  ONLINE       0     0     0  errors: No known data errors

As you can see above I managed to catch the time after bringing c6t0d0s1 online before it was fully reslivered. The estimated time is massively pessimistic at this point and in fact took less than a minute. The scary part is that cksum error! I see no other errors and that count seems to increase each time I online this slice. Need to watch this.


Tags: topic:[solaris] topic:[ZFS]

Advertisements

From → Solaris

One Comment
  1. Adrian Frost permalink

    having vold mount usb storage devices is a pain and does not work if there are more than one partition. if you edit /etc/vold.conf to stop it mounting the usb storage then you can use fdisk to partion the device as well as makeing format -e usable on partition instead of whole device

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: