How To Conigure Raid Over Lvm In Redhat Linux

In This Tutorial We Are Going To Learn How To Configure Raid Over Lvm

Now firstly We Have To Create Lvm Then We Have To Create Raid Over Lvm

Here You Can Check The Diagram 

For Creating Lvm Here We Have To Create First 4 Partition Which Type Is Linux Lvm 

Step -1

fdisk -l
fdisk /dev/sda
n {for New Partition}
Select Partition 2
t {For Change The Type Of Partition}
8e {For Creating LVM 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 The Type Of Partition}
8e {For Creating LVM 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 The Type Of Partition}
8e {For Creating LVM 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 The Type Of Partition}
8e {For Creating LVM Partition}
p {For Check Partition Is created Or Not}
w {For Save}
Partprobe /Dev/Sdb {For Refresh}

If You Do Any Change In Hard Disk Then You Have To Run Command Partprobe Then Give The Hard Disk Name Where You Do Change 

Now Or Partition Is Created Now We Have To Create Lvm Using This Partition

Step -2 Here Is The Coading Of Creating Lvm

pvcreate /dev/sda2 /dev/sda3 /dev/sdb1 /dev/sdb2
pvs
vgcreate vg00 /dev/sda2 /dev/sda3 /dev/sdb1 /dev/sdb2
vgs
lvcreate -L+1G -n Lv1 vg00
lvs
lvcreate -L+600M -n Lv2 vg00 
lvs

Now Our First Portion Of Create Lvm Is Complete Nov We Have To Create Raid 

Here I Am Create Raid 1 Over Lvm

Step -3 Here Is The Coading Of Creating Raid 1

mdadm –create /dev/md0 –level=1–raid-devices=2 /dev/vg00/lv1 dev/vg00/lv2


This Is How We Create Raid Over Lvm

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