Device Boot Start End Blocks Id System
/dev/vda1 * 3 1018 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/vda2 1018 16645 7875584 8e Linux LVM
Partition 2 does not end on cylinder boundary.
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Device Boot Start End Blocks Id System
/dev/vda1 * 3 1018 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/vda2 1018 <font color="#ff0000">16645</font> 7875584 8e Linux LVM
Partition 2 does not end on cylinder boundary.
Command (m for help):<font color="#ff0000"> n</font>
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): <font color="#ff0000">3</font>
First cylinder (1-22885, default 1): <font color="#ff0000">16646</font>
Last cylinder, +cylinders or +size{K,M,G} (16646-22885, default 22885):
Using default value 22885
Device Boot Start End Blocks Id System
/dev/vda1 * 3 1018 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/vda2 1018 16645 7875584 8e Linux LVM
Partition 2 does not end on cylinder boundary.
<font color="#ff0000">/dev/vda3 16646 22885 3144960 83 Linux</font>
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
[iyunv@localhost ~]# resize2fs /dev/VolGroup/lv_root
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/VolGroup/lv_root is mounted on /; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 1
Performing an on-line resize of /dev/VolGroup/lv_root to 2544640 (4k) blocks.
The filesystem on /dev/VolGroup/lv_root is now 2544640 blocks long.