C/C++教程

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

  • Red Hat Enterprise Linux
  • lvm

Issue

  • lv status is not available for a lvm volume.
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

  • Activate the lv with lvchange -ay command. Once activated, the LV will show as available.
Raw
  # lvchange -ay /dev/testvg/mylv

Root Cause

  • When a logical volume is not active, it will show as NOT available in lvdisplay.

Diagnostic Steps

  • Check the output of the lvs command and see whether the lv is active or not.
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
这篇关于lvdisplay command shows LV Status as NOT available的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!