在VMWare中增加虚拟磁盘不会显示新的空间在LVM中可用

在VMWare ESXi 4.1虚拟机上,我将虚拟高清的大小从79GB提高到了100GB

http://screencast.com/t/j6Y2SmLES3P7

之后,我已经重新启动虚拟机,但是当我去虚拟机

[root@linxuph53]# vgdisplay --- Volume group --- VG Name vg_linuxph53 System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 4 VG Access read/write VG Status resizable MAX LV 0 Cur LV 3 Open LV 3 Max PV 0 Cur PV 1 Act PV 1 VG Size 79.50 GiB PE Size 32.00 MiB Total PE 2544 Alloc PE / Size 2544 / 79.50 GiB Free PE / Size 0 / 0 VG UUID Y269kC-3Jzh-hSHz-Jgwv-lkVO-K69T-mzrqaZ 

我没有看到我有新的UNALLOCATED空间,所以技术上我不能展开我的/ home分区

  --- Logical volume --- LV Name /dev/vg_linuxph53/lv_home VG Name vg_linuxph53 LV UUID bWrIb2-ek2G-2G3Y-a6kA-8nnB-8fM4-6OenbJ LV Write Access read/write LV Status available # open 1 LV Size 35.16 GiB Current LE 1125 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:2 

有任何想法吗?

我重新启动虚拟机并运行fdisk -l后

这就是我所看到的

  [root@linxuph53 semenov]# fdisk -l Disk /dev/sda: 107.4 GB, 107374182400 bytes 255 heads, 63 sectors/track, 13054 cylinders, total 209715200 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00074e78 Device Boot Start End Blocks Id System /dev/sda1 * 2048 1026047 512000 83 Linux /dev/sda2 1026048 167772159 83373056 8e Linux LVM Disk /dev/dm-0: 41.3 GB, 41305505792 bytes 255 heads, 63 sectors/track, 5021 cylinders, total 80674816 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/dm-0 doesn't contain a valid partition table Disk /dev/dm-1: 6308 MB, 6308233216 bytes 255 heads, 63 sectors/track, 766 cylinders, total 12320768 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/dm-1 doesn't contain a valid partition table Disk /dev/dm-2: 37.7 GB, 37748736000 bytes 255 heads, 63 sectors/track, 4589 cylinders, total 73728000 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/dm-2 doesn't contain a valid partition table 

谢谢,德米特里

您可能需要重新启动VM才能重新读取分区表。 您可以尝试partprobe命令来查看是否反映了fdisk -l输出的更改,但是重新引导应该可以修复它。