Hi All,
Thanks for OpenSUSE and their team for the big efforts on developing this nice disro and for this nice forums to contacting with other users and professionals for support each others.
For being new user with OpenSUSE at all sepically TUMBLEWEED now.So I’m facing a fatal problem with btrfs as I think after tried all known solousions that’s I know for OpenSUSE Docs and searching on web.that regard to btrfs root doesn’t mount ‘from couple of daily was mount with high cache size , btrfs process transaction and cleaner then not with readonly when trying ’
-o recovery
’ but not unmount at all’
This is the current result for OpenSUSE gnome live cd terminal
localhost:~ # sudo btrfs fi show
Label: none uuid: f88e07bf-5ec4-4cf9-a89c-b17506f4a732
Total devices 1 FS bytes used 127.88GiB
devid 1 size 133.08GiB used 127.05GiB path /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647
localhost:~ # sudo mount /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647 /mnt/root
mount: /mnt/root: wrong fs type, bad option, bad superblock on /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647, missing codepage or helper program, or other error.
localhost:~ # sudo mount -o /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647 /mnt/root
mount: /mnt/root: can't find in /etc/fstab.
localhost:~ # sudo mount -o recovery /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647 /mnt/root
mount: /mnt/root: wrong fs type, bad option, bad superblock on /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647, missing codepage or helper program, or other error.
localhost:~ # sudo btrfs rescue zero-log /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647
Clearing log on /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647, previous log_root 0, level 0
localhost:~ # sudo mount -o recovery /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647 /mnt/root
mount: /mnt/root: wrong fs type, bad option, bad superblock on /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647, missing codepage or helper program, or other error.
localhost:~ # sudo btrfs rescue super-recover /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647
All supers are valid, no need to recover
localhost:~ # sudo btrfs rescue chunk-recover -y /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647
Scanning: DONE in dev0
Chunk tree recovered successfully
localhost:~ # dmesg | tail
551.552179] BTRFS error (device dm-0): open_ctree failed
596.844850] BTRFS warning (device dm-0): 'recovery' is deprecated, use 'usebackuproot' instead
596.844854] BTRFS info (device dm-0): trying to use backup root at mount time
596.844856] BTRFS info (device dm-0): disk space caching is enabled
596.844857] BTRFS info (device dm-0): has skinny extents
596.850565] BTRFS info (device dm-0): bdev /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647 errs: wr 0, rd 0, flush 0, corrupt 0, gen 2
596.851395] BTRFS info (device dm-0): enabling ssd optimizations
596.851400] BTRFS error (device dm-0): qgroup generation mismatch, marked as inconsistent
596.851777] BTRFS error (device dm-0): parent transid verify failed on 594734563328 wanted 561824 found 561843
596.868283] BTRFS error (device dm-0): open_ctree failed
localhost:~ # sudo mount -o usebackuproot /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647 /mnt/root
mount: /mnt/root: wrong fs type, bad option, bad superblock on /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647, missing codepage or helper program, or other error.
localhost:~ # sudo btrfs rescue zero-log /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647
Clearing log on /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647, previous log_root 0, level 0
localhost:~ # dmesg | tail
1037.207584] BTRFS error (device dm-0): parent transid verify failed on 594734563328 wanted 561824 found 561845
1037.228144] BTRFS error (device dm-0): open_ctree failed
1060.363886] BTRFS info (device dm-0): trying to use backup root at mount time
1060.363890] BTRFS info (device dm-0): disk space caching is enabled
1060.363893] BTRFS info (device dm-0): has skinny extents
1060.368245] BTRFS info (device dm-0): bdev /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647 errs: wr 0, rd 0, flush 0, corrupt 0, gen 2
1060.369117] BTRFS info (device dm-0): enabling ssd optimizations
1060.369123] BTRFS error (device dm-0): qgroup generation mismatch, marked as inconsistent
1060.369541] BTRFS error (device dm-0): parent transid verify failed on 594734563328 wanted 561824 found 561845
1060.388219] BTRFS error (device dm-0): open_ctree failed
localhost:~ # sudo btrfs check --repair --init-extent-tree /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647
enabling repair mode
Checking filesystem on /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647
UUID: f88e07bf-5ec4-4cf9-a89c-b17506f4a732
Creating a new extent tree
Failed to find [594734497792, 168, 16384]
btrfs unable to find ref byte nr 594734514176 parent 0 root 1 owner 1 offset 0
Failed to find [599063003136, 168, 16384]
btrfs unable to find ref byte nr 599063019520 parent 0 root 1 owner 0 offset 1
parent transid verify failed on 599063035904 wanted 561835 found 561847
Ignoring transid failure
Failed to find [594734497792, 168, 16384]
btrfs unable to find ref byte nr 594734546944 parent 0 root 1 owner 0 offset 1
checking extents
parent transid verify failed on 594734563328 wanted 561824 found 561845
Ignoring transid failure
ERROR: child eb corrupted: parent bytenr=594734612480 item=1 parent level=1 child level=1
parent transid verify failed on 594734563328 wanted 561824 found 561845
Ignoring transid failure
bad block 594734563328
ERROR: errors found in extent allocation tree or chunk allocation
checking free space cache
cache and super generation don't match, space cache will be invalidated
checking fs roots
root 5 missing its root dir, recreating
Failed to find [594734628864, 168, 16384]
btrfs unable to find ref byte nr 594999951360 parent 0 root 4 owner 0 offset 0
Failed to find [594734628864, 168, 16384]
btrfs unable to find ref byte nr 594751602688 parent 0 root 5 owner 0 offset 0
check/main.c:2679: check_inode_recs: BUG_ON `ret` triggered, value -17
btrfs(+0x58256)[0x55f603c9f256]
btrfs(+0x5f502)[0x55f603ca6502]
btrfs(cmd_check+0x2b40)[0x55f603caeb90]
btrfs(main+0x84)[0x55f603c5b474]
/lib64/libc.so.6(__libc_start_main+0xeb)[0x7f69144e2feb]
btrfs(_start+0x2a)[0x55f603c5b58a]
Aborted
localhost:~ # sudo btrfs rescue zero-log /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647
Clearing log on /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647, previous log_root 0, level 0
localhost:~ # sudo mount -o usebackuproot /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647 /mnt/root
mount: /mnt/root: wrong fs type, bad option, bad superblock on /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647, missing codepage or helper program, or other error.
localhost:~ # dmesg | tail
1187.144204] BTRFS info (device dm-0): enabling ssd optimizations
1187.144211] BTRFS error (device dm-0): qgroup generation mismatch, marked as inconsistent
1187.144632] BTRFS error (device dm-0): parent transid verify failed on 594734563328 wanted 561824 found 561845
1187.168177] BTRFS error (device dm-0): open_ctree failed
1197.905447] BTRFS info (device dm-0): trying to use backup root at mount time
1197.905450] BTRFS info (device dm-0): disk space caching is enabled
1197.905452] BTRFS info (device dm-0): has skinny extents
1197.909091] BTRFS error (device dm-0): parent transid verify failed on 594734481408 wanted 561837 found 561848
1197.909101] BTRFS warning (device dm-0): failed to read root (objectid=7): -5
1197.936198] BTRFS error (device dm-0): open_ctree failed
localhost:~ # sudo btrfs restore -o /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647 /mnt/root
parent transid verify failed on 594734481408 wanted 561837 found 561848
Ignoring transid failure
parent transid verify failed on 599063003136 wanted 105886 found 561838
parent transid verify failed on 599063003136 wanted 105886 found 561838
Ignoring transid failure
leaf parent key incorrect 599063003136
ERROR: searching extent data returned -1
Error copying data for /mnt/root/@/usr/local/webadmin/useradmin/help/gmembers.zh_TW.UTF-8.html
Error searching /mnt/root/@/usr/local/webadmin/useradmin/help/gmembers.zh_TW.UTF-8.html
Error searching /mnt/root/@/usr/local/webadmin/useradmin/help/gmembers.zh_TW.UTF-8.html
localhost:~ # sudo badblocks -v /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647 > badsectors.txt
Checking blocks 0 to 139541503
Checking for bad blocks (read-only test): done
Pass completed, 0 bad blocks found. (0/0/0 errors)
localhost:~ # sudo btrfs device stats /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647
ERROR: '/dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647' is not a mounted btrfs device
localhost:~ # sudo btrfs check /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647
parent transid verify failed on 594734481408 wanted 561837 found 561848
Ignoring transid failure
Checking filesystem on /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647
UUID: f88e07bf-5ec4-4cf9-a89c-b17506f4a732
Error: could not find extent items for root 257
ERROR: failed to repair root items: No such file or directory
localhost:~ # sudo btrfs check --repair /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647
enabling repair mode
parent transid verify failed on 594734481408 wanted 561837 found 561848
Ignoring transid failure
Checking filesystem on /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647
UUID: f88e07bf-5ec4-4cf9-a89c-b17506f4a732
Error: could not find extent items for root 257
ERROR: failed to repair root items: No such file or directory
localhost:~ # btrfs check --repair /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647 2>&1 | tee /tmp/repair
parent transid verify failed on 594734481408 wanted 561837 found 561848
Ignoring transid failure
Error: could not find extent items for root 257
ERROR: failed to repair root items: No such file or directory
enabling repair mode
Checking filesystem on /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647
UUID: f88e07bf-5ec4-4cf9-a89c-b17506f4a732
localhost:~ # dmesg | tail
1187.144204] BTRFS info (device dm-0): enabling ssd optimizations
1187.144211] BTRFS error (device dm-0): qgroup generation mismatch, marked as inconsistent
1187.144632] BTRFS error (device dm-0): parent transid verify failed on 594734563328 wanted 561824 found 561845
1187.168177] BTRFS error (device dm-0): open_ctree failed
1197.905447] BTRFS info (device dm-0): trying to use backup root at mount time
1197.905450] BTRFS info (device dm-0): disk space caching is enabled
1197.905452] BTRFS info (device dm-0): has skinny extents
localhost:~ # sudo btrfs rescue zero-log /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647
parent transid verify failed on 594734481408 wanted 561837 found 561848
Ignoring transid failure
Clearing log on /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647, previous log_root 0, level 0
localhost:~ # sudo mount -o /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647 /mnt/root
mount: /mnt/root: can't find in /etc/fstab.
localhost:~ # sudo mount -t btrfs -o subvol=@/.snapshots/784/snapshot /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647 /mnt/root/
mount: /mnt/root: wrong fs type, bad option, bad superblock on /dev/mapper/luks-5636962a-42e4-40b1-ae45-4df48f198647, missing codepage or helper program, or other error.
localhost:~ # dmesg | tail
1197.905450] BTRFS info (device dm-0): disk space caching is enabled
1197.905452] BTRFS info (device dm-0): has skinny extents
1197.909091] BTRFS error (device dm-0): parent transid verify failed on 594734481408 wanted 561837 found 561848
1197.909101] BTRFS warning (device dm-0): failed to read root (objectid=7): -5
1197.936198] BTRFS error (device dm-0): open_ctree failed
2250.570829] BTRFS info (device dm-0): disk space caching is enabled
2250.570833] BTRFS info (device dm-0): has skinny extents
localhost:~ # journalctl | egrep btrfs
Jul 19 22:53:33 localhost systemd-tmpfiles[838]: [/etc/tmpfiles.d/btrfs-control.conf:1] Can't parse device file major/minor '10 234'.
Jul 19 22:53:38 localhost systemd-tmpfiles[1064]: [/etc/tmpfiles.d/btrfs-control.conf:1] Can't parse device file major/minor '10 234'.
Jul 19 23:08:43 localhost.localdomain systemd-tmpfiles[3935]: [/etc/tmpfiles.d/btrfs-control.conf:1] Can't parse device file major/minor '10 234'.
########
SO it’s will be very gratfull .if there any this could help with this. or what you recommend in this situation?
Thanks for all