How To Fully configure Raid 1 Or How To Delete Them In Linux Rhel 4&5

In This Tutorial We Are Going To Learn How To Fully Configue Raid 1 Or How To Delete Then Fully Step wise Tutorial 

Firstly We Have To Draw This Type Of Diagram

Here Is The Full Coading Of Raid 1 How To Configure Or How To Delete Or How To Add

Step-1 Here Firstly We Have To Create The Partition In Hard Disk /dev/sda & /dev/sdb

fdisk -l
fdisk /dev/sda
n {for New Partition}
Select Partition 3
t
fd {For Raid Partition}
p {For Check Partition Is created Or Not}
w {For Save}
Partprobe /Dev/Sda {For Refresh}

fdisk -l
fdisk /dev/sdb
n {for New Partition}
Select Partition 1
t
fd {For Raid Partition}
p {For Check Partition Is created Or Not}
w {For Save}
Partprobe /Dev/Sdb {For Refresh}

Step-2 Here Is The Coading Of Configuration Raid- 1

mdadm –create/dev/md0 –level=1–raid-devices=2 /dev/sda3 /dev/sdb1

mdadm –detail /dev/md0

Step-3 For Fault

mdadm /dev/md0 –fail /dev/sdb1
mdadm –detail /dev/md0

Step-4 For Remove The Partition

mdadm /dev/md0 –remove /dev/sdb1
mdadm –detail /dev/md0

Step-5 For Add Partition

mdadm /dev/md0 –add /dev/sdb1
mdadm –detail /dev/md0

Step-6 Now How To Del Full Raid 1

mdadm –detail /dev/md0
mdadm –stop /dev/md0
mdadm –detail /dev/md0
mdadm –remove /dev/md0
mdadm –detail /dev/md0

Step -7 Now For Delete Partition

fdisk /dev/sdb
d {For Del The Partition}
Select Partition 1
p {For Check Partition Is Del Or Not}
w {For Save}
Partprobe /Dev/Sdb {For Refresh}

fdisk /dev/sda
d {For Del The Partition}
Select Partition 3
p {For Check Partition Is Del Or Not}
w {For Save}
Partprobe /Dev/Sda {For Refresh}

This Is How We Configure Or Delete Or Remove Or Add Partition In Raid 1 In Linux Rhel 4&5 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s