Skip to content

How To Create LVM Over Raid {1+0}

Our Score
Click to rate this post!
[Total: 0 Average: 0]
In This Tutorial We Are Going To Learn How To Create LVM Over Raid And How To Create Swap partition

How To Create LVM Over Raid & providing Redudancy & Preformance To /Data Drive And Swap Partition

Firstly we Have To Create Raid {1+0} And Then We Have To create LVM Over Raid

Now We Have To Draw This Type Of Diagram

Firstly we have To do The coading Of Raid {0+1}

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

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

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

Now We Done The Coading And Part Of Raid Now We Do The Coading Of LVM

#Pvcreate /dev/md2
#pvs
#vgcreate vg00 /dev/md2
#vgs
#lvcreate -L 1G -n Lv1 vg00
#lvs
#lvcreate -L 1G -n Lv2 vg00
#lvs

Now We Done The Coading Of LVM Now We Have To Create Drive And Mount It

Now We Have To Create /Data Drive In Lv1

#Mkdir /data
#Mkfs.ext3 /dev/vg00/Lv1
#Mount /dev/vg00/Lv1/data
#df -h

Now We Have To Create Swap Partition In Lv2

#Mkswap /dev/vg00/Lv2
#Swapon /dev/vg00/Lv2
#Free -m

Leave a Reply

Discount Offer

Now Get 67% Discount

On Cyber Security Training                                                       Notes  

Click here  To Purchase

%d bloggers like this: