历史库周末维护扩充磁盘空间,linux 服务器重启后原本用于数据备份用的lvm 提示挂载失败,pvdisplay、vgdisplay、lvdisplay显示均正常,手动扫描lvm 提示挂载失败的lvm状态为inactive
# lvscan
ACTIVE ‘/dev/ol/swap‘ [64.00 GiB] inherit
ACTIVE ‘/dev/ol/root‘ [<679.18 GiB] inherit
inactive ‘/dev/vg_orabak/lv_orabak‘ [<2.00 TiB] inherit
手动激活vg ,重新扫描状态恢复正常
#vgchange -ay vg_orabak
1 logical volume(s) in volume group "vg_orabak" now active
#lvscan
ACTIVE ‘/dev/ol/swap‘ [64.00 GiB] inherit
ACTIVE ‘/dev/ol/root‘ [<679.18 GiB] inherit
ACTIVE ‘/dev/vg_orabak/lv_orabak‘ [<2.00 TiB] inherit
文件系统挂载正常,记录之
/dev/mapper/vg_orabak-lv_orabak 2.0T 254G 1.8T 13% /backup