LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 06-22-2011, 08:30 AM   #1
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Question 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.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 06-22-2011, 08:56 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,135

Rep: Reputation: 6464Reputation: 6464Reputation: 6464Reputation: 6464Reputation: 6464Reputation: 6464Reputation: 6464Reputation: 6464Reputation: 6464Reputation: 6464Reputation: 6464
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
 
Old 06-22-2011, 09:42 AM   #3
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
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

Last edited by mesiol; 06-22-2011 at 10:34 AM.
 
2 members found this post helpful.
Old 06-22-2011, 10:37 AM   #4
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Original Poster
Rep: Reputation: 107Reputation: 107
Thumbs up

Quote:
Originally Posted by mesiol View Post
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.

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.
 
Old 06-04-2013, 03:41 AM   #5
anish699
LQ Newbie
 
Registered: Jun 2013
Posts: 1

Rep: Reputation: Disabled
how can we recognize if it is a three way mirror or raid5 configuration???
 
Old 06-04-2013, 09:32 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,135

Rep: Reputation: 6464Reputation: 6464Reputation: 6464Reputation: 6464Reputation: 6464Reputation: 6464Reputation: 6464Reputation: 6464Reputation: 6464Reputation: 6464Reputation: 6464
Quote:
Originally Posted by anish699 View Post
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???
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Veritas Volume Manager / Cluster software ? mail4vijay Linux - General 4 01-18-2011 08:25 AM
Veritas volume manager arunkalathi Linux - Enterprise 8 06-24-2010 01:33 PM
how to replace a disk in veritas mirrored volume mayrus9 Red Hat 1 05-20-2010 07:09 AM
Veritas Volume manager encapsulation UltraSoul Solaris / OpenSolaris 4 12-11-2008 08:43 PM
Trying to install Veritas volume manager on Centos bbolin Linux - Software 5 07-24-2006 06:40 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 07:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration