Before starting on the virtual machine, select the expansion.
df - H View the current partition usage; the fdisk / dev / SDB the disk operations (create a new partition and format) n p Enter the default partition number; Enter the default disk to create a starting position; Enter the default disk creation end position; partition type set t 8e LVM type w Storage
Type:
mkfs -t ext3 / dev / sda3
or
mkfs.ext3 / dev / sda3
Run mkfs.ext3 / dev / sdb3 error "Could not stat / dev / sdb3", but this partition is certainly there, just fdisk go together, looked at the statistics:
run
partprobe
Then execute mkfs.ext3 / dev / sdb4, it
lvm lvm management into the
lvm> pvcreate / dev / sda3 create a logical volume
lvm> vgextend centos / dev / sda3 // initialized partitions will be added to the virtual volume group (VG) CentOS
lvm> the vgdisplay -v
lvm> // viewing volume pvdisplay See the PE capacity Free / Site Five
LVM> the lvextend -L + 19G / dev / Mapper / CentOS actually the root-disk space than is the small size of the upper portion where + 19G viewing
LVM> quit
xfs_growfs / dev / Mapper / CentOS the root-expanding capacity
df -h expansion view