qemu-img resize t.qcow2 +1G
进入系统开始扩展磁盘
(1)查看分区大小
[root@test01~]#fdisk-l
Disk/dev/hda:9663MB,9663676416bytes
255heads,63sectors/track,1174cylinders
Units=cylindersof16065*512=8225280bytes
DeviceBootStartEndBlocksIdSystem
/dev/hda1*11310439183Linux
/dev/hda21491372292508eLinuxLVM
Disk/dev/dm-0:6308MB,6308233216bytes
255heads,63sectors/track,766cylinders
Units=cylindersof16065*512=8225280bytes
Disk/dev/dm-0doesn'tcontainavalidpartitiontable
Disk/dev/dm-1:1073MB,1073741824bytes
255heads,63sectors/track,130cylinders
Units=cylindersof16065*512=8225280bytes
Disk/dev/dm-1doesn'tcontainavalidpartitiontable
[root@test01~]#
(2)开始分区
[root@test01~]#fdisk/dev/hda
过程如下,将扩展的空间分成一个区。