Veritas Volume Replicator (VVR) operation reports "Failed to acquire lock on volume. Please close all applications using volume(s) under replication and try this operation again"
book
Article ID: 100017934
calendar_today
Updated On:
Description
Error Message0
V-106-58644-329 Failed to acquire lock on volume. Please close all applications using volume(s) under replication and try this operation again.
Cause
This issue may occur when performing any of the following operations:
- Disabling data access to the Replicated Volume Group (RVG)
- Creating the Secondary RVG
- Adding new volumes to the RVG
- Migrating the RVG through Veritas Enterprise Administrator or Veritas Cluster failover
These operations first try to lock all the volumes under the RVG. This holds true for both the primary and secondary RVG volumes. These operations also require that no application should be using the volumes under replication.
These operations fail if Veritas Volume Replicator (VVR) is unable to lock the volume for the following reasons:
a) An application or file handle is still open on the volume, preventing it from being locked.
b) The volume is being accessed through Windows Explorer or the command prompt.
When performing a "migrate" operation, the command attempts to disable data access to the RVG. However, if it is unable to lock the volumes due to the reasons mentioned above, the operation fails.
Resolution
1. Ensure the required volumes are not accessed through any of the Windows Explorer windows or the command prompt.
2. Ensure the application handles are closed on these volumes. Ensure all data volumes are configured with MountV resources in order for Veritas Cluster Server to stop the volume before migration.
3. Stop the application before disabling data access to the RVG.
Issue/Introduction
This issue may occur when performing any of the following operations:
- Disabling data access to the Replicated Volume Group (RVG)
- Creating the Secondary RVG
- Adding new volumes to the RVG
- Migrating the RVG through Veritas Enterprise Administrator or Veritas Cluster failover
These operations first try to lock all the volumes under the RVG. This holds true for both the primary and secondary RVG volumes. These operations also require that no application should be using the volumes under replication.
These operations fail if Veritas Volume Replicator (VVR) is unable to lock the volume for the following reasons:
a) An application or file handle is still open on the volume, preventing it from being locked.
b) The volume is being accessed through Windows Explorer or the command prompt.
When performing a "migrate" operation, the command attempts to disable data access to the RVG. However, if it is unable to lock the volumes due to the reasons mentioned above, the operation fails.
Solution
1. Ensure the required volumes are not accessed through any of the Windows Explorer windows or the command prompt.
2. Ensure the application handles are closed on these volumes. Ensure all data volumes are configured with MountV resources in order for Veritas Cluster Server to stop the volume before migration.
3. Stop the application before disabling data access to the RVG.
Was this article helpful?
thumb_up
Yes
thumb_down
No