Date: Wed, 28 Sep 2016 22:49:41 +0700 From: Victor Sudakov <vas@mpeks.tomsk.su> To: Mike Tancsa <mike@sentex.net> Cc: freebsd-questions@freebsd.org Subject: Re: complete clone/restore from a ZFS-based system replication stream Message-ID: <20160928154941.GB27823@admin.sibptus.transneft.ru> In-Reply-To: <ee590b5a-36ff-6e99-3390-715587dbb5d7@sentex.net> References: <20160926154720.GA75556@admin.sibptus.transneft.ru> <688eec35-bc7b-ae05-b765-106933b522d1@sentex.net> <20160928145137.GA27497@admin.sibptus.transneft.ru> <ee590b5a-36ff-6e99-3390-715587dbb5d7@sentex.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Mike Tancsa wrote: > > I'm making progress but there is a problem. When I create a new pool > > to receive into it, I create it on the second disk, ada1. When I > > insert the restored disk into a new box, it becomes ada0 (the first > > and only disk). > > > > How do you deal with that? > > It should not matter since the pool is not tied to a device name. I'm afraid I disagree. "zpool status" does show device names. What will happen if a pool is created on /dev/ada1p3, and then ada1 becomes ada0 on a different host? When I boot from such a pool, "zpool status" will show diskid/XXXXXXXXXXp3 instead of ada0p3 or ada1p3. Is this a problem? Yes it is, if for example you had swap on ada0p2 in the original system, ada0p2 will not be visible in the cloned system (buried under diskid/XXXXXXXXXX* or something). -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160928154941.GB27823>