Skip to contentSkip to conversation

btrfs-vol -b endless loop

DISCUSSION Pär Andersson 2 participants 3 messages Feb 3, 2010 – Feb 12, 2010 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hi,

I have a 11G btrfs file system where "btrfs-vol -b" get stuck in a loop. The "found 7 extents" messages and heavy disk io continues until I reboot:

[26223.544037] btrfs: relocating block group 42079027200 flags 36
[26228.082740] btrfs: found 2457 extents
[26228.104515] btrfs: relocating block group 41407938560 flags 1
[26228.423981] btrfs: found 124 extents
[26229.514583] btrfs: found 124 extents
[26229.544160] btrfs: found 7 extents
[26229.812494] btrfs: found 7 extents
[26230.453720] btrfs: found 7 extents
[26230.733233] btrfs: found 7 extents
[26231.383321] btrfs: found 7 extents
[26231.652815] btrfs: found 7 extents

...

The error is repeatable. btrfsck does not report any errors:

root@faran:~# btrfsck /dev/sda5
found 9035055104 bytes used err is 0
total csum bytes: 8293152
total tree bytes: 542867456
total fs tree bytes: 503087104
btree space waste bytes: 108089491
file data blocks allocated: 8492187648
 referenced 10314125312
Btrfs Btrfs v0.19

The kernel is Linus' master from two days ago, and seems to have all the latest btrfs code merged.

Regards,
Pär Andersson

#1 lore raw
Quoted 4 lines · On Thu, Feb 4, 2010 at 6:25 AM, P=E4r Andersson <[email protected]> = wrote:

Hi,

I have a 11G btrfs file system where "btrfs-vol -b" get stuck in a loop. The "found 7 extents" messages and heavy disk io continues unti=

l I

Quoted 27 lines

reboot:

[26223.544037] btrfs: relocating block group 42079027200 flags 36
[26228.082740] btrfs: found 2457 extents
[26228.104515] btrfs: relocating block group 41407938560 flags 1
[26228.423981] btrfs: found 124 extents
[26229.514583] btrfs: found 124 extents
[26229.544160] btrfs: found 7 extents
[26229.812494] btrfs: found 7 extents
[26230.453720] btrfs: found 7 extents
[26230.733233] btrfs: found 7 extents
[26231.383321] btrfs: found 7 extents
[26231.652815] btrfs: found 7 extents

...

The error is repeatable. btrfsck does not report any errors:

root@faran:~# btrfsck /dev/sda5
found 9035055104 bytes used err is 0
total csum bytes: 8293152
total tree bytes: 542867456
total fs tree bytes: 503087104
btree space waste bytes: 108089491
file data blocks allocated: 8492187648
=A0referenced 10314125312
Btrfs Btrfs v0.19
Quoted 1 line

The kernel is Linus' master from two days ago, and seems to have all =

the

Quoted 2 lines

latest btrfs code merged.

The loop is due to fragments of free space. I'm working on make 'btrfs-= vol -b'
return -ENOSPC in this case.

Yan, Zheng
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" = in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 2 lines · Zheng

The loop is due to fragments of free space. I'm working on make 'btrfs-vol -b' return -ENOSPC in this case.

If I remember correctly the filesystem had 3G free space according to df, which I know is not reliable on btrfs.

After removing one 540M file 'btrfs-vol -b' ran successfully.

Thanks,
Pär