終于還是找到了.現在將執行代碼貼出來.希望對大家有幫助!
[root@localhost ~]# fdisk /dev/hda3
The number of cylinders for this disk is set to 3916.
There is nothing wrong with that, but this is larger than 1024,and could in certain setups cause problems with:1) software that runs at boot time (e.g., old versions of LILO)2) booting and partitioning software from other OSs(e.g., DOS FDISK, OS/2 FDISK)Command (m for help): pDisk /dev/hda4: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDisk identifier: 0×000bc363Device Boot Start End Blocks Id System
/dev/hda1 * 1 25 200781 83 Linux/dev/hda2 26 1958 15526822+ 8e Linux LVM/dev/hda3 1959 2610 5237190 8e Linux LVMCommand (m for help): n
Command actione extendedp primary partition (1-4)Selected partition 4First cylinder (2611-3916, default 2611):Using default value 2611Last cylinder or +size or +sizeM or +sizeK (2611-3916, default 3916):Using default value 3916Command (m for help): t
Partition number (1-4): 4Hex code (type L to list codes): 8eChanged system type of partition 4 to 8e (Linux LVM)Command (m for help): p
Disk /dev/hda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDisk identifier: 0×000bc363Device Boot Start End Blocks Id System
/dev/hda1 * 1 25 200781 83 Linux/dev/hda2 26 1958 15526822+ 8e Linux LVM/dev/hda3 1959 2610 5237190 8e Linux LVM/dev/hda4 2611 3916 10490445 8e Linux LVMCommand (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.Syncing disks.(注:建議重啟一下CentOS系統)
[root@localhost ~]# pvcreate /dev/hda3
Physical volume “/dev/hda4″ successfully created[root@localhost ~]# vgextend VolGroup00 /dev/hda3Volume group “VolGroup00″ successfully extended[root@localhost ~]# lvextend -l +100%FREE /dev/VolGroup00/LogVol00Extending logical volume LogVol00 to 28.25 GBLogical volume LogVol00 successfully resized[root@localhost ~]# lvresize -l +100%FREE /dev/VolGroup00/LogVol00New size (904 extents) matches existing size (904 extents)lvresize: Resize a logical volumelvresize
[-A|--autobackup y|n][--alloc AllocationPolicy][-d|--debug][-h|--help][-i|--stripes Stripes [-I|--stripesize StripeSize]]{-l| 主站蜘蛛池模板: 中牟县| 江安县| 方正县| 平凉市| 镇赉县| 嘉兴市| 崇仁县| 富宁县| 藁城市| 涞水县| 镇宁| 宜丰县| 辉县市| 平顶山市| 上犹县| 定西市| 大余县| 横山县| 莱芜市| 永靖县| 五华县| 疏附县| 黄梅县| 永福县| 华坪县| 铜川市| 正宁县| 陕西省| 增城市| 石台县| 太原市| 巍山| 桑日县| 宝鸡市| 静乐县| 水城县| 轮台县| 大城县| 临朐县| 江山市| 那曲县|