Date: Thu, 21 May 2009 10:35:47 +0200 From: Henri Hennebert <hlh@restart.be> To: Thomas Backman <serenity@exscape.org> Cc: freebsd-current@freebsd.org Subject: Re: How to duplicate a pool with zfs send/recv without breaking mountpoints? Message-ID: <4A151263.2070708@restart.be> In-Reply-To: <E996C2EB-83A2-4004-B280-B329E348948F@exscape.org> References: <E996C2EB-83A2-4004-B280-B329E348948F@exscape.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Thomas Backman wrote: > I'll let the output speak for itself. This is after running > zpool create slave X && zfs create slave/received && NOW=$(date > +"backup-%Y%m%d-%H%M"); zfs snapshot -r tank@$NOW && zfs send -R > tank@$NOW | zfs recv -vFd slave/received && zpool export slave && zpool > import slave > > [root@chaos ~]# mount > tank/root on / (zfs, local, noatime) > devfs on /dev (devfs, local) > /dev/ad0s1a on /bootdir (ufs, local, soft-updates) > tank/tmp on /tmp (zfs, local, noatime) > tank/usr on /usr (zfs, local, noatime) > tank/usr/ports on /usr/ports (zfs, local, noatime) > tank/usr/ports/distfiles on /usr/ports/distfiles (zfs, local, noatime) > tank/usr/src on /usr/src (zfs, local, noatime) > tank/var on /var (zfs, local, noatime) > //SERENITY@EXSCAPE/FBSDBACKUP on /mnt/backup (smbfs) > slave/received/root on / (zfs, local, noatime) > slave on /slave (zfs, local) > slave/received/tmp on /tmp (zfs, local, noatime) > slave/received/usr on /usr (zfs, local, noatime) > slave/received/usr/ports on /usr/ports (zfs, local, noatime) > slave/received/usr/ports/distfiles on /usr/ports/distfiles (zfs, local, > noatime) > slave/received/usr/src on /usr/src (zfs, local, noatime) > slave/received/var on /var (zfs, local, noatime) > [root@chaos ~]# ls /dev > [root@chaos ~]# zfs list > internal error: failed to initialize ZFS library (shocking!) > > Any ideas? I tried setting the mountpoint property on the slave, but I'm > pretty sure that didn't help (as the next (incremental) backup resets > the mountpoints to /... again, I suppose). How about creating slave like this: mkdir /slave zpool create -R /slave -m none slave X Henri > > Regards, > Thomas > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A151263.2070708>