Neal Pollack
2007-Jan-24 17:42 UTC
[zfs-discuss] Can you turn on zfs compression when the fs is already populated?
I have an 800GB raidz2 zfs filesystem. It already has approx 142Gb of data. Can I simply turn on compression at this point, or do you need to start with compression at the creation time? If I turn on compression now, what happens to the existing data? Thanks, Neal
Casper.Dik at Sun.COM
2007-Jan-24 17:50 UTC
[zfs-discuss] Can you turn on zfs compression when the fs is already populated?
>I have an 800GB raidz2 zfs filesystem. It already has approx 142Gb of data. >Can I simply turn on compression at this point, or do you need to start >with compression >at the creation time? If I turn on compression now, what happens to the >existing data?Yes. Nothing. Casper
Dana H. Myers
2007-Jan-24 17:55 UTC
[zfs-discuss] Can you turn on zfs compression when the fs is already populated?
Neal Pollack wrote:> I have an 800GB raidz2 zfs filesystem. It already has approx 142Gb of > data. > Can I simply turn on compression at this point, or do you need to start > with compression at the creation time?As I understand it, you can turn compression on and off at will. Data will be written to the disk according to the compression mode, and either compressed or uncompressed blocks can be read regardless of the setting. If I turn on compression now, what> happens to the existing data?Existing (uncompressed) data will remain uncompressed until it is re-written, at which point it may be compressed. Dana
Anantha N. Srirama
2007-Jan-24 18:53 UTC
[zfs-discuss] Re: Can you turn on zfs compression when the fs is already populated?
I''ve used the COMPRESS feature for quite a while and you can flip back and forth without any problem. When you turn the compress ON nothing happens to the existing data. However when you start updating your files all new blocks will be compressed; so it is possible to have your file be composed of both compressed and uncompressed blocks! This message posted from opensolaris.org
Adam Leventhal
2007-Jan-25 23:31 UTC
[zfs-discuss] Can you turn on zfs compression when the fs is already populated?
For what it''s worth, there is a plan to allow data to be scrubbed so that you can enable compression for extant data. No ETA, but it''s on the roadmap. In fact, I was recently reminded that I filed a bug on this in 2004: 5029294 there should be a way to compress an extant file system Adam On Wed, Jan 24, 2007 at 06:50:22PM +0100, Casper.Dik at sun.com wrote:> > >I have an 800GB raidz2 zfs filesystem. It already has approx 142Gb of data. > >Can I simply turn on compression at this point, or do you need to start > >with compression > >at the creation time? If I turn on compression now, what happens to the > >existing data? > > Yes. Nothing. > > Casper > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss-- Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl