Loading

×Sorry to interrupt
Uncaught ReferenceError: addCTracking is not defined
throws at https://kb.vmware.com/resource/KM_TealiumTrackingJS?v=0.5:100:1

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

"Datastore conflicts with an existing datastore in the datacenter that has the same URL" error in vCenter Server (79623)

Last Updated: 4/21/2023Categories: TroubleshootingTotal Views: 69384Language:
Chinese (Simplified)English

68 like this article

Subscribe to get an email
newsletter with new updates

68 people found this helpful Please provide article feedback:

Symptoms

When adding an ESXi host to a vCenter Server that was previously part of a datacenter or cluster from another vCenter Server, you experience these symptoms:

Adding the ESXi host fails.

You see the error similar to:

Datastore 'datastorename(XX)' conflicts with an existing datastore in the datacenter that has the same URL (ds://vmfs/volumes/UUID/), but is backed by different physical storage.

Multiple ESXi hosts in the same cluster may become unresponsive or go to a Disconnected or Not Responding state as a result of the attempt to add the ESXi host.

Cause

This issue occurs due to a duplicate entry of the datastore UUID in the vCenter Server database.

Impact / Risks

This process interacts directly with the vCenter Server Appliance (VCSA) Postgres Database, and it is recommended to have a snapshot of the VCSA prior to proceeding.

Resolution

Ensure a snapshot is taken of the vCenter VM. Then, to resolve this issue:

Connect to the VCSA through SSH.

Access the Bash Shell with the command shell.set --enabled true or just type shell.

Stop the vpxd service with the command: service-control --stop vmware-vpxd

Access the Postgres DB using this command:

/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres

vCenter 6.5: Run the query select id,storage_url from vpx_datastore;

vCenter 6.7/7.x: select * from vpx_datastore;

 Alternatively, you may also run:

select * from vpx_datastore where storage_url='<storage URL from the error message>';

Look for the affected datastore (DS) UUID and find the ID.

To confirm the correct ID as needed, run select * from vpx_entity where id=(ID found on previous step);

Delete the entry from vpx_ds_assignment, vpx_vm_ds_space, vpx_datastore and vpx_entity using query delete from vpx_ds_assignment where DS_id=XXXX;

Sample were the ID = 461:

delete from vpx_ds_assignment where ds_id=461;
delete from vpx_vm_ds_space where ds_id=461;
delete from vpx_datastore where id=461;
delete from vpx_entity where id=461;

To quit from database use \q

Start the vmware-vpxd service in order for changes to be reflected:

service-control --start vmware-vpxd

Once the vmware-vpxd service is up again, proceed to add the ESXi host again back to the vCenter Server.

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)English

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

KB
•
在 vRealize Automation 8.x 中，容器状态为 "挂起" 或 "已退出" (78929)

KB
•
Los volúmenes VMFS (solo con ATS) en el almacenamiento SAS no se pudieron montar automáticamente al actualizar a 7.0 U2 y versiones adicionales (83249)

KB
•
Os volumes VMFS (somente ATS) no armazenamento SAS não foram desmontados automaticamente quando atualizados para a versão 7.0 U2 e a partir de agora (83249)

KB
•
VMFS (ATS-only) volumes on SAS Storage failed to automount when upgraded to 7.0 U2 and onwards (83249)

Results 1-5 of 6

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vSphere ESXi

VMware vSphere

VMware ESXi

Related Versions:

VMware vSphere ESXi 7.0.x

VMware vSphere ESXi 7.0.0

VMware vSphere ESXi 6.5

VMware vSphere 6.7.x

Take Our Survey

Support Assistant