LVM Configuration tutorial

Source: Internet
Author: User
1. Glossary: PV (PhysicalVolume): Physical volume, which is at the bottom of LVM and can be a physical hard disk or partition. VG (VolumeGroup): Volume Group, built on PV, can contain one or more PVS. LV (LogicalVolume): logical volume, built on top of VG, is equivalent to the concept of the original partition. However, the size can be dynamically changed.

1. glossary:

PV (Physical Volume): Physical Volume, which is at the bottom of LVM and can be a Physical hard disk or partition.

VG (Volume Group): Volume Group, built on PV, can contain one or more PVS.

LV (Logical Volume): Logical Volume, built on top of VG, is equivalent to the concept of the original partition. However, the size can be dynamically changed.

PE (Physical Extend): The smallest storage unit that can be allocated in the Physical area. it can be specified when PV is created, such as 1, 2, 4, 8... .... 64 M.

PES with PVS should be the same.

LE (Logical Extend): Logical Region. the minimum storage unit that can be allocated in the LV depends on the PE size in the PV of the LV.

VGDA (Volume Group Descriptor Area): Volume Group description Area, which exists in each PV. it is used to describe the VG contained in the PV, the LV in the VG, and the physical region allocation in the LV, create a PV by using the pvcreate command.

2. LVM creation process:

Create an LVM-type partition

Create an LVM physical volume

Create an LVM volume Group

Create LVM Logical Volume

Create a file system

Mount a file system

Use a file system

3. PV-related commands

Commands related to LVM physical volume management include:

Pvdisplay: displays PV attributes.

Pvscan: Search for PV on all hard disks of the system

Pvcreate: create PV (Initialize VGDA on PV)

Pvdata: displays VGDA information on PV.

Pvchange: changes the PV attribute.

Pvmove: move PE/LE between PVS

4. VG-related commands

Commands related to LVM volume Group management include:

Vgdisplay: displays the VG volume group attributes.

Vgscan: find the existing VG volume Group of the system

Vgcreate: Create a VG volume Group (Initialize VGDA on VG)

Vgdata: displays VGDA information on the VG volume group.

Vgchange: changes the VG volume group attributes.

Vgmove: move PE/LE between VG volume groups

5. LV commands

Commands related to LVM Logical Volume management include:

Lvdisplay: displays LV volume group attributes.

  LvsCan: find the existing LV volume Group of the system

Lvcreate: Create an LV volume Group (Initialize LVDA on LV)

Lvdata: displays LVDA information on the LV volume group.

Lvchange: change the LV volume group attributes.

Lvmove: move PE/LE between LV volume groups

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.