Hi Mark,

Mark J Musante wrote:
> On Tue, 10 Apr 2007, Constantin Gonzalez wrote:
> 
>> Has anybody tried it yet with a striped mirror? What if the pool is
>> composed out of two mirrors? Can I attach devices to both mirrors, let
>> them resilver, then detach them and import the pool from those?
> 
> You'd want to export them, not detach them.  Detaching will overwrite the
> vdev labels and make it un-importable.

thank you for the export/import idea, it does sound cleaner from a ZFS
perspective, but comes at the expense of temporarily unmounting the filesystems.

So, instead of detaching, would unplugging, then detaching work?

I'm thinking something like this:

 - zpool create tank mirror <dev1> <dev2> <dev3>
 - {physically move <dev3> to new box}
 - zpool detach tank <dev3>

On the new box:
 - zpool import tank
 - zpool detach tank <dev1>
 - zpool detach tank <dev2>

This should work for one disk, and I assume this would also work for multiple
disks?

Thinking along similar lines, would it be a useful RFE to allow asynchronous
mirroring like this:

- <dev1>, <dev2> are both 250GB, <dev3> is 500GB
- zpool create tank mirror <dev1>,<dev2> <dev3>

This means that half of dev3 would mirror dev1, the other half would mirror dev2
and dev1,dev2 is a regular stripe.

The utility of this would be for cases where customer have set up mirrors, then
need to replace disks or upgrade the mirror after a long time, when bigger disks
are easier to get than smaller ones and while reusing older disks.

Best regards,
   Constantin

-- 
Constantin Gonzalez                            Sun Microsystems GmbH, Germany
Platform Technology Group, Global Systems Engineering      http://www.sun.de/
Tel.: +49 89/4 60 08-25 91                   http://blogs.sun.com/constantin/

Sitz d. Ges.: Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Marcel Schneider, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to