Disk replacement in RAID 1
We found faulty disk on slot 0 of our RHEL 5 server.
There are total 2 disks in the system.
Question is how to set up the new disk correctly?
How to sync up the disks?
Please provide with document or link demonstrating the steps.
thank you in advance.
Responses
Hello Vida,
Is it setup as software RAID or hardware RAID? If it is hardware RAID you need to go to the support side of the hardware vendor.
If it is software RAID, please provide us with the information which software solution you use. Each software solution has it's own way to de-configure the broken disk and to add the replacement disk.
Kind regards,
Jan Gerrit Kootstra
Well, in case there is software raid (using built-in method) configured on the system then you find it using "mdamd --detail" or -mdadm -D" or "cat /proc/mdstat" as shown below:
Ansible>cat /proc/mdstat
Personalities :
unused devices: <none>
Ansible>mdadm -D
mdadm: No devices given.
Ansible>mdadm --detail
mdadm: No devices given.
You could see here that there is no such raid devices detected, however, if there is a hardware raid controller then chances are that the server is configured with RAID by the hardware controller. You may check out the lspci output to see if there is any such controllers installed.
I see that you've labels set up on the underlying block devices, so you may post back the output of these commands "blkid" and "lsblk".
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
