Agent functions

Online 

Mounts a block device on the directory. If the mount process fails for non-NFS mounts, the agent attempts to run the fsck command on the device before attempting to mount the file system again.  

If file system type is NFS, agent mounts the remote file system to a specified directory. The remote NFS file system is specified in the BlockDevice attribute. 

Offline 

Unmounts the mounted file system gracefully. 

Monitor 

Determines if the file system is mounted.  

 

Clean 

Unmounts the mounted file system forcefully. 

Info 

The Mount info agent function executes the command: 

df -h mount_point

The output displays Mount resource information: 

Size Used Avail Use%

To initiate the info agent function, set the InfoInterval timing to a value greater than 0. In this example, the info agent function executes every 60 seconds: 

haconf -makerw

hatype -modify Mount InfoInterval 60

The command to retrieve information about the Mount resource is: 

hares -value mountres ResourceInfo

Output includes: 

Size 2097152

Used 139484

Available 1835332

Used% 8%

Action 

  • chgmntlock

    Invoke this action to reset the VxFS file system lock to a VCS-defined lock.

  • mountpoint.vfd

    Checks if the specified mount point exists on the offline node. If it fails and you request that VCS fixes it, it creates the mount point directory using mkdir command.

  • mounted.vfd

    Checks if the mount point is already mounted on the offline node. If it fails, you need to unmount all the file systems from the specified mount point directory.

  • vxfslic.vfd

    Checks for valid Veritas File System (VxFS) licenses. If it fails, you need to update the license for VxFS.

  • mountentry.vfd

    Checks that the mount point is not listed in file system tables (e.g. /etc/fstab ).

    This action prevents the automatic mounting of the file system when the system reboots. If it fails, you need to remove mount point from file system tables.

attr_changed 

Unlocks the mounts when you change the value of the VxFSMountLock attribute from 1 to 0.