06.08.2015 Views

IBM XIV Storage System Copy Services and Migration

IBM XIV Storage System: Copy Services and Migration - Common ...

IBM XIV Storage System: Copy Services and Migration - Common ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4. Click New for a new system variable.5. Create the <strong>XIV</strong>_XCLIUSER variable with the relevant user name.6. Click New again to create the <strong>XIV</strong>_XCLIPASSWORD variable with the relevant password.Setting environment variables in UNIXIf your are using a UNIX-based operating system export the environment variables as shownin Example 7-2 (which in this example is AIX®). In this example the user <strong>and</strong> passwordvariables are set to admin <strong>and</strong> adminadmin <strong>and</strong> then confirmed as being set.Example 7-2 Setting environment variables in UNIXroot@dolly:/tmp/<strong>XIV</strong>GUI# export <strong>XIV</strong>_XCLIUSER=adminroot@dolly:/tmp/<strong>XIV</strong>GUI# export <strong>XIV</strong>_XCLIPASSWORD=adminadminroot@dolly:/tmp/<strong>XIV</strong>GUI# env | grep <strong>XIV</strong><strong>XIV</strong>_XCLIPASSWORD=adminadmin<strong>XIV</strong>_XCLIUSER=adminTo make these changes permanent update the relevant profile, making sure that you exportthe variables to make them environment variables.7.4.2 Sample scriptsWith the environment variables set, a script or batch file like the one in Example 7-3 can berun from the shell or comm<strong>and</strong> prompt in order to define the data migration pairings.Example 7-3 Data migration definition batch filexcli -m 10.10.0.10 dm_define vol=MigVol_1 target=DS4200_CTRL_A lun=4source_updating=no create_vol=yes pool=test_poolxcli -m 10.10.0.10 dm_define vol=MigVol_2 target=DS4200_CTRL_A lun=5source_updating=no create_vol=yes pool=test_poolxcli -m 10.10.0.10 dm_define vol=MigVol_3 target=DS4200_CTRL_A lun=7source_updating=no create_vol=yes pool=test_poolxcli -m 10.10.0.10 dm_define vol=MigVol_4 target=DS4200_CTRL_A lun=9source_updating=no create_vol=yes pool=test_poolxcli -m 10.10.0.10 dm_define vol=MigVol_5 target=DS4200_CTRL_A lun=11source_updating=no create_vol=yes pool=test_poolxcli -m 10.10.0.10 dm_define vol=MigVol_6 target=DS4200_CTRL_A lun=13source_updating=no create_vol=yes pool=test_poolxcli -m 10.10.0.10 dm_define vol=MigVol_7 target=DS4200_CTRL_A lun=15source_updating=no create_vol=yes pool=test_poolxcli -m 10.10.0.10 dm_define vol=MigVol_8 target=DS4200_CTRL_A lun=17source_updating=no create_vol=yes pool=test_poolxcli -m 10.10.0.10 dm_define vol=MigVol_9 target=DS4200_CTRL_A lun=19source_updating=no create_vol=yes pool=test_poolxcli -m 10.10.0.10 dm_define vol=MigVol_10 target=DS4200_CTRL_A lun=21source_updating=no create_vol=yes pool=test_poolWith the data migration defined via the script or batch job above, an equivalent script or batchjob to execute the data migrations then must be run, as shown in Example 7-4.Example 7-4 Activate data migration batch filexcli -m 10.10.0.10 dm_activate vol=MigVol_1xcli -m 10.10.0.10 dm_activate vol=MigVol_2xcli -m 10.10.0.10 dm_activate vol=MigVol_3206 <strong>IBM</strong> <strong>XIV</strong> <strong>Storage</strong> <strong>System</strong>: <strong>Copy</strong> <strong>Services</strong> <strong>and</strong> <strong>Migration</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!