Bug 76481

Summary: No space left on device
Product: File System Reporter: Konstantin Molchanov (molchanov.kv)
Component: btrfsAssignee: Josef Bacik (josef)
Status: RESOLVED OBSOLETE    
Severity: high CC: dsterba
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.11.6 Subsystem:
Regression: No Bisected commit-id:
Attachments: Copy failed

Description Konstantin Molchanov 2014-05-19 10:16:01 UTC
The root file system has deteriorated since out of space.
That's what I was able to collect data.


# uname -a
Linux Rescue 3.11.6-4-default #1 SMP Wed Oct 30 18:04:56 UTC 2013 (e6d4a27) x86_64 x86_64 x86_64 GNU/Linux


# btrfs fi show
Label: none  uuid: 4556f023-2d76-4f37-9ba0-7d51848e8722
	Total devices 1 FS bytes used 7.70GiB
	devid    1 size 69.78GiB used 34.02GiB path /dev/sda3

Label: none  uuid: a1e9fe89-453f-4c27-bae3-dd247dc88114
	Total devices 1 FS bytes used 10.49GiB
	devid    1 size 40.00GiB used 40.00GiB path /dev/sda2

Btrfs v0.20-rc1+20130701


# btrfs fi df /mnt/root
Data: total=37.49GiB, used=9.94GiB
System: total=4.00MiB, used=12.00KiB
Metadata: total=2.51GiB, used=568.14MiB


Copy from btrfs fail, see 'cp_fail.txt' attachment.


