如何将之前删除的物理卷添加回卷组?

如何将之前删除的物理卷添加回卷组?

从机器中删除物理卷并将物理卷返回到机器后,该物理卷将被忽略并出现以下消息:

[root@emma ~]# pvscan
  WARNING: VG vg001 was previously updated while PV /dev/sdc was missing.
  WARNING: VG vg001 was missing PV /dev/sdc HeNyWe-Efmc-Lb0R-L8w5-nVp7-aPSs-Ntbs0Z.

如何将物理卷添加回卷组?

答案1

要将物理卷添加回逻辑卷,请vgextend --restoremissing按以下步骤运行。

[root@emma ~]# vgextend --restoremissing vg001 /dev/sdc
  WARNING: VG vg001 was previously updated while PV /dev/sdc was missing.
  WARNING: VG vg001 was missing PV /dev/sdc HeNyWe-Efmc-Lb0R-L8w5-nVp7-aPSs-Ntbs0Z.
  WARNING: VG vg001 was previously updated while PV /dev/sdc was missing.
  Volume group "vg001" successfully extended

来源:https://bugzilla.redhat.com/show_bug.cgi?id=1741276

相关内容