Hp Storage Mirroring V5 Software Uživatelský manuál Strana 167

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 285
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 166
12 - 9
Automating Restore
You can use a post-failback script on the source to automate the restore process. Use the following file as a sample.
SPOSTBACK.TXT
# SAMPLE SOURCE FAILBACK AND RESTORE SCRIPT #
# #
# THIS POST-FAILBACK SCRIPT EXECUTES ON THE SOURCE. #
# THIS SCRIPT PERFORMS A TARGET-SOURCE RESTORE AND #
# REESTABLISHES THE CONNECTION AND STARTS MIRRORING. #
# YOU NEED THE FOLLOWING INFORMATION TO EDIT THIS SCRIPT: #
# target #
# source #
# repset #
# username #
# password #
# #
# Login to source machine #
# Full access level will return 2, so exit on failure #
# Change <source><username><password> to match your server #
$level = LOGIN <source> <username> <password>;
if $level < 2 then
WRITE “full access denied on <source>”;
WRITE $level;
quit;
end
# Login to target machine #
# Full access level will return 2, so exit on failure #
# Change <target><username><password> to match your server #
$level = LOGIN <target> <username> <password>;
if level < 2 then
WRITE “Full access denied on <target>”;
WRITE $level;
quit;
end
# Successful source returns 0, so exit on failure #
$ret = SOURCE <source>;
if $ret < 0 then
WRITE “Could not source <source>”;
WRITE $ret;
quit;
end
Zobrazit stránku 166
1 2 ... 162 163 164 165 166 167 168 169 170 171 172 ... 284 285

Komentáře k této Příručce

Žádné komentáře