Anonymous
2012-Dec-03 09:21 UTC
[zfs-discuss] How can I copy a ZFS filesystem back and forth
I turned compression on for several ZFS filesystems and found performance was still fine. I turned gzip on and it was also fine and compression on certain filesystems is excellent. I realize all the files that were on the filesystem when compression=on did not get the benefit of gzip when I set compression=gzip. I would like everything to be compressed with gzip. What''s the easiest way for me to accomplish this? I figured some sort of copy back and forth is required, but I don''t know what would be fastest. Should I just rsync everything to a new filesystem with compression=gzip set and then delete the original and and rename the new one, or zfs send or ?? Can I do a send and receive into a filesystem with attributes set as I want or does the receive keep the same attributes as well? Thank you.
Chris Nagele
2012-Dec-03 15:28 UTC
[zfs-discuss] How can I copy a ZFS filesystem back and forth
> original and and rename the new one, or zfs send or ?? Can I do a send and > receive into a filesystem with attributes set as I want or does the receive > keep the same attributes as well? Thank you.That will work. Just create the new filesystem with the attributes you want and send/recv the latest snapshot. As the data is received the gzip compression will be applied. Since the new filesystem already exists you will have to do a "zfs receive -Fv" to force it. --chris
Anonymous
2012-Dec-04 10:27 UTC
[zfs-discuss] How can I copy a ZFS filesystem back and forth
Thanks for the help Chris! Cheers, Fritz You wrote:> > original and and rename the new one, or zfs send or ?? Can I do a send and > > receive into a filesystem with attributes set as I want or does the receive > > keep the same attributes as well? Thank you. > > That will work. Just create the new filesystem with the attributes you > want and send/recv the latest snapshot. As the data is received the > gzip compression will be applied. Since the new filesystem already > exists you will have to do a "zfs receive -Fv" to force it. > > --chris