D
D
Dmitry Sergeev2020-12-01 11:32:26
RAID
Dmitry Sergeev, 2020-12-01 11:32:26

Has the raid1 array collapsed, or have both disks failed? How to be in such a situation?

Sites suddenly stopped working, it felt like the place had run out.

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md0 9.2G 8.7G 0 100% /
none 3.0G 208K 3.0G 1% /dev
none 3.0G 0 3.0G 0% /dev/shm
none 3.0G 56K 3.0 G 1% /var/run
none 3.0G 0 3.0G 0% /var/lock
/dev/md1 439G 27G 390G 7% /home

Indeed, md0 has a strange size and the partitions are gone.

But at first glance, the array is normal, but the md2 array appeared from somewhere, it certainly didn’t exist before, and it’s also 12 gigs in size.
cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md2 : active raid1 sda5[3] sdb5[2]
11716536 blocks super 1.2 [2/2] [UU]

md1 : active raid1 sdb6[2] sda6[3]
466899832 blocks super 1.2 [2/2] [UU]

md0 : active raid1 sda1[3] sdb1[2]
9763840 blocks super 1.2 [2/2] [UU

] disks too, but something is wrong with the array
fdisk -l | grep /dev/
Disk /dev/md0 doesn't contain a valid partition table
Disk /dev/md1 doesn't contain a valid partition table
Disk /dev/md2 doesn't contain a valid partition table
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
/dev/sdb1 * 1 1216 9764864 fd Linux raid autodetect
/ dev / sdb2 1216 60802 478 618 625 5 the Extended
/ dev / sdb5 59343 60802 11717632 fd is the Linux raid the autodetect
/ dev / sdb6 1216 59343 466 900 992 fd is the Linux raid the autodetect
Disk / dev / sda: 500.1 GB, 500107862016 bytes
/ dev / sda1 * January 1216 9764864 fd Linux raid autodetect
/dev/sda2 1216 60802 478618625 5 Extended
/dev/sda5 59343 60802 11717632 fd Linux raid autodetect
/dev/sda6 1216 59343 466900992 fd Linux autodetect Disk /
dev/md0: 9998 MB, 9998 Disk17
md1: 478.1 GB, 478105427968 bytes
Disk /dev/md2: 12.0 GB, 11997732864 bytes

uname -a
Linux hostname.ru 2.6.38-12-server

How to build back raid1?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Z
zohan1993, 2020-12-01
@JetMaster

at first glance, everything is ok with the raid,
only root is 100%
full /dev/md0 9.2G 8.7G 0 100% /

S
shurshur, 2020-12-01
@shurshur

Everything is fine, /dev/md# should not have a partition table. Why did you think something was wrong?

M
Mikhail Miroshnichenko, 2020-12-01
@hetmansoftware

If you need a RAID recovery program - https://hetmanrecovery.com/ru/raid-data-recovery-s...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question