hit counter script

Sample Script - Hitachi AMS 2000 User Manual

Family truecopy extended
Hide thumbs Also See for AMS 2000:
Table of Contents

Advertisement

Sample script

The following example provides sample script commands for backing up a
volume on a Windows host.
echo off
REM Specify the registered name of the arrays
set UNITNAME=Array1
REM Specify the group name (Specify "Ungroup" if the pair doesn't belong to any
group)
set G_NAME=Ungrouped
REM Specify the pair name
set P_NAME=TCE_LU0001_LU0002
REM Specify the directory path that is mount point of P-VOL and S-VOL
set MAINDIR=C:\main
set BACKUPDIR=C:\backup
REM Specify GUID of P-VOL and S-VOL
PVOL_GUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
SVOL_GUID=yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
REM Unmounting the S-VOL
pairdisplay -x umount %BACKUPDIR%
REM
Re-synchoronizeing pair (Updating the backup data)
aureplicationremote -unit %UNITNAME% -tce -resync -pairname %P_NAME% -gno 0
aureplicationmon -unit %UNITNAME% -evwait -tce -pairname %P_NAME% -gno 0 -st
paired –pvol
REM Unmounting the P-VOL
pairdisplay -x umount %MAINDIR%
REM
Splitting pair (Determine the backup data)
aureplicationremote -unit %UNITNAME% -tce -split -pairname %P_NAME% -gname
%G_NAME%
aureplicationmon -unit %UNITNAME% -evwait -tce -pairname %P_NAME% -gname
%G_NAME% -st split –pvol
REM Mounting the P-VOL
pairdisplay -x mount %MAINDIR% Volume{%PVOL_GUID%}
REM Mounting the S-VOL
pairdisplay -x mount %BACKUPDIR% Volume{%SVOL_GUID%}
< The procedure of data copy from C:\backup to backup appliance>
When Windows 2000 or Windows Server is used, the CCI mount command
is required when mounting or un-mounting a volume. The GUID, which is
displayed by the Windows mountvol command, is needed as an argument
when using the mount command. For more information, refer to the Hitachi
Adaptable Modular Storage Command Control Interface (CCI) Reference
Guide.
A–26
Hitachi AMS 2000 Family TrueCopy Extended Distance User Guide
Operations using CLI

Advertisement

Table of Contents
loading

Table of Contents