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

Freddie Cash fjwcash at gmail.com
Tue Jul 14 22:50:49 UTC 2009


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


More information about the freebsd-current mailing list