LVM2:vgscan 無法重新建立 lvmtab

LVM2:vgscan 無法重新建立 lvmtab

我最近將 LVM 陣列從一台伺服器移至另一台伺服器。當我嘗試使用 pvscan/vgscan 重新建立 lvmtab 時,它成功找到了我的 3 個磁碟,但不重新建立 lvm 標籤。

# pvscan -v
Wiping cache of LVM-capable devices
Wiping internal VG cache
Walking through all physical volumes
PV /dev/sdb1   VG vg0   lvm2 [4.00 GiB / 0    free]
PV /dev/sdc1   VG vg0   lvm2 [4.00 GiB / 0    free]
PV /dev/sdd1   VG vg0   lvm2 [4.00 GiB / 0    free]
Total: 3 [11.99 GiB] / in use: 3 [11.99 GiB] / in no VG: 0 [0   ]


# vgscan -v
Wiping cache of LVM-capable devices
Wiping internal VG cache
Reading all physical volumes.  This may take a while...
Finding all volume groups
Finding volume group "vg0"
Found volume group "vg0" using metadata type lvm2


# lvscan -v
Finding all logical volumes
inactive          '/dev/vg0/opt' [11.99 GiB] inherit

最後,我沒有/dev/vg0,也沒有/etc/lvmtab。

有任何想法嗎?

答案1

lvchange -ay /dev/vg0/opt

該卷未激活,使用此命令您實際上可以激活它。

相關內容