LINUX.ORG.RU

Померла btrfs на корневом разделе

 


1

4

После очередной внезапной перезагрузки померла btrfs на /

btrfsck /mnt/1/root_btrfs_2.img
checksum verify failed on 6943735808 found 000000CB wanted 00000000
checksum verify failed on 6943735808 found 000000CB wanted 00000000
bad tree block 6943735808, bytenr mismatch, want=6943735808, have=0
ERROR: failed to read block groups: Input/output error
ERROR: cannot open file system
Opening filesystem to check...

Суперблоки вроде живые.

btrfs inspect-internal dump-super -a /mnt/1/root_btrfs_2.img
superblock: bytenr=65536, device=/mnt/1/root_btrfs_2.img
---------------------------------------------------------
csum_type		0 (crc32c)
csum_size		4
csum			0xd6a9ff7b [match]
bytenr			65536
flags			0x1
			( WRITTEN )
magic			_BHRfS_M [match]
fsid			06389cc5-5e2d-4e5c-a96d-39d876143aac
metadata_uuid		06389cc5-5e2d-4e5c-a96d-39d876143aac
label			root
generation		885180
root			6943277056
sys_array_size		97
chunk_root_generation	696844
root_level		1
chunk_root		1064960
chunk_root_level	0
log_root		6943490048
log_root_transid	0
log_root_level		0
total_bytes		37577818112
bytes_used		19888615424
sectorsize		4096
nodesize		16384
leafsize (deprecated)	16384
stripesize		4096
root_dir		6
num_devices		1
compat_flags		0x0
compat_ro_flags		0x0
incompat_flags		0x169
			( MIXED_BACKREF |
			  COMPRESS_LZO |
			  BIG_METADATA |
			  EXTENDED_IREF |
			  SKINNY_METADATA )
cache_generation	885180
uuid_tree_generation	885180
dev_item.uuid		0df053f5-8304-4b56-8037-5b2396c6946e
dev_item.fsid		06389cc5-5e2d-4e5c-a96d-39d876143aac [match]
dev_item.type		0
dev_item.total_bytes	37577818112
dev_item.bytes_used	36528193536
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

superblock: bytenr=67108864, device=/mnt/1/root_btrfs_2.img
---------------------------------------------------------
csum_type		0 (crc32c)
csum_size		4
csum			0x453fd81a [match]
bytenr			67108864
flags			0x1
			( WRITTEN )
magic			_BHRfS_M [match]
fsid			06389cc5-5e2d-4e5c-a96d-39d876143aac
metadata_uuid		06389cc5-5e2d-4e5c-a96d-39d876143aac
label			root
generation		885180
root			6943277056
sys_array_size		97
chunk_root_generation	696844
root_level		1
chunk_root		1064960
chunk_root_level	0
log_root		0
log_root_transid	0
log_root_level		0
total_bytes		37577818112
bytes_used		19888615424
sectorsize		4096
nodesize		16384
leafsize (deprecated)	16384
stripesize		4096
root_dir		6
num_devices		1
compat_flags		0x0
compat_ro_flags		0x0
incompat_flags		0x169
			( MIXED_BACKREF |
			  COMPRESS_LZO |
			  BIG_METADATA |
			  EXTENDED_IREF |
			  SKINNY_METADATA )
cache_generation	885180
uuid_tree_generation	885180
dev_item.uuid		0df053f5-8304-4b56-8037-5b2396c6946e
dev_item.fsid		06389cc5-5e2d-4e5c-a96d-39d876143aac [match]
dev_item.type		0
dev_item.total_bytes	37577818112
dev_item.bytes_used	36528193536
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

При попытке найти корень, сыпит ошибками.

