All of lore.kernel.org
 help / color / mirror / Atom feed
* help!!! error when mount a btrfs file system
@ 2017-03-16 12:39 =?gb18030?B?ut+637n+utk=?=
  0 siblings, 0 replies; 5+ messages in thread
From: =?gb18030?B?ut+637n+utk=?= @ 2017-03-16 12:39 UTC (permalink / raw)
  To: =?gb18030?B?bGludXgtYnRyZnM=?=

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 5925 bytes --]

hi, buddy

   I have a file server with btrfs file system, it's work well for several months.

but after last system reboot, the /dev/sdb become not mountable.

below is the details.   is there any advise?


######Version info
Fedora 25 Server
Kernel 4.9.13-201.fc25.x86_64
btrfs-progs v4.6.1

#####error messages when mount
mount: wrong fs type, bad option, bad superblock on /dev/sdb,
missing codepage or helper program, or other error

In some cases useful info is found in syslog - try
dmesg | tail or so.

######dmesg |tail
[79570.756871] BTRFS error (device sdb): parent transid verify failed on 21413888 wanted 755660 found 623605
[79570.762307] BTRFS error (device sdb): bad tree block start 0 21413888
[79570.762345] BTRFS error (device sdb): failed to read chunk tree: -5
[79570.778129] BTRFS error (device sdb): open_ctree failed
[79589.743772] BTRFS error (device sdb): support for check_integrity* not compiled in!
[79589.803176] BTRFS error (device sdb): open_ctree failed

######btrfsck 
parent transid verify failed on 21413888 wanted 755660 found 623605
parent transid verify failed on 21413888 wanted 755660 found 623605
checksum verify failed on 21413888 found E4E3BDB6 wanted 00000000
parent transid verify failed on 21413888 wanted 755660 found 623605
Ignoring transid failure
checksum verify failed on 21331968 found E4E3BDB6 wanted 00000000
checksum verify failed on 21331968 found E4E3BDB6 wanted 00000000
checksum verify failed on 21692416 found E4E3BDB6 wanted 00000000
checksum verify failed on 21692416 found E4E3BDB6 wanted 00000000
checksum verify failed on 22888448 found E4E3BDB6 wanted 00000000
checksum verify failed on 22888448 found E4E3BDB6 wanted 00000000
checksum verify failed on 22888448 found E4E3BDB6 wanted 00000000
checksum verify failed on 22888448 found E4E3BDB6 wanted 00000000
bytenr mismatch, want=22888448, have=0
Couldn't read chunk tree
Couldn't open file system

######btrfs-find-root
parent transid verify failed on 21413888 wanted 755660 found 623605
parent transid verify failed on 21413888 wanted 755660 found 623605
parent transid verify failed on 21413888 wanted 755660 found 623605
Ignoring transid failure
Couldn't read chunk tree
ERROR: open ctree failed

######btrfs-show-super -a /dev/sdb 
superblock: bytenr=65536, device=/dev/sdb
---------------------------------------------------------
csum 0xb6f3ccb1 [match]
bytenr 65536
flags 0x1
( WRITTEN )
magic _BHRfS_M [match]
fsid 7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f
label samba_fs
generation 770740
root 16187774615552
sys_array_size 355
chunk_root_generation 755799
root_level 1
chunk_root 24331161698304
chunk_root_level 1
log_root 0
log_root_transid 0
log_root_level 0
total_bytes 23999996231680
bytes_used 22205028102144
sectorsize 4096
nodesize 16384
leafsize 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 )
csum_type 0
csum_size 4
cache_generation 770740
uuid_tree_generation 770740
dev_item.uuid dd8c8d66-b6f5-48d8-9d5e-6f56b2ad4751
dev_item.fsid 7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f [match]
dev_item.type 0
dev_item.total_bytes 23999996231680
dev_item.bytes_used 23274943676416
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=/dev/sdb
---------------------------------------------------------
csum 0x1692e47f [match]
bytenr 67108864
flags 0x1
( WRITTEN )
magic _BHRfS_M [match]
fsid 7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f
label samba_fs
generation 770740
root 16187774615552
sys_array_size 355
chunk_root_generation 755799
root_level 1
chunk_root 24331161698304
chunk_root_level 1
log_root 0
log_root_transid 0
log_root_level 0
total_bytes 23999996231680
bytes_used 22205028102144
sectorsize 4096
nodesize 16384
leafsize 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 )
csum_type 0
csum_size 4
cache_generation 770740
uuid_tree_generation 770740
dev_item.uuid dd8c8d66-b6f5-48d8-9d5e-6f56b2ad4751
dev_item.fsid 7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f [match]
dev_item.type 0
dev_item.total_bytes 23999996231680
dev_item.bytes_used 23274943676416
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=274877906944, device=/dev/sdb
---------------------------------------------------------
csum 0xeb15b24e [match]
bytenr 274877906944
flags 0x1
( WRITTEN )
magic _BHRfS_M [match]
fsid 7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f
label samba_fs
generation 770740
root 16187774615552
sys_array_size 355
chunk_root_generation 755799
root_level 1
chunk_root 24331161698304
chunk_root_level 1
log_root 0
log_root_transid 0
log_root_level 0
total_bytes 23999996231680
bytes_used 22205028102144
sectorsize 4096
nodesize 16384
leafsize 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 )
csum_type 0
csum_size 4
cache_generation 770740
uuid_tree_generation 770740
dev_item.uuid dd8c8d66-b6f5-48d8-9d5e-6f56b2ad4751
dev_item.fsid 7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f [match]
dev_item.type 0
dev_item.total_bytes 23999996231680
dev_item.bytes_used 23274943676416
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




