Resignaturing Volumes with
ResignatureUnresolvedVmfsVolume_Task

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.