Datastore <datastore_name> is not accessible. No connected and accessible host is attached to thisDatastore conflicts with an existing datastore in the datacenter that has the same URLVMware vCenter Server 9.x
VMware vCenter Server 8.x
VMware vCenter Server 7.x
Manually remove the datastore references from the Inventory:
# service-control --stop vmware-vpxd# /opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres select ID from VPX_ENTITY where name ='<datastore_name>';# delete from VPX_DS_ASSIGNMENT where DS_ID=<id>;
# delete from VPX_VM_DS_SPACE where DS_ID=<id>;
# delete from VPX_DATASTORE where ID=<id>;delete from VPX_ENTITY where ID=<id>;select * from VPX_DS_ASSIGNMENT where DS_ID=<id>;
select * from VPX_VM_DS_SPACE where DS_ID=<id>;
select * from VPX_DATASTORE where ID=<id>;
select * from VPX_ENTITY where ID=<id>;service-control --start vmware-vpxdSteps to unmount a LUN from an ESXi host, which includes unmounting the file system and detaching the datastore/storage device.