On Tue, March 23, 2010 12:00, Ray Van Dolson wrote:
> Kind of a newbie question here -- or I haven't been able to find great
> search terms for this...
>
> Does ZFS recognize zpool members based on drive serial number or some
> other unique, drive-associated ID?  Or is it based off the drive's
> location (c0t0d0, etc).
>
> I'm wondering because I have a zpool set up across a bunch of drives
> and I am planning to move those drives to another port on the
> controller potentially changing their location -- as well as the
> location of my "boot" zpool (two disks).
>
> Will ZFS detect this and be smart about it or do I need to do something
> like a zfs export ahead of time?  What about for the root pool?

ZFS recognizes disks based on various ZFS special blocks written to them. 
It also keeps a cache file on where things have been lately.  If you
export a ZFS pool, swap the physical drives around, and import it,
everything should be fine.  If you don't export first, you may have to
give it a bit of help.  And there are pathological cases where for example
you don't have a link in the /dev/dsk directory which can cause a default
import to not find all the pieces of a pool.

-- 
David Dyer-Bennet, d...@dd-b.net; http://dd-b.net/
Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/
Photos: http://dd-b.net/photography/gallery/
Dragaera: http://dragaera.info

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to