[Bug 1931790] Re: Unable to mount btrfs RAID 1 filesystem after reboot - Error - device total_bytes should be at most X but found Y

Ravindran K 1931790 at bugs.launchpad.net
Wed Jun 16 16:19:43 UTC 2021


I was about to give up ..but I was trying older/newer kernels/ other
distros..

Tried multiple but one last try on Linux Mint opened the doors..

I was surprised to see the filesystem mounted fine with no errors..

BTRFS info (device sdd1): disk space caching is enabled
[  396.259897] BTRFS info (device sdd1): has skinny extents


mint at mint:~$ uname -a
Linux mint 5.4.0-58-generic #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

mint at mint:~$ btrfs version
btrfs-progs v5.4.1 

mint at mint:~$ sudo btrfs inspect-internal dump-super /dev/disk/by-uuid/ae9d1623-f910-4dec-a88f-f762dbdba35e
superblock: bytenr=65536, device=/dev/disk/by-uuid/ae9d1623-f910-4dec-a88f-f762dbdba35e
---------------------------------------------------------
csum_type		0 (crc32c)
csum_size		4
csum			0x2564561f [match]
bytenr			65536
flags			0x1
			( WRITTEN )
magic			_BHRfS_M [match]
fsid			ae9d1623-f910-4dec-a88f-f762dbdba35e
metadata_uuid		ae9d1623-f910-4dec-a88f-f762dbdba35e
label			DataNew
generation		10270
root			944046407680
sys_array_size		129
chunk_root_generation	10270
root_level		0
chunk_root		944923213824
chunk_root_level	1
log_root		0
log_root_transid	0
log_root_level		0
total_bytes		2000405643264
bytes_used		955398033408
sectorsize		4096
nodesize		16384
leafsize (deprecated)	16384
stripesize		4096
root_dir		6
num_devices		2
compat_flags		0x0
compat_ro_flags		0x0
incompat_flags		0x161
			( MIXED_BACKREF |
			  BIG_METADATA |
			  EXTENDED_IREF |
			  SKINNY_METADATA )
cache_generation	10270
uuid_tree_generation	10270
dev_item.uuid		67a4b867-0d9d-498b-a311-19f7b9bc5c77
dev_item.fsid		ae9d1623-f910-4dec-a88f-f762dbdba35e [match]
dev_item.type		0
dev_item.total_bytes	1000201838592
dev_item.bytes_used	957811261440
dev_item.io_align	4096
dev_item.io_width	4096
dev_item.sector_size	4096
dev_item.devid		1
dev_item.dev_group	0
dev_item.seek_speed	0
dev_item.bandwidth	0
dev_item.generation	0


Totally surprised that dev_item.total_bytes is different here...

I will recheck the btrfs version on my Ubuntu hirsute..

Any thoughts..? For now, glad I haven't lost any data.. (yet)

-- 
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 - Error - device
  total_bytes should be at most X but found Y

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