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

Xin Li delphij at delphij.net
Sun Aug 18 19:39:44 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

On 8/16/13 6:25 AM, 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)

Not if you save your initial copy a master file (zfs send ... >
master_snapshot) then populate it to a pool after detaching your first
pool (cat master_snapshot | zfs receive ...).  This approach can be
used as a way of mass production and can be easily scripted.

The benefit of using snapshot is that you don't have to detach your
zfs pool or have some way to block its writes before copying (with dd
or recoverdisk, you _should_ do it to prevent accidentally making an
inconsistent image) and since you have a new pool, you don't need to
do reguid which is normally needed if dd/recoverdisk is used.

Cheers,

-----BEGIN PGP SIGNATURE-----

iQEcBAEBCAAGBQJSESMDAAoJEG80Jeu8UPuz9KgH/AnLCC9hJiVT1GfoahMcddw1
o3IrkbUZwCtuLazWHtLRlenELRwlCENgPaMRBaqRof/hnNKqz5krJqn47xk/ge0Y
n7s0LgMomdAxETlYH4vgbLIXVlY3gDc4fi3GTaO3fBdjow6Ed7m031kFWEFPcRvE
aXncU6VwFSc+tUXXEPwoyJ0BQL+Nh72mrKnvLny2xs9J7ij+nK0VoFmOpx27E0Wd
YsPC/Kr+eQWvBcYpGna0EKW85d2NG+7GLsP2wbtoaU4aTkg69BjhqtrhSx73iVMH
xwmF+rvXMgOBVIleHgBoy3Yv+noEHZReNpYzdAOejEgD9IFBaBz0PaJksMFfAHM=
=t8nH
-----END PGP SIGNATURE-----


More information about the freebsd-fs mailing list