When you move disks from a system that has crashed or that failed to detect the group before the disk was moved, the locks stored on the disks remain and must be cleared. The system returns the following error message:
VxVM vxdg ERROR V-5-1-587 disk group groupname: import failed: Disk is in use by another host
VxVM vxdg ERROR V-5-1-587 Disk group groupname: import failed: No valid disk found containing disk group
# vxdisk clearimport devicename ...
# vxdg -C import diskgroup
Be careful when using the vxdisk clearimport or vxdg -C import command on systems that see the same disks via a SAN. Clearing the locks allows those disks to be accessed at the same time from multiple hosts and can result in corrupted data.
A disk group can be imported successfully if all the disks are accessible that were visible when the disk group was last imported successfully. However, sometimes you may need to specify the -f option to forcibly import a disk group if some disks are not available. If the import operation fails, an error message is displayed.
VxVM vxdg ERROR V-5-1-587 Disk group groupname: import failed: Disk group has no valid configuration copies
VxVM vxdg ERROR V-5-1-587 Disk group groupname: import failed: Disk for disk group not found
# vxdg -f import diskgroup
As using the -f option to force the import of an incomplete disk group counts as a successful import, an incomplete disk group may be imported subsequently without this option being specified. This may not be what you expect.
You can also import the disk group as a shared disk group.
These operations can also be performed using the vxdiskadm utility. To deport a disk group using vxdiskadm, select Remove access to (deport) a disk group from the main menu. To import a disk group, select Enable access to (import) a disk group. The vxdiskadm import operation checks for host import locks and prompts to see if you want to clear any that are found. It also starts volumes in the disk group.