0% found this document useful (0 votes)
237 views

How To Configure LVM in Linux (Pvcreate, Lvcreate, Vgcreate)

This document discusses how to configure Logical Volume Management (LVM) in Linux using the pvcreate, lvcreate, and vgcreate commands to create physical volumes (PVs), logical volumes (LVs), and volume groups (VGs). It provides examples of creating a linear, striped, and mirrored LV and mounting the LVs to directories.

Uploaded by

Dipenker Dey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
237 views

How To Configure LVM in Linux (Pvcreate, Lvcreate, Vgcreate)

This document discusses how to configure Logical Volume Management (LVM) in Linux using the pvcreate, lvcreate, and vgcreate commands to create physical volumes (PVs), logical volumes (LVs), and volume groups (VGs). It provides examples of creating a linear, striped, and mirrored LV and mounting the LVs to directories.

Uploaded by

Dipenker Dey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

How to Configure LVM in Linux (pvcreate, lvcreate, vgcreate)

How to Configure LVM in Linux (pvcreate, lvcreate, vgcreate)

/dev/sdb
/dev/sdc

# vgcreate vg-01 /dev/sdb /dev/sdc


Volume group "vg-01" successfully created
How to Configure LVM in Linux (pvcreate, lvcreate, vgcreate)

# lvcreate -L 1G -n lv_linear vg-01


Logical volume "lv_linear" created

# lvcreate -L 1G -i2 -I64 -n lv_stripe vg-01


Logical volume "lv_stripe" created

-i
How to Configure LVM in Linux (pvcreate, lvcreate, vgcreate)

-I

# lvcreate -L 200M -m1 -n lv_mirror vg-01


Logical volume "lv_mirror" created

-a
-a
How to Configure LVM in Linux (pvcreate, lvcreate, vgcreate)

#pvcreate /dev/sdb1

#pvdisplay /dev/sdb1

#vgcreate test /dev/sdb1

#vgdisplay test

#lvcreate -L 100M -n data test

#lvdisplay /dev/test/data

#mke2fs -j /dev/test/data
How to Configure LVM in Linux (pvcreate, lvcreate, vgcreate)

#mount /dev/test/data /mnt

#mount /dev/mapper/test-data /oracle


How to Configure LVM in Linux (pvcreate, lvcreate, vgcreate)

Submit Your Comment

You might also like