
最近、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
ボリュームはアクティブ化されていません。このコマンドを使用すると、実際にアクティブ化されます。