Managing VMFS Volume Copies (Resignaturing)
By default, ESX/ESXi hosts mount all VMFS datastores. Each VMFS datastore that is created in a partition on a LUN has a unique UUID that is stored in the file system superblock. In addition, the LUN ID of the source LUN is unique and is stored in the VMFS metadata.
When a LUN is replicated or a copy is made, the resulting LUN copy is identical, byte-for-byte, with the original LUN. As a result, if the original LUN contains a VMFS datastore with UUID X, the LUN copy appears to contain an identical VMFS datastore, or a VMFS datastore copy, with exactly the same UUID X. ESX/ESXi can determine whether a LUN contains the VMFS datastore copy, and considers the copy unresolved and does not mount it automatically.
To make the data on the LUN copy available, you can either force mount the copy if you are sure the original is not in use, or you can resignature the copy. When you perform datastore resignaturing, consider the following points:
See the vSphere Storage documentation for additional information.
The easiest way to resignature unresolved volumes is by using the HostDatastoreSystem.ResignatureUnresolvedVmfsVolume_Task method. The method assigns a new DiskUuid to a VMFS volume, but keep its contents intact. The method supports safe volume sharing across hosts and is appropriate in most cases.
You can instead use the low-level HostStorageSystem methods to find, force mount, or unmount unresolved volumes:
HostStorageSystem.QueryUnresolvedVmfsVolume – Obtains the list of unbound VMFS volumes. For sharing a volume across hosts, a VMFS volume is bound to its underlying block device storage. When a low-level block copy is performed to copy or move the VMFS volume, the copied volume is unbound.
HostStorageSystem.ResolveMultipleUnresolvedVmfsVolumes – Resignatures or force mounts unbound VMFS volumes. This method takes a HostUnresolvedVmfsResolutionSpec data object as input. The HostUnresolvedVmfsResolutionSpec.resolutionSpec property is an array of HostUnresolvedVmfsResolutionSpec data objects that contain a HostUnresolvedVmfsResolutionSpecVmfsUuidResolution enumeration. The enumeration is either forceMount or resignature.
UnmountForceMountedVmfsVolume – Unmounts a force mounted VMFS volume. When a low-level block copy is performed to copy or move the VMFS volume, the copied volume is unresolved. For the VMFS volume to be usable, a resolution operation is applied. As part of resolution operation, you might decide to keep the original VMFS UUID. Once the resolution is applied, the VMFS volume is mounted on the host for its use. This method allows you to unmount the VMFS volume if it is not used by any registered virtual machines.