Peter Jeremy
2010-Sep-15 00:56 UTC
[zfs-discuss] Unwanted filesystem mounting when using send/recv
I am looking at backing up my fileserver by replicating the filesystems onto an external disk using send/recv with something similar to: zfs send ... mypool at snapshot | zfs recv -d backup but have run into a bit of a gotcha with the mountpoint property: - If I use "zfs send -R ..." then the mountpoint gets replicated and the backup gets mounted over the top of my real filesystems. - If I skip the ''-R'' then none of the properties get backed up. Is there some way to have zfs recv not automatically mount filesystems when it creates them? -- Peter Jeremy -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100915/f94d5551/attachment.bin>
Ian Collins
2010-Sep-15 01:13 UTC
[zfs-discuss] Unwanted filesystem mounting when using send/recv
On 09/15/10 12:56 PM, Peter Jeremy wrote:> I am looking at backing up my fileserver by replicating the > filesystems onto an external disk using send/recv with something > similar to: > zfs send ... mypool at snapshot | zfs recv -d backup > but have run into a bit of a gotcha with the mountpoint property: > - If I use "zfs send -R ..." then the mountpoint gets replicated and > the backup gets mounted over the top of my real filesystems. > - If I skip the ''-R'' then none of the properties get backed up. > > Is there some way to have zfs recv not automatically mount filesystems > when it creates them? > >Use -u with zfs receive. -- Ian.
Xin LI
2010-Sep-15 01:15 UTC
[zfs-discuss] Unwanted filesystem mounting when using send/recv
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2010/09/14 17:56, Peter Jeremy wrote:> I am looking at backing up my fileserver by replicating the > filesystems onto an external disk using send/recv with something > similar to: > zfs send ... mypool at snapshot | zfs recv -d backup > but have run into a bit of a gotcha with the mountpoint property: > - If I use "zfs send -R ..." then the mountpoint gets replicated and > the backup gets mounted over the top of my real filesystems. > - If I skip the ''-R'' then none of the properties get backed up. > > Is there some way to have zfs recv not automatically mount filesystems > when it creates them?zfs receive have a ''-u'' option to specify that no mount should be done. By the way it might be a good idea not to specify mountpoint at the sending site, which makes replication easier (one way is to have the topmost layer mountpoint=/ but canmount=off). Cheers, - -- Xin LI <delphij at delphij.net> http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iQEcBAEBCAAGBQJMkB5AAAoJEATO+BI/yjfB1QkIAIJ8IsZYkdUAH5ciqzVN/JPM Kvoc4Thk2YyVixBlh7ev3q40+EHOKRxr3GtNXNBjN6K3YqcKlVXVWK4ntU08RnwL f5bm2JQJoDjA/z2J+mDVmtsbI4kG9TavaOou9f7Bek9ql/UFowH48dMFTf0klR/3 /S1GtLoLma3eCOwxKPjy1gEj+EcxXB2C6Ip116y1MnNxlGXe80i+tGVFfAAwO416 1EGDJcvs3wDvU9s1/F9VZS4LSadEVOUkWfSLKa8toaB8GKhwWNIP0ZK2jSxPFRyN PryJOgE+N8tBGEce4TtMtouZ8wM/dPL0dB86YFk4OjAkkx4uNoY7PhWLMMveCdY=TvJl -----END PGP SIGNATURE-----