終于還是找到了.現在將執行代碼貼出來.希望對大家有幫助!
[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| 主站蜘蛛池模板: 古丈县| 常宁市| 浏阳市| 璧山县| 华池县| 奉节县| 新干县| 宿松县| 姚安县| 河北区| 宕昌县| 冕宁县| 大兴区| 商城县| 扶绥县| 麻栗坡县| 个旧市| 揭西县| 怀远县| 丽水市| 毕节市| 鸡泽县| 孝感市| 彰化市| 三门县| 青浦区| 泉州市| 江门市| 宜良县| 昂仁县| 中江县| 博罗县| 大庆市| 台东县| 康保县| 远安县| 佛山市| 许昌县| 师宗县| 孟津县| 新田县|