> You got the right lead there, but I believe it's > > btrfs filesystem resize 3:max / > > -- > With respect, > Roman
Thanks a lot, you got me one step further (but directly stuck again).
Unfortunately it now just shows that new space as Unallocated, together with
those 52gb i mentioned in my first mail.
Commands I tried to use them:
# btrfs filesystem sync / # (no output)
# btrfs subvolume sync / # (no output)
# btrfs balance / # please find output below
I also tried to add a new subvol hoping that one would be able to profit
from that new space (it didn't).
I assume I must add that unallocated space to any subvol, but have no clue
how to do so.
Again - no documentation found was helping.
Any Idea what I am missing?
Here's my command output:
# btrfs filesystem resize 3:max /
Resize '/' of '3:max'
# btrfs filesystem show
Label: none uuid: 26c2b9c2-7ef7-476c-825d-9931b6344c37
Total devices 3 FS bytes used 125.09GiB
devid 1 size 47.51GiB used 47.51GiB path /dev/sdb2
devid 2 size 32.00GiB used 32.00GiB path /dev/sdc
devid 3 size 500.00GiB used 47.52GiB path /dev/sdd
# btrfs filesystem usage /
Overall:
Device size: 579.51GiB
Device allocated: 127.02GiB
Device unallocated: 452.49GiB
Device missing: 0.00B
Used: 125.42GiB
Free (estimated): 452.73GiB (min: 226.49GiB)
Data ratio: 1.00
Metadata ratio: 2.00
Global reserve: 24.00MiB (used: 0.00B)
Data,RAID0: Size:125.01GiB, Used:124.76GiB
/dev/sdb2 46.51GiB
/dev/sdc 31.99GiB
/dev/sdd 46.51GiB
Metadata,RAID1: Size:1.00GiB, Used:333.56MiB
/dev/sdb2 1.00GiB
/dev/sdd 1.00GiB
System,RAID1: Size:8.00MiB, Used:16.00KiB
/dev/sdc 8.00MiB
/dev/sdd 8.00MiB
Unallocated:
/dev/sdb2 1.00MiB
/dev/sdc 1.00MiB
/dev/sdd 452.48GiB
# btrfs balance /
WARNING:
Full balance without filters requested. This operation is very
intense and takes potentially very long. It is recommended to
use the balance filters to narrow down the scope of balance.
Use 'btrfs balance start --full-balance' option to skip this
warning. The operation will start in 10 seconds.
Use Ctrl-C to stop it.
10 9 8 7 6 5 4 3 2 1
Starting balance without any filters.
ERROR: error during balancing '/': No space left on device
There may be more info in syslog - try dmesg | tail
# dmesg | tail
[ 6746.086714] BTRFS info (device sdb2): new size for /dev/sdb2 is
51013222400
[63115.423998] BTRFS info (device sdb2): resizing devid 3
[63115.424001] BTRFS info (device sdb2): new size for /dev/sdd is
536870912000
[64096.971566] sda: sda1
[64473.204054] BTRFS info (device sdb2): balance: start -d -m -s
[64473.204145] BTRFS info (device sdb2): relocating block group 135289372672
flags data|raid0
[64473.449111] BTRFS info (device sdb2): found 6 extents
[64473.514132] BTRFS info (device sdb2): found 6 extents
[64473.563164] BTRFS info (device sdb2): 49 enospc errors during balance
[64473.563167] BTRFS info (device sdb2): balance: ended with status: -28
# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.9G 8.0K 3.9G 1% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 17M 3.9G 1% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/sdb2 580G 126G 251M 100% /
/dev/sdb2 580G 126G 251M 100% /.snapshots
/dev/sdb2 580G 126G 251M 100% /usr/local
/dev/sdb2 580G 126G 251M 100% /opt
/dev/sdb2 580G 126G 251M 100% /root
/dev/sdb2 580G 126G 251M 100% /boot/grub2/i386-pc
/dev/sdb2 580G 126G 251M 100% /boot/grub2/x86_64-efi
/dev/sdb2 580G 126G 251M 100% /srv
/dev/sdb2 580G 126G 251M 100% /var
/dev/sdb2 580G 126G 251M 100% /tmp
/dev/sdb2 580G 126G 251M 100% /home
/dev/sdb2 580G 126G 251M 100% /var/cache
/dev/sdb1 500M 5.3M 495M 2% /boot/efi
tmpfs 796M 0 796M 0% /run/user/0
Any help appreciated!
Thanks,
Heiner
smime.p7s
Description: S/MIME cryptographic signature
