lvdisplay command shows LV Status as NOT available
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 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
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments