在 ubuntu 客户机 vmware 中增加磁盘大小的问题

在 ubuntu 客户机 vmware 中增加磁盘大小的问题

已关注关联

我试图增加分配给 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

知道为什么显示“未找到卷组”

相关内容