在vCenter的存储里删除了"replica-b86ddda1-ba5b-4bb4-943d-1c37d2ead05b"目录里所有的内容,但在View还存在"replica-b86ddda1-ba5b-4bb4-943d-1c37d2ead05b"这个条目,用下面命令可以删除掉。
C:\Program Files (x86)\VMware\VMware View Composer>sviconfig -operation=unprotectentity -DsnName=VIEW_COMPOSER -VcUrl=https://192.168.0.1/sdk -VcUsername=administrator -VcPassword= -InventoryPath="<Datacenter Name>/vm/VMwareViewComposerReplicaFolder/replica-b86ddda1-ba5b-4bb4-943d-1c37d2ead05b" -Recursive=true
WARNING: Unprotecting VC managed entities will allow operations
(power on, delete, migrate) that can cause existing linked clones connected
to those managed entities to fail to work correctly.
Establishing database connection.
Database connection established successfully.
Loading all VC config entries.
Identifying matched VC config entries.
Identified 0 matched VC config entries.
Identified 0 matched VC config entries with certificate validation set to true.
No matched VC configure entry is found. Connecting to VC with no certificate val
idation
Establishing connection to the VC server.
VC server connection established successfully.
Looking for the entity on the VC server.
VirtualMachine found.
VirtualMachine with MoId vm-30 sucessfully unprotected.
Successfully unprotected entities: 1
Fail to unprotect entities: 0