Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Aug 2013 12:39:47 -0700
From:      Xin Li <delphij@delphij.net>
To:        Zeus Panchenko <zeus@ibs.dn.ua>
Cc:        FreeBSD Filesystems <freebsd-fs@freebsd.org>
Subject:   Re: what is the "correct" way to "replicate" mem stick with ZFS on it?
Message-ID:  <52112303.8030106@delphij.net>
In-Reply-To: <20130816162532.72259@relay.ibs.dn.ua>
References:  <20130816162532.72259@relay.ibs.dn.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52112303.8030106>