rezise btrfs filesystem (gparted)

Hello rotfl!,

I want to resize my btrfs partition (/dev/sda7), but it doesnt work. I tried it with gparted but gparted runs the command “btrfsck /dev/sda7”. And there it says:

Checking filesystem on /dev/sda7UUID: 5839be1b-2df2-437e-8dda-8ceccd37587c
checking extents
checking free space cache
checking fs roots
root 5 inode 94257 errors 200, dir isize wrong
root 5 inode 615063 errors 2000, link count wrong
    unresolved ref dir 94257 index 778 namelen 11 name job.cache.O filetype 0 errors 3, no dir item, no dir index
found 3903463949 bytes used err is 1
total csum bytes: 16962464
total tree bytes: 858898432
total fs tree bytes: 808747008
total extent tree bytes: 27754496
btree space waste bytes: 152173659
file data blocks allocated: 122654519296
 referenced 44366884864

I tried to fix it with “btrfs check --repair /dev/sda7”:

enabling repair modeFixed 0 roots.
Checking filesystem on /dev/sda7
UUID: 5839be1b-2df2-437e-8dda-8ceccd37587c
checking extents
checking free space cache
cache and super generation don't match, space cache will be invalidated
checking fs roots
root 5 inode 615063 errors 2000, link count wrong
    unresolved ref dir 94257 index 778 namelen 11 name job.cache.O filetype 0 errors 3, no dir item, no dir index
found 3962557241 bytes used err is 1
total csum bytes: 16962464
total tree bytes: 858898432
total fs tree bytes: 808747008
total extent tree bytes: 27754496
btree space waste bytes: 152173659
file data blocks allocated: 122654519296
 referenced 44366884864
Btrfs v3.17

The try to resize the partition with " btrfs filesystem resize +20g /" doesnt work too:

Resize '/' of '+20g'
ERROR: unable to resize '/' - File too large

I dont know what I can do now. Have anyone an advise/solution?
Thank you very much.

greets
k3jj3k

PS I use OpenSuse 13.2

This sounds like upstream problem; identical bug report in 1162272 – btrfs check --repair couldn't solve problem with btrfs partition. I suggest you open bug report on https://bugzilla.opensuse.org and refer to the redhat bug.

Ok. I’ll do that. But I haven’t done that yet. How I can make a new request? There are two options called “New Case” and “New Run” What should I choose?

greets
k3jj3k

File a Bug :slight_smile:

https://bugzilla.opensuse.org/enter_bug.cgi?product=openSUSE%20Distribution

btw: here is the bug report: https://bugzilla.opensuse.org/show_bug.cgi?id=932778
Thanks for all.