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.

►►►►If the data migration is not complete it must be deleted by removing the correspondingvolume from the Volume <strong>and</strong> Snapshot menu (or via the vol_delete comm<strong>and</strong> below).Delete volume (not normally needed).Challenged volume delete (cannot be done via a script, as this comm<strong>and</strong> must beacknowledged):Syntaxvol_delete vol=Examplevol_delete vol=Exch_sg01_dbIf you want to perform an unchallenged volume deletion:Syntaxvol_delete -y vol=Examplevol_delete -y vol=Exch_sg01_dbDelete target connectivity.Syntaxtarget_connectivity_deletelocal_port=1:FC_Port: fcaddress= target=Exampletarget_connectivity_delete local_port=1:FC_Port:5:4fcaddress=0123456789012345 target=DMX605Delete target port.Fibre ChannelSyntaxExampleDelete target.SyntaxExampletarget_port_delete fcaddress= target=target_port_delete fcaddress=0123456789012345 target=DMX605target_delete target=target_delete target=DMX6057.4.1 Using XCLI scripts or batch filesIn order to execute a XCLI batch job, it is best to use the XCLI (versus the XCLI Session).Setting environment variables in WindowsYou can remove the need to specify user <strong>and</strong> password information for every comm<strong>and</strong> bymaking that information an environment variable. Example 7-1 shows how this is done usinga Windows comm<strong>and</strong> prompt. First the <strong>XIV</strong>_XCLIUSER variable is set to admin, then the<strong>XIV</strong>_XCLIPASSWORD is set to adminadmin. Then both variables are confirmed as set. Ifnecessary, change the user ID <strong>and</strong> password to suit your setup.Example 7-1 Setting environment variables in Microsoft WindowsC:\>set <strong>XIV</strong>_XCLIUSER=adminC:\>set <strong>XIV</strong>_XCLIPASSWORD=adminadminC:\>set | find "<strong>XIV</strong>"<strong>XIV</strong>_XCLIPASSWORD=adminadmin<strong>XIV</strong>_XCLIUSER=adminTo make these changes permanent:1. Right-click the My Computer icon <strong>and</strong> select Properties.2. Click the Advanced tab.3. Click Environment Variables.Chapter 7. Data migration 205

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

Saved successfully!

Ooh no, something went wrong!