I have a netbook with a small internal ssd as rpool. I have an
external usb HDD with much larger storage, as a separate pool, which
is sometimes attached to the netbook. 

I created a zvol on the external pool, the same size as the internal
ssd, and attached it as a mirror to rpool for backup.  I don't care so
much about it not being bootable, as long as I can read whatever data
I might need in case of failure or loss. 

The mirror works fine, and resilvers properly and selectively when I
use "zpool offline" and "zpool online" on the zvol submirror.  

I don't want to have the usb disk attached all the time, nor even to
run with the mirror always active (usb is - just - slower than the
internal ssd). I'd like to be able to move this external disk between
hosts, and potentially repeat the rpool mirror for each, having them
resilver whenever the disk is attached.

However, with the rpool mirror in place, I can't find a way to "zpool
export black".  It complains that the poool is busy, because of the
zvol in use.  This happens regardless of whether I have set the zvol
submirror offline.  I expected that, with the subdevice in the offline
state, the zvol would be closed.

Any suggestions?  Is this worth filing as a bug (is the device really
offline)?  Would it work differently if I used a file on the external
pool, instead of a zvol? (I haven't tried that yet, but don't really
expect a difference unless umount -f can help). 

--
Dan.

Attachment: pgpfzvPA0LwYP.pgp
Description: PGP signature

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

Reply via email to