Перейти к содержимому
rootnick

BTRFS, общий раздел на 4 диска, один сдох

Рекомендуемые сообщения

Привет. 

Был один раздел на 4х физических дисках под btrfs, созданный так:
 

# mkfs.btrfs /dev/sdb /dev/sdc /dev/sdd /dev/sde

/dev/sdb резко умер:

btrfs filesystem show 
Label: none uuid: ef27b935-d4ba-41a3-9e7e-60362329d658 
Total devices 1 FS bytes used 25.54GiB 
devid 1 size 40.01GiB used 27.03GiB path /dev/sda2

Label: none uuid: bf111756-1eb0-4aeb-bd54-3ffd42ed5a3a 
Total devices 1 FS bytes used 68.34GiB 
devid 1 size 69.78GiB used 69.78GiB path /dev/sda3

warning, device 1 is missing 
warning, device 1 is missing 
Label: none uuid: ddb0fd1f-1bf1-41ac-b808-8892b36e5c07 
Total devices 4 FS bytes used 3.59TiB 
devid 2 size 1.82TiB used 1.81TiB path /dev/sdc 
devid 3 size 1.82TiB used 1.81TiB path /dev/sde 
devid 4 size 1.82TiB used 1.81TiB path /dev/sdd 
*** Some devices missing


Притащил другой, воткнул, и:
 

mount -o degraded /dev/sdc /media/raid1 
mount: /media/raid1: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.

Понятно, делаю:

