Ask / Submit
9

btrfs balance crashes

asked 2015-07-28 15:31:11 +0300

Benjamin gravatar image

updated 2015-07-28 15:35:26 +0300

This morning, I saw the notification announcing update 1.1.7.25. I have hit the "Perform optimization" button in the GUI and put the phone aside. I thought it might take some time like it did with update 1.1.7.24.

When I took it again, I saw the Jolla logo boot-up screen and after that only a black screen with the LED lit in white. Probably the phone rebooted. After waiting some hours without anything happening, I rebooted then phone (long press of power button, LED lit red, wait, press power button), but it was stuck again.

So, I followed the tutorial on how to enter recovery mode. I have chosen "5) Try btrfs recovery if your device is in bootloop". This outputs "Root mounted with recovery options". After waiting some hours more, I opened a second telnet session and went into a shell. There, dmesg shows the following:

[  210.358034] device label sailfish devid 1 transid 1300408 /dev/mmcblk0p28
[  210.359743] btrfs: enabling auto recovery
[  210.359743] btrfs: disabling disk space caching
[  210.359774] btrfs: force clearing of disk cache
[  210.359774] btrfs: enabling auto defrag
[  210.363528] btrfs: bdev /dev/mmcblk0p28 errs: wr 0, rd 0, flush 0, corrupt 0, gen 0
[  210.380497] Btrfs detected SSD devices, enabling SSD mode
[  210.613856] btrfs: unlinked 1 orphans
[  210.614527] btrfs: continuing balance
[  210.979093] btrfs: relocating block group 27738898432 flags 1
[  211.208820] ------------[ cut here ]------------
[  211.208850] WARNING: at fs/btrfs/super.c:221 __btrfs_abort_transaction+0x38/0x98()
[  211.208881] btrfs: Transaction aborted
[  211.208881] Modules linked in:
[  211.208911] [<c010b71c>] (unwind_backtrace+0x0/0x118) from [<c017365c>] (warn_slowpath_common+0x4c/0x64)
[  211.208942] [<c017365c>] (warn_slowpath_common+0x4c/0x64) from [<c01736a0>] (warn_slowpath_fmt+0x2c/0x3c)
[  211.208972] [<c01736a0>] (warn_slowpath_fmt+0x2c/0x3c) from [<c0324dfc>] (__btrfs_abort_transaction+0x38/0x98)
[  211.208972] [<c0324dfc>] (__btrfs_abort_transaction+0x38/0x98) from [<c0335010>] (find_free_extent+0x9d4/0xc08)
[  211.209003] [<c0335010>] (find_free_extent+0x9d4/0xc08) from [<c0338e88>] (btrfs_reserve_extent+0xe0/0x294)
[  211.209034] [<c0338e88>] (btrfs_reserve_extent+0xe0/0x294) from [<c034f77c>] (__btrfs_prealloc_file_range+0xa8/0x2ec)
[  211.209064] [<c034f77c>] (__btrfs_prealloc_file_range+0xa8/0x2ec) from [<c0354d6c>] (btrfs_prealloc_file_range+0x34/0x3c)
[  211.209095] [<c0354d6c>] (btrfs_prealloc_file_range+0x34/0x3c) from [<c038984c>] (prealloc_file_extent_cluster+0x13c/0x19c)
[  211.209125] [<c038984c>] (prealloc_file_extent_cluster+0x13c/0x19c) from [<c0389a20>] (relocate_file_extent_cluster+0x64/0x368)
[  211.209156] [<c0389a20>] (relocate_file_extent_cluster+0x64/0x368) from [<c0389d68>] (relocate_data_extent+0x44/0xe0)
[  211.209156] [<c0389d68>] (relocate_data_extent+0x44/0xe0) from [<c038ebc8>] (relocate_block_group+0x3a4/0x5a0)
[  211.209186] [<c038ebc8>] (relocate_block_group+0x3a4/0x5a0) from [<c038ef0c>] (btrfs_relocate_block_group+0x148/0x2a4)
[  211.209217] [<c038ef0c>] (btrfs_relocate_block_group+0x148/0x2a4) from [<c036e7b4>] (btrfs_relocate_chunk.isra.12+0x3c/0x688)
[  211.209247] [<c036e7b4>] (btrfs_relocate_chunk.isra.12+0x3c/0x688) from [<c03726b8>] (btrfs_balance+0xbbc/0xd74)
[  211.209278] [<c03726b8>] (btrfs_balance+0xbbc/0xd74) from [<c03728bc>] (balance_kthread+0x4c/0x6c)
[  211.209308] [<c03728bc>] (balance_kthread+0x4c/0x6c) from [<c0191e48>] (kthread+0x84/0x90)
[  211.209339] [<c0191e48>] (kthread+0x84/0x90) from [<c0106758>] (kernel_thread_exit+0x0/0x8)
[  211.209339] ---[ end trace da227214a82491b9 ]---
[  211.209369] BTRFS error (device mmcblk0p28) in find_free_extent:5801: error 28
[  211.209369] btrfs is forced readonly
[  211.294796] btrfs-balance (199): undefined instruction: pc=c038e7f4
[  211.294796] Code: e3a03001 ebfeabd8 e3500000 aa000000 (e7f001f2) 
[  211.294857] ------------[ cut here ]------------
[  211.294887] kernel BUG at fs/btrfs/relocation.c:2278!
[  211.294887] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
[  211.294887] Modules linked in:
[  211.294918] CPU: 1    Tainted: G        W     (3.4.106.20150416.1 #1)
[  211.294948] PC is at merge_reloc_roots+0xf4/0x124
[  211.294948] LR is at btrfs_drop_snapshot+0x540/0x564
[  211.294979] pc : [<c038e7f4>]    lr : [<c0339c90>]    psr: a0000013
[  211.294979] sp : edf17d98  ip : 003b003c  fp : ee781d08
[  211.294979] r10: ee781800  r9 : ffffffe2  r8 : ee6fbc00
[  211.295009] r7 : fffffe5c  r6 : ee781cf0  r5 : edf17d98  r4 : ee781800
[  211.295009] r3 : 271ae976  r2 : 271ae976  r1 : c092cdb8  r0 : ffffffe2
[  211.295009] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[  211.295040] Control: 10c5787d  Table: ae13c06a  DAC: 00000015
[  211.295040] 
[  211.295040] PC: 0xc038e774:
[  211.295070] e774  e51321c4 e2438fab e3520000 0a00000f e513019c e18320d7 ebfff2e8 e3700a01
[  211.295101] e794  e1a01000 9a000000 e7f001f2 e590300c e1530008 0a000000 e7f001f2 e1a00004
[  211.295131] e7b4  ebfffea2 e3500000 0a000005 e7f001f2 e8930006 e5812004 e5821000 e5833000
[  211.295193] e7d4  e5833004 e1a00008 e594100c e3a02000 e3a03001 ebfeabd8 e3500000 aa000000
[  211.295223] e7f4  e7f001f2 e3a00001 eaffffd9 e3500000 1affffc4 e59434e8 e3530000 0a000000
[  211.295254] e814  e7f001f2 e28dd008 e8bd81f0 fffffe5c e92d4ff0 e24dd044 e3a03000 e1a0a000
[  211.295284] e834  e58d3018 ebfe619d e2506000 0a000159 e3a03001 e1a0000a e5863060 ebffea4d
[  211.295345] e854  e2509000 1a00014c e28abc05 e28bb008 e59a0004 e3a01000 ebfee44a e2899001
[  211.295376] 
[  211.295376] LR: 0xc0339c10:
[  211.295376] 9c10  eb0025da ea000005 e5940000 eb00c66b e5940004 eb00c669 e1a00004 ebfbd4be
[  211.295406] 9c30  e3a0a001 ea000000 e3a0a000 e1a00006 e1a01009 eb0038b8 e1a00007 ebfbd4b6
[  211.295467] 9c50  e1a00008 ebffb4e8 e35a0000 1a000001 e1a00004 eb00340e e3550000 1375000b
[  211.295498] 9c70  0a000009 e3a03000 e5940110 e58d3000 e3012b8f e59f1024 e1a03005 ebffabd9
[  211.295528] 9c90  ea000001 e3e0500b eafffff0 e1a00005 e28dd04c e8bd8ff0 c1098a98 c0b1e7c7
[  211.295559] 9cb0  c092cdb8 e92d4ff0 e24dd014 e5915103 e1a06001 e59140ff e3e01000 e1550001
[  211.295620] 9cd0  e58d000c e3e00007 01540000 0a000000 e7f001f2 e1a0b002 e1a07003 ebffb470
[  211.295650] 9cf0  e2508000 0a000059 e59f216c e5920008 e3500000 0a000007 e3081050 e3a020b8
[  211.295681] 
[  211.295681] SP: 0xedf17d18:
[  211.295711] 7d18  271ae976 271ae976 ee781800 edf17d98 ee781cf0 fffffe5c ee6fbc00 ffffffe2
[  211.295742] 7d38  ee781800 ee781d08 003b003c edf17d98 c0339c90 c038e7f4 a0000013 ffffffff
[  211.295772] 7d58  ffffffe4 edf17d88 eea1ac00 000004f8 ee781d08 c03479d4 00000001 ee781800
[  211.295803] 7d78  edf17d98 ee781cf0 fffffe5c ee6fbc00 ffffffe2 ee781800 ee781d08 c038e7ec
[  211.295864] 7d98  edf17d98 edf17d98 00000000 ee781884 ee2e20e0 ffffffe4 00000000 c038ed4c
[  211.295894] 7db8  ffffffff ffffffff 00000001 00000050 edf17df8 ee781810 00000000 c0192558
[  211.295925] 7dd8  eea1a800 edf17df8 c019265c 00354cf8 06773610 a8000000 00040000 00000000
[  211.295986] 7df8  edf17df8 ee781800 ee71e000 eea1ac00 00000001 ee71e3e0 00000518 00000510
[  211.296017] 
[  211.296017] FP: 0xee781c88:
[  211.296017] 1c88  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  211.296078] 1ca8  00000000 00000000 00000003 00000000 00000000 00000000 00000020 00000000
[  211.296108] 1cc8  00000000 00000000 00000000 00000000 00000000 00050005 00000000 00000000
[  211.296139] 1ce8  eea644c0 00010001 ee781cf0 ee781cf0 0000e000 00000000 00000000 00000000
[  211.296169] 1d08  773a1000 00000006 00000004 00000000 00000400 00000000 00000000 00000000
[  211.296230] 1d28  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  211.296261] 1d48  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  211.296291] 1d68  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  211.296352] 
[  211.296352] R1: 0xc092cd38:
[  211.296352] cd38  65747865 725f746e 5f006665 7274625f 665f7366 5f656572 65747865 6600746e
[  211.296383] cd58  5f646e69 65657266 7478655f 00746e65 66727462 75725f73 65645f6e 6579616c
[  211.296444] cd78  65725f64 77007366 65746972 656e6f5f 6361635f 675f6568 70756f72 72746200
[  211.296474] cd98  725f7366 72657365 655f6576 6e657478 73750074 6c625f65 5f6b636f 00767372
[  211.296505] cdb8  66727462 72645f73 735f706f 7370616e 00746f68 66727462 616d5f73 625f656b
[  211.296566] cdd8  6b636f6c 6f72675f 77007075 5f746961 5f726f66 65726f6d 6665725f 00000073
[  211.296596] cdf8  66727462 70755f73 65746164 6f6f725f 74620074 5f736672 5f646461 746f6f72
[  211.296627] ce18  6665725f 00000000 00000004 00000000 66727462 65645f73 73635f6c 00736d75
[  211.296688] 
[  211.296688] R4: 0xee781780:
[  211.296688] 1780  00000000 00000001 00000000 00000000 00000000 00000000 00000000 00040000
[  211.296719] 17a0  00000000 00000000 00000000 00020000 00000200 00000000 00000000 00000000
[  211.296749] 17c0  00001000 00000000 20000000 00000000 00000000 01000000 00000000 00080000
[  211.296810] 17e0  00000000 00000000 01000000 00000000 00000000 00000000 00000000 00050000
[  211.296841] 1800  ee746480 eea1ac00 ee3b23d0 eea64840 00000000 00000000 00000000 00000000
[  211.296871] 1820  00000000 00000000 00000000 00000000 00000000 ee781834 ee781834 ee78183c
[  211.296932] 1840  ee78183c ee781844 ee781844 ee78184c ee78184c ee781854 ee781854 ee78185c
[  211.296963] 1860  ee78185c ee781864 ee781864 ee78186c ee78186c ee781874 ee781874 ee78187c
[  211.296993] 
[  211.296993] R5: 0xedf17d18:
[  211.297024] 7d18  271ae976 271ae976 ee781800 edf17d98 ee781cf0 fffffe5c ee6fbc00 ffffffe2
[  211.297054] 7d38  ee781800 ee781d08 003b003c edf17d98 c0339c90 c038e7f4 a0000013 ffffffff
[  211.297085] 7d58  ffffffe4 edf17d88 eea1ac00 000004f8 ee781d08 c03479d4 00000001 ee781800
[  211.297146] 7d78  edf17d98 ee781cf0 fffffe5c ee6fbc00 ffffffe2 ee781800 ee781d08 c038e7ec
[  211.297176] 7d98  edf17d98 edf17d98 00000000 ee781884 ee2e20e0 ffffffe4 00000000 c038ed4c
[  211.297207] 7db8  ffffffff ffffffff 00000001 00000050 edf17df8 ee781810 00000000 c0192558
[  211.297237] 7dd8  eea1a800 edf17df8 c019265c 00354cf8 06773610 a8000000 00040000 00000000
[  211.297298] 7df8  edf17df8 ee781800 ee71e000 eea1ac00 00000001 ee71e3e0 00000518 00000510
[  211.297329] 
[  211.297329] R6: 0xee781c70:
[  211.297329] 1c70  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  211.297390] 1c90  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  211.297421] 1cb0  00000003 00000000 00000000 00000000 00000020 00000000 00000000 00000000
[  211.297451] 1cd0  00000000 00000000 00000000 00050005 00000000 00000000 eea644c0 00010001
[  211.297512] 1cf0  ee781cf0 ee781cf0 0000e000 00000000 00000000 00000000 773a1000 00000006
[  211.297543] 1d10  00000004 00000000 00000400 00000000 00000000 00000000 00000000 00000000
[  211.297573] 1d30  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  211.297604] 1d50  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  211.297665] 
[  211.297665] R7: 0xfffffddc:
[  211.297665] fddc  ******** ******** ******** ******** ******** ******** ******** ********
[  211.297726] fdfc  ******** ******** ******** ******** ******** ******** ******** ********
[  211.297756] fe1c  ******** ******** ******** ******** ******** ******** ******** ********
[  211.297787] fe3c  ******** ******** ******** ******** ******** ******** ******** ********
[  211.297848] fe5c  ******** ******** ******** ******** ******** ******** ******** ********
[  211.297878] fe7c  ******** ******** ******** ******** ******** ******** ******** ********
[  211.297909] fe9c  ******** ******** ******** ******** ******** ******** ******** ********
[  211.297970] febc  ******** ******** ******** ******** ******** ******** ******** ********
[  211.298000] 
[  211.298000] R8: 0xee6fbb80:
[  211.298031] bb80  00500000 00000000 00000400 00400000 01010000 00060080 00280000 00005040
[  211.298061] bba0  00600000 00000000 00000000 00000000 5000b000 00020000 00004000 00440040
[  211.298092] bbc0  00000008 00000246 00100010 00000080 20691c00 58000c00 00010040 80050000
[  211.298153] bbe0  00011000 00000000 00020130 00400000 a0000000 00000041 88000010 00000004
[  211.298184] bc00  ee3fe190 ee3fe190 00000000 00000000 00000001 00000000 00000000 00000000
[  211.298214] bc20  00000003 00000000 00001000 00000000 00000000 00000000 00000001 00000000
[  211.298245] bc40  00000000 000041ed 00000000 00000000 80000000 ffffffff 00000000 00000000
[  211.298306] bc60  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  211.298336] 
[  211.298336] R10: 0xee781780:
[  211.298336] 1780  00000000 00000001 00000000 00000000 00000000 00000000 00000000 00040000
[  211.298397] 17a0  00000000 00000000 00000000 00020000 00000200 00000000 00000000 00000000
[  211.298428] 17c0  00001000 00000000 20000000 00000000 00000000 01000000 00000000 00080000
[  211.298458] 17e0  00000000 00000000 01000000 00000000 00000000 00000000 00000000 00050000
[  211.298519] 1800  ee746480 eea1ac00 ee3b23d0 eea64840 00000000 00000000 00000000 00000000
[  211.298550] 1820  00000000 00000000 00000000 00000000 00000000 ee781834 ee781834 ee78183c
[  211.298580] 1840  ee78183c ee781844 ee781844 ee78184c ee78184c ee781854 ee781854 ee78185c
[  211.298611] 1860  ee78185c ee781864 ee781864 ee78186c ee78186c ee781874 ee781874 ee78187c
[  211.298672] Process btrfs-balance (pid: 199, stack limit = 0xedf162f0)
[  211.298672] Stack: (0xedf17d98 to 0xedf18000)
[  211.298702] 7d80:                                                       edf17d98 edf17d98
[  211.298702] 7da0: 00000000 ee781884 ee2e20e0 ffffffe4 00000000 c038ed4c ffffffff ffffffff
[  211.298733] 7dc0: 00000001 00000050 edf17df8 ee781810 00000000 c0192558 eea1a800 edf17df8
[  211.298733] 7de0: c019265c 00354cf8 06773610 a8000000 00040000 00000000 edf17df8 ee781800
[  211.298763] 7e00: ee71e000 eea1ac00 00000001 ee71e3e0 00000518 00000510 00000000 c038ef0c
[  211.298794] 7e20: 00000001 00000000 755e0000 ee71e000 00000001 ee3130c8 ee71e000 755e0000
[  211.298794] 7e40: 00000006 eea1b400 ee2e2000 c036e7b4 ee2e2004 00000001 00000003 00000004
[  211.298824] 7e60: 00000000 ee3130c8 edf17f76 edf17ed0 00000001 ffffffff ee2e2000 00000000
[  211.298824] 7e80: 00000003 c0326ef8 00000011 00000003 eea1ac00 ee313134 00000100 00000000
[  211.298855] 7ea0: 00000003 00000000 00000000 ee71e9d0 edf17edc c019b6e8 00000000 ee3130c8
[  211.298855] 7ec0: 000007ee ee3130c8 00000008 00000000 ee71e000 00000000 ee2e2000 00000000
[  211.298885] 7ee0: 00000001 ee3130c8 ee71e000 755e0000 00000006 ee71e9d0 ee2e2000 c03726b8
[  211.298916] 7f00: 755e0000 00000006 00000000 0000000c c0000000 00000012 00000001 00000000
[  211.298916] 7f20: 00000001 00000000 755e0000 00000006 c0eec5f0 00000789 2fbd5000 00000000
[  211.298947] 7f40: ee73e600 ee71e9e8 00000000 000007ee 00000000 eea1b400 00000100 00000000
[  211.298947] 7f60: 00000000 ee71e9d4 00000000 00000000 00000000 0100e000 00000000 ffe40000
[  211.298977] 7f80: ffffffff 00ffffff 00000001 e4000000 755e0000 00000006 c0b2f3fd ee71e000
[  211.298977] 7fa0: ee71e408 ee71e9d4 00000013 00000000 00000000 00000000 00000000 c03728bc
[  211.299008] 7fc0: ee7bbd28 ee71e000 c0372870 c0191e48 00000000 ee71e000 00000000 00000000
[  211.299038] 7fe0: edf17fe0 edf17fe0 ee7bbd28 c0191dc4 c0106758 c0106758 00000001 00000000
[  211.299069] [<c038e7f4>] (merge_reloc_roots+0xf4/0x124) from [<c038ed4c>] (relocate_block_group+0x528/0x5a0)
[  211.299069] [<c038ed4c>] (relocate_block_group+0x528/0x5a0) from [<c038ef0c>] (btrfs_relocate_block_group+0x148/0x2a4)
[  211.299099] [<c038ef0c>] (btrfs_relocate_block_group+0x148/0x2a4) from [<c036e7b4>] (btrfs_relocate_chunk.isra.12+0x3c/0x688)
[  211.299130] [<c036e7b4>] (btrfs_relocate_chunk.isra.12+0x3c/0x688) from [<c03726b8>] (btrfs_balance+0xbbc/0xd74)
[  211.299160] [<c03726b8>] (btrfs_balance+0xbbc/0xd74) from [<c03728bc>] (balance_kthread+0x4c/0x6c)
[  211.299191] [<c03728bc>] (balance_kthread+0x4c/0x6c) from [<c0191e48>] (kthread+0x84/0x90)
[  211.299221] [<c0191e48>] (kthread+0x84/0x90) from [<c0106758>] (kernel_thread_exit+0x0/0x8)
[  211.299221] Code: e3a03001 ebfeabd8 e3500000 aa000000 (e7f001f2) 
[  211.299374] ---[ end trace da227214a82491ba ]---
[  211.299374] kevent_trigger: queue event work event id is 0
[  211.299404] kevent_work: send kobject uevent, EVENT=Oops

