Server:
FS1 - Windows Storage Server 2003 R2
FS2 - Windows Storage Server 2003 R2
案例一:
在 FS1 中,當開啟 BAB Management GUI 畫面時,反應很慢
過一會會出現,DataBase Agent 已經停止的訊息
手動開啟 DataBase Agent ,DataBase Agent 又會自己停下
查詢 C:\program files\ca\BrightStor ARCserve Backup\database\
發現 astpsdat 已經大於2G
初判是因為 VLDB > 2G 造成 DataBase Agent 異常
修復動作一:
打算對 VLDB 作掃描、修復、重整的動作
指令如下 :
database.bat ---------------------------------------------------------------------------------------------------------------
c:
cd\
cd program files\ca\BrightStor ARCserve Backup\
rem This will check all of the databases for errors
dbcheck -a -L casdb;admin;secret asjob
dbcheck -a -L casdb;admin;secret asmedia
dbcheck -a -L casdb;admin;secret asobject
dbcheck -a -L casdb;admin;secret asrhost
dbcheck -a -L casdb;admin;secret astape
dbcheck -a -L casdb;admin;secret astpdrv
dbcheck -a -L casdb;admin;secret astpsdat
rem This section will repair each database as needed
dbfix -a -L casdb;admin;secret asjob
dbfix -a -L casdb;admin;secret asmedia
dbfix -a -L casdb;admin;secret asobject
dbfix -a -L casdb;admin;secret asrhost
dbfix -a -L casdb;admin;secret astape
dbfix -a -L casdb;admin;secret astpdrv
dbfix -a -L casdb;admin;secret astpsdat
rem This section will remove deleted records from the database
dbdefrag -a -L casdb;admin;secret asjob
dbdefrag -a -L casdb;admin;secret asmedia
dbdefrag -a -L casdb;admin;secret asobject
dbdefrag -a -L casdb;admin;secret asrhost
dbdefrag -a -L casdb;admin;secret astape
dbdefrag -a -L casdb;admin;secret astpdrv
dbdefrag -a -L casdb;admin;secret astpsdat
rem This section will repair high-level key problems, and should only be run in
conjunction DBDEFRAG.
keybuild -k -L casdb;admin;secret asjob
keybuild -k -L casdb;admin;secret asmedia
keybuild -k -L casdb;admin;secret asobject
keybuild -k -L casdb;admin;secret asrhost
keybuild -k -L casdb;admin;secret astape
keybuild -k -L casdb;admin;secret astpdrv
keybuild -k -L casdb;admin;secret astpsdat
-----------------------------------------------------------------------------------------------------------------------------------
執行後會產生 "Failed to log into server 'casdb', username 'admin': error -2005." 的錯誤
The VLDB utility can not log into the database. The most likely causes are that the BrightStor ARCserve Backup database engine needs to be started, or the server name entered is incorrect. For BrightStor Enterprise backup the servername is always casdb - regardless of the name of your server.
老實說我看不懂,自己判斷是因為 database Agent 無法順利啟動造成
修復動作二:
沒其他招數,所以呼叫 C:\program files\ca\BrightStor ARCserve Backup\bconfig.exe
將 BAB Server 的資料庫連結到其他台的 SQL
可以順利連結成功,database agent 可以順利啟動,其他工作也可正常運作
修復動作三:
因為連結 SQL DB不符合本系統建購環境的效能,怕拖累備份速度
後決定重置 VLDB,並連結回 VLDB
1.呼叫 C:\program files\ca\BrightStor ARCserve Backup\bconfig.exe 設回 VLDB
2.於「伺服器管理」-「資料庫引擎」頁,點選功能選單的「操作」-「初始化資料庫」,就可選擇你所要初始的資料庫範圍:「所有的資料庫」、「將初始化的資料庫」。
VLDB 資料清空,database agent 可順利啟動
案例二:
FS2 Server 中的 astpsdat 已經大於1G
因此也執行對 VLDB 作掃描、修復、重整的動作 database.bat
(指令同上)
因為安裝後大約四個月時間都沒做過類似的資料庫重整
在掃描 asobject & astpsdat 花不少時間
本預計最後的結果能縮小資料庫大小
沒想到最後資料庫size沒有明顯的變化,還是>1G
預計下各月將手動清除DB資料,然後再做 dbdefrag 試看看!!
BrightStor ARCserve Backup Manager Database window:
From the BrightStor ARCserve Backup Manager, under the Database window, select either the Job or Tape View.
Entries can be highlighted and deleted by clicking on the trashcan. Multiple entries can be selected at the same time by holding down the Ctrl key.
Records will be deleted at the Job and Tape level only, and not at the session level.
Deleting the records from the Database manager only creates empty space within the database files. Database pruning is only the first step in reducing database size. This only marks entries as deleted (and therefore reusable), but they still take up space. The next step is to run the dbdefrag utility.
參考資料 :
修復 CA PS2 - BAB for Windows 資料庫