btrfsck /dev/sdc 
Opening filesystem to check... 
warning, device 1 is missing 
warning, device 1 is missing 
Checking filesystem on /dev/sdc 
UUID: ddb0fd1f-1bf1-41ac-b808-8892b36e5c07 
[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 3947044032512 bytes used, no error found 
total csum bytes: 3849158660 
total tree bytes: 4550115328 
total fs tree bytes: 86999040 
total extent tree bytes: 30982144 
btree space waste bytes: 440883716 
file data blocks allocated: 394

и ещё:

btrfs inspect-internal dump-super -a /dev/sdc 
superblock: bytenr=65536, device=/dev/sdc 
--------------------------------------------------------- 
csum_type 0 (crc32c) 
csum_size 4 
csum 0xc97fe9b8 [match] 
bytenr 65536 
flags 0x1 
( WRITTEN ) 
magic _BHRfS_M [match] 
fsid ddb0fd1f-1bf1-41ac-b808-8892b36e5c07 
label 
generation 302435 
root 1840939008 
sys_array_size 290 
chunk_root_generation 237683 
root_level 1 
chunk_root 20971520 
chunk_root_level 1 
log_root 0 
log_root_transid 0 
log_root_level 0 
total_bytes 8001595736064 
bytes_used 3947044032512 
sectorsize 4096 
nodesize 16384 
leafsize (deprecated) 16384 
stripesize 4096 
root_dir 6 
num_devices 4 
compat_flags 0x0 
compat_ro_flags 0x0 
incompat_flags 0x161 
( MIXED_BACKREF | 
BIG_METADATA | 
EXTENDED_IREF | 
SKINNY_METADATA ) 
cache_generation 302435 
uuid_tree_generation 302435 
dev_item.uuid a6053590-2e93-457e-a0b4-9cf11ef73dd1 
dev_item.fsid ddb0fd1f-1bf1-41ac-b808-8892b36e5c07 
[match] 
dev_item.type 0 
dev_item.total_bytes 2000398934016 
dev_item.bytes_used 1996082970624 
dev_item.io_align 4096 
dev_item.io_width 4096 
dev_item.sector_size 4096 
dev_item.devid 2 
dev_item.dev_group 0 
dev_item.seek_speed 0 
dev_item.bandwidth 0 
dev_item.generation 0

superblock: bytenr=67108864, device=/dev/sdc 
--------------------------------------------------------- 
csum_type 0 (crc32c) 
csum_size 4 
csum 0x691ec176 [match] 
bytenr 67108864 
flags 0x1 
( WRITTEN ) 
magic _BHRfS_M [match] 
fsid ddb0fd1f-1bf1-41ac-b808-8892b36e5c07 
label 
generation 302435 
root 1840939008 
sys_array_size 290 
chunk_root_generation 237683 
root_level 1 
chunk_root 20971520 
chunk_root_level 1 
log_root 0 
log_root_transid 0 
log_root_level 0 
total_bytes 8001595736064 
bytes_used 3947044032512 
sectorsize 4096 
nodesize 16384 
leafsize (deprecated) 16384 
stripesize 4096 
root_dir 6 
num_devices 4 
compat_flags 0x0 
compat_ro_flags 0x0 
incompat_flags 0x161 
( MIXED_BACKREF | 
BIG_METADATA | 
EXTENDED_IREF | 
SKINNY_METADATA ) 
cache_generation 302435 
uuid_tree_generation 302435 
dev_item.uuid a6053590-2e93-457e-a0b4-9cf11ef73dd1 
dev_item.fsid ddb0fd1f-1bf1-41ac-b808-8892b36e5c07 
[match] 
dev_item.type 0 
dev_item.total_bytes 2000398934016 
dev_item.bytes_used 1996082970624 
dev_item.io_align 4096 
dev_item.io_width 4096 
dev_item.sector_size 4096 
dev_item.devid 2 
dev_item.dev_group 0 
dev_item.seek_speed 0 
dev_item.bandwidth 0 
dev_item.generation 0

superblock: bytenr=274877906944, device=/dev/sdc 
--------------------------------------------------------- 
csum_type 0 (crc32c) 
csum_size 4 
csum 0x94999747 [match] 
bytenr 274877906944 
flags 0x1 
( WRITTEN ) 
magic _BHRfS_M [match] 
fsid ddb0fd1f-1bf1-41ac-b808-8892b36e5c07 
label 
generation 302435 
root 1840939008 
sys_array_size 290 
chunk_root_generation 237683 
root_level 1 
chunk_root 20971520 
chunk_root_level 1 
log_root 0 
log_root_transid 0 
log_root_level 0 
total_bytes 8001595736064 
bytes_used 3947044032512 
sectorsize 4096 
nodesize 16384 
leafsize (deprecated) 16384 
stripesize 4096 
root_dir 6 
num_devices 4 
compat_flags 0x0 
compat_ro_flags 0x0 
incompat_flags 0x161 
( MIXED_BACKREF | 
BIG_METADATA | 
EXTENDED_IREF | 
SKINNY_METADATA ) 
cache_generation 302435 
uuid_tree_generation 302435 
dev_item.uuid a6053590-2e93-457e-a0b4-9cf11ef73dd1 
dev_item.fsid ddb0fd1f-1bf1-41ac-b808-8892b36e5c07 
[match] 
dev_item.type 0 
dev_item.total_bytes 2000398934016 
dev_item.bytes_used 1996082970624 
dev_item.io_align 4096 
dev_item.io_width 4096 
dev_item.sector_size 4096 
dev_item.devid 2 
dev_item.dev_group 0 
dev_item.seek_speed 0 
dev_item.bandwidth 0 
dev_item.generation 0

и dmesg:

[ 141.082051] BTRFS info (device sdc): disk space caching is enabled 
[ 141.082053] BTRFS info (device sdc): has skinny extents 
[ 141.082432] BTRFS error (device sdc): devid 1 uuid d40e530b-8188-44b0-8c03-4a96b563d20c is missing 
[ 141.082437] BTRFS error (device sdc): failed to read the system array: -2 
[ 141.103072] BTRFS error (device sdc): open_ctree failed

.......

[ 5012.996164] BTRFS error (device sdc): open_ctree failed 
[ 5292.346631] BTRFS info (device sdc): allowing degraded mounts 
[ 5292.346634] BTRFS info (device sdc): disk space caching is enabled 
[ 5292.346635] BTRFS info (device sdc): has skinny extents 
[ 5292.347595] BTRFS warning (device sdc): devid 1 uuid d40e530b-8188-44b0-8c03-4a96b563d20c is missing 
[ 5294.883873] BTRFS warning (device sdc): chunk 0 missing 1 devices, max tolerance is 0 for writeable mount 
[ 5294.883875] BTRFS warning (device sdc): writeable mount is not allowed due to too many missing devices 
[ 5294.913899] BTRFS error (device sdc): open_ctree failed


Не монтируется даже в degraded... А чтобы мне добавить / убавить диск в раздел, его блин, нужно смонтировать... 

Я в btrfs не алё, буду рад помощи, а то писец какой то... 
Спасибо. 
 

 

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Создайте аккаунт или войдите в него для комментирования

Вы должны быть пользователем, чтобы оставить комментарий

Создать аккаунт

Зарегистрируйтесь для получения аккаунта. Это просто!

Зарегистрировать аккаунт

Войти

Уже зарегистрированы? Войдите здесь.

Войти сейчас

×