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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.