> roland wrote:
>
>> is there a reliable method of re-compressing a whole zfs volume  
>> after turning on compression or changing compression scheme ?
>

I have had some success using zfs send recv into a child of a  
compressed filesystem to do this although you have the disadvantage  
of losing your settings.

basically :
zfs create tank/foo
mv a bunch of files into foo
zfs create tank/bar
zfs set compression=on bar
zfs snapshot tank/[EMAIL PROTECTED]
zfs send tank/[EMAIL PROTECTED] | zfs recv tank/bar/foosmall
zfs destroy tank/foo
zfs set compression=on  tank/bar/foosmall
zfs rename tank/bar/foosmall tank/foo


kinda clunky and you have to have twice as much space available and  
there are probably other issues with it as I am not a pro zfs user  
here but, worked for me =)

Asa

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to