Agent functions

The value of the Operations attribute for this agent is OnOff.

Online 

Imports the disk group using the vxdg command. 

Offline 

Deports the disk group using the vxdg command. 

Monitor 

Determines if the disk group is online or offline using the vxdg command. 

HP-UX and Linux: The Monitor function changes the value of the VxVM noautoimport flag from off to on. This action allows VCS to maintain control of importing the disk group. The following command changes the autoimport flag back to off: 

# vxdg -g disk_group set autoimport=no

Clean 

Terminates all ongoing resource actions and takes the resource offline—forcibly when necessary. 

Info 

The DiskGroup info agent function gets information from the Volume Manager and displays the type and free size for the DiskGroup resource. 

Initiate the info agent function by setting the InfoInterval timing to a value greater than 0. 

In the following example, the info agent function executes every 60 seconds: 

# haconf -makerw

# hatype -modify DiskGroup InfoInterval 60

The command to retrieve information about the DiskType and FreeSize of the DiskGroup resource is: 

# hares -value diskgroupres ResourceInfo

Output includes for AIX, Linux, and Solaris: 

DiskType sliced

FreeSize 35354136

Output includes HP-UX: 

DiskType auto:cdsdisk

FreeSize 12765712

Action 

Different action agent functions follow: 

  • license.vfd

    Checks for valid Veritas Volume manager license-if one is not found use the vxlicinst utility to install a valid license key.

  • disk.vfd

    Checks if all disks in diskgroup are visible on host—if it fails, check if the path to disks exists from the host and check if LUN masking and zoning are set properly.

  • udid.vfd

    Checks the UDIDs of disks on the cluster nodes—if it fails, ensure that the disks that are used for the disk group are the same on all cluster nodes.

  • verifyplex.vfd

    Checks if the number of plexes on each site for the Campus Cluster setup are set properly—if it fails, check that the sites, disks, and plexes are set properly for a Campus Cluster setup.

  • volinuse

    Checks if open volumes are in use or file systems on volumes that are mounted outside of VCS configuration.

See High availability fire drill