On 26/11/2010 13:16, Pavel Heimlich wrote:
I tried to transfer some data between two S11 machines via a usb harddrive with
zfs on it, but importing the zpool failed (with some assertion error I did not
write down) because I did not export it first (on the first machine). I had to
go back to the first machine, plug the drive in again and export the fs.
Are there some zfs / OS parameters I could set so that my usb drive with zfs on
it would meet the expectations one has from a removable drive? (i.e. safe to
remove +-anytime)
No you run zpool export first, that is "the OS parameter", this is no
different to any other filesystem on any other operating system. If you
don't export it first how is Solaris or ZFS supposed to know the
difference between you yanking it out because you are purposely moving
it and the drive accidentally falling out or some other error that
causes it to be come unavailable. Hint: the answer is you can't unless
you administratively tell ZFS that the pool is supposed to be going away
they way you do that is by 'zpool export'.
Unlike other filesystems though ZFS will be consistent on disk.
You didn't have to plug it back into to the original system you could
have just forced the import.
--
Darren J Moffat
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss