Plan,
Work with storage team to present the new luns on both hosts. Mirror the luns (volume) on source server and break the mirror. Export the diskgroup and import the disk group to the new host. Star the volume on new host, everything should be fine.
Make sure proper backup is on place.
Work with network team to Push new DNS updates and remove the entry for old host on the dns.
Work with database/application folks to bring the database and application up.
Validate the database(s) are operational and ready to use
wait for at least 1 month to make sure everything is operational.
Issue retirement request to retirement team to retire the old server.
root@samserv02:/dev/vx/dsk/samserv02dg > df -h
/dev/vx/dsk/samserv02dg/FS_opt_dts
3.8G 2.8G 556M 84% /opt/dts
/dev/vx/dsk/samserv02dg/FS_opt_sybase12.5
375M 236M 102M 70% /opt/sybase12.5
/dev/vx/dsk/samserv02dg/FS_FSS_oracle
60G 5.5G 48G 11% /FSS/oracle
/dev/vx/dsk/samserv02dg/FS_opt_sybase
750M 175M 500M 26% /opt/sybase
/dev/vx/dsk/samserv02dg/FS_opt_sybase12.0
375M 235M 103M 70% /opt/sybase12.0
/dev/vx/dsk/samserv02dg/FS_opt_oracle
79G 22G 49G 31% /opt/oracle
/dev/vx/dsk/samserv02dg/FS_FSS_oracle_fsdata2_log
5.6G 628M 4.4G 13% /FSS/oracle/fsdata2/log
/dev/vx/dsk/samserv02dg/FS_FSS_oracle_fsdata2_rollback
15G 6.6G 6.9G 50% /FSS/oracle/fsdata2/rollback
/dev/vx/dsk/samserv02dg/FS_FSS_oracle_fsdata2_system
15G 7.8G 5.5G 59% /FSS/oracle/fsdata2/system
/dev/vx/dsk/samserv02dg/FS_FSS_oracle_fsdata2_index
49G 33G 11G 76% /FSS/oracle/fsdata2/index
/dev/vx/dsk/samserv02dg/FS_FSS_oracle_fsdata2_archive
84G 64M 76G 1% /FSS/oracle/fsdata2/archive
/dev/vx/dsk/samserv02dg/FS_FSS_oracle_fsdata2_dump
372G 178G 157G 54% /FSS/oracle/fsdata2/dump
/dev/vx/dsk/samserv02dg/FS_FSS_oracle_fsdata2_data
536G 220G 263G 46% /FSS/oracle/fsdata2/data
rpool 96G 98K 32G 1% /rpool
rpool/ROOT 96G 21K 32G 1% /rpool/ROOT
root@samserv02:/dev/vx/dsk/samserv02dg >
---------------------------------------------------------------
root@samserv02:/dev/vx/dsk/samserv02dg > ls -l
total 0
brw------- 1 root root 282, 123000 Nov 4 2012 FS_FSS_oracle
brw------- 1 root root 282, 123034 Nov 4 2012 FS_FSS_oracle_fsdata2_archive
brw------- 1 root root 282, 123030 Nov 4 2012 FS_FSS_oracle_fsdata2_data
brw------- 1 root root 282, 123032 Nov 4 2012 FS_FSS_oracle_fsdata2_dump
brw------- 1 root root 282, 123031 Nov 4 2012 FS_FSS_oracle_fsdata2_index
brw------- 1 root root 282, 123038 Nov 4 2012 FS_FSS_oracle_fsdata2_log
brw------- 1 root root 282, 123033 Nov 4 2012 FS_FSS_oracle_fsdata2_rollback
brw------- 1 root root 282, 123039 Nov 4 2012 FS_FSS_oracle_fsdata2_system
---------------------------------------------------------------
root@samserv02:/ > df -h | grep vx | grep -v swap |awk '{print $1 "\t\t\t" $6}'
/dev/vx/dsk/samserv02dg/FS_FSS_oracle_fsdata2_log /FSS/oracle/fsdata2/log
/dev/vx/dsk/samserv02dg/FS_FSS_oracle_fsdata2_rollback /FSS/oracle/fsdata2/rollback
/dev/vx/dsk/samserv02dg/FS_FSS_oracle_fsdata2_system /FSS/oracle/fsdata2/system
/dev/vx/dsk/samserv02dg/FS_FSS_oracle_fsdata2_index /FSS/oracle/fsdata2/index
/dev/vx/dsk/samserv02dg/FS_FSS_oracle_fsdata2_archive /FSS/oracle/fsdata2/archive
/dev/vx/dsk/samserv02dg/FS_FSS_oracle_fsdata2_dump /FSS/oracle/fsdata2/dump
/dev/vx/dsk/samserv02dg/FS_FSS_oracle_fsdata2_data /FSS/oracle/fsdata2/data
---------------------------------------------------------------
root@samserv02:/ > df -h | grep vx | grep -v swap |awk '{print $1}' | awk -F/ '{print $6}'
FS_FSS_oracle_fsdata2_log
FS_FSS_oracle_fsdata2_rollback
FS_FSS_oracle_fsdata2_system
FS_FSS_oracle_fsdata2_index
FS_FSS_oracle_fsdata2_archive
FS_FSS_oracle_fsdata2_dump
FS_FSS_oracle_fsdata2_data
---------------------------------------------------------------
root@samserv02:/ > vxprint -ht | grep "^v" | awk '{print $2}'
FS_FSS_oracle
FS_FSS_oracle_fsdata2_archive
FS_FSS_oracle_fsdata2_data
FS_FSS_oracle_fsdata2_dump
FS_FSS_oracle_fsdata2_index
FS_FSS_oracle_fsdata2_log
FS_FSS_oracle_fsdata2_rollback
FS_FSS_oracle_fsdata2_system
root@samserv02:/ >
root@samserv02:/dev/vx/dsk/samserv02dg > ls -l | awk '{print $10}'
FS_FSS_oracle
FS_FSS_oracle_fsdata2_archive
FS_FSS_oracle_fsdata2_data
FS_FSS_oracle_fsdata2_dump
FS_FSS_oracle_fsdata2_index
FS_FSS_oracle_fsdata2_log
FS_FSS_oracle_fsdata2_rollback
FS_FSS_oracle_fsdata2_system
---------------------------------------------------------------
root@samserv02:/dev/vx/dsk/samserv02dg > df -h | grep vx | awk '{print $1 "\t\t\t" $2 "\t\t\t" $6}' | grep -v swap
/dev/vx/dsk/samserv02dg/FS_FSS_oracle_fsdata2_log 5.6G /FSS/oracle/fsdata2/log Done - disk1
/dev/vx/dsk/samserv02dg/FS_FSS_oracle_fsdata2_rollback 15G /FSS/oracle/fsdata2/rollback Done - disk3
/dev/vx/dsk/samserv02dg/FS_FSS_oracle_fsdata2_system 15G /FSS/oracle/fsdata2/system progress Done - disk3
/dev/vx/dsk/samserv02dg/FS_FSS_oracle_fsdata2_index 49G /FSS/oracle/fsdata2/index Done - disk4
/dev/vx/dsk/samserv02dg/FS_FSS_oracle_fsdata2_archive 84G /FSS/oracle/fsdata2/archive Done - disk3
/dev/vx/dsk/samserv02dg/FS_FSS_oracle_fsdata2_dump 372G /FSS/oracle/fsdata2/dump
/dev/vx/dsk/samserv02dg/FS_FSS_oracle_fsdata2_data 536G /FSS/oracle/fsdata2/data Done - disk5/6
---------------------------------------------------------------
# cat oldunxserv02.xml | grep vx | awk -F= '{print $2 "\t\t" $4}' | awk '{print $1 "\t" $3}' | sed 's/"//g' | awk '{print $1}'
/dev/vx/dsk/dataadg/FS_FSS_oracle_cfprod_archive
/dev/vx/dsk/dataadg/FS_FSS_oracle_cfprod_data1
/dev/vx/dsk/dataadg/FS_FSS_oracle_cfprod_data2
/dev/vx/dsk/dataadg/FS_FSS_oracle_cfprod_data3
/dev/vx/dsk/dataadg/FS_FSS_oracle_cfprod_data4
/dev/vx/dsk/dataadg/FS_FSS_oracle_cfprod_data5
/dev/vx/dsk/dataadg/FS_FSS_oracle_cfprod_data6
root@samserv02:/dev/vx/dsk/samserv02dg > vxassist -b -g samserv02dg mirror FS_opt_sybase EMCDSK01
root@samserv02:/dev/vx/dsk/samserv02dg > vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
175 ATCOPY/R 07.62% 0/1638400/124928 PLXATT FS_opt_sybase FS_opt_sybase-02 samserv02dg
=======================================================================
root@samserv02:/ > vxprint -ht | grep "^v" | awk '{print $2}'
FS_FSS_oracle
FS_FSS_oracle_fsdata2_archive
FS_FSS_oracle_fsdata2_data
FS_FSS_oracle_fsdata2_dump
FS_FSS_oracle_fsdata2_index
FS_FSS_oracle_fsdata2_log
FS_FSS_oracle_fsdata2_rollback
FS_FSS_oracle_fsdata2_system
Create a volume with a plex called plex2
# vxmake -g baddg vol vol2 plex=plex2
Start a volume
Next, we must start the new volume
# vxvol -g SAMSUN09dg start vol2
Then use vxplex ‘att’ to attach the plex to the original volume. The plex will be synchronised with the plex(es) already
attached to
the volume.
# vxplex -g diskgroup att plex_name
==============================
mirror a volume
root@SAMSUNP09:/ > vxassist -b -g SAMSUN09dg mirror FS_DATA_oracle_hprd8_index
root@SAMSUNP09:/ > vxprint -ht | grep FS_DATA_oracle_hprd8_index
root@SAMSUNP09:/ > vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
275 ATCOPY/R 04.53% 0/109051904/4939776 PLXATT FS_DATA_oracle_hprd8_index FS_DATA_oracle_hprd8_index SAMSUN09dg
veot@SAMSUNP09:/ > vxassist -b -g SAMSUN09dg mirror FS_DATA_oracle_hprd8_archi
root@SAMSUNP09:/ > vxprint -ht | grep FS_DATA_oracle_hprd8_archive
v FS_DATA_oracle_hprd8_archive - ENABLED ACTIVE 188743680 SELECT - fsgen
pl FS_DATA_oracle_hprd8_archive-02 FS_DATA_oracle_hprd8_archive ENABLED ACTIVE 188753992 CONCAT - RW
sd emcdsk03-01 FS_DATA_oracle_hprd8_archive-02 emcdsk03 0 188753992 0 EMC_CLARiiON0_9 ENA
root@SAMSUNP09:/ > vxassist -b -g SAMSUN09dg mirror FS_DATA_oracle_hprd8_index
root@SAMSUNP09:/ > vxassist -b -g SAMSUN09dg mirror FS_DATA_oracle_hprd8_dump EMCDSK01 EMCDSK02 EMCDSK03 EMCDSK04 EMCDSK05
EMCDSK06
root@SAMSUNP09:/ > vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
351 ATCOPY/R 00.03% 0/832569344/215040 PLXATT FS_DATA_oracle_hprd8_dump FS_DATA_oracle_hprd8_dump-0 SAMSUN09dg
root@SAMSUNP09:/ > vxprint -ht | grep FS_DATA_oracle_hprd8_dump
v FS_DATA_oracle_hprd8_dump - ENABLED ACTIVE 832569344 SELECT - fsgen
pl FS_DATA_oracle_hprd8_dump-01 FS_DATA_oracle_hprd8_dump ENABLED TEMPRMSD 832569696 CONCAT - WO
sd EMCDSK06-02 FS_DATA_oracle_hprd8_dump-01 EMCDSK06 138923456 832569696 0 EMC_CLARiiON1_5 ENA
pl FS_DATA_oracle_hprd8_dump-02 FS_DATA_oracle_hprd8_dump ENABLED ACTIVE 832569696 CONCAT - RW
sd emcdsk02-04 FS_DATA_oracle_hprd8_dump-02 emcdsk02 169430296 832569696 0 EMC_CLARiiON0_7 ENA
Break a mirror
In the following steps we are going to disassociate the plexes from the parent volume using vxplex ‘dis’. VxVM also has a vxplex
‘det’ which is to detatch a plex. Confusingly, detatching a plex with vxplex ‘det’, stops writes to the plex, but the plex stays
associated with the parent volume
The first step is to detach one of the plexes and break its link to the remaining plex(es) (i.e. dissociate). We’ll
dissociate
‘plex2′
# vxplex -g baddg dis plex2
========================
Disassociate the mirror plex:
# vxplex -g oradg dis oravol-02
attach back mirror plex to the volumedisk:
# vxplex -g oradg att oravol oravol-02
vxplex command to remove all the plexes of the volumes
# vxplex -o rm dis oravol-02 FS_VOL_vol-02 Next_VOL-02