System: CentOS 6.3
--New partition
Fdisk-l/DEV/SDC # Viewing partitions
FDISK/DEV/SDC # Creating partitions
: N # New Partition
: P # Create primary partition
: 1 # Specify the partition number
: Enter # Start (default is not filled)
: +150g # End (set the partition size to 150G, the rest of the space is all divided directly enter)
Command (M for help): t # change partition type
Partition number (1-4): 1 # Specify partition numbers
Hex code (type L to list codes): 8e # LVM format
: P # View Partition
: W # Write information to disk
Partx-a/DEV/SDC1/DEV/SDC
PARTX/DEV/SDC # View the partition table and usage of the current hard disk
--LVM Extended Partition
PVCREATE/DEV/SDC1 # Add PV
Vgextend SYSVG/DEV/SDC1 # Add/DEV/SDC1 to group Sysvg
Lvextend-l +150g/dev/sysvg/var.vol # Extended 150G partition to Var.vol
or Lvextend-l +100%free/dev/sysvg/var.vol # to extend the remaining partitions to Var.vol
Resize2fs/dev/sysvg/var.vol # Sync (it takes a little time)
Before formatting the partition forget
The extended partitioning process is as follows:
Linux LVM Extended Disk partition