btrfs-progs icon indicating copy to clipboard operation
btrfs-progs copied to clipboard

dev_item UUID does not match fsid

Open Axellarator opened this issue 2 years ago • 1 comments

I want to find out, if the following error can be solved. The data on the SSD can be restored, if everything is trashed so be it.

Doing this or any other possible BTRFS command:

btrfs check --readonly /dev/sdb2

Getting always that:

Opening filesystem to check... ERROR: dev_item UUID does not match fsid: 2f5717f8-09e6-44b1-a836-a9eb8238efc4 != 00000000-0000-0000-0000-000000000000 ERROR: superblock checksum matches but it has invalid members ERROR: dev_item UUID does not match fsid: 2f5717f8-09e6-44b1-a836-a9eb8238efc4 != 00000000-0000-0000-0000-000000000000 ERROR: superblock checksum matches but it has invalid members No valid Btrfs found on /dev/sdb2 ERROR: cannot open file system

Story behind: I set up a NVME with five BTRFS in an extended partitions. Set up Linux Mint 21 Mate, Linux Mint 21 Cinnamon, Linux Mint LMDE 5 plus two partitions with Linux Mint 20.3. Every installed OS runs perfectly. Found some minor bugs related to the OSs, but not to BTRFS.
Then I tried to copy a Btrfs partition from a SSD to the NVME with gparted. The copy process worked, but then gparted tried to extend this specific partition from 64GB to 69GB. Don't know why, it stopped with an error. Second attempted, but stopped with message identical UUID. Formatted the NVME partition, but still the same message popped up. Third attempt was to change the UUID on the SSD, but see the errors above.

Big question; Is there a possible way to fix it?

Axellarator avatar Sep 02 '22 18:09 Axellarator

same problems here.

