Hi Darren,
Coments inline....
Darren Dunham wrote:
ZFS creates a unique FSID for every filesystem (called a object set in
ZFS terminology).
The unique id is saved (ondisk) as part of dsl_dataset_phys_t in
ds_fsid_guid.
And this id is a random number generated when the FS is created.
This id is used to populate the zfs_t structure (refer to zfs_init_fs()).
And the same id would be used as FSID for NFS.
Sorry, allow me to be dense for a moment.
Does this mean that I should expect to be able to bring up any machine
with the same ZFS pool and the same IP address and have it serve
filehandles handed out by a previous server? Including NFS3 and 4?
How about if I have to mount the filesystem on an alternate root?
I don't really have a setup that I could move between machines to test
this at the moment...
This works... I tried it here and things worked fine... here is what I did :
- Configured an additional IP address (IP1) on a host (HOST1)
- Shared a pool over NFS..
- Automounted the filesystem on my desktop
- Started a "tail -f " on one of the files
- Exported the pool on HOST1
- Unplumbed the ip address IP1 on HOST1
- Plumbed up the ip address on HOST2
- Imported the pool on HOST2 with alternate root ie. -R option
- Any further concats to the file done were seen by the "tail -f"
So, it works...
Thanks and regards,
Sanjeev.
PS : This very similar to what HA-ZFS does in SunCluster 3.2
--
Solaris Revenue Products Engineering,
India Engineering Center,
Sun Microsystems India Pvt Ltd.
Tel: x27521 +91 80 669 27521
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss