因爲以前vCenter的數據庫出了點問題,後來從新裝了數據庫,因此致使VIEW的動態桌面池有丟失。所以今天,本人想刪除一個桌面池,從新新建。可是刪到一半不動了,本人懷疑可能以前數據庫有問題因此執行不下去,因而手賤去手動刪除了虛擬機的文件夾。而後就悲劇了。。桌面池和該池下的全部虛擬機都顯示「正在刪除(缺乏)」,而且可操做項都是灰色。node
查了些資料,最後找到了解決辦法:web
要分2步進行刪除數據庫
1、首先從數據庫層面刪除數據服務器
一、以管理員身份登陸安裝composer的服務器composer
二、打開CMD,進入到composer的安裝目錄,例如:c:\Program Files (x86)\VMware\VMware View Composerdom
三、運行SVICONFIGide
該工具要帶參數,這裏以實例進行講解,其他參數可自行查閱工具
sviconfig -operation=removesviclone -Vmname=your vm name(要刪的虛機名字)
-AdminUser=Administrator(超級管理員賬號) -AdminPassword=password(你的密碼)ui
注意,命令不要換行。刪除成功以下圖所示。spa
這時候你從VCS後臺進去看發現桌面和池還在,不要急,看下view composer數據庫中的SVI_SIM_CLONE表,真的有刪除哦親,等到你看個人第二部分VCS裏就沒了哦親
2、從ADSI中刪除
一、登陸ADSI,如下是官網提供的方法,照作就行
Windows Server 2003
To connect to the View ADAM database:
- Log in to one of the View Connection Servers as the domain administrator.
- Click Start > Programs > ADAM > ADAM ADSI Edit.
- In the console window, right-click ADAM ADSI Edit and click Connect to.
- Under Connection name, type View ADAM Database.
- Under Server name, make sure localhost is selected.
- Under Port, make sure 389 is entered.
- Under Connect to the following node, select Distinguished name (DN) or naming context.
- In the field below, type dc=vdi,dc=vmware,dc=int
- Click OK.
- Click View ADAM Database [localhost:389] to expand.
- Click DC=vdi,dc=vmware,dc=int to expand.
Windows Server 2008
To connect to the View ADAM database:
- Log in to one of the View Connection Servers as the domain administrator.
- Click Start > Administrative Tools > ADSI Edit.
- In the console window, right-click ADSI Edit and click Connect to.
- In the Name field type: View ADAM Database
- Select Select or type a Distinguished Name or Naming Context.
- In the field below, type dc=vdi,dc=vmware,dc=int
- Select Select or type a domain or server.
- In the field below, type localhost
- Click OK.
- Click View ADAM Database [localhost] to expand.
- Click DC=vdi,dc=vmware,dc=int to expand.
開始——運行——adsiedit.msc,而後按下面填寫
二、找到OU=Applications和OU=Server Groups下的要刪除的那個桌面池,刪除便可
三、趕快去看下你的VCS吧,是否是沒有了?
3、定義了永久磁盤的各位親還要多一個步驟
刪掉。。。不刪也行,反正磁盤空間早就刪了