Re: ZFS pool corrupted on upgrade of -current (probably sata renaming)

From: Freddie Cash <fjwcash_at_gmail.com>
Date: Tue, 14 Jul 2009 15:50:47 -0700
While I don't have any insight into how to repair this issue you've run into
(at least not off-hand), one way to mitigate/prevent this from happening is
to use glabel to label the drives, and then use the labels to create the
zpool.  That way, it doesn't matter where the physical devices are located
in the system, nor what the physical device nodes are called, as zpool just
looks for the label, and GEOM handles all the heavy lifting/translating for
you.

# glabel label disk01 /dev/ad4
# glabel label disk02 /dev/ad6
# glabel label disk03 /dev/ad8
# zpool create pool raidz1 label/disk01 label/disk02 label/disk03

After that, you can shuffle the drives around in the system, and the pool
will continue to work correctly.

-- 
Freddie Cash
fjwcash_at_gmail.com
Received on Tue Jul 14 2009 - 20:50:49 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:51 UTC