Taking a note from the above "Shrink with resize2fs and make it bigger",
I shrank it by 50 000 blocks and then expanded by 5000 blocks.
fsck passed without issue ("extent tree (at level 1) could be
narrower."), and now btrfsck passes with some warnings,
```
# btrfsck /dev/mapper/sdq3_crypt
Opening filesystem to check...
Checking filesystem on /dev/mapper/sdq3_crypt
UUID: 5eUUUU
[1/8] checking log skipped (none written)
[2/8] checking root items
[3/8] checking extents
WARNING: chunk[6794588160 6828195840) is not fully aligned to BTRFS_STRIPE_LEN
(65536)
WARNING: chunk[22374588416 22408200192) is not fully aligned to
BTRFS_STRIPE_LEN (65536)
WARNING: chunk[22498295808 22531866624) is not fully aligned to
BTRFS_STRIPE_LEN (65536)
(...500? lines)
WARNING: chunk[97901748224 98975490048) is not fully aligned to
BTRFS_STRIPE_LEN (65536)
WARNING: chunk[98975490048 100042539008) is not fully aligned to
BTRFS_STRIPE_LEN (65536)
WARNING: chunk[100076240896 100143398912) is not fully aligned to
BTRFS_STRIPE_LEN (65536)
WARNING: chunk[102492508160 103566249984) is not fully aligned to
BTRFS_STRIPE_LEN (65536)
(...500? lines)
WARNING: chunk[1959386181632 1959486881792) is not fully aligned to
BTRFS_STRIPE_LEN (65536)
WARNING: chunk[1963808735232 1964882477056) is not fully aligned to
BTRFS_STRIPE_LEN (65536)
WARNING: chunk[1964882477056 1965688946688) is not fully aligned to
BTRFS_STRIPE_LEN (65536)
[4/8] checking free space tree
[5/8] checking fs roots
```
and the filesystem is mountable. For the later output lines, the start
of the chunk is the end of the previous chunk. Noting, I misread the
`resize2fs` arguments and did `resize2fs -s` first, which switches it to
32-bit mode(?), before I shrank and expanded it. (Just 32-bit mode did
not work -- I had to shrink and expand to get a valid filesystem. I did
not try shrinking alone.)
A simple test suggests all the data is readable: `find . -type f -exec
cat {} \; > /dev/null`, with no errors in dmesg.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1869281
Title:
btrfs-convert of ext4 yields unmountable FS
To manage notifications about this bug go to:
https://bugs.launchpad.net/btrfs-tools/+bug/1869281/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs