其他分享
首页 > 其他分享> > lvdisplay command shows LV Status as NOT available

lvdisplay command shows LV Status as NOT available

作者:互联网

lvdisplay command shows LV Status as NOT available

 SOLUTION VERIFIED - Updated October 17 2019 at 6:22 AM -  English 

Environment

Issue

Raw
# lvdisplay
  --- Logical volume ---
  LV Path               /dev/testvg/mylv
  LV Name                mylv
  VG Name                testvg
  LV UUID                1O-axxx-dxxx-qxx-xxxx-pQpz-C
  LV Write Access        read/write
  LV Status              NOT available  <==========
  LV Size                100.00 GiB
  Current LE             25600
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto

Resolution

Raw
  # lvchange -ay /dev/testvg/mylv

Root Cause

Diagnostic Steps

Raw
 #  lvs_-a_-o_lv_tags_devices_--config_global_locking_type_0 
  WARNING: Locking disabled. Be careful! This could corrupt your metadata.
  Volume group tibco_vg01 is exported
  LV                      VG             Attr       LSize        Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert LV Tags Devices                                          
  mylv            testvg              -wi------  100.00g                                                                                    /dev/mapper/mpathc                            
                                              |
                                              |----- here it will show ‘-wi-a’ if the lv is in active state

标签:Status,available,lvdisplay,mylv,testvg,LV,lv
来源: https://www.cnblogs.com/yaoyangding/p/16319249.html