[opensuse-factory] ZSTD compressed root partition subvolumes
Hi list, I thought about compressing my root partition with zstd, with which I've had a good experience so far in terms of the speed vs size tradeoff. Since I used the default partition layout, /boot/ is part of / and needs to be readable by GRUB. Unfortunately GRUB stable cannot yet read zstd compressed btrfs partitions (support has been added in git already: https://git.savannah.gnu.org/cgit/grub.git/commit/?id=386128648606a3aa6ae710...). My question is: is it safe to compress other subvolumes of /, like /var? And would it be safe to put /boot/ into an uncompressed subvolume and compress everything else (including /)? Thanks in advance for any pointers/suggestions, Dan -- Dan Čermák <dcermak@suse.com> Software Engineer Development tools SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany Tel: +49-911-74053-0; Fax: +49-911-7417755; https://www.suse.com/ GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 21284 (AG Nürnberg)
Hi, On Tue, Apr 02, Dan Čermák wrote:
Since I used the default partition layout, /boot/ is part of / and needs to be readable by GRUB. Unfortunately GRUB stable cannot yet read zstd compressed btrfs partitions (support has been added in git already: https://git.savannah.gnu.org/cgit/grub.git/commit/?id=386128648606a3aa6ae710...).
My question is: is it safe to compress other subvolumes of /, like /var?
Should be safe.
And would it be safe to put /boot/ into an uncompressed subvolume and compress everything else (including /)?
Putting /boot into a subvolume will break snapshots, rollback, ... But you don't need to do that, if I remember correct, you could compress the files in /boot with another algo or not at all, without the need to put it into an own subvolume. Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & MicroOS SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany GF: Felix Imendoerffer, Mary Higgins, Sri Rasiah, HRB 21284 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hi Thorsten, Thorsten Kukuk <kukuk@suse.de> writes:
Hi,
On Tue, Apr 02, Dan Čermák wrote:
Since I used the default partition layout, /boot/ is part of / and needs to be readable by GRUB. Unfortunately GRUB stable cannot yet read zstd compressed btrfs partitions (support has been added in git already: https://git.savannah.gnu.org/cgit/grub.git/commit/?id=386128648606a3aa6ae710...).
My question is: is it safe to compress other subvolumes of /, like /var?
Should be safe.
Good to know, thanks!
And would it be safe to put /boot/ into an uncompressed subvolume and compress everything else (including /)?
Putting /boot into a subvolume will break snapshots, rollback, ... But you don't need to do that, if I remember correct, you could compress the files in /boot with another algo or not at all, without the need to put it into an own subvolume.
I can compress everything except /boot/ manually, but according to my understanding btrfs will not automatically compress new files, unless I mount it with compress=$algo (which I don't want since /boot/ will be then also compressed on the next initrd rebuild). Is there a way around that?
Thorsten
-- Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & MicroOS SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany GF: Felix Imendoerffer, Mary Higgins, Sri Rasiah, HRB 21284 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-- Dan Čermák <dcermak@suse.com> Software Engineer Development tools SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany Tel: +49-911-74053-0; Fax: +49-911-7417755; https://www.suse.com/ GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 21284 (AG Nürnberg)
participants (3)
-
Dan Čermák
-
dcermak@suse.com
-
Thorsten Kukuk