[opensuse-factory] [13.1 RC1] I managed to destroy a btrfs - anyone wants to investigate it?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have a 2 GB test filesystem formatted as btrfs. I wrote to it 1 million files, 100 bytes each, as part of a test. Then I deleted all the files - however, space was not freed: Filesystem Size Used Avail Use% Mounted on /dev/sdb7 2,0G 4,6M 7,9M 37% /data/btrfs Eleanor4:~ # ls -a /data/btrfs/ . .. test Eleanor4:~ # ls -a /data/btrfs/test/ . .. Eleanor4:~ # There are no snapper configs, yast-snapper finds nothing and quits. Eleanor4:~ # snapper list-configs Config | Subvolume - -------+---------- Eleanor4:~ # Eleanor4:~ # snapper list Unknown config. Eleanor4:~ # snapper list all Command 'list' does not take arguments. Eleanor4:~ # snapper list -t all Unknown config. Eleanor4:~ # snapper -t all list Unknown config. Eleanor4:~ # Eleanor4:~ # snapper cleanup Command 'cleanup' needs one arguments. Eleanor4:~ # So I tried to fsck it. fsck did nothing. btrfsck says something, but repairs nothing: Eleanor4:~ # btrfsck /dev/sdb7 Checking filesystem on /dev/sdb7 UUID: facfd969-cebc-4558-960f-4798f43129cd checking extents checking free space cache free space inode generation (0) did not match free space cache generation (257) free space inode generation (0) did not match free space cache generation (255) free space inode generation (0) did not match free space cache generation (255) free space inode generation (0) did not match free space cache generation (257) free space inode generation (0) did not match free space cache generation (257) free space inode generation (0) did not match free space cache generation (257) checking fs roots checking csums checking root refs found 233472 bytes used err is 0 total csum bytes: 0 total tree bytes: 36864 total fs tree bytes: 8192 total extent tree bytes: 4096 btree space waste bytes: 24523 file data blocks allocated: 196608 referenced 196608 Btrfs v0.20-rc1+20130701 Eleanor4:~ # mount /data/btrfs Eleanor4:~ # df -h /data/btrfs Filesystem Size Used Avail Use% Mounted on /dev/sdb7 2.0G 264K 7.9M 4% /data/btrfs Eleanor4:~ # The man page for btrfsck is outdated! "btrfsck --help" gives some options. I tried "btrfsck --init-extent-tree /dev/sdb7" and "btrfsck --init-csum-tree /dev/sdb7" to no avail. But: Eleanor4:~ # btrfsck --repair /dev/sdb7 enabling repair mode parent transid verify failed on 776749056 wanted 283 found 274 parent transid verify failed on 776749056 wanted 283 found 274 parent transid verify failed on 776749056 wanted 283 found 274 parent transid verify failed on 776749056 wanted 283 found 274 Ignoring transid failure Checking filesystem on /dev/sdb7 UUID: facfd969-cebc-4558-960f-4798f43129cd checking extents ref mismatch on [29425664 4096] extent item 1, found 0 repair deleting extent record: key 29425664 168 4096 Backref 29425664 root 7 not referenced back 0x1cc46c0 Incorrect global backref count on 29425664 found 1 wanted 0 backpointer mismatch on [29425664 4096] owner ref check failed [29425664 4096] repaired damaged extent references checking free space cache cache and super generation don't match, space cache will be invalidated checking fs roots parent transid verify failed on 776749056 wanted 283 found 274 Ignoring transid failure checking csums checking root refs found 565248 bytes used err is 0 total csum bytes: 0 total tree bytes: 36864 total fs tree bytes: 8192 total extent tree bytes: 4096 btree space waste bytes: 23667 file data blocks allocated: 524288 referenced 524288 Btrfs v0.20-rc1+20130701 Eleanor4:~ # mount /data/btrfs mount: mount /dev/sdb7 on /data/btrfs failed: Cannot allocate memory Eleanor4:~ # Ok, a destroyed btrfs system. What can be done? Admit failure and reformat? Anyone wants to investigate this? Bugzilla? - -- Cheers, Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlJkXp8ACgkQtTMYHG2NR9VQXACfRND/QQA0XdK73/7bYrYnrOnt v9kAni0FsLUoiCM1yobjzQ2czoFuxksO =Nbtl -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
El 20/10/13 19:52, Carlos E. R. escribió:
What can be done? Admit failure and reformat? Anyone wants to investigate this? Bugzilla?
Fill a bug report with the exact steps to reproduce.. also keep the broken filesystem handy which might be of interest for btrfs developers. -- "If debugging is the process of removing bugs, then programming must be the process of putting them in." - Edsger Dijkstra -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2013-10-21 02:33, Cristian Rodríguez wrote:
El 20/10/13 19:52, Carlos E. R. escribió:
What can be done? Admit failure and reformat? Anyone wants to investigate this? Bugzilla?
Fill a bug report with the exact steps to reproduce.. also keep the broken filesystem handy which might be of interest for btrfs developers.
Done: Bug 846807 - -- Cheers / Saludos, Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlJk/PMACgkQtTMYHG2NR9UqCACfYimO008bP+K9bEtrg33EGBZj VUwAn1W+ejUWeX8i+SKmFmCRh6VLZntz =lGaR -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (2)
-
Carlos E. R.
-
Cristian Rodríguez