I have a 2-disk/2-way mirror and was wondering if I can remove 1/2 the mirror and plunk it in another system? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100211/c38a0a40/attachment.html>
> I have a 2-disk/2-way mirror and was wondering if I can remove 1/2 the > mirror and plunk it in another system?You can remove it fine. You can plunk it in another system fine. I think you will end up with the same zpool name and id number. Also, I do not know if that disk would be bootable. You probably have to go through the installboot procedure for that. -- Dennis Clarke dclarke at opensolaris.ca <- Email related to the open source Solaris dclarke at blastwave.org <- Email related to open source for Solaris
On Thu, Feb 11, 2010 at 02:50:06PM -0500, Tony MacDoodle wrote:> I have a 2-disk/2-way mirror and was wondering if I can remove 1/2 the > mirror and plunk it in another system?Yes. If you have a recent opensolaris, there is "zpool split" specifically to help this use case. Otherwise, you can unplug the drive (use zpool offline, or shut down the host), connect it to the other host, and zpool import it there. Then zpool detach the missing half from each host at the end (not before). These resulting pools have to stay separate from here on, they still have the same id and can''t be used on the same host at the same time again. If you want to keep redundancy on the original host, try attaching a third submirror and letting it resilver first. It''s worth asking: why do you want to do it this way, rather than using a send|recv to copy? That''s usually (though not always) the best way. -- Dan. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 194 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100212/14b030e5/attachment.bin>
On Thu, 11 Feb 2010, Tony MacDoodle wrote:> I have a 2-disk/2-way mirror and was wondering if I can remove 1/2 the > mirror and plunk it in another system?Intact? Or as a new disk in the other system? If you want to break the mirror, and create a new pool on the disk, you can just do ''zpool detach''. This will remove the disk from the pool and put it in a state where you can create a brand new pool. If you want to use the mirror, keeping it intact, you can upgrade to build 132 and use ''zpool split''. If you don''t want to upgrade, then you can use this procedure, given the fact that you have only one pair of mirrors: (assuming your pool is made of disk0 and disk1, on hostname box0 box0# zpool offline pool disk1 box0# zpool detach pool disk1 (remove disk1 from box0 and plug into box1) box1# zpool import -f pool box1# zpool detach pool disk0 It''s important that you offline disk1 first before detaching it, or you will not be able to import it into box1. And the -f is necessary on import because the pool will complain about having been imported on another system. Note that this procedure works only for very simple configs. If you have a config with a stripe of mirror sets, or logs, spares, or cache devices, this will not work. Instead, you''ll have to upgrade & use zpool split. Regards, markm