linux 服务器重启后lvm 变成inactive状态解决

 历史库周末维护扩充磁盘空间,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

linux 服务器重启后lvm 变成inactive状态解决

上一篇:Mapillary Vistas数据集的label读取的坑,对比opencv和PIL读取图像的差异


下一篇:Win10上Docker无法正常启动 出现install WSL2 kernel update的情况