MountV resource fails to offline or online and appears to hang in VCS Java console.

book

Article ID: 100017450

calendar_today

Updated On:

Description

Error Message

 

The below error is logged in the MountV_A.log located at %VCS_HOME%\log when MountV is hung during the Online operation

VCS WARNING V-16-10051-9023 MountV:<MountResourceName>:online:Unable to open volume [2:2]

 

The below error is logged in the MountV_A.log located at %VCS_HOME%\log when MountV is hung during the Offline operation

VCS WARNING V-16-10051-9023 MountV:<MountResourceName>:offline:Failed to lock volume [2:5]

Cause

The issue occurs when one or more applications have an open handle on the volume configured as the MountV resource.

As per design, the MountV resource cannot be brought online or taken offline if it is locked by another process/application. 

.

Resolution

All processes and applications which have open write handles to a volume must be stopped before MountV can go online or offline. Microsoft's Handle.exe and Process Explorer tools can be used to find the process ID for any open handles that cannot be stopped gracefully.
 
The MountV resource may not respond to any further commands once it is in a hung state. When this occurs, a recycle of the cluster service is required before any new commands can be executed against the resource.
 
Follow the steps below on the node where the MountV resource is currently hung in Waiting to go online or Waiting to go offline state:
  1. Save and close the VCS configuration using haconf -dump -makero
  2. Stop VCS using hastop -local -force to allow only the HAD engine to be stop without impacting the clustered resources.
  3. Start the HAD engine using hastart
  4. Perform a fresh attempt of Online or Offline operation for the MountV resource. 

If the issue still persists, the below options can be explored:

a) Use Microsoft's Handle.exe or Process Explorer tools to determine which processes have open handles on the volume. Veritas Cluster Server (VCS) should be configured to stop any applications which are using the volume with proper dependency to go offline before MountV. 

b) MountV attribute ListApplications can be enabled to detect and log applications which have open handles during the offline operation. The handle details are logged in %VCS_HOME%\log\MountV_A.log.

Note: It is best to determine the underlying issue and address the root cause before proceeding with next steps

For offline operation failure, in some cases, consider setting the ForceUnmount attribute to ALL for the MountV resource, and retry the offline operation.

Warning: ForceUnmount = ALL results in a volume being taken offline forcibly even when a write handle exists. This may result in file system corruption and should be used with extreme caution under the direction of Veritas Support. Only enable this option if you are sure there are no applications or users writing to the volume, and have backups of data available to restore should it become unrecoverable. AutoFSClean attribute should be enabled where ForceUnmount = ALL to allow VCS to run CHKDSK against any filesystem reported as not clean during the next MountV online operation.

How MountV reacts to open handles depends on the value of the ForceUnmount attribute in the resource properties:

  • NONE: MountV will not go offline if any handle remains on the volume.
  • READ_ONLY: MountV will go offline if a read handle remains on the volume, but will not go offline if a write handle remains on the volume. (Default)
  • ALL: MountV will go offline if either a read or write handle remains on the volume.
 

Issue/Introduction

For Infoscale on Windows, an attempt to online or offline the MountV resource may get hung in the Waiting to go online or Waiting to go offline status respectively.