cancel
Showing results for 
Search instead for 
Did you mean: 

Vol. Mgr - vxdisk Primary v.s. Secondary paths displayed..

Andrew_Cropley
Level 2

Running Solaris 10 - Storage Foundation 5.0

 

Just installed and Encapped Root and mirrored..

 

When we added our array with disks... vxdisk shows  all the disks with c2 being the primary and c3 being the secondary..

 

# vxdisk list c2t0d0s2
Device:    c2t0d0s2
pubpaths:  block=/dev/vx/dmp/c2t0d0s2 char=/dev/vx/rdmp/c2t0d0s2
Multipathing information:
numpaths:   2
c2t0d0s2        state=enabled   type=primary
c3t0d0s2        state=enabled   type=secondary

 

# vxdisk list c3t0d2s2
Device:    c3t0d2s2
pubpaths:  block=/dev/vx/dmp/c3t0d2s2 char=/dev/vx/rdmp/c3t0d2s2
numpaths:   2
c3t0d2s2        state=enabled   type=secondary
c2t0d2s2        state=enabled   type=primary

 

 But for some disks.. (Like the second one I listed above) the secondary comes first and when i do a vxdisk list...

you can see the secondary device is listed..

 

# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c1t0d0s2     auto:sliced     rootdisk     rootdg       online
c1t1d0s2     auto:sliced     rootmirror   rootdg       online
c2t0d0s2     auto:none       -            -            online invalid
c2t0d1s2     auto:none       -            -            online invalid
c3t0d2s2     auto:none       -            -            online invalid
c3t0d3s2     auto:none       -            -            online invalid
c3t0d4s2     auto:none       -            -            online invalid
c3t0d5s2     auto:none       -            -            online invalid

 

While either name will work for commands, is there a way to get these all be uniform in the display?

I did this on 2-3 boxes and the resutls were mixed on each one. Some Primaries and some secondaries when displaying with vxdisk list. The results were also different mix on each box as well..

 

I had tried to rm the /dev/rdsk/c[2-3]*, /dev/dsk/c[2-3]* and the /dev/vx/dmp and /dev/vx/rdmp/ entries and then did a reconfigure reboot but it didnt change anything ...

 

certianly not a big issue, but if there is something simple it would be great. Were looking to parse the output for shell scripting and we want to have things consistent across all our platforms.

 

1 ACCEPTED SOLUTION

Accepted Solutions

bsobek
Level 5
Hi, you can edit the file /etc/vx/disk.info and change the controller-number. If you have a VCS installed, freeze all servicegroups. Afterwards, just restart the vxconfigd with "vxconfigd -k" greets Björn
Message Edited by bsobek on 08-25-2008 12:25 AM

View solution in original post

2 REPLIES 2

bsobek
Level 5
Hi, you can edit the file /etc/vx/disk.info and change the controller-number. If you have a VCS installed, freeze all servicegroups. Afterwards, just restart the vxconfigd with "vxconfigd -k" greets Björn
Message Edited by bsobek on 08-25-2008 12:25 AM

Andrew_Cropley
Level 2
Thx.. Worked just as you described.. :D