![在 ubuntu 客户机 vmware 中增加磁盘大小的问题](https://linux22.com/image/661619/%E5%9C%A8%20ubuntu%20%E5%AE%A2%E6%88%B7%E6%9C%BA%20vmware%20%E4%B8%AD%E5%A2%9E%E5%8A%A0%E7%A3%81%E7%9B%98%E5%A4%A7%E5%B0%8F%E7%9A%84%E9%97%AE%E9%A2%98.png)
已关注关联
我试图增加分配给 vmware 中的 ubuntu guest 的磁盘大小,下面是我已经完成的事情
Increased max setting in vmware settings - Done
Partition the new disk space - Done
fdisk /dev/sda
created primary partion
changed system type of partition 4 to 8e (Linux LVM)
scaning
root@ubuntu:~# partprobe -s
/dev/sda: msdos partitions 1 3 2 <5> 4
3.增加逻辑卷
root@ubuntu:~# pvcreate /dev/sda4
物理卷“/dev/sda4”已成功创建
4.这是主要问题
root@ubuntu:~# vgdisplay
No volume groups found
expected :-
root@ubuntu:~# vgdisplay
--- Volume group ---
VG Name ubuntu
xxxxx xxxxxx
还尝试了 pvdisplay,它没有提供 vg-name,但是为什么 ??????
root@ubuntu:~# pvdisplay
"/dev/sda4" is a new physical volume of "14.00 GiB"
--- NEW Physical volume ---
PV Name /dev/sda4
VG Name
PV Size 14.00 GiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID syysU7-5XI0-swB9-aOPJ-ur2c-R0Ys-OnPWYf
root@ubuntu:~# fdisk -l
Disk /dev/sda: 36.5 GB, 36507222016 bytes
255 heads, 63 sectors/track, 4438 cylinders, total 71303168 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: 0x000d1d96
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 35127295 17562624 83 Linux
/dev/sda2 35129342 41940991 3405825 5 Extended
/dev/sda3 35127296 35129341 1023 8e Linux LVM
/dev/sda4 41940992 71303167 14681088 8e Linux LVM
/dev/sda5 35129344 41940991 3405824 82 Linux swap / Solaris
知道为什么显示“未找到卷组”