linux lvm partitions created

There is a blank disk it needs to be divided into LVM partition, you can use fisk -l command to view the new disk size

 

Use pvcreate / dev / sdb command to a physical storage medium (The physical media) herein refers to a storage device system: the hard disk, such as: / dev / hda, / dev / sda, etc., is the lowest level of the memory cell storage system for converting a physical volume (PhysicalVolume), physical volume refers to a hard disk partition or device (e.g., RAID) having the same function from a logical disk partition, is the basic storage logical blocks LVM, but basic physical storage medium (such as a partition, disk, etc.) compare, but contains management parameters associated with LVM.

 

See vgdisplay using existing volume group name, current / partition name volgroup volume group resides, shown in FIG.

 

 

Use vgextend VolGroup / dev / sdb physical volume just created / dev / sdb volume group added to the root partition volgroup in
vgextend VolGroup / dev / sdh

See vgdisplay used again added just just physical volume in the volume group, as shown, the size of the free space available

Use lvdisplay get to the root partition logical volume name / dev / VolGroup / lv_root

 

The lv vg added in vgdisplay + 10239 is acquired size, / dev / VolGroup / lv_root volume name is acquired in the previous step
lvextend -l +665599 / dev / VolGroup / lv_root

resize2fs logical volume load after load completion / expansion of the partition line 2.5T
resize2fs / dev / volgroup / lv_root &

 

Guess you like

Origin www.cnblogs.com/shengying/p/11164876.html