how to check mirrorvg or extendvg status - Aix

This is a discussion on how to check mirrorvg or extendvg status - Aix ; Hi, I have a question , if a AIX server has 2 disks in rootvg, how do you know if it's in mirrored or striped state? thanks....

+ Reply to Thread
Results 1 to 6 of 6

Thread: how to check mirrorvg or extendvg status

  1. how to check mirrorvg or extendvg status

    Hi,
    I have a question , if a AIX server has 2 disks in rootvg, how do you
    know if it's in mirrored or striped state? thanks.

  2. Re: how to check mirrorvg or extendvg status

    clay.ye@gmail.com wrote:
    > Hi,
    > I have a question , if a AIX server has 2 disks in rootvg, how do you
    > know if it's in mirrored or striped state? thanks.


    If striped you shold have

    # lsvg -l rootvg
    rootvg:
    LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
    hd5 boot 1 1 1 closed/syncd N/A
    hd6 paging 40 40 1 open/syncd N/A
    hd8 jfs2log 1 1 1 open/syncd N/A
    hd4 jfs2 2 2 1 open/syncd /
    hd2 jfs2 47 47 1 open/syncd /usr
    hd9var jfs2 2 2 1 open/syncd /var
    hd3 jfs2 2 2 1 open/syncd /tmp
    hd1 jfs2 1 1 1 open/syncd /home
    hd10opt jfs2 26 26 1 open/syncd /opt

    Where LPs = PPs

    If mirrored then for each LP you have 2 PP :
    LV NAME TYPE LPs PPs PVs LV STATE MOUNT
    hd5 boot 1 2 1 closed/syncd N/A

    --
    * Alberto Varesio * - /IBM eServer Certified Specialist/
    /S&N Competence Center Application Engineer/
    * SPAZIOSYSTEM S.p.A. * - http://www.spaziosystem.com/
    Tel.: +39 011 19756013 - Cell.: 335 1811324

    Confidential notice: This message and its attachments may contain
    confidential information that is addressed solely to the above person.
    If you have received this message without authorization, delete it
    along with any other copy and inform the sender.
    Please consider your environmental impact before printing this e-mail
    ==
    BOFH Excuse: loop found in loop in redundant loopback

  3. Re: how to check mirrorvg or extendvg status

    On Oct 16, 2:08 am, clay...@gmail.com wrote:
    > Hi,
    > I have a question , if a AIX server has 2 disks in rootvg, how do you
    > know if it's in mirrored or striped state? thanks.


    Striped and mirroring is done on the LV level. So one way is to check
    the output of the lslv command.

    Quick hack
    $ lsvg -o | xargs lsvg -l | tail +3 | awk '{ print $1 }' | xargs -
    tn1 lslv | egrep -i "copies|each|stripe"

    hth
    Hajo

  4. Re: how to check mirrorvg or extendvg status

    On 16 Oct, 09:42, Alberto 'JCN-9000' Varesio
    wrote:
    > clay...@gmail.com wrote:
    > > Hi,
    > > I have a question , *if a AIX server has 2 disks in rootvg, how do you
    > > know if it's in mirrored or striped state? thanks.

    >
    > If striped you shold have
    >
    > # lsvg -l rootvg
    > rootvg:
    > LV NAME * * * * * * TYPE * * * LPs * PPs * PVs *LV STATE * * *MOUNT POINT
    > hd5 * * * * * * * * boot * * * 1 * * 1 * * 1 * *closed/syncd *N/A
    > hd6 * * * * * * * * paging * * 40 * *40 * *1 * *open/syncd * *N/A
    > hd8 * * * * * * * * jfs2log * *1 * * 1 * * 1 * *open/syncd * *N/A
    > hd4 * * * * * * * * jfs2 * * * 2 * * 2 * * 1 * *open/syncd * */
    > hd2 * * * * * * * * jfs2 * * * 47 * *47 * *1 * *open/syncd * */usr
    > hd9var * * * * * * *jfs2 * * * 2 * * 2 * * 1 * *open/syncd * */var
    > hd3 * * * * * * * * jfs2 * * * 2 * * 2 * * 1 * *open/syncd * */tmp
    > hd1 * * * * * * * * jfs2 * * * 1 * * 1 * * 1 * *open/syncd * */home
    > hd10opt * * * * * * jfs2 * * * 26 * *26 * *1 * *open/syncd * */opt
    >
    > Where LPs = PPs
    >
    > If mirrored then for each LP you have 2 PP :
    > LV NAME * * * * * * TYPE * * * LPs * PPs * PVs *LV STATE * * *MOUNT
    > hd5 * * * * * * * * boot * * * 1 * * 2 * * 1 * *closed/syncd *N/A
    >
    > --
    > * Alberto Varesio * - /IBM eServer Certified Specialist/
    > /S&N Competence Center Application Engineer/
    > * SPAZIOSYSTEM S.p.A. * -http://www.spaziosystem.com/
    > Tel.: +39 011 19756013 - Cell.: 335 1811324
    >
    > Confidential notice: This message and its attachments may contain
    > confidential information that is addressed solely to the above person.
    > If you have received this message without authorization, delete it
    > along with any other copy and inform the sender.
    > Please consider your environmental impact before printing this e-mail
    > ==
    > *BOFH Excuse: loop found in loop in redundant loopback


    A striped lv should be checked at the LV level -

    root:/ [147] # lslv -m stripelv
    stripelv:N/A
    LP PP1 PV1 PP2 PV2 PP3 PV3
    0001 0109 hdisk1
    0002 0109 hdisk2
    0003 0109 hdisk4
    0004 0109 hdisk5
    0005 0110 hdisk1
    0006 0110 hdisk2
    0007 0110 hdisk4
    0008 0110 hdisk5

    As you can see that the LV is striped is over 4 disks. lslv
    will show you more details, like stripe size etc.

    > If mirrored then for each LP you have 2 PP :
    > LV NAME TYPE LPs PPs PVs LV STATE MOUNT
    > hd5 boot 1 2 1 closed/syncd N/A


    With the above example, you are looking at the LP,PP and PV fields.
    The above example is correct but BAD practice - the above is saying
    that I have 2 physical partitions (copies) of a logical partition
    (hd5) but on the same disk (PV). If that disk becomes unavailable, you
    will lose BOTH copies. To make sure that your data is mirrored across
    both disks the above example should look like:

    LV NAME TYPE LPs PPs PVs LV STATE MOUNT
    hd5 boot 1 2 2 closed/syncd N/A

    NOTE: The PV count is 2 i.e 2 disk mirror

    Alberto,
    Check the host you ran this on....

    HTH,
    Duncan

  5. Re: how to check mirrorvg or extendvg status

    Duncs wrote:
    [..snip..]
    > Alberto,
    > Check the host you ran this on....


    everything correct, I just manually faked the report
    not having a mirrored system

  6. Re: how to check mirrorvg or extendvg status

    On Oct 16, 8:32*am, Alberto 'JCN-9000' Varesio
    wrote:
    > Duncs wrote:
    >
    > [..snip..]
    >
    > > Alberto,
    > > Check the host you ran this on....

    >
    > everything correct, I just manually faked the report
    > not having a mirrored system


    got it, thanks everyone for the answer.

+ Reply to Thread