歷史庫周末維護擴充磁盤空間,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