How To Fully Configure Raid {0+5} Or How To Delete Them In Linux Rhel 4&5

Our Score
Click to rate this post!
[Total: 0 Average: 0]

In This Tutorial We Are Going To Learn How To Configure Raid {0+5} Just Follow These 6 Simple Steps

Step-1 Firstly we Have To Create 6 Partition 3 Partition In /dev/sda And 3 Partition In /dev/sdb Hard Disk And The Type Of Partition Is Raid type

Here You Can Check The Diagram

 

Here Firstly we Have To Create Partition

fdisk -l
fdisk /dev/sda
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/Sda {For Refresh}

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/Sdb {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}

fdisk -l
fdisk /dev/sdb
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/Sdb {For Refresh}

Step-2 Now Our Partition Is Created Now We Have To Create Raid 5 First

#mdadm --create/dev/md1 --level=5--raid-devices=3 /dev/sda2 /dev/sda3 /dev/sda4
#mdadm --detail /dev/md1 {For Check Raid Is Created Or Not}

#mdadm --create/dev/md2 --level=5--raid-devices=3 /dev/sdb1 /dev/sdb2 /dev/sdb3
#mdadm --detail /dev/md2  {For Check Raid Is Created Or Not}

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

#mdadm --create/dev/md0 --level=0--raid-devices=2 /dev/md1 /dev/md2
#mdadm --detail /dev/md0 {For Check Raid Is Created Or Not}

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

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

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

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

Now We Delete The Raid

mdadm --detail /dev/md1
mdadm --stop /dev/md1
mdadm --remove /dev/md1

mdadm --detail /dev/md2
mdadm --stop /dev/md2
mdadm --remove /dev/md2

mdadm --detail /dev/md0
mdadm --stop /dev/md0
mdadm --remove /dev/md0

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

fdisk /dev/sda
d {For Del The Partition}
Select Partition 2
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/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/Sda {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}

fdisk /dev/sdb
d {For Del The Partition}
Select Partition 3
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 Or Raid Partition In Linux Rhel 4&5

If you want to learn about cyber security in detail and if you want practical training of cyber security with detail notes so check this product it will give you the best knowledge with practical training.

Cyber Security Training Notes

 

Leave a Reply