186

Creating and administering disk groups

Moving disk groups between systems

Caution: The purpose of the lock is to ensure that dual-ported disks (disks that can be accessed simultaneously by two systems) are not used by both systems at the same time. If two systems try to access the same disks at the same time, this must be managed using software such as the clustering functionality of VxVM. Otherwise, configuration information stored on the disk may be corrupted, and the data on the disk may become unusable.

Handling errors when importing disks

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

The next message indicates that the disk group does not contains any valid disks (not that it does not contains any disks):

VxVM vxdg ERROR V-5-1-587 Disk group groupname: import failed:

No valid disk found containing disk group

The disks may be considered invalid due to a mismatch between the host ID in their configuration copies and that stored in the /etc/vx/volboot file.

To clear locks on a specific set of devices, use the following command:

#vxdisk clearimport devicename ...

To clear the locks during import, use the following command:

#vxdg -C import diskgroup

Caution: Be careful when using the vxdisk clearimport or vxdg -C import command on systems that have dual-ported disks. 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 -foption to forcibly import a disk group if some disks are not available. If the import operation fails, an error message is displayed.

The following error message indicates a fatal error that requires hardware repair or the creation of a new disk group, and recovery of the disk group configuration and data:

VxVM vxdg ERROR V-5-1-587 Disk group groupname: import failed:

Disk group has no valid configuration copies

Page 185
Image 185
HP Veritas Volume Manager 5.0 -UX 11i v3 manual Handling errors when importing disks, # vxdisk clearimport devicename