Manchmal hilft es btrfs-balance zu starten um den Speicherplatz unmittelbar freizugeben. Hier ein Beispiel:
Code
server:~ # df -kh /
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 20G 6.4G 14G 33% /
server:~ # snapper rm 357-410
server:~ # df -kh /
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 20G 6.4G 14G 33% /
server:~ # /usr/share/btrfsmaintenance/btrfs-balance.sh
Before balance of /
Data, single: total=7.01GiB, used=4.76GiB
System, DUP: total=32.00MiB, used=16.00KiB
Metadata, DUP: total=896.00MiB, used=737.27MiB
GlobalReserve, single: total=22.92MiB, used=11.59MiB
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 22G 6.7G 15G 32% /
Done, had to relocate 0 out of 16 chunks
Dumping filters: flags 0x1, state 0x0, force is off
DATA (flags 0x2): balancing, usage=1
Done, had to relocate 0 out of 16 chunks
Dumping filters: flags 0x1, state 0x0, force is off
DATA (flags 0x2): balancing, usage=5
Done, had to relocate 0 out of 16 chunks
Dumping filters: flags 0x1, state 0x0, force is off
DATA (flags 0x2): balancing, usage=10
Done, had to relocate 0 out of 16 chunks
Dumping filters: flags 0x1, state 0x0, force is off
DATA (flags 0x2): balancing, usage=20
Done, had to relocate 1 out of 16 chunks
Dumping filters: flags 0x1, state 0x0, force is off
DATA (flags 0x2): balancing, usage=30
Done, had to relocate 1 out of 16 chunks
Dumping filters: flags 0x1, state 0x0, force is off
DATA (flags 0x2): balancing, usage=40
Done, had to relocate 1 out of 16 chunks
Dumping filters: flags 0x1, state 0x0, force is off
DATA (flags 0x2): balancing, usage=50
Done, had to relocate 1 out of 16 chunks
Done, had to relocate 0 out of 16 chunks
Dumping filters: flags 0x6, state 0x0, force is off
METADATA (flags 0x2): balancing, usage=1
SYSTEM (flags 0x2): balancing, usage=1
Done, had to relocate 1 out of 16 chunks
Dumping filters: flags 0x6, state 0x0, force is off
METADATA (flags 0x2): balancing, usage=5
SYSTEM (flags 0x2): balancing, usage=5
Done, had to relocate 1 out of 16 chunks
Dumping filters: flags 0x6, state 0x0, force is off
METADATA (flags 0x2): balancing, usage=10
SYSTEM (flags 0x2): balancing, usage=10
Done, had to relocate 1 out of 16 chunks
Dumping filters: flags 0x6, state 0x0, force is off
METADATA (flags 0x2): balancing, usage=20
SYSTEM (flags 0x2): balancing, usage=20
Done, had to relocate 1 out of 16 chunks
Dumping filters: flags 0x6, state 0x0, force is off
METADATA (flags 0x2): balancing, usage=30
SYSTEM (flags 0x2): balancing, usage=30
Done, had to relocate 1 out of 16 chunks
After balance of /
Data, single: total=7.01GiB, used=4.37GiB
System, DUP: total=32.00MiB, used=16.00KiB
Metadata, DUP: total=896.00MiB, used=622.12MiB
GlobalReserve, single: total=22.16MiB, used=0.00B
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 22G 6.1G 15G 29% /
server:~ # df -kh /
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 20G 5.7G 14G 29% /
Alles anzeigen
Erst nach btrfs-banace wurden 4% Speicher freigegeben, und meine snapshots sind relativ klein. btrfs-balance wird über einen systemd Timer regelmässig aufgerufen, aber um die Wirkung beim Löschen von Snapshots unmittelbar zu sehen, kann man es manuell starten.