centos7 create and mount the logical volume

Experimental objective:

Through the concept of logical understanding of this experimental Linux system, able to create and manage logical volumes.
lv: logical, physical partitions or a plurality of physical disk can be made a logical partition called logical volumes.
pv: can do the physical partitions of the logical volume.
vg: volume group, the physical partitions into a volume group corresponds to a pool of storage resources, you can call for the logical volume.

Steps:

1, 2GB of a new partition, new partition as pv
2, just to put a new pv VG
. 3, on the newly created lv VG
. 4, a new file system xfs formatted lv
5, linked to create overload point, mount the new lv

Command:

The first step: a new partition, the partition type set by t, 8e codes for the logical volume

centos7 create and mount the logical volume

Step Two: Create Logical Volume

[root@system1 Desktop]# partprobeLet partition immediately available

[root@system1 Desktop]# pvcreate /dev/sda3 The sda3 as pv, sda3 partition number can be used to query the fdisk -l

[root@system1 Desktop]# vgcreate vg_0 /dev/sda3 The added volume group sda3 vg_0, vg_0 name may be modified to

[root @ system1 Desktop] # lvcreate -n lv_0 -L 512M vg_0
establishing logical volumes from the volume group vg_0 out in the new logical volume to 512M lv_0 used, can modify the name lv_0

The third step is to mount the logical volume

centos7 create and mount the logical volume

centos7 create and mount the logical volume
centos7 create and mount the logical volume

Guess you like

Origin blog.51cto.com/14324549/2416838