Kyle McDonald wrote:
> D. Eckert wrote:
>   
>> too many words wasted, but not a single word, how to restore the data.
>>
>> I have read the man pages carefully. But again: there's nothing said, that 
>> on USB drives zfs umount pool is not allowed.
>>   
>>     
> It is allowed. But it's not enough. You need to read both the 'zpool ' 
> and 'zfs' manpages. the 'zpool' manpage will tell you that the way to 
> move the 'whole pool' to another machine is to run 'zpool export 
> <poolname>'. The 'zpool export' will actually run the 'zfs umount' for 
> you, though it's not a problem if it's already been done.
>
> Note, this isn't USB specific, you won't see anything in the docs about 
> USB. This condition applies to SCSI and others too. You need to export 
> the pool to move it to another machine. If the machine crashed before 
> you could export it, 'zpool import -f' on the new machine can help 
> import it anyway.
>
> With USB, there are probably other commands you'll also need to use to 
> notify Solaris that you are going to unplug the drive, Just like the 
> 'Safely remove hardware' tool on windows. Or you need to remove it only 
> when the system is shut down. These commands will be documented 
> somewhere else, not in the ZFS docs because they don't apply to just ZFS.
>   

That would be cfgadm(1M).
It's also used for hot-swapable SATA drives (and probably other things).

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

Reply via email to