When adding an ESXi host to a vCenter Server that was previously part of a datacenter or cluster from another vCenter Server, these symptoms are experienced:
1. Adding the ESXi host fails
2. Multiple ESXi hosts in the same cluster may become unresponsive or go to a Disconnected or Not Responding state.
3. vCenter inventory displays a datastore having the same name in 2 different datacenters.
Datastore 'datastore name(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.
1. Check the ESXi hosts to see whether they still see this datastore using CLI or from the vCenter inventory.
[root@esxi1:~] df -h
Filesystem Size Used Available Use% Mounted on
VMFS-6 399.8G 165.3G 234.5G 41% /vmfs/volumes/VMFS
2. Get the naa ID from the CLI or vCenter GUI.
NOTE: Here you see two different LUNs and VML IDs because one's the original and the other is a replica/snapshot but it's backed by the same volume on the storage array and has the same size but is assigned a different UUID by vCenter because of the LUN resignature operation.
Troubleshooting LUNs detected as snapshot LUNs in vSphere
VMFS - naa.################################- ########-########-####-############ (Original LUN)
VMFS - naa.################################- ########-########-####-############ (Replica LUN/snapshot)
[root@esxi2:~] ls -lah /dev/disks/ | grep -i naa.################################ (Original LUN)
-rw------- 1 root root 400.0G Nov 17 17:46 naa.################################
-rw------- 1 root root 400.0G Nov 17 17:46 naa.################################:1
lrwxrwxrwx 1 root root 36 Nov 17 17:46 vml.######################################################-> naa.################################
lrwxrwxrwx 1 root root 38 Nov 17 17:46 vml.######################################################:1 -> naa.
################################
:1
[root@esxi1:~] ls -lah /dev/disks/ | grep -i naa.################################ (Replica LUN/Snapshot)
-rw------- 1 root root 400.0G Nov 17 17:46 naa.################################
-rw------- 1 root root 400.0G Nov 17 17:46 naa.################################:1
lrwxrwxrwx 1 root root 36 Nov 17 17:46 vml.######################################################-> naa.################################
lrwxrwxrwx 1 root root 38 Nov 17 17:46 vml.######################################################:1 -> naa.
################################
:1
[root@esxi1:~] esxcfg-scsidevs -m
naa.################################:1 /vmfs/devices/disks/naa.################################:1 ########-########-####-############ 0 VMFS
[root@esxi2:~] esxcfg-scsidevs -m
naa.################################:1 /vmfs/devices/disks/naa.################################:1 ########-########-####-############ 0 VMFS
3. Run this command to check if the ESXi host is seeing any snapshots.
[root@esxi1:~] esxcfg-volume -l
Scanning for VMFS-3/VMFS-5 host activity (512 bytes/HB, 2048 HBs).
VMFS UUID/label: ########-########-####-############/VMFS
Can mount: No (the original volume is still online)
Can resignature: Yes
Extent name: naa.################################:1 range: 0 - 6649855 (MB)
NOTE: You can also use esxcli storage vmfs snapshot list but the output may not be the same as esxcfg-volume -l
[root@usflmia-esx131:~] vmkfstools -Ph -v1 /vmfs/volumes/VMFS
VMFS-6.82 (Raw Major Version: 24) file system spanning 1 partitions.
File system label (if any): VMFS
Mode: public ATS-only
Capacity 399.8 GB, 234.4 GB available, file block size 1 MB, max supported file size 64 TB
Volume Creation Time: Wed May 8 13:35:40 2024
Files (max/free): 16384/16248
Ptr Blocks (max/free): 0/0
Sub Blocks (max/free): 16384/16226
Secondary Ptr Blocks (max/free): 256/255
File Blocks (overcommit/used/overcommit %): 0/169280/0
Ptr Blocks (overcommit/used/overcommit %): 0/0/0
Sub Blocks (overcommit/used/overcommit %): 0/158/0
Large File Blocks (total/used/file block clusters): 800/222/192
Volume Metadata size: 1781989376
Disk Block Size: 512/16384/0
UUID: ########-########-####-############
Partitions spanned (on "lvm"):
naa.################################:1
Is Native Snapshot Capable: NO
OBJLIB-LIB: ObjLib cleanup done.
WORKER: asyncOps=0 maxActiveOps=0 maxPending=0 maxCompleted=0
NOTE: When you mount a snapshot/replica LUN by resignaturing it manually or resignatured by SRM or a 3rd party product like your SAN via a plug-in workflow etc., it resignatures VMFS with a new UUID. So, in a nutshell, if a host has 2 LUNs attached to it with a different UUID, you hit this error because vCenter is potentially seeing 2 different UUIDs backed by 2 different LUNs belonging to the same volume on the storage array.
Datastore 'VMFS' conflicts with an existing datastore in the datacenter that has the same
URL (ds:///vmfs/volumes/########-########-####-############/), but is backed by different physical storage.
Follow the procedure below to fix this error
Assuming you have data stored on this datastore and VMs running on it, please follow the procedure in the sequence mentioned below. This will require downtime of the VMs.
1. Shutdown the VMs running on the concerned datastore
2. Unmount this datastore from all the hosts its mounted to across clusters or datacenters present within the vCenter
3. Detach the replica/snapshot LUN from all the hosts in the vCenter
2. Perform a storage rescan at the datacenter object level
4. Mount the original (LUN) datastore to one of the hosts and go to the datastore view to remount it on the remaining hosts in the cluster/datacenter.
This will eliminate the replica/snapshot LUN and now vCenter must not complain about this error.
Removal of a datastore from vCenter database procedure must be followed when the datastore in question as seen in the error is not visible in vCenter inventory or doesn't go away by performing a vCenter reboot.
Ensure a snapshot is taken of the vCenter VM. Then, to resolve this issue:
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.
Troubleshooting LUNs detected as snapshot LUNs in vSphere