Unmount fail:
[   94.506974] device fsid a1e9fe89-453f-4c27-bae3-dd247dc88114 devid 1 transid 621186 /dev/sda2
[   94.507638] btrfs: disk space caching is enabled
[   94.527343] Btrfs detected SSD devices, enabling SSD mode
[  927.200621] ------------[ cut here ]------------
[  927.200630] kernel BUG at /home/abuild/rpmbuild/BUILD/kernel-default-3.11.6/linux-3.11/fs/btrfs/inode.c:879!
[  927.200635] invalid opcode: 0000 [#1] SMP 
[  927.200639] Modules linked in: btrfs raid6_pq zlib_deflate xor libcrc32c dm_mod nls_utf8 parport_pc parport arc4 ecb nfs lockd fscache nls_iso8859_1 nls_cp437 hid_generic usbhid af_packet sg st usb_storage sunrpc eeepc_wmi asus_wmi sparse_keymap rfkill i915 xhci_hcd ehci_pci ehci_hcd crc32_pclmul usbcore crc32c_intel drm_kms_helper ghash_clmulni_intel drm aesni_intel ablk_helper cryptd lrw gf128mul glue_helper aes_x86_64 e1000 sr_mod cdrom usb_common lpc_ich r8169 mfd_core mii i2c_algo_bit fan thermal mperf wmi video processor button thermal_sys edd squashfs loop
[  927.200676] CPU: 1 PID: 1701 Comm: umount Not tainted 3.11.6-4-default #1
[  927.200679] Hardware name: System manufacturer System Product Name/P8Z77-V LX, BIOS 1902 04/12/2013
[  927.200683] task: ffff8801097b2400 ti: ffff880133a32000 task.ti: ffff880133a32000
[  927.200686] RIP: 0010:[<ffffffffa0471b77>]  [<ffffffffa0471b77>] __cow_file_range+0x437/0x4d0 [btrfs]
[  927.200701] RSP: 0018:ffff880133a33700  EFLAGS: 00010202
[  927.200704] RAX: 0000000000001000 RBX: 0000000000000000 RCX: 000000000000010c
[  927.200708] RDX: 000000000000010c RSI: ffff880404f35638 RDI: ffff880383b679f0
[  927.200711] RBP: 0000000000000000 R08: 0000000000000000 R09: 000000000000ffff
[  927.200714] R10: 0000000000010000 R11: 0000000000010000 R12: 0000000000000000
[  927.200717] R13: ffff880404f35638 R14: ffff880101b93880 R15: 0000000000000000
[  927.200720] FS:  00007f4d640d8840(0000) GS:ffff88041fa40000(0000) knlGS:0000000000000000
[  927.200724] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  927.200727] CR2: 00007f4d63c95200 CR3: 00000004077d9000 CR4: 00000000001407e0
[  927.200730] Stack:
[  927.200732]  ffff880101b937f0 00000000000001f8 ffff880404f35478 ffff880406068800
[  927.200737]  0000000000c10000 ffff8803feaeecd0 ffff8803feaeecd0 ffff880383b679f0
[  927.200741]  ffffea000074c3f8 f60000000000c000 80ffffffffffffff 000000000000ffff
[  927.200745] Call Trace:
[  927.200793]  [<ffffffffa0471f8c>] run_delalloc_nocow+0x37c/0xb40 [btrfs]
[  927.200828]  [<ffffffffa0472b4a>] run_delalloc_range+0x32a/0x390 [btrfs]
[  927.200865]  [<ffffffffa0488e8f>] __extent_writepage+0x32f/0x7c0 [btrfs]
[  927.200911]  [<ffffffffa0489530>] extent_write_cache_pages.isra.33.constprop.50+0x210/0x350 [btrfs]
[  927.200956]  [<ffffffffa0489928>] extent_writepages+0x48/0x60 [btrfs]
[  927.200996]  [<ffffffff81119a69>] __filemap_fdatawrite_range+0x49/0x50
[  927.201009]  [<ffffffffa0483d2f>] btrfs_wait_ordered_range+0x3f/0xf0 [btrfs]
[  927.201051]  [<ffffffffa04a862e>] __btrfs_write_out_cache+0x6fe/0x8f0 [btrfs]
[  927.201106]  [<ffffffffa04a8af9>] btrfs_write_out_cache+0x99/0xd0 [btrfs]
[  927.201161]  [<ffffffffa045bede>] btrfs_write_dirty_block_groups+0x54e/0x620 [btrfs]
[  927.201187]  [<ffffffffa04d1d7b>] commit_cowonly_roots+0x1d7/0x223 [btrfs]
[  927.201217]  [<ffffffffa046b241>] btrfs_commit_transaction+0x431/0x970 [btrfs]
[  927.201251]  [<ffffffffa0466737>] btrfs_commit_super+0x87/0x100 [btrfs]
[  927.201280]  [<ffffffffa0466980>] close_ctree+0x1d0/0x270 [btrfs]
[  927.201304]  [<ffffffff8117d0dd>] generic_shutdown_super+0x4d/0xd0
[  927.201310]  [<ffffffff8117d489>] kill_anon_super+0x9/0x20
[  927.201317]  [<ffffffffa04408fd>] btrfs_kill_super+0xd/0x80 [btrfs]
[  927.201326]  [<ffffffff8117d813>] deactivate_locked_super+0x33/0x50
[  927.201332]  [<ffffffff8119890c>] SyS_umount+0x8c/0x380
[  927.201338]  [<ffffffff8156eeed>] system_call_fastpath+0x1a/0x1f
[  927.201344]  [<00007f4d639bf9a7>] 0x7f4d639bf9a6
[  927.201347] Code: 7c 24 38 4c 89 ee e8 d9 a9 00 00 e9 7d fc ff ff 48 85 d2 74 4f 80 be 30 fe ff ff 84 48 89 d1 74 43 48 83 f9 01 0f 84 2b fc ff ff <0f> 0b 48 8b 74 24 18 48 8b 7c 24 38 41 89 c0 b9 a1 03 00 00 48 
[  927.201370] RIP  [<ffffffffa0471b77>] __cow_file_range+0x437/0x4d0 [btrfs]
[  927.201380]  RSP <ffff880133a33700>
[  927.201383] ---[ end trace f922064c6bb8d1dc ]---
Comment 1 Konstantin Molchanov 2014-05-19 10:17:10 UTC
Created attachment 136731 [details]
Copy failed
Comment 2 David Sterba 2022-10-03 15:02:23 UTC
This is a semi-automated bugzilla cleanup, report is against an old kernel version. If the problem still happens, please open a new bug. Thanks.