How To Configure Raid {0+1} Or How To Delete Them In Redhat Enterprise Linux | Fully Tutorial

In This Tutorial We Are Going To Learn How To Configure Raid {0+1} In Redhat Enterprise Linux Rhel-4&5

Just Follow These Simple Steps

Now Here I Am Having  This Type Of Diagram

Step-1 Here Firstly we Have To Create Raid Partition

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

fdisk -l
fdisk /dev/sda
n {for New Partition}
Select Partition 4
t {For Change Partition}
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 {For Change Partition}
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 2
t {For Change Partition}
fd{For Raid Partition}
p {For Check Partition Is created Or Not}
w {For Save}

Partprobe /Dev/Sdb {For Refresh}

Step-2 Now We Created The Raid Partition Now We Have To Create Raid {0+1} Using This Partitions

# mdadm –Create/dev/md0 –Level=0 –Raid -Devices=2 /dev/sda3 /dev/sda4

#mdadm –detail /dev/md0 {For Check Raid Is Created Or Not}

# mdadm  –Create/dev/md1 –Level=0 –Raid -Devices=2 /dev/sdb1 /dev/sdb2

#mdadm –detail /dev/md1 {For Check Raid Is Created Or Not}

 

Step- 3 Now Raid 0 Is Created Now We Have To Create Raid 1 Over The Raid 0

# mdadm  –Create/dev/md2 –Level=1 –Raid -Devices=2 /dev/md0 /dev/md1

#mdadm –detail /dev/md2 {For Check Raid Is Created Or Not}

Step-4 Now We Have To Create The Folder And Mount Over The Raid-1

#mkdir /F
#mkfs.ext3 /F
#mount /F
#df -h

Step-5 Now Our Raid {0+1} Is Created Now How To Delete Them

First We Have To Unmount The Folder Which We Created On The Raid-0
Umount /F
df -h

Step-6 Now We Delete The Raid

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

Step-7 Now Our Raid Is Remove Now We Have To Delete The Partition

fdisk /dev/sda
d {For Del The Partition}
Select Partition 3
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 4
p {For Check Partition Is Del Or Not}
w {For Save}
Partprobe /Dev/Sdb {For Refresh}
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/sdb
d {For Del The Partition}
Select Partition 2
p {For Check Partition Is Del Or Not}
w {For Save}
Partprobe /Dev/Sdb {For Refresh}

This Is Full Tutorial How We Create Or Delete The Raid {0+1} Or Raid Partition In Redhat Enterprise 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