what is the "correct" way to "replicate" mem stick with ZFS on it?

Martin Matuska mm at FreeBSD.org
Sat Aug 17 20:00:11 UTC 2013


What I forgot - if you use dd or the third physical split way, I highly
recommend issuing "zpool reguid" on the new pool as soon as possible or
you may run into trouble if working with more pools with the same guid
(e.g. using first stick A, then stick B or loading both sticks on a system).

On 2013-08-17 21:55, Martin Matuska wrote:
> Hi Zeus,
>
> you can use dd, if the target stick has the same (or larger) size but
> you have to export the pool first.
>
> Other option is to create a ZFS mirror of both sticks, resilver it and
> then use the "zpool split" subcommand. If you do it this way, the new
> pool will require a different name, so you have to rename it by
> reimporting it under the original name (after exporting the original pool).
>
> A third working but not that nice way is to create a ZFS mirror,
> resilver it and export it. Then you may physically separate the devices
> and load the second one on the other system. Remember, it will always be
> loaded as a mirror with one missing device, so you have to detach the
> missing device later.
>
> Cheers,
> mm
>
> On 2013-08-16 15:25, Zeus Panchenko wrote:
>> hi all,
>>
>> please, advice
>>
>> what is the "correct" way to "replicate" mem stick with ZFS on it?
>>
>> what I mean:
>>
>> we have mem stick with ZFS pool `mypool' on it
>>
>> how to get copy of the mem stick (including the name of the pool)?
>>
>> - `zfs send ... | zfs receive ...' ?
>>
>>  is not what will help untill pool names
>>  on both mem sticks are the same (it is not what I want)
>>
>> - to make mirror and to detach second mem stick after resilvering?
>>
>>  I have bad experience with detaching (perhapse I do it wrong way)
>>
>> - dd ?
>>
> _______________________________________________
> freebsd-fs at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"



More information about the freebsd-fs mailing list