扩展CentOS7 VM的卷

扩展CentOS7 VM的卷

有一个issabel VM,我通过ESXi将VM硬盘从20G增加到1.07T。

接下来我添加 sda4 分区作为新的 Linux LVM(以下这条路在步骤 22 ),似乎我现在必须使用,vgextend [volume group] /dev/sda4但没有卷组,或者至少,,vgdisplay将显示没有。这里是输出:vgsdh -fVG

fdisk-l:

Disk /dev/sda: 1176.5 GB, 1176477441536 bytes, 2297807503 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 label type: dos
Disk identifier: 0x000c90e0

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      616447      307200   83  Linux
/dev/sda2          616448     4810751     2097152   82  Linux swap / Solaris
/dev/sda3         4810752    41943039    18566144   83  Linux
/dev/sda4        41943040  2297807502  1127932231+  8e  Linux LVM

DF-H:

Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        2.0G     0  2.0G   0% /dev
tmpfs           2.0G     0  2.0G   0% /dev/shm
tmpfs           2.0G  9.0M  2.0G   1% /run
tmpfs           2.0G     0  2.0G   0% /sys/fs/cgroup
/dev/sda3        18G  3.3G   14G  21% /
/dev/sda1       283M  118M  147M  45% /boot
tmpfs           396M     0  396M   0% /run/user/0

pv显示:

 "/dev/sda4" is a new physical volume of "1.05 TiB"
      --- NEW Physical volume ---
      PV Name               /dev/sda4
      VG Name
      PV Size               1.05 TiB
      Allocatable           NO
      PE Size               0
      Total PE              0
      Free PE               0
      Allocated PE          0


vgdisplay:
vgs:
lvdisplay:

我将 sda4 从 83 更改为 8e。

我应该怎么做才能延长?

相关内容