This is an old revision of the document!


lvm commands

show physical volume

pvdisplay
pvdisplay -m
pvdisplay -C
 lvs -o +devices
LV                                   VG                                              Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices
6a8853c1-b0d5-86a0-5580-5447327106cd XSLocalEXT-6a8853c1-b0d5-86a0-5580-5447327106cd -wi-ao---- 29.96g                                                     /dev/sdb(0),/dev/sdc3(0),/dev/sda(0)
lvs --segments -o +devices
LV                                   VG                                              Attr       #Str Type    SSize  Devices
6a8853c1-b0d5-86a0-5580-5447327106cd XSLocalEXT-6a8853c1-b0d5-86a0-5580-5447327106cd -wi-ao----    3 striped 29.96g /dev/sdb(0),/dev/sdc3(0),/dev/sda(0)

show logical volume groups

vgdisplay

show logical volume

lvdisplay

resize logical volume

resize logical volume

lvextend -l +100%FREE <path to lv e.g./dev/fsilun/lvfsilun>
File descriptor 7 (pipe:[13154434]) leaked on lvextend invocation. Parent PID 3865: bash
  Size of logical volume fsilun/lvfsilun changed from 250.00 GiB (64000 extents) to 1000.00 GiB (256000 extents).
  Logical volume lvfsilun successfully resized

and than resize filesystem

resize2fs -p /dev/fsilun/lvfsilun
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/fsilun/lvfsilun is mounted on /mnt/fsi; on-line resizing required
old desc_blocks = 16, new_desc_blocks = 63
Performing an on-line resize of /dev/fsilun/lvfsilun to 262144000 (4k) blocks.
The filesystem on /dev/fsilun/lvfsilun is now 262144000 blocks long.