1. Vm virtual machine under Linux extensions of the original disk space, detailed steps are as follows:
Note: linux only expand disk capacity can not be reduced to fill the capacity of the total capacity, which includes a partitioned disk, can not have a snapshot yo when expanding capacity, we can put snapshots deleted.
2. Start the client fdisk -l see sda1 and sda2 used
Instruction: fdisk the -l
3. fdisk / dev / sda
Instruction: Disk / dev / SDA
4. Restart the client reboot reboot linux, you must reboot, or / dev / sda3 can not be formatted.
5. After completing the above steps, again fdisk -l
Found more than / dev / sda3
Instruction: fdisk the -l
6. mkfs.ext3 / dev / sda3 format
Command: the mkfs.ext3 / dev / sda3
7. lvm partition expansion
Instruction: LVM
pvcreate /dev/sda3
8. Use pvdisplay view the current volume information, found that the figure / dev / sda2 is VolGroup of VG Name, and in fact my virtual machine is centos (see is what you own) and therefore needs to be / dev / sda3 added to VolGroup volume go inside, like me, it is in centos
Instruction: pvdisplay
9. The / dev / sda3 VolGroup added to the volume to go inside or added to the inside volume to centos
Command: the vgextend volgroup / dev / sda3
lvextend -L +39.9G /dev/mapper/VolGroup-lv_home 或者lvextend -L +39.9G /dev/mapper/centos-root
操作生效
看看home的硬盘空间大小