Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have a remote machine that has the following setup:
2x 250Gb SATA drive build in RAID 1 software using mdadm
Problem: 1 of the 2 disks is DEAD and needs to be replaced. I don't personally have access to the computer, but a person over there has access (he can put a new drive in, but don't have a clue on how to configure).
My questions:
What is the procedure when you want to do such an operation? Simply put the disk and the RAID1 will sync again? This would be to good to be true!
We have configure the array using UUID does that need to be changed if new drive is inserted?
Distribution: Mandriva, Mandriva, Mandriva. (Three different releases depending on the computer)
Posts: 663
Rep:
You need to format the new disk identically to the existing one.
Tou can issue this command:
fdisk -l
This will give you lots of information about how the drives are partitioned. You can also do things like fdisk -l /dev/md0 or fdisk -l /dev/sda1.
With that in mind you can go through the drives and see things like this:
mdadm --detail /dev/md0
You will see that you'll get something like this:
Number Major Minor RaidDevice State
0 0 0 - removed
1 3 1 1 active sync /dev/sda1
You must then reactivate your drive. In this case you would issue this command:
mdadm --manage /dev/md0 --add /dev/sdb1
Go and do the same for the other drives. If you issue the /cat/proc/mdstat command at anytime, you will see it telling you it is resnycronising the disks.
You can do all this with ssh, so should be able to do it remotely.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.