Answer the question
In order to leave comments, you need to log in
How to restore raid1 in linux?
There is Centos7 which is installed on one hard drive. For data storage, a software RAID1 array of two hard drives was assembled. Now one of them is out of order - it stopped starting.
I tried to remove the damaged partition from the array with the command: mdadm /dev/md0 -r /dev/sdc1
but I got an error: Cannot get array info for /dev/md0
What do I need to do to pull the data from the remaining disk? And do I need to change the damaged disk for this, or can I just disassemble the array?
Answer the question
In order to leave comments, you need to log in
# mdadm --assemble /dev/md0 /dev/sdb1
where /dev/sdb1 is the partition of the live disk
No need to parse.
If you need to rebuild the RAID, then remove the old disk, insert a new one, add it to the array.
If you do not need to rebuild, and the bootloader is installed on the second disk, then remove the old disk and boot quietly.
If no bootloader is installed, boot into LiveCD and install grub.
Just read the data - on any Linux machine, your partition will be easily mounted and you will pull everything out from there.
Don't make life difficult for yourself. Everything has been stolen before us.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question