VCSA中删除horizon view链接克隆生成的replica-受保护副本
2020年11月17日 12:32
测试期间直接删除了composer服务器,导致link clone生成的replica-xxx命令的副本母机无法删除,需要先解除保护后才能从VCSA中。
登录composer服务器,停用掉view composer服务,接着cmd先cd到C:\Program Files (x86)\VMware\VMware View Composer目录下,执行以下命令:
SviConfig -operation=UnprotectEntity -VcUrl=https://VC地址/sdk -DsnName=数据库名 -DbUsername=sa -DbPassword=SA密码 -VcUsername=Administrator@vsphere.local -VcPassword=VC密码 -InventoryPath="/Datacenter/vm/VMwareViewComposerReplicaFolder/replica-96553915-fd20-4fca-9c8c-be3bc9d892e2" -Recursive=true
执行过程中遇到了错误的话,请参考以下:
ExitStatus:
0 - operation ends successfully.
1 - The supplied DSN name can not be found.
2 - The supplied credentials are invalid.
3 - Unsupported driver for the provided database.
4 - Unexpected problem arisen.
9 - invalid URL.
10 - VC can not be accessed.
11 - entity is not found.
12 - unknown entity type.
13 - release failed.
15 - Other application is using required resources. Stop it and retry
the operation.
18 - Unable to connect to database server.
34 - invalid VC certificate.
可算是能删掉了:
参考:
https://www.ntueees.tp.edu.tw/wordpress/?p=1686
https://kb.vmware.com/s/article/1008704?lang=zh_CN
https://kb.vmware.com/s/article/2009844?lang=zh_CN
http://blog.sina.com.cn/s/blog_83536791010111a4.html
https://blog.51cto.com/wangchunhai/1846285
https://blog.51cto.com/11388141/2295893