vCenter: Could not allocate space for object …

最近 vCenter 會出現某台 ESXi 主機的 “主機連線和電源狀態” 警告…
所以根據 Host connection and Power state in ESXi 5.0 的說明
把 vCenter 上的防火牆設定 開啟 902, 5989, 80,443,623, 8000, 8001, 6500, 514,8080 這幾各 Port

然後觀察一下 vCenter 那台的系統日誌發現了幾個錯誤…
1. Could not allocate space for object ‘dbo.VPX_EVENT_ARG’.’PK_VPX_EVENT_ARG’ in database ‘VIM_VCDB’ because the ‘PRIMARY’ filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.
2. CREATE DATABASE or ALTER DATABASE failed because the resulting cumulative database size would exceed your licensed limit of 4096 MB per database.

因為當初安裝的版本是 mssql 2005 excpress…要解決 2 的問題只有升級了~這危險的動作就先不做
於是先針對 1 進行修正
先下載 Microsoft SQL Server Management Studio Express 2005 進行安裝
然後根據 Purging old data from the database used by VMware vCenter Server 4.x and 5.x (1025914) 的步驟進行
1. 開啟 VIM_VCDB -> dbo.VPX_PARAMETER 修改兩個屬性值
(1) 修改 event.maxAge 為 30 ( 網頁上說的,只是我依舊保留 180 ),修改 event.maxAgeEnabled 為true
(2) 修改 task.maxAge 為 30 ( 同上 ),修改 task.maxAgeEnabled 為true
2. 執行預存程序 VIM_VCDB -> 可程式性 -> 預存程序 -> dbo.cleanup_events_tasks_proc

這樣就會把許早之前的 log 先清空,爭取一點空間吧~!

This entry was posted in MSSQL, VMware. Bookmark the permalink.