vxassist multiple volume of a same subdisk
Hi,
I will need to migrate from one array to another array. but i have this dg that have multiple volume using the same subdisk.
using this command (vxassist -g klcdsctcrsyb019g1_sybasedg mirror sybase emc1_01ba) Will vxassist automatically create plex for other volumes, attach it to the volume and start mirroring?
vxprint -ht
Disk group: klcdsctcrsyb019g1_sybasedg
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 KSTATEdg klcdsctcrsyb019g1_sybasedg default default 1000 1362542192.621.klcdsg01
dm klcdsctcrsyb019g1_sybasedg01 emc0_186b auto 65536 212055808 -
v sybase - ENABLED ACTIVE 62914560 SELECT - fsgen
pl sybase-01 sybase ENABLED ACTIVE 62914560 CONCAT - RW
sd klcdsctcrsyb019g1_sybasedg01-01 sybase-01 klcdsctcrsyb019g1_sybasedg01 0 62914560 0 emc0_186b ENAv sybdevice - ENABLED ACTIVE 104857600 SELECT - fsgen
pl sybdevice-01 sybdevice ENABLED ACTIVE 104857600 CONCAT - RW
sd klcdsctcrsyb019g1_sybasedg01-02 sybdevice-01 klcdsctcrsyb019g1_sybasedg01 62914560 104857600 0 emc0_186b ENAv sybtemp - ENABLED ACTIVE 31457280 SELECT - fsgen
pl sybtemp-01 sybtemp ENABLED ACTIVE 31457280 CONCAT - RW
sd klcdsctcrsyb019g1_sybasedg01-03 sybtemp-01 klcdsctcrsyb019g1_sybasedg01 167772160 31457280 0 emc0_186b ENA
Hi,
First you need to add the new disk into veritas diskgroup, currently you have only 1 disk in diskgroup & hence you run above mentioned command now, it will fail saying no such disk found.
If emc1_01ba is the disk from new array, you can add in to existing dg using below command
# vxdisksetup -i emc1_01ba (assuming that new disk was not initialized in veritas)
# vxdg -g klcdsctcrsyb019g1_sybasedg adddisk klcdsctcrsyb019g1_sybasedg02 = emc1_01ba
With this command successful, once you run the vxprint command as you ran above, you should see 2 "dm" records in diskgroup i.e 2 disks in diskgroups.
Now you can run the mirror command you mentioned in your post & it will succeed
G