Date: Sun, 25 Dec 2011 16:10:43 -0800 From: Artem Belevich <art@freebsd.org> To: claudiu vasadi <claudiu.vasadi@gmail.com> Cc: freebsd-fs@freebsd.org, Johannes Totz <johannes@jo-t.de> Subject: Re: Restoring received properties on a received filesystem. Message-ID: <CAFqOu6hvnseukOhAiLdB220XiN7cT2KBSKdsHPc0QmuipgVDGQ@mail.gmail.com> In-Reply-To: <CAM-i3ijw9Fme=rAkHU1ZnWmXfW4KxyD027ibW0RRDSuvxYqf=Q@mail.gmail.com> References: <20111225102719.GA44906@tolstoy.tols.org> <jd76dj$foe$1@dough.gmane.org> <CAM-i3iiH34rCAQZJvXn37jXWzq0E5%2B%2BN8nK441yFLTsWQfOuCw@mail.gmail.com> <jd7up6$i4g$1@dough.gmane.org> <CAFqOu6jsMZJvr88zdvZUdnLSRk9e6OPpDgi%2BKbjvfLHaOmn41A@mail.gmail.com> <CAM-i3ihq2cX-bO3DhBxQyp1Rgk86dYr%2BkyitdodcOCwPA8GH7A@mail.gmail.com> <CAFqOu6ieHMvBZyrg5i9jDv1x8eStdrt6cbHwd6dCa6p%2BhQ0sjw@mail.gmail.com> <CAM-i3ijw9Fme=rAkHU1ZnWmXfW4KxyD027ibW0RRDSuvxYqf=Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Dec 25, 2011 at 2:44 PM, claudiu vasadi <claudiu.vasadi@gmail.com> wrote: > Correct. This is to avoid, for instance, a zfs send/receive of a recursive > (-r) snapshot of the ZFS boot pool. Since all properties (mountpoints too of > course) are kept, upon reboot, the receive-ing side would mount the snapshot > datasets over any existing (and same) datasets. > > Does it make sense ? I think I see why you may want it, but I don't think you'll get that behavior from ZFS without hacking it. "zpool import -R root" is probably your best bet. Alas altroot property is not persistent and the pool would have to reimported on reboot. Another option may be to backup/restore properties separately and ignore properties during send/receive. --Artem
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFqOu6hvnseukOhAiLdB220XiN7cT2KBSKdsHPc0QmuipgVDGQ>