I rebooted the phone, and tried repairing the btrfs using the recovery shell:

/ # btrfs check --repair /dev/mmcblk0p28
enabling repair mode
Checking filesystem on /dev/mmcblk0p28
UUID: 71cd63b2-4335-4158-8685-55c06cb17895
checking extents
checking free space cache
cache and super generation don't match, space cache will be invalidated
checking fs roots
checking csums
checking root refs
checking quota groups
Counts for qgroup id: 265 are different
our:            referenced 861253632 referenced compressed 861253632
disk:           referenced 861253632 referenced compressed 861253632
our:            exclusive 846155776 exclusive compressed 846155776
disk:           exclusive 4096 exclusive compressed 4096
diff:           exclusive 846151680 exclusive compressed 846151680
Counts for qgroup id: 266 are different
our:            referenced 72441856 referenced compressed 72441856
disk:           referenced 72441856 referenced compressed 72441856
our:            exclusive 72409088 exclusive compressed 72409088
disk:           exclusive 4096 exclusive compressed 4096
diff:           exclusive 72404992 exclusive compressed 72404992
found 7992541018 bytes used err is 0
total csum bytes: 11423128
total tree bytes: 171085824
total fs tree bytes: 145424384
total extent tree bytes: 9789440
btree space waste bytes: 51757769
file data blocks allocated: 11927613440
 referenced 11523076096
