Hi list, i am new to btrfs and really need help extending my fs on my openSUSE Leap 15.2 VMware VM. It has one big btrfs on multiple disks:
# 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 100.00GiB used 47.52GiB path /dev/sdd
# btrfs subvolume list /
ID 256 gen 32 top level 5 path @
ID 259 gen 6438 top level 256 path @/var
ID 260 gen 6245 top level 256 path @/usr/local
ID 261 gen 6433 top level 256 path @/tmp
ID 262 gen 6313 top level 256 path @/srv
ID 263 gen 6418 top level 256 path @/root
ID 264 gen 34 top level 256 path @/opt
ID 265 gen 34 top level 256 path @/home
ID 266 gen 271 top level 256 path @/boot/grub2/x86_64-efi
ID 267 gen 28 top level 256 path @/boot/grub2/i386-pc
ID 268 gen 6422 top level 256 path @/.snapshots
ID 269 gen 6438 top level 268 path @/.snapshots/1/snapshot
ID 285 gen 6314 top level 259 path @/var/cache
I ran out of space and got disk /dev/sdd resized from 100 to 500 gb.
I ran # echo 1 > /sys/block/sdd/device/rescan
and also rebooted multiple times after resizing.
OS got new size:
# lsblk /dev/sdd
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdd 8:48 0 500G 0 disk
But btrfs won't extend its filesystem:
# btrfs filesystem resize max /
Resize '/' of 'max'
# btrfs filesystem resize +1g /
Resize '/' of '+1g'
ERROR: unable to resize '/': no enough free space
# btrfs filesystem usage /
Overall:
Device size: 179.51GiB
Device allocated: 127.02GiB
Device unallocated: 52.49GiB
Device missing: 0.00B
Used: 125.42GiB
Free (estimated): 52.73GiB (min: 26.49GiB)
Data ratio: 1.00
Metadata ratio: 2.00
Global reserve: 24.03MiB (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.58MiB
/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 52.48GiB
- How can I use the 52 gb shown above as unallocated/free?
- What must I do to be able to use the 400 gb i added to /dev/sdd?
Here is a list of all btrfs commands I have tried/used by now:
btrfs balance start -dusage=0 -musage=0 /
btrfs balance start /
btrfs check
btrfs check --force /dev/sdd
btrfs check --repair
btrfs check --repair --force /dev/sdd
btrfs check --repair /dev/sdd
btrfs check /
btrfs check /dev/sdd
btrfs check /dev/sdd --force
btrfs device add /dev/sdd /
btrfs device scan
btrfs device scan
btrfs device scan -d
btrfs device stats
btrfs device stats /
btrfs device stats /dev/sdd
btrfs device usage
btrfs device usage /
btrfs fi df /
btrfs fi show /dev/sdd
btrfs filesystem df
btrfs filesystem df /
btrfs filesystem df /var
btrfs filesystem resize +10g /
btrfs filesystem resize +1g /
btrfs filesystem resize +5g /
btrfs filesystem resize /
btrfs filesystem resize / 3:max
btrfs filesystem resize / max
btrfs filesystem resize max /
btrfs filesystem resize max /var
btrfs filesystem show /
btrfs filesystem show /dev/sdd
btrfs filesystem usage
btrfs filesystem usage /
btrfs fs label
btrfs fs label /
btrfs fs label /dev/sdd
btrfs fs resize /
btrfs fs resize / max
btrfs fs resize / max|less
btrfs fs resize max /
btrfs subvolume delete /.snapshots/1/snapshot
btrfs subvolume delete /.snapshots/10/snapshot
btrfs subvolume delete /.snapshots/2/snapshot
btrfs subvolume delete /.snapshots/21/snapshot
btrfs subvolume delete /.snapshots/22/snapshot
btrfs subvolume delete /.snapshots/9/snapshot
btrfs subvolume delete @/.snapshots/2/snapshot
btrfs subvolume list
btrfs subvolume list /
btrfs subvolume show
btrfs subvolume show /
btrfs subvolume sync
btrfsck /
btrfsck /dev/sdd
Thanks for any help!
Heiner
smime.p7s
Description: S/MIME cryptographic signature
