Previous Topic: SQL Express プライマリ サーバ用の start.bat スクリプト変更Next Topic: NEC CLUSTERPRO 環境での Arcserve Backup r15、r16、r16.5 から r17 へのアップグレード


SQL Express プライマリ サーバ用の stop.bat スクリプト変更

インストール後、「NORMAL」と「FAILOVER 」の後の 2 か所にテキストを追加して stop.bat スクリプトを変更する必要があります。以下のスクリプト変更は、SQL Express プライマリ サーバにのみ適用されます。

以下のスクリプトをコピーして、stop.bat ファイルの「NORMAL」および「FAILOVER」 の後に貼り付けます。


REM Set the following variable 'process' to 1 for normal 
REM operation.During upgrade / migration, modify this 
REM script to set the value to zero 
SET process=1

REM Set this flag to 1 if it's a primary server and using 
REM MS SQL Express 2008 database, otherwise set it to 0
SET PRIMARY_SQLE_FLAG=1

REM Set the ARCServe home directory here
SET ARCSERVE_HOME=s:\arcserve_home

IF %process%==0 GOTO end

REM Do normal processing here 
armsleep 2
armkill  CASJobEngine
%ARCSERVE_HOME%\babha.exe -killjob
armkill CASMgmtSvc
armkill CASTapeEngine
armkill CASDBEngine
armkill CASMessageEngine
armkill CASunivDomainSvr
armkill CASSvcControlSvr
armkill CASASBUWebSvc
net stop "CA ARCserve Communication Foundation"
net stop CASportmapper

if %PRIMARY_SQLE_FLAG%==0 GOTO end
net stop mssql$arcserve_db

:end
REM Exit out of the batch file