btrfs-find-root /mnt/1/root_btrfs_2.img
ERROR: failed to read block groups: Input/output error
Superblock thinks the generation is 885180
Superblock thinks the level is 1
Found tree root at 6943277056 gen 885180 level 1
Well block 6942883840(gen: 885179 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6942326784(gen: 885178 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6941179904(gen: 885176 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6939672576(gen: 885173 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6937296896(gen: 885169 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6935707648(gen: 885168 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6932856832(gen: 885166 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6928809984(gen: 885164 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6928187392(gen: 885163 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6908411904(gen: 885159 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6907723776(gen: 885158 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6897795072(gen: 885156 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6897369088(gen: 885154 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6896713728(gen: 885153 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6896353280(gen: 885152 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6895910912(gen: 885151 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6895484928(gen: 885150 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6895009792(gen: 885149 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6894387200(gen: 885148 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6893797376(gen: 885147 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6893420544(gen: 885146 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6892879872(gen: 885145 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6892142592(gen: 885144 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6891732992(gen: 885143 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6890831872(gen: 885140 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6890422272(gen: 885139 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6889930752(gen: 885138 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6889406464(gen: 885137 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6889062400(gen: 885136 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6888226816(gen: 885135 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6887849984(gen: 885134 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6886195200(gen: 885131 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6885818368(gen: 885130 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6885376000(gen: 885129 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6884933632(gen: 885128 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6884507648(gen: 885127 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6883803136(gen: 885126 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6883278848(gen: 885125 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6882590720(gen: 885124 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6881558528(gen: 885121 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6881034240(gen: 885120 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6880264192(gen: 885119 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6879985664(gen: 885118 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6879215616(gen: 885117 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6878806016(gen: 885116 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6877495296(gen: 885113 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6877233152(gen: 885112 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6876479488(gen: 885110 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6874365952(gen: 885106 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6873464832(gen: 885104 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6873251840(gen: 885102 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6872563712(gen: 885101 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6870908928(gen: 885098 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6869483520(gen: 885097 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6868353024(gen: 885096 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6866944000(gen: 885095 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6865780736(gen: 885094 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6865420288(gen: 885091 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6864338944(gen: 885089 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6864027648(gen: 885088 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6862929920(gen: 885088 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6863175680(gen: 885087 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6862536704(gen: 885085 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6861127680(gen: 885085 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6862028800(gen: 885084 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6861455360(gen: 885083 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6859522048(gen: 885082 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6860357632(gen: 885080 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6858850304(gen: 885076 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6856622080(gen: 885073 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6856933376(gen: 885072 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6857621504(gen: 885070 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6857015296(gen: 885069 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6856753152(gen: 885068 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6855917568(gen: 885066 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6855393280(gen: 885063 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6849380352(gen: 885060 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6845071360(gen: 885059 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6835437568(gen: 885058 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6836518912(gen: 885057 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6834307072(gen: 885056 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6833848320(gen: 885055 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6833455104(gen: 885054 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6832865280(gen: 885053 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6832619520(gen: 885052 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6831308800(gen: 885051 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6831718400(gen: 885050 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6831063040(gen: 885049 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6830735360(gen: 885048 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6829768704(gen: 885047 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6829522944(gen: 885046 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6828195840(gen: 885045 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6828277760(gen: 885044 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6828916736(gen: 885043 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6827720704(gen: 885041 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6826409984(gen: 885040 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6826803200(gen: 885039 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6826147840(gen: 885038 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6825312256(gen: 885037 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6824230912(gen: 885036 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6825230336(gen: 885035 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6823657472(gen: 885034 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6823362560(gen: 885032 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6823723008(gen: 885031 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6821330944(gen: 885030 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6822903808(gen: 885029 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6822838272(gen: 885028 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6821740544(gen: 885027 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6820839424(gen: 885026 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6819725312(gen: 885025 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6819282944(gen: 885024 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6818562048(gen: 885024 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6816907264(gen: 885023 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6818496512(gen: 885022 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6817939456(gen: 885022 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6816350208(gen: 885021 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6817415168(gen: 885020 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6817366016(gen: 885018 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6816301056(gen: 885018 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6816219136(gen: 885017 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6816481280(gen: 885013 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6815744000(gen: 885012 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6814924800(gen: 885010 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6813925376(gen: 885009 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6813761536(gen: 885009 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6813417472(gen: 885008 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6812942336(gen: 885006 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6812270592(gen: 885006 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6811860992(gen: 885004 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6810812416(gen: 885000 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6810058752(gen: 884997 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6805831680(gen: 884996 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6795886592(gen: 884995 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6795100160(gen: 884994 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6794067968(gen: 884993 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6793297920(gen: 884992 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6792577024(gen: 884991 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6792101888(gen: 884990 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6793035776(gen: 884989 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6792937472(gen: 884989 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6792708096(gen: 884987 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6790348800(gen: 884985 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6791397376(gen: 884984 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6791462912(gen: 884983 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6790479872(gen: 884981 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6787203072(gen: 884980 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6786547712(gen: 884979 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6787072000(gen: 884978 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6785187840(gen: 884977 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6783172608(gen: 884976 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6785007616(gen: 884975 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6782091264(gen: 884974 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6783664128(gen: 884973 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6783451136(gen: 884972 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6783025152(gen: 884972 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6779600896(gen: 884971 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6779256832(gen: 884970 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6778748928(gen: 884969 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6776258560(gen: 884968 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6776078336(gen: 884967 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6775685120(gen: 884967 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6775832576(gen: 884966 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6773227520(gen: 884964 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6774226944(gen: 884959 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6773882880(gen: 884958 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6771376128(gen: 884954 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6771064832(gen: 884952 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6770769920(gen: 884950 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6769786880(gen: 884949 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6766559232(gen: 884948 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6767935488(gen: 884945 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6765182976(gen: 884943 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6761676800(gen: 884940 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6763446272(gen: 884937 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6762823680(gen: 884935 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6759628800(gen: 884933 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6761136128(gen: 884931 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6758514688(gen: 884929 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6757236736(gen: 884928 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6755401728(gen: 884927 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6756728832(gen: 884926 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6756352000(gen: 884925 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6756253696(gen: 884924 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6755696640(gen: 884923 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6755155968(gen: 884922 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6754861056(gen: 884919 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6754713600(gen: 884919 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6754369536(gen: 884918 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6753157120(gen: 884918 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6753370112(gen: 884917 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6752894976(gen: 884916 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6751993856(gen: 884915 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6834733056(gen: 884912 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6747127808(gen: 884911 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6775095296(gen: 884910 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6746095616(gen: 884817 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6848659456(gen: 884813 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 6745571328(gen: 884167 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 271335424(gen: 884166 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 267010048(gen: 884165 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 257622016(gen: 884153 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 244498432(gen: 884144 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 243351552(gen: 884143 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 242597888(gen: 884142 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 241942528(gen: 884141 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 241696768(gen: 884140 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 240893952(gen: 884137 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 240566272(gen: 884136 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 240107520(gen: 884135 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 239779840(gen: 884134 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 239386624(gen: 884133 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 238682112(gen: 884132 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 238370816(gen: 884131 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 237322240(gen: 884128 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 236896256(gen: 884127 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 233963520(gen: 884101 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 195182592(gen: 884080 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 194363392(gen: 884078 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 190267392(gen: 884070 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 183336960(gen: 884051 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 180944896(gen: 884045 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 172195840(gen: 884023 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 158023680(gen: 883996 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 157073408(gen: 883993 level: 1) seems good, but generation/level doesn't match, want gen: 885180 level: 1
Well block 156368896(gen: 883992 level: 0) seems good, but generation/level doesn't match, want gen: 885180 level: 1

Что еще можно попробовать сделать?

★★★★★

Последнее исправление: Behem0th (всего исправлений: 1)

Пробовал и btrfs check с опцией –check-data-csum и –repair На выходе те же ошибки.

[code] checksum verify failed on 6943735808 found 000000CB wanted 00000000 checksum verify failed on 6943735808 found 000000CB wanted 00000000 bad tree block 6943735808, bytenr mismatch, want=6943735808, have=0 [/code]

Behem0th ★★★★★
() автор топика
Ответ на: комментарий от X512

Диск ссд, смарт чистый. Второй раздел монтируется. DD’шкой образ мертвого раздела снялся, на копии эксперименты и проводились.

Behem0th ★★★★★
() автор топика
Ответ на: комментарий от nemixer

На системе на которой это произошло ядро 5.9.1. btrfs-progs 5.7 На системе на которой пытался восстановить ядро 5.8.14.

Behem0th ★★★★★
() автор топика
Ответ на: комментарий от Behem0th

Спроси в #btrfs.

При попытке найти корень, сыпит ошибками.

btrfs-find-root /mnt/1/root_btrfs_2.img
ERROR: failed to read block groups: Input/output error
Superblock thinks the generation is 885180
Superblock thinks the level is 1
Found tree root at 6943277056 gen 885180 level 1

Корень у тебя живой. И суперблоки живые. А сдохло chunk tree, если я правильно понимаю.

Если уж искать корни btrfs-find-root-ом, то ищи корень chunk tree (3).

И что пишет ядро при монтировании? Дубликат chunk tree тоже мёртвый?

intelfx ★★★★★
()
Последнее исправление: intelfx (всего исправлений: 2)
Ответ на: комментарий от intelfx

И что пишет ядро при монтировании?

[  186.140172] BTRFS info (device loop1): disk space caching is enabled
[  186.140176] BTRFS info (device loop1): has skinny extents
[  186.142112] BTRFS error (device loop1): bad tree block start, want 6943834112 have 0
[  186.179519] BTRFS error (device loop1): open_ctree failed
Behem0th ★★★★★
() автор топика
Ответ на: комментарий от intelfx
btrfs rescue chunk-recover /mnt/1/root_btrfs_2.img
Scanning: Done in dev0
Check chunks successfully whith no orphans
Chunks tree recovered successfully
btrfs rescue chunk-recover /mnt/1/root_btrfs_2.img 2.71s user 69.92s system 32% cpu 3:43.52 total

Но при попытке смонтировать все та же ошибка.

Behem0th ★★★★★
() автор топика
Ответ на: комментарий от intelfx

ERROR: failed to read block groups: Input/output error

Вообще конкретно это сообщение я даже не могу найти в коде btrfs-progs.

[ 186.142112] BTRFS error (device loop1): bad tree block start, want 6943834112 have 0

Это нашёл, но ни о чём не говорит. Ошибка в низкоуровневом коде чтения метаданных с диска, где именно он споткнулся — не понятно.

Короче, пиши в #btrfs. Ещё можешь btrfs restore попробовать, если нужно именно файлы спасти.

intelfx ★★★★★
()
Последнее исправление: intelfx (всего исправлений: 2)
Ответ на: комментарий от intelfx

Этот раздел просто под корень. Хомяк на другом разделе. Хотел восстановить, чтобы не переустанавливать систему. Так наверно придется переставить, а играться с попытками восстановления можно будет и с образом.

Короче, пиши в #btrfs.

Как же я не люблю ирц, так сильно что всякое желание писать пропадает. :-(

Behem0th ★★★★★
() автор топика
Ответ на: комментарий от intelfx

Ты не знаешь правильно ли я понимаю? Если бы у меня раздел так же был бы один, но корень и /var были бы разнесены по подтомам. То при этой ошибке все равно умерла бы фс целиком и оба подтома были бы так же недоступны?

Behem0th ★★★★★
() автор топика
Ответ на: комментарий от greenman

По хорошему давно стоило ее потестировать на производительность, но как то все времени не было. У меня есть флешка спасительная с линем, я думал на ней сначала опробовать эту фс. А на основной системе было страшновато использовать, система молодая, мало ли что. LUL

Behem0th ★★★★★
() автор топика
Ответ на: комментарий от Behem0th

Если я правильно понимаю ошибку, то да. У тебя умерло одно из глобальных деревьев.

intelfx ★★★★★
()
Ответ на: комментарий от Behem0th

Всё, разобрался. Это extent tree.

Во-первых, попробуй btrfs check --repair --init-extent-tree.

Если не поможет, то btrfs restore должен сработать — если я правильно понимаю, extent tree непосредственно при чтении данных не используется. Всё проще, чем переустанавливать.

Ну и стандартное предупреждение — btrfs check --repair нужно делать на отдельной копии образа.

intelfx ★★★★★
()
Ответ на: комментарий от intelfx

repair не помог. Сделал restore. Как докопируется попробую запуститься с этого корня. Но что то меня гложут сомненья в работоспособности системы. Как я понимаю симлинки не восстановились и атрибуиы файлов были утеряны.

Behem0th ★★★★★
() автор топика
Ответ на: комментарий от Behem0th

можно попробовать

Это всегда пожалуйста. У тебя есть образ. Для экспериментов хватит за глаза. А саму систему проще переустановить.

anonymous
()
Ответ на: комментарий от Artamudo

Ну да. Btrfs это единственная фс подверженная крахам.

Behem0th ★★★★★
() автор топика

Мне, возможно, везёт, но я её везде использую уже не один год без всяких проблем. Отключения случаются. Сейчас вот думаю, на новый SSD переезжать с только Btrfs, либо ext4 + ZFS, либо ext4 + Btrfs (ext4 для корня).

anonymous
()
Ответ на: комментарий от intelfx
#btrfs check --repair --init-extent-tree 1/root_btrfs_2.img
enabling repair mode
WARNING:

	Do not use --repair unless you are advised to do so by a developer
	or an experienced user, and then only after having accepted that no
	fsck can successfully repair all types of filesystem corruption. Eg.
	some software or hardware bugs can fatally damage a volume.
	The operation will start in 10 seconds.
	Use Ctrl-C to stop it.
10 9 8 7 6 5 4 3 2 1
Starting repair.
Opening filesystem to check...
Checking filesystem on 1/root_btrfs_2.img
UUID: 06389cc5-5e2d-4e5c-a96d-39d876143aac
repair mode will force to clear out log tree, are you sure? [y/N]: 
ERROR: Corrupted fs, no valid METADATA block group found
ERROR: failed to zero log tree: -117
ERROR: attempt to start transaction over already running one
Behem0th ★★★★★
() автор топика
Ответ на: комментарий от anonymous

Выходит что ты прав. Попытка загрузиться провалилась. Права на все востановленные файлы поставились -rw-r–r– Я не долго думая сделал chmod -R +x * И раскидал симлинков на sbin bin lib в соответствующие каталоги в usr. Да еще и симлинк на /sbin/init сделал. Но все равно при загрузке системы ядро крашится при попытке переключить рут с ramfs на основной.

Behem0th ★★★★★
() автор топика
Ответ на: комментарий от anonymous

Тоже использую btrfs несколько лет. За это время было много неожиданных перезагрузок. Проблема с btrfs случилась впервые.

Behem0th ★★★★★
() автор топика

будут стадать, терять данные но не использовать ntfs. необучаемый народ

anonymous
()
Ответ на: комментарий от anonymous

будут стадать, терять данные но не использовать ntfs.

Классный вброс!

anonymous
()

Input/output error - при дохнущем диске может быть всё что угодно

Еще мне нравятся такие баг репорты и вообще разговоры: да у чувака там может рач и XanMod ядро которое мне чел посоветовал поставить в соседнем чате и где я сходу увидел как автор применяет какие-то btrfs патчи в нём.

хотя тут скорее всего железо / кабель плохо контачить стал (было такое один раз)

hakavlad ★★★
()
Ответ на: комментарий от EXL

может там в железе дело. До этого же годами работало.

hakavlad ★★★
()
Ответ на: комментарий от EXL

Готово для дефолтной ФС в Fedora 33 👍

в opensuse используется, брат жив

hakavlad ★★★
()
Последнее исправление: hakavlad (всего исправлений: 1)
Ответ на: комментарий от anonymous

терять данные

Это про NTFS, не умеющую контрольные суммы. А в Btrfs ты можешь потерять разве что всю ФС, но ничего испорчено не будет, восстановишь просто из резервной копии.

anonymous
()
Ответ на: комментарий от intelfx

Вот это другое дело. :-)

Я в процессе восстановления нашел бекап системы и уже настроился из него восстановиться и как то даже не подумал почитать про возможные опции restore. С такими опциями восстановилось все удачно. Система загрузилась и работает. Спасибо за помощь.

P.S. В процессе восстановления проблемы возникли с 2 файлами.

We seem to be looping a lot on /mnt/restore/var/lib/clamav/daily.cld, do you want to keep going on ? (y/N/a):
We seem to be looping a lot on /mnt/restore/usr/lib/libVkLayer_khronos_validation.so, do you want to keep going on ? (y/N/a):

Behem0th ★★★★★
() автор топика
Последнее исправление: Behem0th (всего исправлений: 1)
Ответ на: комментарий от Behem0th

Спасибо за информацию, продолжаю использовать Btrfs эксклюзивно. Похоже, инструменты для ремонта здорово подтянули за последние годы.

anonymous
()
Ответ на: комментарий от anonymous

Спасибо за информацию, продолжаю использовать Btrfs эксклюзивно. Похоже, инструменты для ремонта здорово подтянули за последние годы.

«Ещё пол-годика, ещё чуть-чуть…» Поколение уже выросло на этой сказке.

anonymous
()
Ответ на: комментарий от intelfx

Забыл написать странность. Раздел монтироваться отказывался, но grub вполне успешно брал с него свой grub.cfg.

Behem0th ★★★★★
() автор топика
Ответ на: комментарий от Behem0th

Как раз понятно почему. Как я написал, extent tree вообще говоря при чтении данных не используется. В GRUB экстремально упрощённый драйвер btrfs, который игнорирует всё, что не нужно для минимальной задачи «прочесть файл».

intelfx ★★★★★
()
Ответ на: комментарий от anonymous

Всем пофиг. У меня работает, у фейсбука работает, а ты можешь проследовать лесом со своими сказками 🙂

anonymous
()
Ответ на: комментарий от Strannik-j

Бекар на другом HDD. Довольно старый. Я не делаю их на регулярной основе. Этот был сделан в ходе эксперимента. Бекапы корня как по мне позволяют сэкономить время на восстановлении но не принципиально. Все более или менее интересные конфиги у меня регулярно бекапятся. И восстановить систему дело пары часов максимум.

Behem0th ★★★★★
() автор топика
Последнее исправление: Behem0th (всего исправлений: 2)
Ответ на: комментарий от torvn77

Только не совсем понятно причем тут btrfs. У тебя есть предположение что проблема ма может быть общей? На основании чего выдвинуто такое предположение? И почему gzip а не zstd?

Behem0th ★★★★★
() автор топика
Последнее исправление: Behem0th (всего исправлений: 1)
Ответ на: комментарий от Behem0th

Не стоит всерьёз воспринимать комментарии этого товарища, в частности про ФС: они в лучшем случае бесполезны, в худшем просто вредны.

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.