Veritas Volume Manager question (Disk layout with 4 plexes)

I am trying to build a veritas volume similar to an existing volume on another server. The output on source server is:

 
usbtor12# vxprint -hrtg appdg

v  anvil_sqlVOL -            ENABLED  ACTIVE   629145600 SELECT   -        fsgen
pl anvil_sqlVOL-01 anvil_sqlVOL ENABLED ACTIVE 629145600 CONCAT   -        RW
sd uspv100_lun0-02 anvil_sqlVOL-01 uspv100_lun0 20971520 629145600 0 c1t71d0 ENA
pl anvil_sqlVOL-02 anvil_sqlVOL ENABLED ACTIVE 629145600 CONCAT   -        RW
sd uspv300_lun0-01 anvil_sqlVOL-02 uspv300_lun0 0 629145600 0     c1t73d0  ENA
pl anvil_sqlVOL-03 anvil_sqlVOL ENABLED ACTIVE LOGONLY  CONCAT    -        RW
sd uspv100_lun0-01 anvil_sqlVOL-03 uspv100_lun0 0 2112  LOG       c1t71d0  ENA
pl anvil_sqlVOL-04 anvil_sqlVOL ENABLED ACTIVE LOGONLY  CONCAT    -        RW
sd uspv300_lun0-02 anvil_sqlVOL-04 uspv300_lun0 629145600 2112 LOG c1t73d0 ENA

This volume is on diskgroup 'appdg' (both are 400gb LUN's):

usbtor12# vxdisk -g appdg list
DEVICE       TYPE            DISK         GROUP        STATUS
c1t71d0s2    auto:cdsdisk    uspv100_lun0  appdg        online
c1t73d0s2    auto:cdsdisk    uspv300_lun0  appdg        online

When I created the volume on the target server with similar LUN size (using the command: #vxassist -g appdg make anvil_sqlVOL 300g),
I see the volume as :

usbmon59# vxprint -hrtg appdg
dg appdg        default      default  23000    1264089847.10.sbpsvrwm289
dm uspv100_lun0 c4t71d0s2    auto     65536    858189568 -
dm uspv300_lun0 c4t73d0s2    auto     65536    858189568 -
v  anvil_sqlVOL -            ENABLED  ACTIVE   629145600 SELECT   -        fsgen
pl anvil_sqlVOL-01 anvil_sqlVOL ENABLED ACTIVE 629145600 CONCAT   -        RW
sd c4t71d0-01   anvil_sqlVOL-01 uspv100_lun0 0 629145600 0        c4t71d0  ENA
pl anvil_sqlVOL-02 anvil_sqlVOL ENABLED ACTIVE 629145600 CONCAT   -        RW
sd uspv300_lun0-01 anvil_sqlVOL-02 uspv300_lun0 0 629145600 0     c4t73d0  ENA

I also tried to create another test volume with layout=mirroring, but did not work:

# vxassist -g appdg make testVOL 5g layout=mirror

The output is still the same - volume with 2, not 4 plexes :frowning:

 
usbmon59# vxprint -hrtg appdg
dg appdg        default      default  23000    1264089847.10.sbpsvrwm289
dm uspv100_lun0 c4t71d0s2    auto     65536    858189568 -
dm uspv300_lun0 c4t73d0s2    auto     65536    858189568 -
v  anvil_sqlVOL -            ENABLED  ACTIVE   629145600 SELECT   -        fsgen
pl anvil_sqlVOL-01 anvil_sqlVOL ENABLED ACTIVE 629145600 CONCAT   -        RW
sd c4t71d0-01   anvil_sqlVOL-01 uspv100_lun0 0 629145600 0        c4t71d0  ENA
pl anvil_sqlVOL-02 anvil_sqlVOL ENABLED ACTIVE 629145600 CONCAT   -        RW
sd uspv300_lun0-01 anvil_sqlVOL-02 uspv300_lun0 0 629145600 0     c4t73d0  ENA
v  testVOL      -            ENABLED  ACTIVE   10485760 SELECT    -        fsgen
pl testVOL-01   testVOL      ENABLED  ACTIVE   10485760 CONCAT    -        RW
sd uspv100_lun0-01 testVOL-01 uspv100_lun0 629145600 10485760 0   c4t71d0  ENA
pl testVOL-02   testVOL      ENABLED  ACTIVE   10485760 CONCAT    -        RW
sd uspv300_lun0-02 testVOL-02 uspv300_lun0 629145600 10485760 0   c4t73d0  ENA

Any idea how can I create the same volume with 4 plexes.

Thanks

The reason is that the plexes 3 and 4 are plexes as type "LOGONLY",

pl anvil_sqlVOL-03 anvil_sqlVOL ENABLED ACTIVE LOGONLY  CONCAT    -        RW
sd uspv100_lun0-01 anvil_sqlVOL-03 uspv100_lun0 0 2112  LOG       c1t71d0  ENA

pl anvil_sqlVOL-04 anvil_sqlVOL ENABLED ACTIVE LOGONLY  CONCAT    -        RW
sd uspv300_lun0-02 anvil_sqlVOL-04 uspv300_lun0 629145600 2112 LOG c1t73d0 ENA

You Fisrt must be create the mirrored volume and after you can create the LOG region with

vxasisst addlog anvil_sqlVOL

Probably to duplicate your case exactly you need

1) Create 1 concat volume on only one plex
2) Create 1 LOG plex
3) Use vxmirror to create the mirror area to both plexes

---------- Post updated at 06:59 AM ---------- Previous update was at 06:49 AM ----------

How additional note to my previous post, you also can use a single command to create the logs in the volumes

vxassist make <volume> <size> layout=mirror,log nmirror=2 nlog=2

Thank you. I will try it Monday morning with the vxassist command and will update the forum thread. Thanks again!

Thanks Cerber01,

Your command worked. Since the mirrored volume was already created, I used your command with vxassist + addlog like this:

vxassist -g appdg addlog <volume> nlog=2

Thanks very much for your help to make the 'required' volume with two additional log-plexes for Sybase installation.

Salute!