AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
Expand all | Collapse all

LV Striping

  • 1.  LV Striping

    Posted Tue December 09, 2008 09:56 PM

    Originally posted by: SystemAdmin


    Hi !
    Im traing to change a LV to a stripe LV.
    I have 5 disks of 952PPs and I need the LV of 4728PPs.

    The stripe size is of 128K .

    When I try mklv I get that the -u or -C have to be even number ....

    Do I have to add 1 disk or 3 disks ... to have 8 ... and 128 is multiple of 8 ??

    Thanks in advance for any help.

    Alan
    #AIX-Forum


  • 2.  Re: LV Striping

    Posted Wed December 10, 2008 09:10 AM

    Originally posted by: tony.evans


    Please show us an lsvg -p <vgname> and the command you're running.
    #AIX-Forum


  • 3.  Re: LV Striping

    Posted Wed December 10, 2008 09:19 AM

    Originally posted by: SystemAdmin


    Thanks for your answer !!

    1. lsvg -p vg02
    vg02:
    PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
    hdiskpower23 active 952 0 00..00..00..00..00
    hdiskpower24 active 952 0 00..00..00..00..00
    hdiskpower25 active 952 0 00..00..00..00..00
    hdiskpower26 active 952 0 00..00..00..00..00
    hdiskpower27 active 952 31 00..00..00..00..31

    I already try :
    mklv -ylvoralog -S128K -C4 vg02 4728
    mklv -ylvoralog -S128K -C5 vg02 4728

    mklv -ylvoralog -S128K vg02 4728
    mklv -ylvoralog -S128K -u5 vg02 4728

    Thanks again ...

    Alan
    #AIX-Forum


  • 4.  Re: LV Striping

    Posted Wed December 10, 2008 09:58 AM

    Originally posted by: tony.evans


    You have 31 free PP's in your volume group, not sure why you expect AIX to create a logical volume of 4728 PP's in size when there's no space?
    #AIX-Forum


  • 5.  Re: LV Striping

    Posted Wed December 10, 2008 10:06 AM

    Originally posted by: SystemAdmin


    Sorry ... I forgot to tell ...
    I remove this LV and recreate it ... this is the actual state .. ..
    So I make rmlv and then .. the mklv
    sorry

    ;)
    #AIX-Forum


  • 6.  Re: LV Striping

    Posted Wed December 10, 2008 10:29 AM

    Originally posted by: tony.evans


    Ok, and can you copy and paste the command and the exact error message.
    #AIX-Forum


  • 7.  Re: LV Striping

    Posted Wed December 10, 2008 12:36 PM

    Originally posted by: SystemAdmin


    mmm I dont have the error where ask me to select an even number of disks ...
    but ..
    1. mklv -ylvoralog -S128K -u4 vg02 4728
    0516-1043 lquerypv: There are not enough physical volumes to create a
    striped logical volume.
    0516-822 mklv: Unable to create logical volume.
    so ... if I use -u5 I get an error saying me to use an even number of disks.

    Thanks !!

    Alan
    #AIX-Forum


  • 8.  Re: LV Striping

    Posted Wed December 10, 2008 02:40 PM

    Originally posted by: SystemAdmin


    I would suggest adding the option -C4 and see if that helps.
    #AIX-Forum


  • 9.  Re: LV Striping

    Posted Wed December 10, 2008 02:43 PM

    Originally posted by: SystemAdmin


    I would suggest adding the option -C4 and see if that helps.

    i.e.

    mklv -ylvoralog -S128K -C4 -u4 vg02 4728
    #AIX-Forum


  • 10.  Re: LV Striping

    Posted Wed December 10, 2008 03:09 PM

    Originally posted by: SystemAdmin


    but ...
    with 4 i dont get the 4728 ...
    and with 5 it asks for even number of disks ...

    and IBM ask me for the error code .. mmm I dont have it
    #AIX-Forum


  • 11.  Re: LV Striping

    Posted Wed December 10, 2008 04:19 PM

    Originally posted by: SystemAdmin


    I'm not sure it's a question of an even number of disks.
    I think the issue is that the "-u" option must be an even multiple of the "-C" option.
    #AIX-Forum


  • 12.  Re: LV Striping

    Posted Wed December 10, 2008 10:54 PM

    Originally posted by: tomkiat


    I usualy use hardware striping like RAID 10 and leave it to SAN to handle it. i also assume u are doing this for performance reasons right?
    #AIX-Forum


  • 13.  Re: LV Striping

    Posted Fri December 12, 2008 05:37 AM

    Originally posted by: andycor


    The problem here is not with the number of disks but with the number of PPs. The system is expecting a number of PPs multiple with the number of disks.

    Try the following:

    mklv -ylvoralog -S128K -C5 vg02 4730

    Regards.
    Andres Cordoba.
    #AIX-Forum