• 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 - 

    Environment

    • Red Hat Enterprise Linux
    • lvm

    Issue

    • lv status is not available for a lvm volume.
    # 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.
      # 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.
     #  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
  • 相关阅读:
    树上路径(树链剖分)
    P4178 Tree(点分治)
    P2146 [NOI2015] 软件包管理器(树链剖分)
    P1903 [国家集训队]数颜色 / 维护队列 (带修莫队)
    poj1182 食物链(带权并查集)
    poj3026 Borg Maze(bfs+prim)
    最佳牛围栏(二分)
    串(dp)
    POJ1258 Agri-Net
    POJ2031 Building a Space Station(prim)
  • 原文地址:https://www.cnblogs.com/yaoyangding/p/16319249.html
Copyright © 2020-2023  润新知