Linux中LV Status的状态为NOT available

今天下午有现场反馈备份磁盘找不到了,使用lvm方式的。提供了todesk帮忙看下,

首先使用 blkid查看,确实看不到备份磁盘的UUID,使用lvdisplay查看状态,状态不对了

[root@db1 ~]#  lvdisplay
  --- Logical volume ---
  LV Path                /dev/backupvg/backuplv
  LV Name                backuplv
  VG Name                backupvg
  LV UUID                TNiVC6-WhZv-S8ha-OLOy-pS0A-w0jc-rzEPbO
  LV Write Access        read/write
  LV Creation host, time db1, 2018-09-25 10:29:11 +0800
  LV Status              NOT available
  LV Size                1.95 TiB
  Current LE             511999
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto

  
[root@db1 ~]#   vgchange -ay
  1 logical volume(s) in volume group "backupvg" now active
[root@db1 ~]#   lvdisplay
  --- Logical volume ---
  LV Path                /dev/backupvg/backuplv
  LV Name                backuplv
  VG Name                backupvg
  LV UUID                TNiVC6-WhZv-S8ha-OLOy-pS0A-w0jc-rzEPbO
  LV Write Access        read/write
  LV Creation host, time db1, 2018-09-25 10:29:11 +0800
  LV Status              available
  # open                 0
  LV Size                1.95 TiB
  Current LE             511999
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           251:11
   
[root@db1 ~]#

使用 vgchange -ay一下就ok,太忙了等有空研究啥原因导致的

 

猜你喜欢

转载自blog.csdn.net/kevinyu998/article/details/130714473