Jump to content

Linux Administration/Devices and Filesystems/LVM/lvdisplay

From Wikiversity

lvdisplay [1] allows to Display information about a logical volume (LV) and it is part of Linux LVM implementation.

# lvdisplay With no arguments will display all your LVs.

# lvdisplay /dev/vg0/lv-0
  --- Logical volume ---
  LV Path                /dev/vg0/lv-0
  LV Name                lv-0
  VG Name                vg0
  LV UUID                zzv20D-ITew-Bsgb-dGto-Vw7s-mhVf-QtS7f
  LV Write Access        read/write
  LV Creation host, time you_ubuntu-server, 2019-01-24 07:56:13 +0400
  LV Status              available
  # open                 1
  LV Size                <1.82 TiB
  Current LE             476934
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
Allocation inherit applies the VG policy to an LV. See vgdisplay.


# lvdisplay /dev/vg01/lvol12
--- Logical volumes ---
LV Name                     /dev/vg01/lvol12
VG Name                     /dev/vg01
LV Permission               read/write
LV Status                   available/syncd
Mirror copies               0
Consistency Recovery        MWC
Schedule                    parallel
LV Size (Mbytes)            1024
Current LE                  32
Allocated PE                32
Stripes                     0
Stripe Size (Kbytes)        0
Bad block                   on
Allocation                  strict
IO Timeout (Seconds)        default

Activities

[edit | edit source]
  1. Use lvdisplay to review your LV configurations
  2. Change Allocation policy: lvchange --alloc inherit YOUR_LV_NAME[2]. Options: contiguous|cling|cling_by_tags|normal|anywhere|inherit

See also

[edit | edit source]
  1. http://man7.org/linux/man-pages/man8/lvdisplay.8.html
  2. http://man7.org/linux/man-pages/man8/lvchange.8.html#OPTIONS