complete clone/restore from a ZFS-based system replication stream

Victor Sudakov vas at mpeks.tomsk.su
Wed Sep 28 15:49:47 UTC 2016


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 at sibptus.tomsk.ru


More information about the freebsd-questions mailing list