Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How to create LVM in Linux and how we can took th e backup of LVM?

How to create LVM in Linux

user-image
Question added by Akhilesh Yadav , Linux Technical Lead , Wipro Limited
Date Posted: 2013/06/19
Amr Mohamed Abdo Eissa
by Amr Mohamed Abdo Eissa , Senior AIX System Engineer , Data & Transaction Services

1- Create logic partition with file system (8e=lvm)

2- # pvcreate /dev/sd?? /dev/sd??         to convert this partition to physical volum

3- # vgcreate <volume group name >   /dev/sd?? /dev/sd??    to Combine physical volumes into volume group

4- #lvcreate --name <lvm name>  --size <size by Gb>  <volume group name >   to create a logical volume from the volume group

5- create file system then mount it

6- # lvcreate --name <snap name > -- size -s <lvm which you need to snapshot it >

to create snapshots

Santhosh kumar
by Santhosh kumar , Chief Information Security Officer , Vitae International

  • Create  partitions with desire size
  • Convert them into physical  volumes.
  • Combine physical volumes into volume group.
  • Finally create a logical volume from the volume group.
  • Using LVM snapshots for backup and restore of filesystems

Let me know if you need more details

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.