Agent functions for Mount agent

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.

Note:

If you enable writeback mode for the SmartIO feature, the files that have pending dirty data can become inaccessible in the event of a node failure or Solid State Drive (SSD) device failure.

For more information about recovering the writeback cache, refer to the Veritas InfoScale SmartIO for Solid State Drives Solutions Guide.

Offline

Unmounts the mounted file system.

Monitor

Determines if the file system is mounted.

If IMF is enabled for the Mount agent, the resource is monitored asynchronously and any change in the resource state is immediately sent to VCS for appropriate action.

imf_init

Initializes the agent to interface with the asynchronous monitoring framework (AMF) kernel driver. This function runs when the agent starts up.

imf_getnotification

Waits for notification about resource state changes. This function runs after the agent initializes with the AMF kernel driver. The agent continuously waits for notification and takes action on the resource upon notification.

imf_register

Registers the resource entities, which the agent must monitor, with the AMF kernel driver. This function runs for each resource after the resource goes into steady state (online or offline). This action entry point registers the mount point, block device, and file system type for mount agent.

Clean

Unmounts the mounted file system forcefully.

Info

The Mount agent info 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

    Resets 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 auto file system tables.

    For example,

    /etc/fstab

    If this action fails, you need to remove the mount point from auto file system tables.

attr_changed

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