[Bug 1931790] Re: Unable to mount btrfs RAID 1 filesystem after reboot
Ravindran K
1931790 at bugs.launchpad.net
Sun Jun 13 12:40:55 UTC 2021
I think the key is :
[ 792.047498] BTRFS error (device sdd1): device total_bytes should be at most 1000201841152 but found 1000203804672
[ 792.049207] BTRFS error (device sdd1): failed to read chunk tree: -22
[ 792.051525] BTRFS error (device sdd1): open_ctree failed
Additional info:
# lsblk -e7
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 238.5G 0 disk
├─sda1 8:1 0 19.5G 0 part
├─sda2 8:2 0 620M 0 part
├─sda3 8:3 0 48.8G 0 part /
└─sda4 8:4 0 8G 0 part [SWAP]
sdb 8:16 0 232.9G 0 disk
├─sdb1 8:17 0 200M 0 part
└─sdb2 8:18 0 37.3G 0 part
sdc 8:32 0 465.8G 0 disk
├─sdc1 8:33 0 200M 0 part
├─sdc2 8:34 0 97.7G 0 part
├─sdc3 8:35 0 326.9G 0 part
└─sdc4 8:36 0 41.1G 0 part
sdd 8:48 0 931.5G 0 disk
└─sdd1 8:49 0 931.5G 0 part
sde 8:64 0 931.5G 0 disk
└─sde1 8:65 0 931.5G 0 part
# blockdev --getsize64 /dev/sdd1
1000201841152
# blockdev --getsize64 /dev/sde1
1000201841152
#btrfs fi show
Label: 'DataNew' uuid: ae9d1623-f910-4dec-a88f-f762dbdba35e
Total devices 2 FS bytes used 889.78GiB
devid 1 size 931.51GiB used 892.06GiB path /dev/sdd1
devid 2 size 931.51GiB used 892.06GiB path /dev/sde1
# btrfs check /dev/sdd1
Opening filesystem to check...
Checking filesystem on /dev/sdd1
UUID: ae9d1623-f910-4dec-a88f-f762dbdba35e
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space cache
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
found 955392856064 bytes used, no error found
total csum bytes: 931797364
total tree bytes: 1232355328
total fs tree bytes: 226492416
total extent tree bytes: 30195712
btree space waste bytes: 79534096
file data blocks allocated: 954160500736
referenced 954160500736
# btrfs check /dev/sde1
Opening filesystem to check...
Checking filesystem on /dev/sde1
UUID: ae9d1623-f910-4dec-a88f-f762dbdba35e
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space cache
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
found 955392856064 bytes used, no error found
total csum bytes: 931797364
total tree bytes: 1232355328
total fs tree bytes: 226492416
total extent tree bytes: 30195712
btree space waste bytes: 79534096
file data blocks allocated: 954160500736
referenced 954160500736
Right now unable to mount any of the devices.. in ro, recovery etc
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to btrfs-progs in Ubuntu.
https://bugs.launchpad.net/bugs/1931790
Title:
Unable to mount btrfs RAID 1 filesystem after reboot
Status in Ubuntu:
New
Status in btrfs package in Ubuntu:
New
Status in btrfs-progs package in Ubuntu:
New
Bug description:
Hi,
I'm unable to mount my newly created btrfs RAID 1 filesystem after
reboot..I performed the below steps with my 2 X 1 TB drives:
* created a new btrfs filesystem
mkfs.btrfs /dev/sdd1
* mounted it to /mnt/datanew
mount -t btrfs /dev/sdd1 /mnt/datanew
* copied over data from my previous NTFS volume on /dev/sde1 (which I
intended to add later as a mirror) - took 3.5 hrs
* added a new volume
mkfs.btrfs device add /dev/sde1
* started balance and convert to raid 1 - took 8 to 10
hours..overnight
btrfs balance start -dconvert=raid1 -mconvert=raid1 /mnt/datanew
* rebooted next morning
I seeing below errors:
[ 792.045980] BTRFS info (device sdd1): allowing degraded mounts
[ 792.045988] BTRFS info (device sdd1): disk space caching is enabled
[ 792.045990] BTRFS info (device sdd1): has skinny extents
[ 792.047498] BTRFS error (device sdd1): device total_bytes should be at most 1000201841152 but found 1000203804672
[ 792.049207] BTRFS error (device sdd1): failed to read chunk tree: -22
[ 792.051525] BTRFS error (device sdd1): open_ctree failed
* Manual mount has below error additonally
mount: /mnt/datanew: wrong fs type, bad option, bad superblock on /dev/sde1, missing codepage or helper program, or other error.
* Verified the data seems intact (apparently no errors), superblock
seems fine.. tried btrfs rescue commands.. no issues found to fix
* Found several hits on search but not many solutions..except "btrfs filesystem resize max /" which doesnt work as I'm unable to mount in the first place..
btrfs filesystem resize max /mnt/datanew/
ERROR: not a btrfs filesystem: /mnt/datanew/
Any suggestions? Thanks
ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: ubuntu-release-upgrader-core 1:21.04.13
ProcVersionSignature: Ubuntu 5.11.0-17.18-generic 5.11.12
Uname: Linux 5.11.0-17-generic x86_64
ApportVersion: 2.20.11-0ubuntu65.1
Architecture: amd64
CasperMD5CheckResult: pass
CrashDB: ubuntu
Date: Sun Jun 13 11:17:02 2021
InstallationDate: Installed on 2021-05-16 (27 days ago)
InstallationMedia: Kubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
PackageArchitecture: all
ProcEnviron:
LANGUAGE=en_IN:en
TERM=xterm-256color
PATH=(custom, no user)
LANG=en_IN
SHELL=/bin/bash
SourcePackage: ubuntu-release-upgrader
Symptom: ubuntu-release-upgrader
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1931790/+subscriptions
More information about the foundations-bugs
mailing list