ZFS, stay cool even if it is not the time for being cool.

Ok what’s the point I misconfigured up my rpool of the opensolaris filer by using zfs-fuse on linux. which leads me to the following problem.

  pool: rpool
state: ONLINE
config:

        NAME           STATE     READ WRITE CKSUM
        rpool          ONLINE       0     0     0
          mirror       ONLINE       0     0     0
            /dev/sdb5  ONLINE       0     0     0
            /dev/sdc5  ONLINE       0     0     0 

 

Ending up with Linux dev names under solaris is not really fun (grub not working, beadm not working …). How to solve this (in my case it was quite easy) I have done the following

  1. Detach a dev from mirror: zpool detach rpool /dev/sdc5 (cool at least that the vdev name works)
  2. Reattach it; zpool attach rpool /dev/sdb5 c4d1s0
  3. update grub: installgrub stage1 stage2 /dev/rdsk/c4d1s0
  4. after resilbering, the same for the other drive.
  5. Done.

Status after 4 first time.

  pool: rpool
state: ONLINE
scrub: resilver completed after 1h6m with 0 errors on Fri Mar  9 16:02:18 2012
config:

        NAME           STATE     READ WRITE CKSUM
        rpool          ONLINE       0     0     0
          mirror       ONLINE       0     0     0
            /dev/sdb5  ONLINE       0     0     0
            c4d1s0     ONLINE       0     0     0  126G resilvered

and finally.

  pool: rpool
state: ONLINE

        NAME        STATE     READ WRITE CKSUM
        rpool       ONLINE       0     0     0
          mirror    ONLINE       0     0     0
            c4d1s0  ONLINE       0     0     0
            c5d0s0  ONLINE       0     0     0 

Enjoy.

Note: I also guess that there is an alternative way doing it with zdb –e but I have not found any tutorial about that, therefore the risk was to high (for me at least) to mess things more up instead of fixing it.

Advertisements
This entry was posted in Storage and tagged , , , , , , . Bookmark the permalink.

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