------------------


Best Regards
Denny Leeÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±ý»k~ÏâžØ^n‡r¡ö¦zË\x1aëh™¨è­Ú&£ûàz¿äz¹Þ—ú+€Ê+zf£¢·hšˆ§~†­†Ûiÿÿïêÿ‘êçz_è®\x0fæj:+v‰¨þ)ߣøm

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: help!!! error when mount a btrfs file system
  2017-03-16 12:23 李云甫
  2017-03-16 17:36 ` Liu Bo
@ 2017-05-23  3:26 ` Qu Wenruo
  1 sibling, 0 replies; 5+ messages in thread
From: Qu Wenruo @ 2017-05-23  3:26 UTC (permalink / raw)
  To: 李云甫, linux-btrfs



At 03/16/2017 08:23 PM, 李云甫 wrote:
> hi, buddy
> 
>     I have a file server with btrfs file system, it's work well for several months.
> 
> but after last system reboot, the /dev/sdb become not mountable.
> 
> below is the details.   is there any advise?
> 
> 
> ######Version info
> Fedora 25 Server
> Kernel 4.9.13-201.fc25.x86_64
> btrfs-progs v4.6.1
> 
> #####error messages when mount
> mount: wrong fs type, bad option, bad superblock on /dev/sdb,
> missing codepage or helper program, or other error
> 
> In some cases useful info is found in syslog - try
> dmesg | tail or so.
> 
> ######dmesg |tail
> [79570.756871] BTRFS error (device sdb): parent transid verify failed on 21413888 wanted 755660 found 623605
> [79570.762307] BTRFS error (device sdb): bad tree block start 0 21413888

Chunk tree corrupted.

> [79570.762345] BTRFS error (device sdb): failed to read chunk tree: -5
> [79570.778129] BTRFS error (device sdb): open_ctree failed
> [79589.743772] BTRFS error (device sdb): support for check_integrity* not compiled in!
> [79589.803176] BTRFS error (device sdb): open_ctree failed
> 
> ######btrfsck
> parent transid verify failed on 21413888 wanted 755660 found 623605
> parent transid verify failed on 21413888 wanted 755660 found 623605
> checksum verify failed on 21413888 found E4E3BDB6 wanted 00000000

E4E3BDB6 is the crc32 of a leaf filled with all zero data.
And wanted csum is also 0, means the whole leaf is all zero.

Either something went wrong related to discard, or your chunk tree got 
completely corrupted.

> parent transid verify failed on 21413888 wanted 755660 found 623605
> Ignoring transid failure
> checksum verify failed on 21331968 found E4E3BDB6 wanted 00000000
> checksum verify failed on 21331968 found E4E3BDB6 wanted 00000000
> checksum verify failed on 21692416 found E4E3BDB6 wanted 00000000
> checksum verify failed on 21692416 found E4E3BDB6 wanted 00000000
> checksum verify failed on 22888448 found E4E3BDB6 wanted 00000000
> checksum verify failed on 22888448 found E4E3BDB6 wanted 00000000
> checksum verify failed on 22888448 found E4E3BDB6 wanted 00000000
> checksum verify failed on 22888448 found E4E3BDB6 wanted 00000000

At least 4 leaves/nodes of chunk tree are corrupted.
I assume that's all your chunk tree.

I would say the chance to recover is very low.

Thanks,
Qu



