To perform online data migration using RHEL 5.x, RHEL 6.x, or Oracle RAC, follow these steps.
NOTE: Before using the HP 3PAR Online Import Utility for Oracle RAC=based configurations, it is critical to verify that the cluster registry, voting, and data disks reside on the same source array and are not distributed across multiple arrays.
1. Zone the host to the destination HP 3PAR StoreServ Storage system to establish communication.
2. Configure the native device-mapper multipath on the host.
• In a cluster environment, update themultipath.conffile on each of the cluster nodes.
NOTE: For Oracle RAC, multipath should be configured in accordance with Oracle recommendations.
Edit the/etc/multipath.conf file to map the device WWNs to a persistent device alias. This alias will be used by the ASMlib to label ASM disks for the Oracle RAC application. The/etc/multipath.conffiles should be edited identically on each of the cluster nodes. For example:
multipath { wwid 36006016087202e00029a62ca76d3e411 alias <DEVICE_ALIAS>
• If the HP 3PAR LUNs are not whitelisted, register the HP 3PAR LUN types with native device-mapper-multipath by whitelisting HP 3PAR-specific information. (In the/etc/ multipath.conffile, the vendor is3PARdataand the product isVV.) See the HP 3PAR StoreServ product documentation on the Linux host configuration.
NOTE: 3PARdata andVVare case sensitive.
If the HP 3PAR LUNs are whitelisted, start the native device-mapper multipath.
Example 26 Starting the native device-mapper multipath
# /etc/init.d/multipathd restart ok
Stopping multipathd daemon: [ OK ] Starting multipathd daemon: [ OK ]
Example 27 Rescanning HBAs and listing the updated multipath mapping with RHEL 5.x
# ls /sys/class/fc_host host2 host3 # echo "1" > /sys/class/fc_host/host2/issue_lip # echo "- - -" > /sys/class/scsi_host/host2/scan # echo "1" > /sys/class/fc_host/host3/issue_lip # echo "- - -" > /sys/class/scsi_host/host3/scan # multipath -ll
mpath13 (360060160bf902a00e03cb1bb3c3fe411) dm-4 DGC,VRAID [size=150G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active] \_ 3:0:0:2 sdg 8:96 [active][ready] \_ 2:0:1:2 sdj 8:144 [active][ready]
mpath12 (360060160bf902a00cae2a2a33c3fe411) dm-3 DGC,VRAID [size=200G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active] \_ 3:0:0:1 sdf 8:80 [active][ready] \_ 2:0:1:1 sdi 8:128 [active][ready]
mpath11 (360060160bf902a002ac0388f3c3fe411) dm-2 DGC,VRAID [size=200G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active] \_ 3:0:0:0 sdb 8:16 [active][ready] \_ 2:0:1:0 sdh 8:112 [active][ready]
3. For RHEL 5.x or RHEL 6.x: Using the HP 3PAR Online Import Utility, issue the
createmigration command with the-migtype onlineoption.
Optionally, migrations with consistency groups are also supported, using the
-allvolumesincg or-cgvolmap parameters.
For Oracle RAC, you must issue thecreatemigrationcommand using the
-allvolumesincg parameter.
Example 28 Usingcreatemigrationfor RHEL 5.x or RHEL 6.x
# createmigration -sourceuid xxxxxxxxxxxxxxxx -srchost "X8dtuf-01" -migtype online —destcpg testcpg
-destprov full -persona "RHEL_5_6"
# SUCCESS: Migration job submitted successfully. Please check status/details using showmigration command. Migration id: 1411673030253
For Oracle RAC: Using the HP 3PAR Online Import Utility, issue thecreatemigration
command with the-migtype onlineand-allvolumesincgparameters.
Example 29 Usingcreatemigrationfor Oracle RAC
# createmigration -sourceuid xxxxxxxxxxxxxxxx -srchost "x8dtuf-01" -allvolumesincg -migtype online -destcpg
testcpg -destprov full -persona "RHEL_5_6"
This step admits LUNs presented to the EMC Storage system and exports them to the HP 3PAR host created on the EMC Storage system.
NOTE: Thecreatemigration command may take several minutes to complete.
TIP: Make a note of the migration ID, as it will be used in commands to track migration progress.
4. Issue theshowmigrationcommand to verify that the data migration task preparation has
completed successfully. This may take some time. Upon successful creation of the
createmigrationtask, theSTATUScolumn in theshowmigrationcommand output will indicatepreparationcomplete(100%). When this status is indicated, continue to the next step.
Example 30 Issuing theshowmigrationcommand
# showmigration
MIGRATIONID TYPE SOURCE_NAME DESTINATION_NAME START_TIME
END_TIME STATUS(PROGRESS)(MESSAGE)
1411673030253 online SYMMETRIX+000194901212 3par_7200_DCA_01 Thu Sep 25 15:
23:50 EDT 2014 -NA- preparationcomplete(100%)(-NA-)
5. Using the HP 3PAR Management Console, verify that the host whose LUNs are under migration has paths to as many HP 3PAR controller nodes as are zoned in the SAN (seeFigure 3 (page 51)). This number of paths is listed in theNode ID(s)column. The path details are in theHost Detailspane.
Figure 3 HP 3PAR Management Console—Host Details
6. Update path configuration on the host by rescanning all HBAs and issuing themultipath -llcommand to verify the newly discovered paths. Multipath now recognizes extra paths to the HP 3PAR StoreServ Storage, but all paths are still managed as source array devices.
Example 31 Rescanning HBAs and listing the updated multipath mapping with RHEL 5.x # # ls /sys/class/fc_host host2 host3 # echo "1" > /sys/class/fc_host/host2/issue_lip # echo "1" > /sys/class/fc_host/host3/issue_lip # echo "- - -" > /sys/class/scsi_host/host2/scan # echo "- - -" > /sys/class/scsi_host/host3/scan #multipath -ll
mpath13 (360060160bf902a00e03cb1bb3c3fe411) dm-4 DGC,VRAID [size=150G][features=0][hwhandler=0][rw] \_ round-robin 0 [prio=0][active] \_ 2:0:0:2 sde 8:64 [active][ready] \_ 3:0:0:2 sdg 8:96 [active][ready] \_ 2:0:1:2 sdj 8:144 [active][ready] \_ 3:0:1:2 sdm 8:192 [active][ready]
mpath12 (360060160bf902a00cae2a2a33c3fe411) dm-3 DGC,VRAID [size=200G][features=0][hwhandler=0][rw] \_ round-robin 0 [prio=0][active] \_ 3:0:0:1 sdf 8:80 [active][ready] \_ 2:0:0:1 sdd 8:48 [active][ready] \_ 2:0:1:1 sdi 8:128 [active][ready] \_ 3:0:1:1 sdl 8:176 [active][ready]
mpath11 (360060160bf902a002ac0388f3c3fe411) dm-2 DGC,VRAID [size=200G][features=0][hwhandler=0][rw] \_ round-robin 0 [prio=0][active] \_ 3:0:0:0 sdb 8:16 [active][ready] \_ 2:0:0:0 sdc 8:32 [active][ready] \_ 2:0:1:0 sdh 8:112 [active][ready] \_ 3:0:1:0 sdk 8:160 [active][ready]
7. Delete the migrating LUN paths pertaining to the source array. For details about identifying and deleting LUN paths, see“Appendix B: Identifying and Deleting Source Array LUN Paths” (page 105).
8. Unzone the host from the source array.
Example 32 Output after unzoning the host from the source array with RHEL 5.x
# multipath -ll
mpath13 (360060160bf902a00e03cb1bb3c3fe411) dm-4 3PARdata,VV [size=150G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active] \_ 2:0:0:2 sde 8:64 [active][ready] \_ 3:0:1:2 sdm 8:192 [active][ready]
mpath12 (360060160bf902a00cae2a2a33c3fe411) dm-3 3PARdata,VV [size=200G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active] \_ 2:0:0:1 sdd 8:48 [active][ready] \_ 3:0:1:1 sdl 8:176 [active][ready]
mpath11 (360060160bf902a002ac0388f3c3fe411) dm-2 3PARdata,VV [size=200G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active] \_ 2:0:0:0 sdc 8:32 [active][ready] \_ 3:0:1:0 sdk 8:160 [active][ready]
9. Start the migration by using the HP 3PAR Online Import Utilitystartmigrationcommand.
Example 33 Starting migration by usingstartmigration # startmigration -migrationid 1411673030253 # SUCCESS: Data transfer started successfully.
NOTE: The-migrationid(in the example above,1411673030253) will have been assigned by thecreatemigrationcommand.
TIP: TheSTATUScolumn in the showmigrationcommand output will indicatesuccess
when all volumes have been migrated successfully.
Example 34showmigrationcommand showing successful migration
# showmigration -migrationid 1411673030253
MIGRATION_ID TYPE SOURCE_NAME DESTINATION_NAME
START_TIME END_TIME STATUS(PROGRESS)(MESSAGE)
1411673030253 online CLARiiON+APM00 3par_7200_DCB_01 Fri Apr 04 16:38:24 EDT 2014 -NA- success(-NA-)(-NA-)