Disk replacement in RAID 1

Latest response

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

How to determined if this is software or hardware RAID. I assume we are using hardware but want to make sure.

Hi Vida,

show output of:

cat /etc/fstab

Regards,

Jan Gerrit

also

pvs

LABEL=/ / ext3 defaults 1 1 LABEL=/var /var ext3 defaults 1 2 LABEL=/aepona /opt ext3 defaults 1 2 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 LABEL=SWAP-sda5 swap swap defaults 0 0

/dev/mapper/mpath5p1 /ocluster ocfs2 _netdev,datavolume,nointr 0 0

/dev/sdf1 /ocluster ocfs2 _netdev,datavolume,nointr 0 0 /dev/sdb1 /backup ocfs2 _netdev,datavolume,nointr 0 0 /dev/sdc1 /reporting ocfs2 _netdev,datavolume,nointr 0 0 /dev/sdd1 /misc ocfs2 _netdev,datavolume,nointr 0 0

PVS doesn't return any output?!

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".

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.