You are not logged in.

#1 2023-05-01 14:25:40

shako
Member
Registered: 2021-11-16
Posts: 50

archinstall, encrypted btrfs: unable to set compression

Hi everyone,

I seemingly can't enable btrfs subvolumes compression upon installing arch on encrypted btrfs with archinstall: even though I ask for btrfs compression in the interactive menu, I see "compress": False in the resulting configuration for each subvolume. Here are a few details that might be relevant:

disk layout: default for btrfs
encryption: yes
bootloader: systemd-bootctl

I tried exporting my configuration to a .json file and manually editing it, but this causes the script to crash. Both the ISO I'm using and archinstall are at latest version (2023.04.01 for the ISO, 2.5.5-1 for archinstall). A number of similar issues have been reported in the past: https://github.com/archlinux/archinstall/issues/1303 https://github.com/archlinux/archinstall/issues/1571

Any hint?

Last edited by shako (2023-05-01 14:26:54)

Offline

#2 2023-05-02 09:48:06

shako
Member
Registered: 2021-11-16
Posts: 50

Re: archinstall, encrypted btrfs: unable to set compression

For those who ran into the same issue:

I did several tests, and it seems like archinstall categorically refuses to apply btrfs compression to subvolumes. This was a pain for me, since I wanted to apply compression to my volumes and knew that, if I installed my base system with uncompressed subbolumes and enabled compression afterwards, only newly written files would have been compressed.
An easy workoround, if you don't want to install the system the good ol' way, is to compress existing files straight after installing the system, and enable compression:

# btrfs filesystem defragment -r -v -czstd /

See https://wiki.archlinux.org/title/btrfs#Compression for details.

If anyone has something to add or correct, feel free.

Last edited by shako (2023-05-02 09:48:30)

Offline

#3 2023-05-02 10:32:39

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: archinstall, encrypted btrfs: unable to set compression

Mod note: moving to archinstall subforum.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB