Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zfs send -R not preserving properties across replication #5967

Closed
saloomy2017 opened this issue Apr 5, 2017 · 2 comments
Closed

zfs send -R not preserving properties across replication #5967

saloomy2017 opened this issue Apr 5, 2017 · 2 comments

Comments

@saloomy2017
Copy link

saloomy2017 commented Apr 5, 2017

Centos 7.03
kernel-ml.x86_64 4.9.9-1.el7.elrepo @elrepo-kernel
zfs.x86_64 0.6.5.9-1.el7_3.centos @zfs
spl.x86_64 0.6.5.9-1.el7_3.centos @zfs

According to the man page:

-R Generate a replication stream package, which will replicate the specified filesystem, and all descendent file systems, up to the named snapshot. When received, all properties, snapshots, descendent file systems, and clones are preserved.

I want to preserve filesystem properties:

poola/datafiles compression lz4 inherited from poola

Command to replicate :

zfs send -R poola/datafiles@today | ssh root@10.0.2.11 -C "zfs receive -F poolb"

Note: zfs filesystem datafiles does not exist on the target pool

After replication:

poolb/datafiles compression off default

I can't seem to replicate while preserving properties such as compression, dedupe, atime, etc.....

How can I replicate while preserving properties so NFS mounts and such come across?

@GregorKopka
Copy link
Contributor

The reason is in the bold part:

poola/datafiles compression lz4 inherited from poola

The properties are inherited into the dataset from the parent, not a part of it.

@loli10K
Copy link
Contributor

loli10K commented Jul 4, 2017

This is a duplicate of #2121.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants