我最近将LVMarrays从一台服务器移到另一台服务器。 当我尝试用pvscan / vgscan重新创buildlvmtab时,它成功find了我的3个磁盘,但不重新创buildlvm选项卡。
# 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。
有任何想法吗?
lvchange -ay /dev/vg0/opt
音量没有激活,用这个命令实际上激活它。