- 论坛徽章:
- 0
|
chenyx 发表于 2013-05-23 10:52 ![]()
你需要先将sda4扩容,新增加的可用空间放到sda4里面.这个没实验过.
要不,你直接新增一个虚拟硬盘吧,然后按照 ...
我用cfdisk相当简单而且成功扩容了sda3,新增加了一个10G的sda6,重启机器后,在/dev里也可以看到sda6了
但是pvdisplay里看不到新增加的sda6,少了什么步骤?
[root@PHP-Server ~]# fdisk -l
Disk /dev/sda: 42.9 GB, 42949672960 bytes
64 heads, 32 sectors/track, 40960 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ed2ef
Device Boot Start End Blocks Id System
/dev/sda1 * 2 501 512000 83 Linux
/dev/sda2 502 4501 4096000 82 Linux swap / Solaris
/dev/sda3 * 4502 20480 16362496 8e Linux LVM
/dev/sda4 20481 40960 20971520 5 Extended
/dev/sda5 20481 30720 10485744 83 Linux
/dev/sda6 30721 40960 10485744 83 Linux
[root@PHP-Server ~]# pvdisplay
--- Physical volume ---
PV Name /dev/sda3
VG Name vg_phpserver
PV Size 15.60 GiB / not usable 3.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 3994
Free PE 0
Allocated PE 3994
PV UUID S2cqkt-QpDG-MsEn-kCPX-z3oH-G2C6-uZHReZ
--- Physical volume ---
PV Name /dev/sda5
VG Name vg_phpserver
PV Size 10.00 GiB / not usable 3.98 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 2559
Free PE 59
Allocated PE 2500
PV UUID jvWdEt-seDn-YOsT-DtFt-43pp-3Ksu-Get3BW
[root@PHP-Server ~]# pvdisplay /dev/sda6
No physical volume label read from /dev/sda6
Failed to read physical volume "/dev/sda6" |
|