> bytenr mismatch, want=22888448, have=0
> Couldn't read chunk tree
> Couldn't open file system
> 
> ######btrfs-find-root
> parent transid verify failed on 21413888 wanted 755660 found 623605
> parent transid verify failed on 21413888 wanted 755660 found 623605
> parent transid verify failed on 21413888 wanted 755660 found 623605
> Ignoring transid failure
> Couldn't read chunk tree
> ERROR: open ctree failed
> 
> ######btrfs-show-super -a /dev/sdb
> superblock: bytenr=65536, device=/dev/sdb
> ---------------------------------------------------------
> csum			0xb6f3ccb1 [match]
> bytenr			65536
> flags			0x1
> ( WRITTEN )
> magic			_BHRfS_M [match]
> fsid			7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f
> label			samba_fs
> generation		770740
> root			16187774615552
> sys_array_size		355
> chunk_root_generation	755799
> root_level		1
> chunk_root		24331161698304
> chunk_root_level	1
> log_root		0
> log_root_transid	0
> log_root_level		0
> total_bytes		23999996231680
> bytes_used		22205028102144
> sectorsize		4096
> nodesize		16384
> leafsize		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 )
> csum_type		0
> csum_size		4
> cache_generation	770740
> uuid_tree_generation	770740
> dev_item.uuid		dd8c8d66-b6f5-48d8-9d5e-6f56b2ad4751
> dev_item.fsid		7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f [match]
> dev_item.type		0
> dev_item.total_bytes	23999996231680
> dev_item.bytes_used	23274943676416
> 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=/dev/sdb
> ---------------------------------------------------------
> csum			0x1692e47f [match]
> bytenr			67108864
> flags			0x1
> ( WRITTEN )
> magic			_BHRfS_M [match]
> fsid			7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f
> label			samba_fs
> generation		770740
> root			16187774615552
> sys_array_size		355
> chunk_root_generation	755799
> root_level		1
> chunk_root		24331161698304
> chunk_root_level	1
> log_root		0
> log_root_transid	0
> log_root_level		0
> total_bytes		23999996231680
> bytes_used		22205028102144
> sectorsize		4096
> nodesize		16384
> leafsize		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 )
> csum_type		0
> csum_size		4
> cache_generation	770740
> uuid_tree_generation	770740
> dev_item.uuid		dd8c8d66-b6f5-48d8-9d5e-6f56b2ad4751
> dev_item.fsid		7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f [match]
> dev_item.type		0
> dev_item.total_bytes	23999996231680
> dev_item.bytes_used	23274943676416
> 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=274877906944, device=/dev/sdb
> ---------------------------------------------------------
> csum			0xeb15b24e [match]
> bytenr			274877906944
> flags			0x1
> ( WRITTEN )
> magic			_BHRfS_M [match]
> fsid			7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f
> label			samba_fs
> generation		770740
> root			16187774615552
> sys_array_size		355
> chunk_root_generation	755799
> root_level		1
> chunk_root		24331161698304
> chunk_root_level	1
> log_root		0
> log_root_transid	0
> log_root_level		0
> total_bytes		23999996231680
> bytes_used		22205028102144
> sectorsize		4096
> nodesize		16384
> leafsize		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 )
> csum_type		0
> csum_size		4
> cache_generation	770740
> uuid_tree_generation	770740
> dev_item.uuid		dd8c8d66-b6f5-48d8-9d5e-6f56b2ad4751
> dev_item.fsid		7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f [match]
> dev_item.type		0
> dev_item.total_bytes	23999996231680
> dev_item.bytes_used	23274943676416
> 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
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> 
> Best Regards
> 
> 
> 
> 
> YunFu Li
> System Engineer
> Chengdu Kanghong Pharmaceuticals Group Co., Ltd
> No. 36, Shu XiRoad, Chengdu, Sichuan Province, China
> Ext.:4004 |
> Liyunfu@cnkh.com| www.cnkh.com
> 
> 
> 
> 
> -------------------------------------------------------------
> 本邮件及其附件内容系我司保密信息,仅向收件人提供。若您不是本邮件指定收件人,敬请立即删除本邮件并与发件人联系,同时请勿以任何方式复制、使用及传播。多谢合作!
> 
> The information contained in this E-mail and its
> attachment(s) are our confidential information and are intended solely for the addressees. If
> you are not the designated recipient, please delete
> it from your system immediately and  notify the sender,
> meanwhile, do not copy or use or spread it in any way.
> Thank you very much!\x04�{.n�+�������+%��lzwm��b�맲��r��zX��\x16��"��^n�r���z�\x1a��h����&��\x1e�G���h�\x03(�階�ݢj"��\x1a�^[m�����z�ޖ���f���h���~�m�
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: help!!! error when mount a btrfs file system
  2017-03-16 17:36 ` Liu Bo
@ 2017-03-17  2:15   ` Qu Wenruo
  0 siblings, 0 replies; 5+ messages in thread
From: Qu Wenruo @ 2017-03-17  2:15 UTC (permalink / raw)
  To: bo.li.liu, 李云甫; +Cc: linux-btrfs



At 03/17/2017 01:36 AM, Liu Bo wrote:
> On Thu, Mar 16, 2017 at 08:23:05PM +0800, 李云甫 wrote:
>> hi, buddy
>>
>>    I have a file server with btrfs file system, it's work well for several months.
>>
>> but after last system reboot, the /dev/sdb become not mountable.
>>
>> below is the details.   is there any advise?
>>
>>
>> ######Version info
>> Fedora 25 Server
>> Kernel 4.9.13-201.fc25.x86_64
>> btrfs-progs v4.6.1
>>
>> #####error messages when mount
>> mount: wrong fs type, bad option, bad superblock on /dev/sdb,
>> missing codepage or helper program, or other error
>>
>> In some cases useful info is found in syslog - try
>> dmesg | tail or so.
>>
>> ######dmesg |tail
>> [79570.756871] BTRFS error (device sdb): parent transid verify failed on 21413888 wanted 755660 found 623605
>> [79570.762307] BTRFS error (device sdb): bad tree block start 0 21413888
>> [79570.762345] BTRFS error (device sdb): failed to read chunk tree: -5
>> [79570.778129] BTRFS error (device sdb): open_ctree failed
>> [79589.743772] BTRFS error (device sdb): support for check_integrity* not compiled in!
>> [79589.803176] BTRFS error (device sdb): open_ctree failed
>>
>
> Looks like one node of the chunk tree was zero'd by something, were you use -o discard or fstrim before reboot?
>
> Thanks,
>
> -liubo
>
>> ######btrfsck
>> parent transid verify failed on 21413888 wanted 755660 found 623605
>> parent transid verify failed on 21413888 wanted 755660 found 623605
>> checksum verify failed on 21413888 found E4E3BDB6 wanted 00000000
>> parent transid verify failed on 21413888 wanted 755660 found 623605
>> Ignoring transid failure
>> checksum verify failed on 21331968 found E4E3BDB6 wanted 00000000
>> checksum verify failed on 21331968 found E4E3BDB6 wanted 00000000
>> checksum verify failed on 21692416 found E4E3BDB6 wanted 00000000
>> checksum verify failed on 21692416 found E4E3BDB6 wanted 00000000
>> checksum verify failed on 22888448 found E4E3BDB6 wanted 00000000
>> checksum verify failed on 22888448 found E4E3BDB6 wanted 00000000
>> checksum verify failed on 22888448 found E4E3BDB6 wanted 00000000
>> checksum verify failed on 22888448 found E4E3BDB6 wanted 00000000

I'm afraid not only one, but two chunk tree blocks are zeroed.

While you still have a little chance to recovery chunk tree by using 
backup chunk roots.

Would you please paste the output of "btrfs-show-super -f /dev/sdb"?

Thanks,
Qu

>> bytenr mismatch, want=22888448, have=0
>> Couldn't read chunk tree
>> Couldn't open file system
>>
>> ######btrfs-find-root
>> parent transid verify failed on 21413888 wanted 755660 found 623605
>> parent transid verify failed on 21413888 wanted 755660 found 623605
>> parent transid verify failed on 21413888 wanted 755660 found 623605
>> Ignoring transid failure
>> Couldn't read chunk tree
>> ERROR: open ctree failed
>>
>> ######btrfs-show-super -a /dev/sdb
>> superblock: bytenr=65536, device=/dev/sdb
>> ---------------------------------------------------------
>> csum			0xb6f3ccb1 [match]
>> bytenr			65536
>> flags			0x1
>> ( WRITTEN )
>> magic			_BHRfS_M [match]
>> fsid			7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f
>> label			samba_fs
>> generation		770740
>> root			16187774615552
>> sys_array_size		355
>> chunk_root_generation	755799
>> root_level		1
>> chunk_root		24331161698304
>> chunk_root_level	1
>> log_root		0
>> log_root_transid	0
>> log_root_level		0
>> total_bytes		23999996231680
>> bytes_used		22205028102144
>> sectorsize		4096
>> nodesize		16384
>> leafsize		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 )
>> csum_type		0
>> csum_size		4
>> cache_generation	770740
>> uuid_tree_generation	770740
>> dev_item.uuid		dd8c8d66-b6f5-48d8-9d5e-6f56b2ad4751
>> dev_item.fsid		7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f [match]
>> dev_item.type		0
>> dev_item.total_bytes	23999996231680
>> dev_item.bytes_used	23274943676416
>> 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=/dev/sdb
>> ---------------------------------------------------------
>> csum			0x1692e47f [match]
>> bytenr			67108864
>> flags			0x1
>> ( WRITTEN )
>> magic			_BHRfS_M [match]
>> fsid			7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f
>> label			samba_fs
>> generation		770740
>> root			16187774615552
>> sys_array_size		355
>> chunk_root_generation	755799
>> root_level		1
>> chunk_root		24331161698304
>> chunk_root_level	1
>> log_root		0
>> log_root_transid	0
>> log_root_level		0
>> total_bytes		23999996231680
>> bytes_used		22205028102144
>> sectorsize		4096
>> nodesize		16384
>> leafsize		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 )
>> csum_type		0
>> csum_size		4
>> cache_generation	770740
>> uuid_tree_generation	770740
>> dev_item.uuid		dd8c8d66-b6f5-48d8-9d5e-6f56b2ad4751
>> dev_item.fsid		7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f [match]
>> dev_item.type		0
>> dev_item.total_bytes	23999996231680
>> dev_item.bytes_used	23274943676416
>> 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=274877906944, device=/dev/sdb
>> ---------------------------------------------------------
>> csum			0xeb15b24e [match]
>> bytenr			274877906944
>> flags			0x1
>> ( WRITTEN )
>> magic			_BHRfS_M [match]
>> fsid			7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f
>> label			samba_fs
>> generation		770740
>> root			16187774615552
>> sys_array_size		355
>> chunk_root_generation	755799
>> root_level		1
>> chunk_root		24331161698304
>> chunk_root_level	1
>> log_root		0
>> log_root_transid	0
>> log_root_level		0
>> total_bytes		23999996231680
>> bytes_used		22205028102144
>> sectorsize		4096
>> nodesize		16384
>> leafsize		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 )
>> csum_type		0
>> csum_size		4
>> cache_generation	770740
>> uuid_tree_generation	770740
>> dev_item.uuid		dd8c8d66-b6f5-48d8-9d5e-6f56b2ad4751
>> dev_item.fsid		7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f [match]
>> dev_item.type		0
>> dev_item.total_bytes	23999996231680
>> dev_item.bytes_used	23274943676416
>> 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
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>>
>> Best Regards
>>
>>
>>
>>
>> YunFu Li
>> System Engineer
>> Chengdu Kanghong Pharmaceuticals Group Co., Ltd
>> No. 36, Shu XiRoad, Chengdu, Sichuan Province, China
>> Ext.:4004 |
>> Liyunfu@cnkh.com| www.cnkh.com
>>
>>
>>
>>
>> -------------------------------------------------------------
>> 本邮件及其附件内容系我司保密信息,仅向收件人提供。若您不是本邮件指定收件人,敬请立即删除本邮件并与发件人联系,同时请勿以任何方式复制、使用及传播。多谢合作!
>>
>> The information contained in this E-mail and its
>> attachment(s) are our confidential information and are intended solely for the addressees. If
>> you are not the designated recipient, please delete
>> it from your system immediately and  notify the sender,
>> meanwhile, do not copy or use or spread it in any way.
>> Thank you very much!
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: help!!!  error when mount a btrfs file system
  2017-03-16 12:23 李云甫
