[linux-lvm] linear to stripes

Ulrich Leodolter ulrich at lab1.psy.univie.ac.at
Thu Dec 1 11:59:15 UTC 2005


Hello,

Is it possible to change an existing logical volume to use "stripes" ?

Below ist the output from "lvdisplay -m /dev/vg1/data"
There are only hundreds of free PE on both physical volumes 
(/dev/sda3,/dev/sdb3)
Theortically it should be possible by using a series of pvmove commands

pvmove /dev/sda3:0 /dev/sdb3:<free PE>
pvmove /dev/sdb3:0 /dev/sda3:0
pvmove /dev/sdb3:<free PE> /dev/sdb3:0

pvmove /dev/sda3:2 /dev/sdb3:<free PE>
pvmove /dev/sdb3:2 /dev/sda3:2
pvmove /dev/sdb3:<free PE> /dev/sdb3:2

....

Will that work?
Is this result compareable to

lvceate --stripes 2 -I 9 -L 1T -n data vg1 /dev/sda3 /dev/sdb3"

One difference i see ist that my PE size ist 16384Kb and that maximum
stripe size ist 512Kb.

Thanks


   --- Logical volume ---
   LV Name                /dev/vg1/data
   VG Name                vg1
   LV UUID                MZxsoQ-37nY-NbZu-qk9C-x5Oa-V5d9-L7DFZO
   LV Write Access        read/write
   LV Status              available
   # open                 1
   LV Size                1000.28 GB
   Current LE             64018
   Segments               2
   Allocation             inherit
   Read ahead sectors     0
   Block device           253:0

   --- Segments ---
   Logical extent 0 to 31249:
     Type                linear
     Physical volume     /dev/sda3
     Physical extents    0 to 31249

   Logical extent 31250 to 64017:
     Type                linear
     Physical volume     /dev/sdb3
     Physical extents    0 to 32767

-- 
Ulrich Leodolter





More information about the linux-lvm mailing list