Bug 202041
Summary: | Firefox cache entries directory prevents rw mounting due to corrupt leaf. No way to fix this unmounted. | ||
---|---|---|---|
Product: | File System | Reporter: | Jesse (Jesse.Emeth+bz4) |
Component: | btrfs | Assignee: | BTRFS virtual assignee (fs_btrfs) |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | dsterba, Jesse.Emeth+bz4 |
Priority: | P1 | ||
Hardware: | x86-64 | ||
OS: | Linux | ||
Kernel Version: | 4.18.13 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Jesse
2018-12-22 08:36:28 UTC
#btrfs check --readonly /dev/sda7 2>&1 | tee /mnt/archive01/--RepairBTRFS/btrfs-check-sda7-20181221.txt [1/7] checking root items [2/7] checking extents [3/7] checking free space cache [4/7] checking fs roots ERROR: DIR_ITEM[455338 3754063103] name 648C5FC8D5C2BB828ED86E44DD9E5FB3A643033276b6353640.first-shutdown.jsonlz4D19A0BCFCB.20181103140737858.wpsnda%202%20Questions%20Answered%20Lavaughn%20being%20a%20Nazi%20SS_20181029_1033.html0actor_20180213_20181028.html-25-17-.png=907-24%2011-57-47%7D.html namelen 40 filetype 1 mismatch with its hash, wanted 3754063103 have 2111307723 root 263 inode 455338 errors 10, odd dir item unresolved ref dir 455338 index 0 namelen 40 name 648C5FC8D5C2BB828ED86E44DD9E5FB3A6430332 filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 455338 index 5857 namelen 40 name 648C5FC8D5C2CB828ED86E44DD9E5FB3A6430332 filetype 1 errors 1, no dir item relocroot 263 inode 455338 errors 10, odd dir item unresolved ref dir 455338 index 0 namelen 40 name 648C5FC8D5C2BB828ED86E44DD9E5FB3A6430332 filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 455338 index 5857 namelen 40 name 648C5FC8D5C2CB828ED86E44DD9E5FB3A6430332 filetype 1 errors 1, no dir item ERROR: errors found in fs roots Opening filesystem to check... Checking filesystem on /dev/sda7 UUID: 133e69bd-65d0-4af6-8a4b-5d2ddd6fefb5 found 32460804096 bytes used, error(s) found total csum bytes: 28059520 total tree bytes: 826228736 total fs tree bytes: 739164160 total extent tree bytes: 48562176 btree space waste bytes: 171226092 file data blocks allocated: 41388740608 referenced 47772729344 ----------------------------------- (In reply to Jesse from comment #1) > #btrfs check --readonly /dev/sda7 2>&1 | tee > /mnt/archive01/--RepairBTRFS/btrfs-check-sda7-20181221.txt > [1/7] checking root items > [2/7] checking extents > [3/7] checking free space cache > [4/7] checking fs roots > ERROR: DIR_ITEM[455338 3754063103] name > 648C5FC8D5C2BB828ED86E44DD9E5FB3A643033276b6353640.first-shutdown. > jsonlz4D19A0BCFCB.20181103140737858. > wpsnda%202%20Questions%20Answered%20Lavaughn%20being%20a%20Nazi%20SS_20181029 > _1033.html0actor_20180213_20181028.html-25-17-.png=907-24%2011-57-47%7D.html > namelen 40 filetype 1 mismatch with its hash, wanted 3754063103 have > 2111307723 > root 263 inode 455338 errors 10, odd dir item > unresolved ref dir 455338 index 0 namelen 40 name > 648C5FC8D5C2BB828ED86E44DD9E5FB3A6430332 filetype 1 errors 6, no dir index, > no inode ref > unresolved ref dir 455338 index 5857 namelen 40 name > 648C5FC8D5C2CB828ED86E44DD9E5FB3A6430332 filetype 1 errors 1, no dir item > relocroot 263 inode 455338 errors 10, odd dir item > unresolved ref dir 455338 index 0 namelen 40 name > 648C5FC8D5C2BB828ED86E44DD9E5FB3A6430332 filetype 1 errors 6, no dir index, > no inode ref > unresolved ref dir 455338 index 5857 namelen 40 name > 648C5FC8D5C2CB828ED86E44DD9E5FB3A6430332 filetype 1 errors 1, no dir item > ERROR: errors found in fs roots > Opening filesystem to check... > Checking filesystem on /dev/sda7 > UUID: 133e69bd-65d0-4af6-8a4b-5d2ddd6fefb5 > found 32460804096 bytes used, error(s) found > total csum bytes: 28059520 > total tree bytes: 826228736 > total fs tree bytes: 739164160 > total extent tree bytes: 48562176 > btree space waste bytes: 171226092 > file data blocks allocated: 41388740608 > referenced 47772729344 > ----------------------------------- And the following repair tools make no difference: ----------------------------------- localhost:/home/linux # mount -t btrfs -o subvol=@/home,rw,usebackuproot UUID=133e69bd-65d0-4af6-8a4b-5d2ddd6fefb5 /mnt/sda7-home mount: /mnt/sda7-home: wrong fs type, bad option, bad superblock on /dev/sdb7, missing codepage or helper program, or other error. [Sat Dec 22 12:20:36 2018] BTRFS info (device sda7): trying to use backup root at mount time [Sat Dec 22 12:20:36 2018] BTRFS info (device sda7): disk space caching is enabled [Sat Dec 22 12:20:36 2018] BTRFS info (device sda7): has skinny extents [Sat Dec 22 12:20:55 2018] BTRFS critical (device sda7): corrupt leaf: root=263 block=537133056 slot=98 ino=455338, name hash mismatch with key, have 0x000000007dd7ffcb expect 0x00000000dfc274ff [Sat Dec 22 12:20:55 2018] BTRFS critical (device sda7): corrupt leaf: root=263 block=537133056 slot=98 ino=455338, name hash mismatch with key, have 0x000000007dd7ffcb expect 0x00000000dfc274ff [Sat Dec 22 12:20:55 2018] BTRFS: error (device sda7) in merge_reloc_roots:2425: errno=-5 IO failure [Sat Dec 22 12:20:55 2018] BTRFS warning (device sda7): failed to recover relocation: -30 [Sat Dec 22 12:20:55 2018] BTRFS error (device sda7): cleaner transaction attach returned -30 [Sat Dec 22 12:20:55 2018] BTRFS error (device sda7): open_ctree failed ----------------------------------- localhost:/home/linux # mount -t btrfs -o subvol=@,rw,usebackuproot UUID=133e69bd-65d0-4af6-8a4b-5d2ddd6fefb5 /mnt/sda7 mount: /mnt/sda7: wrong fs type, bad option, bad superblock on /dev/sdb7, missing codepage or helper program, or other error [Sat Dec 22 12:22:11 2018] BTRFS info (device sda7): trying to use backup root at mount time [Sat Dec 22 12:22:11 2018] BTRFS info (device sda7): disk space caching is enabled [Sat Dec 22 12:22:11 2018] BTRFS info (device sda7): has skinny extents [Sat Dec 22 12:22:29 2018] BTRFS critical (device sda7): corrupt leaf: root=263 block=537133056 slot=98 ino=455338, name hash mismatch with key, have 0x000000007dd7ffcb expect 0x00000000dfc274ff [Sat Dec 22 12:22:29 2018] BTRFS critical (device sda7): corrupt leaf: root=263 block=537133056 slot=98 ino=455338, name hash mismatch with key, have 0x000000007dd7ffcb expect 0x00000000dfc274ff [Sat Dec 22 12:22:29 2018] BTRFS: error (device sda7) in merge_reloc_roots:2425: errno=-5 IO failure [Sat Dec 22 12:22:29 2018] BTRFS warning (device sda7): failed to recover relocation: -30 [Sat Dec 22 12:22:29 2018] BTRFS error (device sda7): cleaner transaction attach returned -30 [Sat Dec 22 12:22:29 2018] BTRFS error (device sda7): open_ctree failed ----------------------------------- localhost:/home/linux # btrfs rescue super-recover /dev/sda7 All supers are valid, no need to recover ----------------------------------- localhost:/home/linux # btrfs rescue zero-log /dev/sda7 Clearing log on /dev/sda7, previous log_root 0, level 0 localhost:/home/linux # btrfs rescue zero-log /dev/sdb7 Clearing log on /dev/sdb7, previous log_root 0, level 0 ----------------------------------- localhost:/home/linux # btrfs rescue chunk-recover /dev/sda7 Scanning: DONE in dev0, DONE in dev1 We are going to rebuild the chunk tree on disk, it might destroy the old metadata on the disk, Are you sure? [y/N]: y Chunk tree recovered successfully ----------------------------------- localhost:/home/linux # btrfs check --repair /dev/sda7 2>&1 | tee /mnt/archive01/--RepairBTRFS/btrfs-check-sda7-repair-20181222.txt [1/7] checking root items Fixed 0 roots. [2/7] checking extents [3/7] checking free space cache [4/7] checking fs roots ERROR: DIR_ITEM[455338 3754063103] name 648C5FC8D5C2BB828ED86E44DD9E5FB3A643033276b6353640.first-shutdown.jsonlz4D19A0BCFCB.20181103140737858.wpsnda%202%20Questions%20Answered%20Lavaughn%20being%20a%20Nazi%20SS_20181029_1033.html0actor_20180213_20181028.html-25-17-.png=907-24%2011-57-47%7D.html namelen 40 filetype 1 mismatch with its hash, wanted 3754063103 have 2111307723 root 263 inode 455338 errors 10, odd dir item unresolved ref dir 455338 index 0 namelen 40 name 648C5FC8D5C2BB828ED86E44DD9E5FB3A6430332 filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 455338 index 5857 namelen 40 name 648C5FC8D5C2CB828ED86E44DD9E5FB3A6430332 filetype 1 errors 1, no dir item relocroot 263 inode 455338 errors 10, odd dir item unresolved ref dir 455338 index 0 namelen 40 name 648C5FC8D5C2BB828ED86E44DD9E5FB3A6430332 filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 455338 index 5857 namelen 40 name 648C5FC8D5C2CB828ED86E44DD9E5FB3A6430332 filetype 1 errors 1, no dir item ERROR: errors found in fs roots enabling repair mode Opening filesystem to check... Checking filesystem on /dev/sda7 UUID: 133e69bd-65d0-4af6-8a4b-5d2ddd6fefb5 No device size related problem found cache and super generation don't match, space cache will be invalidated found 32460181504 bytes used, error(s) found total csum bytes: 28059520 total tree bytes: 826392576 total fs tree bytes: 739328000 total extent tree bytes: 48562176 btree space waste bytes: 171278836 file data blocks allocated: 41415008256 referenced 47803871232 ----------------------------------- 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. |