[opensuse] How to purge an btrfs partition?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have a full btrfs partition: Filesystem Size Used Avail Use% Mounted on /dev/sdb7 2,0G 4,6M 7,9M 37% /data/btrfs There are no files inside, even hidden: 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:~ # How do I clean or purge it or whatever? Lest formatting... - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEUEARECAAYFAlJkTT0ACgkQtTMYHG2NR9UVWwCeKlJHAdt0xo1e1kbdHJo4iwZl MAYAljYCJLJwSES7xlBsIvqmop4vqdA= =C/5C -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Carlos E. R. said the following on 10/20/2013 05:37 PM:
How do I clean or purge it or whatever? Lest formatting...
Apropos tells me btrfs (8) - control a btrfs filesystem btrfs-image (8) - create/restore an image of the filesystem btrfs-show (8) - scan the /dev directory for btrfs partitions and print results. btrfsck (8) - check a btrfs filesystem btrfsctl (8) - control a btrfs filesystem mkfs.btrfs (8) - create an btrfs filesystem 'btrfsctl has been replaced by 'btrfs(8)' Man 8 btrfs tells me about * btrfs filesystem defragment * btrfs filesystem balance * btrfs scrub Perhaps one of those counts as a "whatever"? -- Why do they put Braille on the drive-through bank machines? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2013-10-20 at 17:50 -0400, Anton Aylward wrote:
'btrfsctl has been replaced by 'btrfs(8)'
Man 8 btrfs tells me about
* btrfs filesystem defragment * btrfs filesystem balance * btrfs scrub
Perhaps one of those counts as a "whatever"?
The man page says the available options to use them, but not what they do. fsck does 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:~ # I also did "btrfsck --init-extent-tree /dev/sdb7" and "btrfsck --init-csum-tree /dev/sdb7" to no avail. Ah! 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 ; df -h /data/btrfs Eleanor4:~ # mount /data/btrfs mount: mount /dev/sdb7 on /data/btrfs failed: Cannot allocate memory Eleanor4:~ # Ok, a destroyed btrfs system. I'll post on factory mail list, this is RC1 anyway. And this was ready for mainline use! :-/ - -- Cheers, Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlJkXGwACgkQtTMYHG2NR9W0aQCglC544mlT2VjqLvJ8dKDpeNyE lBkAoJEvOYNZbKVN3Yxsate2He3//Oxk =U+sW -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Anton Aylward
-
Carlos E. R.
-
Carlos E. R.