1.

What Are The Steps To Create Lvm?

Answer»

CREATE physical volumes by “pvcreate” COMMAND :

#pvcreate /dev/sda2

Add physical volume to volume group by “vgcreate” command :

#vgcreate VLG0 /dev/sda2

Create LOGICAL volume from volume group by “lvcreate” command :

#lvcreate -L 1G -n LVM1 VLG0

Now create file system on /dev/sda2 partition by “mke2fs” command :

#mke2fs -j /dev/VLG0/LVM1

Create physical volumes by “pvcreate” command :

#pvcreate /dev/sda2

Add physical volume to volume group by “vgcreate” command :

#vgcreate VLG0 /dev/sda2

Create logical volume from volume group by “lvcreate” command :

#lvcreate -L 1G -n LVM1 VLG0

Now create file system on /dev/sda2 partition by “mke2fs” command :

#mke2fs -j /dev/VLG0/LVM1



Discussion

No Comment Found