@ 2017-03-16 17:36 ` Liu Bo
  2017-03-17  2:15   ` Qu Wenruo
  2017-05-23  3:26 ` Qu Wenruo
  1 sibling, 1 reply; 5+ messages in thread
From: Liu Bo @ 2017-03-16 17:36 UTC (permalink / raw)
  To: 李云甫; +Cc: linux-btrfs

On Thu, Mar 16, 2017 at 08:23:05PM +0800, 李云甫 wrote:
> hi, buddy
> 
>    I have a file server with btrfs file system, it's work well for several months.
> 
> but after last system reboot, the /dev/sdb become not mountable.
> 
> below is the details.   is there any advise?
> 
> 
> ######Version info
> Fedora 25 Server
> Kernel 4.9.13-201.fc25.x86_64
> btrfs-progs v4.6.1
> 
> #####error messages when mount
> mount: wrong fs type, bad option, bad superblock on /dev/sdb,
> missing codepage or helper program, or other error
> 
> In some cases useful info is found in syslog - try
> dmesg | tail or so.
> 
> ######dmesg |tail
> [79570.756871] BTRFS error (device sdb): parent transid verify failed on 21413888 wanted 755660 found 623605
> [79570.762307] BTRFS error (device sdb): bad tree block start 0 21413888
> [79570.762345] BTRFS error (device sdb): failed to read chunk tree: -5
> [79570.778129] BTRFS error (device sdb): open_ctree failed
> [79589.743772] BTRFS error (device sdb): support for check_integrity* not compiled in!
> [79589.803176] BTRFS error (device sdb): open_ctree failed
>

Looks like one node of the chunk tree was zero'd by something, were you use -o discard or fstrim before reboot?

Thanks,

-liubo

> ######btrfsck 
> parent transid verify failed on 21413888 wanted 755660 found 623605
> parent transid verify failed on 21413888 wanted 755660 found 623605
> checksum verify failed on 21413888 found E4E3BDB6 wanted 00000000
> parent transid verify failed on 21413888 wanted 755660 found 623605
> Ignoring transid failure
> checksum verify failed on 21331968 found E4E3BDB6 wanted 00000000
> checksum verify failed on 21331968 found E4E3BDB6 wanted 00000000
> checksum verify failed on 21692416 found E4E3BDB6 wanted 00000000
> checksum verify failed on 21692416 found E4E3BDB6 wanted 00000000
> checksum verify failed on 22888448 found E4E3BDB6 wanted 00000000
> checksum verify failed on 22888448 found E4E3BDB6 wanted 00000000
> checksum verify failed on 22888448 found E4E3BDB6 wanted 00000000
> checksum verify failed on 22888448 found E4E3BDB6 wanted 00000000
> bytenr mismatch, want=22888448, have=0
> Couldn't read chunk tree
> Couldn't open file system
> 
> ######btrfs-find-root
> parent transid verify failed on 21413888 wanted 755660 found 623605
> parent transid verify failed on 21413888 wanted 755660 found 623605
> parent transid verify failed on 21413888 wanted 755660 found 623605
> Ignoring transid failure
> Couldn't read chunk tree
> ERROR: open ctree failed
> 
> ######btrfs-show-super -a /dev/sdb 
> superblock: bytenr=65536, device=/dev/sdb
> ---------------------------------------------------------
> csum			0xb6f3ccb1 [match]
> bytenr			65536
> flags			0x1
> ( WRITTEN )
> magic			_BHRfS_M [match]
> fsid			7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f
> label			samba_fs
> generation		770740
> root			16187774615552
> sys_array_size		355
> chunk_root_generation	755799
> root_level		1
> chunk_root		24331161698304
> chunk_root_level	1
> log_root		0
> log_root_transid	0
> log_root_level		0
> total_bytes		23999996231680
> bytes_used		22205028102144
> sectorsize		4096
> nodesize		16384
> leafsize		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 )
> csum_type		0
> csum_size		4
> cache_generation	770740
> uuid_tree_generation	770740
> dev_item.uuid		dd8c8d66-b6f5-48d8-9d5e-6f56b2ad4751
> dev_item.fsid		7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f [match]
> dev_item.type		0
> dev_item.total_bytes	23999996231680
> dev_item.bytes_used	23274943676416
> 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=/dev/sdb
> ---------------------------------------------------------
> csum			0x1692e47f [match]
> bytenr			67108864
> flags			0x1
> ( WRITTEN )
> magic			_BHRfS_M [match]
> fsid			7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f
> label			samba_fs
> generation		770740
> root			16187774615552
> sys_array_size		355
> chunk_root_generation	755799
> root_level		1
> chunk_root		24331161698304
> chunk_root_level	1
> log_root		0
> log_root_transid	0
> log_root_level		0
> total_bytes		23999996231680
> bytes_used		22205028102144
> sectorsize		4096
> nodesize		16384
> leafsize		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 )
> csum_type		0
> csum_size		4
> cache_generation	770740
> uuid_tree_generation	770740
> dev_item.uuid		dd8c8d66-b6f5-48d8-9d5e-6f56b2ad4751
> dev_item.fsid		7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f [match]
> dev_item.type		0
> dev_item.total_bytes	23999996231680
> dev_item.bytes_used	23274943676416
> 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=274877906944, device=/dev/sdb
> ---------------------------------------------------------
> csum			0xeb15b24e [match]
> bytenr			274877906944
> flags			0x1
> ( WRITTEN )
> magic			_BHRfS_M [match]
> fsid			7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f
> label			samba_fs
> generation		770740
> root			16187774615552
> sys_array_size		355
> chunk_root_generation	755799
> root_level		1
> chunk_root		24331161698304
> chunk_root_level	1
> log_root		0
> log_root_transid	0
> log_root_level		0
> total_bytes		23999996231680
> bytes_used		22205028102144
> sectorsize		4096
> nodesize		16384
> leafsize		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 )
> csum_type		0
> csum_size		4
> cache_generation	770740
> uuid_tree_generation	770740
> dev_item.uuid		dd8c8d66-b6f5-48d8-9d5e-6f56b2ad4751
> dev_item.fsid		7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f [match]
> dev_item.type		0
> dev_item.total_bytes	23999996231680
> dev_item.bytes_used	23274943676416
> 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
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> 
> Best Regards
> 
> 
> 
> 
> YunFu Li
> System Engineer
> Chengdu Kanghong Pharmaceuticals Group Co., Ltd
> No. 36, Shu XiRoad, Chengdu, Sichuan Province, China
> Ext.:4004 | 
> Liyunfu@cnkh.com| www.cnkh.com
> 
> 
> 
> 
> -------------------------------------------------------------
> 本邮件及其附件内容系我司保密信息,仅向收件人提供。若您不是本邮件指定收件人,敬请立即删除本邮件并与发件人联系,同时请勿以任何方式复制、使用及传播。多谢合作! 
> 
> The information contained in this E-mail and its
> attachment(s) are our confidential information and are intended solely for the addressees. If
> you are not the designated recipient, please delete
> it from your system immediately and  notify the sender,
> meanwhile, do not copy or use or spread it in any way.
> Thank you very much!

^ permalink raw reply	[flat|nested] 5+ messages in thread

* help!!!  error when mount a btrfs file system
@ 2017-03-16 12:23 李云甫
  2017-03-16 17:36 ` Liu Bo
  2017-05-23  3:26 ` Qu Wenruo
  0 siblings, 2 replies; 5+ messages in thread
From: 李云甫 @ 2017-03-16 12:23 UTC (permalink / raw)
  To: linux-btrfs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 7119 bytes --]

hi, buddy

   I have a file server with btrfs file system, it's work well for several months.

but after last system reboot, the /dev/sdb become not mountable.

below is the details.   is there any advise?


######Version info
Fedora 25 Server
Kernel 4.9.13-201.fc25.x86_64
btrfs-progs v4.6.1

#####error messages when mount
mount: wrong fs type, bad option, bad superblock on /dev/sdb,
missing codepage or helper program, or other error

In some cases useful info is found in syslog - try
dmesg | tail or so.

######dmesg |tail
[79570.756871] BTRFS error (device sdb): parent transid verify failed on 21413888 wanted 755660 found 623605
[79570.762307] BTRFS error (device sdb): bad tree block start 0 21413888
[79570.762345] BTRFS error (device sdb): failed to read chunk tree: -5
[79570.778129] BTRFS error (device sdb): open_ctree failed
[79589.743772] BTRFS error (device sdb): support for check_integrity* not compiled in!
[79589.803176] BTRFS error (device sdb): open_ctree failed

######btrfsck 
parent transid verify failed on 21413888 wanted 755660 found 623605
parent transid verify failed on 21413888 wanted 755660 found 623605
checksum verify failed on 21413888 found E4E3BDB6 wanted 00000000
parent transid verify failed on 21413888 wanted 755660 found 623605
Ignoring transid failure
checksum verify failed on 21331968 found E4E3BDB6 wanted 00000000
checksum verify failed on 21331968 found E4E3BDB6 wanted 00000000
checksum verify failed on 21692416 found E4E3BDB6 wanted 00000000
checksum verify failed on 21692416 found E4E3BDB6 wanted 00000000
checksum verify failed on 22888448 found E4E3BDB6 wanted 00000000
checksum verify failed on 22888448 found E4E3BDB6 wanted 00000000
checksum verify failed on 22888448 found E4E3BDB6 wanted 00000000
checksum verify failed on 22888448 found E4E3BDB6 wanted 00000000
bytenr mismatch, want=22888448, have=0
Couldn't read chunk tree
Couldn't open file system

######btrfs-find-root
parent transid verify failed on 21413888 wanted 755660 found 623605
parent transid verify failed on 21413888 wanted 755660 found 623605
parent transid verify failed on 21413888 wanted 755660 found 623605
Ignoring transid failure
Couldn't read chunk tree
ERROR: open ctree failed

######btrfs-show-super -a /dev/sdb 
superblock: bytenr=65536, device=/dev/sdb
---------------------------------------------------------
csum			0xb6f3ccb1 [match]
bytenr			65536
flags			0x1
( WRITTEN )
magic			_BHRfS_M [match]
fsid			7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f
label			samba_fs
generation		770740
root			16187774615552
sys_array_size		355
chunk_root_generation	755799
root_level		1
chunk_root		24331161698304
chunk_root_level	1
log_root		0
log_root_transid	0
log_root_level		0
total_bytes		23999996231680
bytes_used		22205028102144
sectorsize		4096
nodesize		16384
leafsize		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 )
csum_type		0
csum_size		4
cache_generation	770740
uuid_tree_generation	770740
dev_item.uuid		dd8c8d66-b6f5-48d8-9d5e-6f56b2ad4751
dev_item.fsid		7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f [match]
dev_item.type		0
dev_item.total_bytes	23999996231680
dev_item.bytes_used	23274943676416
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=/dev/sdb
---------------------------------------------------------
csum			0x1692e47f [match]
bytenr			67108864
flags			0x1
( WRITTEN )
magic			_BHRfS_M [match]
fsid			7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f
label			samba_fs
generation		770740
root			16187774615552
sys_array_size		355
chunk_root_generation	755799
root_level		1
chunk_root		24331161698304
chunk_root_level	1
log_root		0
log_root_transid	0
log_root_level		0
total_bytes		23999996231680
bytes_used		22205028102144
sectorsize		4096
nodesize		16384
leafsize		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 )
csum_type		0
csum_size		4
cache_generation	770740
uuid_tree_generation	770740
dev_item.uuid		dd8c8d66-b6f5-48d8-9d5e-6f56b2ad4751
dev_item.fsid		7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f [match]
dev_item.type		0
dev_item.total_bytes	23999996231680
dev_item.bytes_used	23274943676416
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=274877906944, device=/dev/sdb
---------------------------------------------------------
csum			0xeb15b24e [match]
bytenr			274877906944
flags			0x1
( WRITTEN )
magic			_BHRfS_M [match]
fsid			7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f
label			samba_fs
generation		770740
root			16187774615552
sys_array_size		355
chunk_root_generation	755799
root_level		1
chunk_root		24331161698304
chunk_root_level	1
log_root		0
log_root_transid	0
log_root_level		0
total_bytes		23999996231680
bytes_used		22205028102144
sectorsize		4096
nodesize		16384
leafsize		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 )
csum_type		0
csum_size		4
cache_generation	770740
uuid_tree_generation	770740
dev_item.uuid		dd8c8d66-b6f5-48d8-9d5e-6f56b2ad4751
dev_item.fsid		7f5aecd6-40fe-45ce-90c3-e86bacc4bf6f [match]
dev_item.type		0
dev_item.total_bytes	23999996231680
dev_item.bytes_used	23274943676416
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









--

Best Regards




YunFu Li
System Engineer
Chengdu Kanghong Pharmaceuticals Group Co., Ltd
No. 36, Shu XiRoad, Chengdu, Sichuan Province, China
Ext.:4004 | 
Liyunfu@cnkh.com| www.cnkh.com




-------------------------------------------------------------
本邮件及其附件内容系我司保密信息,仅向收件人提供。若您不是本邮件指定收件人,敬请立即删除本邮件并与发件人联系,同时请勿以任何方式复制、使用及传播。多谢合作! 

The information contained in this E-mail and its
attachment(s) are our confidential information and are intended solely for the addressees. If
you are not the designated recipient, please delete
it from your system immediately and  notify the sender,
meanwhile, do not copy or use or spread it in any way.
Thank you very much!ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±ý»k~ÏâžØ^n‡r¡ö¦zË\x1aëh™¨è­Ú&£ûàz¿äz¹Þ—ú+€Ê+zf£¢·hšˆ§~†­†Ûiÿÿïêÿ‘êçz_è®\x0fæj:+v‰¨þ)ߣøm

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-05-23  3:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-16 12:39 help!!! error when mount a btrfs file system =?gb18030?B?ut+637n+utk=?=
  -- strict thread matches above, loose matches on Subject: below --
2017-03-16 12:23 李云甫
2017-03-16 17:36 ` Liu Bo
2017-03-17  2:15   ` Qu Wenruo
2017-05-23  3:26 ` Qu Wenruo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.