Btrfs v3.16

Now, every time I try to mount the file system, I get the kernel error mentioned above. I think it is triggered because my file system is full with meta data, which is known to cause problems.

/ # mount /dev/mmcblk0p28 /mnt
/ # mount
rootfs on / type rootfs (rw)
none on /dev type devtmpfs (rw,relatime,size=412512k,nr_inodes=103128,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /tmp type tmpfs (rw,relatime,size=10240k)
/proc/sys/debug on /proc/sys/debug type debugfs (rw,relatime)
none on /var/run type tmpfs (rw,nosuid,noatime,size=256k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mmcblk0p28 on /mnt type btrfs (ro,relatime,ssd,noacl,space_cache)
/ # btrfs fi show
ERROR: unable get label Inappropriate ioctl for device
Label: 'sailfish'  uuid: 71cd63b2-4335-4158-8685-55c06cb17895
        Total devices 1 FS bytes used 11.08GiB
        devid    1 size 13.75GiB used 13.74GiB path /dev/mmcblk0p28

Btrfs v3.16

I have the problem that I cannot delete any data, because the file system is always mounted read-only and I cannot get it writable (e.g., a remount does not work). Therefore, I also cannot start a new balance operation. Do you have any recommendations on how to proceed?

edit retag flag offensive close delete

Comments

Hi @Benjamin, thanks for detailed report and welcome to TJC. Could you use some tags in your question, they help Jolla sailors to organize and address the issues?

simo ( 2015-07-28 15:33:14 +0300 )edit

I added some additional tags.

Benjamin ( 2015-07-28 15:35:41 +0300 )edit

looks good now :) In the future, max 4 suggested (to leave room for one by Jolla to add, but they can also replace any so it's not a big deal)

simo ( 2015-07-28 15:41:02 +0300 )edit
1

Hey, your issue seems similar to this post. You guys should regroup the discussions on a single topic.

Sthocs ( 2015-07-28 16:05:01 +0300 )edit
1

Looks like we have the same issue. As soon as i am able to safely recover all photos and videos, i'll try to create a bigger volume by combining the storage space in jolla with sd card. Hopefully that could then be mounted as rw and some junk could be removed.

(More on that can be found from: https://together.jolla.com/question/30822/root-and-home-disks-full-and-causing-various-problems/

"In case you get "no space left on device" when you are running the balance, you can use the external SD card to get the extra space:"

dd if=/dev/zero of=/media/sdcard/0000-BDCB/btrfs bs=100M count=5
losetup -v -f /media/sdcard/0000-BDCB/btrfs
btrfs device add /dev/loop0 /

That way the balance can get the needed extra. You can remove the device like this:

btrfs device delete /dev/loop0 /

Not sure if that helps, but if it will, I'll let you know

jylipaa ( 2015-07-29 10:47:15 +0300 )edit

1 Answer

Sort by » oldest newest most voted
8

answered 2015-07-29 15:48:34 +0300

Benjamin gravatar image

By disabling the btrfs balance during mounting with the option skip_balance (see command below), I was able to circumvent the error.

mount -t btrfs -o skip_balance /dev/mmcblk0p28 /mnt/

After that, I deleted some large files, canceled the balancing in the background (btrfs balance cancel /mnt), and started a balance again. Then, I could leave the recovery mode, reboot the phone normally, and install update 1.1.7.25 successfully.

edit flag offensive delete publish link more

Comments

Thanks a lot! Exactly same problem! Your answer saved my phone and my day :)

petRUShka ( 2015-09-01 13:04:19 +0300 )edit

Look's like I have the same problem you had. I've tried your solution but btrfs balance cancel is in my case not possible (ERROR: balance cancel on '/mnt' failed - Not in progress).

1. Mount with the option skip_balance 
2. Remove files 
3. btrfs balance cancel /mnt 
4. btrfs balance start /mnt 
5. umount
6. reboot

Did I miss something? Thanks in advance!

gh ( 2015-11-12 14:07:52 +0300 )edit

I am not sure. After mounting with the skip_balance option, I had no problem cancelling the balance. Do you see the same error message in the logs?

Benjamin ( 2015-11-12 18:55:55 +0300 )edit

Skipping BTRFS balancer, removing files and doing a BTRFS balance saved my phone, a million times thanks!

RobNas ( 2016-05-22 00:44:27 +0300 )edit
Login/Signup to Answer

Question tools

Follow
8 followers

Stats

Asked: 2015-07-28 15:31:11 +0300

Seen: 1,402 times

Last updated: Jul 29 '15