LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   How to see whether we have mirrored disks in Veritas Volume Manager (https://www.linuxquestions.org/questions/solaris-opensolaris-20/how-to-see-whether-we-have-mirrored-disks-in-veritas-volume-manager-887732/)

vikas027 06-22-2011 08:30 AM

How to see whether we have mirrored disks in Veritas Volume Manager
 
Hi All,

I am using VxVM 5.0 on Solaris 10u9 64 Bit.

I am new to Veritas Volume Manager (VxVM) and just created two volumes in mirror (RAID-1).

c1t3d0s2 auto:cdsdisk disk01 dg2 online
c1t4d0s2 auto:cdsdisk disk02 dg2 online


Now, I need to know is there any command to see whether these two VM Disks are mirrored or not.

I am looking for something like cat /proc/mdstat in Linux Software RAID which clearly shows what disks are in RAID and how.


Please find the below logs.
Code:

bash-3.00# vxdisk -o alldgs list
DEVICE      TYPE            DISK        GROUP        STATUS
c1t0d0s2    auto:none      -            -            online invalid
c1t1d0s2    auto:cdsdisk    -            -            online
c1t2d0s2    auto:cdsdisk    -            -            online
c1t3d0s2    auto:cdsdisk    disk01      dg2          online
c1t4d0s2    auto:cdsdisk    disk02      dg2          online
-            -        disk03      dg2          removed was:c1t2d0s2
bash-3.00#

bash-3.00# vxprint -hft
Disk group: dg2

DG NAME        NCONFIG      NLOG    MINORS  GROUP-ID
ST NAME        STATE        DM_CNT  SPARE_CNT        APPVOL_CNT
DM NAME        DEVICE      TYPE    PRIVLEN  PUBLEN  STATE
RV NAME        RLINK_CNT    KSTATE  STATE    PRIMARY  DATAVOLS  SRL
RL NAME        RVG          KSTATE  STATE    REM_HOST REM_DG    REM_RLNK
CO NAME        CACHEVOL    KSTATE  STATE
VT NAME        RVG          KSTATE  STATE    NVOLUME
V  NAME        RVG/VSET/CO  KSTATE  STATE    LENGTH  READPOL  PREFPLEX UTYPE
PL NAME        VOLUME      KSTATE  STATE    LENGTH  LAYOUT    NCOL/WID MODE
SD NAME        PLEX        DISK    DISKOFFS LENGTH  [COL/]OFF DEVICE  MODE
SV NAME        PLEX        VOLNAME  NVOLLAYR LENGTH  [COL/]OFF AM/NM    MODE
SC NAME        PLEX        CACHE    DISKOFFS LENGTH  [COL/]OFF DEVICE  MODE
DC NAME        PARENTVOL    LOGVOL
SP NAME        SNAPVOL      DCO
EX NAME        ASSOC        VC                      PERMS    MODE    STATE
SR NAME        KSTATE

dg dg2          default      default  7000    1308669518.14.vxvm

dm disk01      c1t3d0s2    auto    65536    6213376  -
dm disk02      c1t4d0s2    auto    65536    8310528  -
dm disk03      -            -        -        -        REMOVED

v  vol01        -            ENABLED  ACTIVE  5120000  SELECT    -        fsgen
pl vol01-01    vol01        ENABLED  ACTIVE  5120000  CONCAT    -        RW
sd disk01-01    vol01-01    disk01  0        5120000  0        c1t3d0  ENA
pl vol01-02    vol01        ENABLED  ACTIVE  5120000  CONCAT    -        RW
sd disk02-01    vol01-02    disk02  0        5120000  0        c1t4d0  ENA
bash-3.00#

bash-3.00# vxdg -g dg2 free
DISK        DEVICE      TAG          OFFSET    LENGTH    FLAGS
disk01      c1t3d0s2    c1t3d0      5120000  1093376  -
disk02      c1t4d0s2    c1t4d0      5120000  3190528  -

Please help.
Thanks in advance.

TB0ne 06-22-2011 08:56 AM

As you asked about Veritas in other threads, you know that it's a licensed product. Since you've got it and are using it, you've got access to the Veritas knowledgebase on their website, as well as their phone support. You can call them for help. And did you try to look this up in the Veritas docs???

Status of volumes:
# vxinfo -g mydisk_group

Status of volumes and plexes:
# vxinfo -p -g mydisk_group

Status of all volume manager objects:
# vxprint -Ath

mesiol 06-22-2011 09:42 AM

Hi,

a diskgrup in veritas contains volumes, each volume having more than 1 plex
Code:

vxprint -htg $DISKGROUP | grep ^pl
will be a mirrored volume. VxVM mirrors are not limited to 2 disk per mirror, it is possible to have more.

As you can see your volume containts 2 plexes so they are mirrored.

Code:

v  vol01        -            ENABLED  ACTIVE  5120000  SELECT    -        fsgen
pl vol01-01    vol01        ENABLED  ACTIVE  5120000  CONCAT    -        RW
sd disk01-01    vol01-01    disk01  0        5120000  0        c1t3d0  ENA
pl vol01-02    vol01        ENABLED  ACTIVE  5120000  CONCAT    -        RW
sd disk02-01    vol01-02    disk02  0        5120000  0        c1t4d0  ENA


vikas027 06-22-2011 10:37 AM

Quote:

Originally Posted by mesiol (Post 4392832)
Hi,

a diskgrup in veritas contains volumes, each volume having more than 1 plex
Code:

vxprint -htg $DISKGROUP | grep ^pl
will be a mirrored volume.

As you can see your volume containts 2 plexes so they are mirrored.

Code:

v  vol01        -            ENABLED  ACTIVE  5120000  SELECT    -        fsgen
pl vol01-01    vol01        ENABLED  ACTIVE  5120000  CONCAT    -        RW
sd disk01-01    vol01-01    disk01  0        5120000  0        c1t3d0  ENA
pl vol01-02    vol01        ENABLED  ACTIVE  5120000  CONCAT    -        RW
sd disk02-01    vol01-02    disk02  0        5120000  0        c1t4d0  ENA


Aha, yes I should have given a thought to this. Now, I find this a silly question. :o

Thanks a ton mesiol. I will get back to you if in case I need more help.

Many thanks for the useful commands TB0ne. This is my first day with VxVM.

anish699 06-04-2013 03:41 AM

how can we recognize if it is a three way mirror or raid5 configuration???

TB0ne 06-04-2013 09:32 AM

Quote:

Originally Posted by anish699 (Post 4965022)
how can we recognize if it is a three way mirror or raid5 configuration???

Please don't reopen old threads..this has been closed for two years. Also, don't hijack someone elses thread with your own question...start your own thread.

And as was said to the original poster, Veritas is a commercial product...have you contacted them for support? Did you bother to try the vxprint/vxinfo commands? Read the man pages on them, to see what they can give you???


All times are GMT -5. The time now is 11:32 PM.