How to determine a VxVM Mirror

Ask a Question related to Sun Solaris, Design and Development.

  1. #1

    Default How to determine a VxVM Mirror

    Hi,

    I am looking for a "quick" way to determine if a VxVM Volume is
    Mirrored?

    I'm thinking along the lines 'vxprint -h -g grpname -v volname | nawk
    ....', the logic would be something like :

    # START
    count=0
    if this is not a RAID 5 Volume
    then
    for each plex
    if the plex is not a log plex
    then
    count=count+1
    end if
    end for
    end if

    if count > 1
    then
    print "this is a volume is mirrored"
    end if
    # END

    Then of course we get into checking plex states and....

    Somebody, somewhere must have already written this?

    Any advice greatfully recieved (to save me some time).

    Cheers

    Kevin
    Kevin Guest

  2. Similar Questions and Discussions

    1. mirror
      Hi all, I want an urgent help from anyone in this whole world...PLEASE.. I created mirrors in max but when i am in director through w3d format...
    2. Mirror effect
      Hi guys, I'm in the middle of designing an architectural walkthrough and want to add mirrors to the bathrooms of the house.... Is it possible...
    3. How to get installed version of Veritas vxvm?
      Is there a Veritas volume manager command that returns the version that is currently installed? On Solaris, pkginfo will return the version info,...
    4. Mirror mirror on the wall.
      Is there a way to flip and image around kinda like a mirror effect?
    5. VxVM / VxFS 3.5 vxlicrep
      Schmuck <yamahasw40@latinmail.com> wrote: Nothing should happen. You should be able to simply remove the demo licenses. You can do that...
  3. #2

    Default Re: How to determine a VxVM Mirror

    Kevin <kevin.hickman@sainsburys.co.uk> wrote:
    > Hi,
    > I am looking for a "quick" way to determine if a VxVM Volume is
    > Mirrored?
    > I'm thinking along the lines 'vxprint -h -g grpname -v volname | nawk
    > ...', the logic would be something like :
    > # START
    > count=0
    > if this is not a RAID 5 Volume
    > then
    > for each plex
    > if the plex is not a log plex
    > then
    > count=count+1
    > end if
    > end for
    > end if
    > if count > 1
    > then
    > print "this is a volume is mirrored"
    > end if
    > # END
    > Then of course we get into checking plex states and....
    Yup... That's pretty annoying. In addition, you have to check if a plex
    is sparse, and that the plexes cover all the blocks in the volume. (at
    least I've been bitten by thinking a volume was fully mirrored but it
    wasn't).
    > Somebody, somewhere must have already written this?
    I haven't come across it, but it's possible.

    You might check the veritas-vx archives at
    [url]http://mailman.eng.auburn.edu/mailman/listinfo/veritas-vx/[/url]

    If you write it yourself, the following pieces of information from
    vol_pattern might be useful for parsing...

    v_pl_num or v_nplex
    A number representing the number of plexes associ-
    ated with the volume.

    v_pl_name or v_plex or v_plexes
    The set of plex names that are associated with the
    volume.

    pl_compact
    A boolean value that is true if the plex is com-
    pact. A plex is compact if its entire length is
    mapped by subdisks, leaving no holes. Note that
    the length of a plex is computed as the length to
    the end of the last block in the plex address
    space that is mapped by a subdisk.

    --
    Darren Dunham [email]ddunham@taos.com[/email]
    Unix System Administrator Taos - The SysAdmin Company
    Got some Dr Pepper? San Francisco, CA bay area
    < This line left intentionally blank to confuse you. >
    Darren Dunham Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139