Linux LVM Logical Volume Brief

Source: Internet
Author: User


LVM (Logical Volume manager) is the short name for logical volume management

It is a mechanism for managing disk partitions in a Linux environment. Not only can you use LVM as a disk management mechanism on Linux systems, but for other Unix-like operating systems, as well as the Windows operating system, there are disk management software similar to LVM, and LVM works very simply by encapsulating the underlying physical hard disk abstraction. It is then presented to the upper-level application as a logical volume.

4 Basic Logical Volume concepts.

PE (physical Extend) physical expansion

PV (physical Volume) Physical volume

VG (Volume Group) volume group

LV (Logical Volume) Logical Volume

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/8C/28/wKioL1hjxsug--XtAAUZ5R-jok0619.png-wh_500x0-wm_3 -wmp_4-s_3298663802.png "title=" Qq20161228220249.png "alt=" Wkiol1hjxsug--xtaauz5r-jok0619.png-wh_50 "/>

Create 3 commands commonly used by LVM pvcreate,vgcreate,lvcreate;

Use Pvdisplay,vgdisplay,lvdisplay to view create effects when you are finished creating

1,pvcreate to initialize a disk or partition

Usage: Pvcreate + "Physical volume"

pvcreate/dev/sdb{1,2,3,5} to disk SDB1,SDB2,SDB3,SDB5 initialization

2 Vgcreate Creating a logical Volume group

Usage: vgcreate + Volume Group name + Physical device path

Vgcreate test_lvm/dev/sdb{1,2,3,5} Create TEST_LVM Volume group

3 Lvcreate creating a logical volume in a volume group

Lvcreate-l 8g-n test_web TEST_LVM Create a logical volume of size 8G Test_web

You can complete the creation of LVM in three steps above.

This article is from the "Practical Linux knowledge and Skills sharing" blog, please be sure to keep this source http://superleedo.blog.51cto.com/12164670/1887149

Linux LVM Logical Volume Brief

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.