系统相关
首页 > 系统相关> > linux 服务器重启后lvm 变成inactive状态解决

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

标签:ol,orabak,vg,dev,inactive,linux,lvm
来源: https://www.cnblogs.com/li1204008978/p/15213232.html