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

Martin Matuska mm at FreeBSD.org
Sat Aug 17 19:55:25 UTC 2013


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 ?
>



More information about the freebsd-fs mailing list