details here i've been chatting @ #btrfs on libera about
cause: shitty external bay failing in the middle of a raid 1 rebalance and/or a btrfstune -u :''')

i know the mistakes i made, drives are now connected internally. they seem unharmed in terms of hardware.

have tried: check, restore*, rescue* (including super-recovery), repair, find-root, tune* (including -U)

the only thing that seems to actually give me any real output is list-internal 

--

this is a 3 disk raid 1, i had just added the third disk which is why rebalance. 

fwiw testdisk shows wrong disk size (14TB/12TB)


=======

6,22228,9027776086,-;BTRFS info (device sdc): using crc32c (crc32c-intel) checksum algorithm
3,22229,9027776090,-;BTRFS error (device sdc): unrecognized or unsupported super flag: 34359738368
3,22230,9027776091,-;BTRFS error (device sdc): dev_item UUID does not match metadata fsid: fffdedac-cf94-46f2-8d7a-2160b1995a59 != e0fb2369-1640-4ee2-aedb-325ca0bfd393
3,22231,9027776091,-;BTRFS error (device sdc): superblock contains fatal errors
3,22232,9027776102,-;BTRFS error (device sdc): open_ctree failed

=======

superblock: bytenr=65536, device=/dev/sdc
---------------------------------------------------------
csum_type		0 (crc32c)
csum_size		4
csum			0xc7ee157c [match]
bytenr			65536
flags			0x800000001
			( WRITTEN |
			 CHANGING_FSID )
magic			_BHRfS_M [match]
fsid			fffdedac-cf94-46f2-8d7a-2160b1995a59
metadata_uuid		fffdedac-cf94-46f2-8d7a-2160b1995a59
label			temp
generation		61137
root			3611881259008
sys_array_size		129
chunk_root_generation	61137
root_level		0
chunk_root		3535869935616
chunk_root_level	1
log_root		0
log_root_transid (deprecated)	0
log_root_level		0
total_bytes		42001558929408
bytes_used		10959113867264
sectorsize		4096
nodesize		16384
leafsize (deprecated)	16384
stripesize		4096
root_dir		6
num_devices		3
compat_flags		0x0
compat_ro_flags		0x3
			( FREE_SPACE_TREE |
			 FREE_SPACE_TREE_VALID )
incompat_flags		0x361
			( MIXED_BACKREF |
			 BIG_METADATA |
			 EXTENDED_IREF |
			 SKINNY_METADATA |
			 NO_HOLES )
cache_generation	0
uuid_tree_generation	61137
dev_item.uuid		50ecf929-c339-4b7b-be69-151378fe7aae
dev_item.fsid		e0fb2369-1640-4ee2-aedb-325ca0bfd393 [DON'T MATCH]
dev_item.type		0
dev_item.total_bytes	14000519643136
dev_item.bytes_used	10675174768640
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
sys_chunk_array[2048]:
	item 0 key (FIRST_CHUNK_TREE CHUNK_ITEM 3535862235136)
		length 33554432 owner 2 stripe_len 65536 type SYSTEM|RAID1
		io_align 65536 io_width 65536 sector_size 4096
		num_stripes 2 sub_stripes 1
			stripe 0 devid 2 offset 1074790400
			dev_uuid b6fd7675-ff64-43f0-a3c1-35d779c04ebe
			stripe 1 devid 1 offset 294244057088
			dev_uuid 50ecf929-c339-4b7b-be69-151378fe7aae
backup_roots[4]:
	backup 0:
		backup_tree_root:	3611881259008	gen: 61137	level: 0
		backup_chunk_root:	3535869935616	gen: 61137	level: 1
		backup_extent_root:	15881897312256	gen: 61137	level: 2
		backup_fs_root:		15881891823616	gen: 61133	level: 2
		backup_dev_root:	15881896935424	gen: 61137	level: 1
		csum_root:	15881890037760	gen: 61134	level: 3
		backup_total_bytes:	42001558929408
		backup_bytes_used:	10959113867264
		backup_num_devices:	3

	backup 1:
		backup_tree_root:	15882275078144	gen: 61134	level: 0
		backup_chunk_root:	3535869919232	gen: 61129	level: 1
		backup_extent_root:	15882275094528	gen: 61134	level: 2
		backup_fs_root:		15881891823616	gen: 61133	level: 2
		backup_dev_root:	13245568434176	gen: 61129	level: 1
		csum_root:	15881890037760	gen: 61134	level: 3
		backup_total_bytes:	42001558929408
		backup_bytes_used:	10959113867264
		backup_num_devices:	3

	backup 2:
		backup_tree_root:	15881896902656	gen: 61135	level: 0
		backup_chunk_root:	3535869919232	gen: 61129	level: 1
		backup_extent_root:	15881896935424	gen: 61135	level: 2
		backup_fs_root:		15881891823616	gen: 61133	level: 2
		backup_dev_root:	13245568434176	gen: 61129	level: 1
		csum_root:	15881890037760	gen: 61134	level: 3
		backup_total_bytes:	42001558929408
		backup_bytes_used:	10959113867264
		backup_num_devices:	3

	backup 3:
		backup_tree_root:	15881886662656	gen: 61136	level: 0
		backup_chunk_root:	3535869919232	gen: 61129	level: 1
		backup_extent_root:	15881886842880	gen: 61136	level: 2
		backup_fs_root:		15881891823616	gen: 61133	level: 2
		backup_dev_root:	13245568434176	gen: 61129	level: 1
		csum_root:	15881890037760	gen: 61134	level: 3
		backup_total_bytes:	42001558929408
		backup_bytes_used:	10959113867264
		backup_num_devices:	3


====

ERROR: dev_item UUID does not match fsid: e0fb2369-1640-4ee2-aedb-325ca0bfd393 != 00000000-0000-0000-0000-000000000000
ERROR: superblock checksum matches but it has invalid members
ERROR: cannot scan /dev/sdc: Input/output error

yunginnanet avatar Sep 21 '23 09:09 yunginnanet