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 - EnglishEnvironment
- 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 asavailable
.
# 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
标签:Status,available,lvdisplay,mylv,testvg,LV,lv 来源: https://www.cnblogs.com/yaoyangding/p/16319249.html