While balancing after succsecful converting from ext4 filesystem moved
into read-only mode and balance aborted.
Before balance df says about 6Gb freespace.
Now filesystem can be mounted only in recovery mode with 1 dir and
about 20 zero-sized files.
Please find attached syslog
btrfsck thrown abort
btrfs-image failed
btrfs restore of zero-sized files with different -t num from find-root failed
Is there a chance to recover these files?
The sequence of my actions with timestamp to correlate with syslog:
btrfs-convert /dev/sda7
13:33 mount /dev/sda7 /mnt
btrfs sub del /mnt/ext2_saved
13:35 btrfs balance start /mnt
btrfs balance cancel
umount /mnt
13:40 mount /dev/sda7 /mnt -o compress-force=zlib
btrfs balance start /mnt
13:57 ***Error*** balance stop because fs changed to read-only
14:02 mount /dev/sda7 /mnt -o compress-force=zlib
14:22 mount /dev/sda7 /mnt -o ro,recovery
root@ovchin-eee:/home/ovchin/btrfs-progs# uname -a
Linux ovchin-eee 4.0.0-2-amd64 #1 SMP Debian 4.0.7-1 (2015-07-06)
x86_64 GNU/Linux
root@ovchin-eee:/home/ovchin/btrfs-progs# ./btrfs --version
btrfs-progs v4.1
root@ovchin-eee:/home/ovchin/btrfs-progs# ./btrfs fi show
Label: none uuid: 489fb2ac-7f1a-46da-9fb8-964e483c8081
Total devices 1 FS bytes used 188.43GiB
devid 1 size 201.23GiB used 199.23GiB path /dev/sda7
root@ovchin-eee:/home/ovchin/btrfs-progs# gdb ./btrfsck
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./btrfsck...done.
(gdb) run /dev/sda7
Starting program: /home/ovchin/btrfs-progs/btrfsck /dev/sda7
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Checking filesystem on /dev/sda7
UUID: 489fb2ac-7f1a-46da-9fb8-964e483c8081
checking extents
Program received signal SIGABRT, Aborted.
0x00007ffff6fc6107 in __GI_raise (sig=sig@entry=6)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: Нет такого файла или каталога.
(gdb) bt
#0 0x00007ffff6fc6107 in __GI_raise (sig=sig@entry=6)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff6fc74e8 in __GI_abort () at abort.c:89
#2 0x000000000042cd25 in add_tree_backref
(extent_cache=0x7fffffffe530, bytenr=7707766784,
parent=0, root=4, found_ref=1) at cmds-check.c:4421
#3 0x00000000004309a2 in add_root_to_pending (buf=0x6dcd00,
extent_cache=0x7fffffffe530,
pending=0x7fffffffe510, seen=0x7fffffffe520, nodes=0x7fffffffe4f0,
objectid=4)
at cmds-check.c:5961
#4 0x0000000000434abb in deal_root_from_list (list=0x7fffffffe200,
root=0x6eaa10,
bits=0x6f1170, bits_nr=1024, pending=0x7fffffffe510, seen=0x7fffffffe520,
reada=0x7fffffffe500, nodes=0x7fffffffe4f0, extent_cache=0x7fffffffe530,
chunk_cache=0x7fffffffe590, dev_cache=0x7fffffffe5a0,
block_group_cache=0x7fffffffe570,
dev_extent_cache=0x7fffffffe540) at cmds-check.c:7803
#5 0x0000000000434f95 in check_chunks_and_extents (root=0x6eaa10) at
cmds-check.c:7973
#6 0x00000000004381a0 in cmd_check (argc=1, argv=0x7fffffffe808) at
cmds-check.c:9402
#7 0x0000000000409dec in main (argc=2, argv=0x7fffffffe808) at btrfs.c:245
oot@ovchin-eee:/home/ovchin/btrfs-progs# ./btrfs-image -c9 -t4
/dev/sda7 ../btrfs.image
checksum verify failed on 36143104 found 79B018CB wanted B0E76697
checksum verify failed on 36143104 found 79B018CB wanted B0E76697
bytenr mismatch, want=36143104, have=13590450109232199243
Error reading metadata block
Error adding block -5
checksum verify failed on 36143104 found 79B018CB wanted B0E76697
checksum verify failed on 36143104 found 79B018CB wanted B0E76697
bytenr mismatch, want=36143104, have=13590450109232199243
Error reading metadata block
Error flushing pending -5
create failed (Success)
root@ovchin-eee:/home/ovchin/btrfs-progs# ./btrfs-image -c9 -t4 -w
/dev/sda7 ../btrfs.image
checksum verify failed on 38006784 found FD87CEC0 wanted E5015CC7
checksum verify failed on 38006784 found FD87CEC0 wanted E5015CC7
bytenr mismatch, want=38006784, have=671059430232024561
Error reading log block
create failed (Success)
root@ovchin-eee:/home/ovchin/btrfs-progs# btrfs restore --path-regex
^/[^/]*dat$ /dev/sda7 ../rescue/
checksum verify failed on 38006784 found FD87CEC0 wanted E5015CC7
checksum verify failed on 38006784 found FD87CEC0 wanted E5015CC7
bytenr mismatch, want=38006784, have=671059430232024561
checksum verify failed on 38006784 found FD87CEC0 wanted E5015CC7
checksum verify failed on 38006784 found FD87CEC0 wanted E5015CC7
bytenr mismatch, want=38006784, have=671059430232024561
Error searching -5
Error copying data for ../rescue/cryptkey.dat
Attachment:
syslog.bz2
Description: BZip2 compressed data
