Quantcast
Channel: Welcome to Andy's Blog
Viewing all articles
Browse latest Browse all 10

build linux LVM using stripe

$
0
0

 

pvcreate /dev/xvd{b,c}

vgcreate  datavg /dev/xvd{b,c}
lvcreate -i 2 -n datalv -l 100%FREE datavg
mkfs.ext4 -m0 /dev/mapper/datavg-datalv
e2label /dev/mapper/datavg-datalv data

 

root@es-1:~# lvs --segments
  LV     VG     Attr   #Str Type    SSize
  datalv datavg -wi-a-    2 striped 305.14g
 
root@es-1:~# lvdisplay -vm
    Finding all logical volumes
  --- Logical volume ---
  LV Name                /dev/datavg/datalv
  VG Name                datavg
  LV UUID                KystOd-KvuY-iXBd-nmY8-YXNM-kaWU-bd76no
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                305.14 GiB
  Current LE             78116
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     512
  Block device           252:0
 
  --- Segments ---
  Logical extent 0 to 78115:
    Type striped
    Stripes 2
    Stripe size 64.00 KiB
    Stripe 0:
      Physical volume /dev/xvdb
      Physical extents 0 to 39057
    Stripe 1:
      Physical volume /dev/xvdc
      Physical extents 0 to 39057

 

https://sysadmincasts.com/episodes/27-lvm-linear-vs-striped-logical-volumes


Viewing all articles
Browse latest Browse all 10

Trending Articles