VMwareDisks agent trigger to clean up stale disk entries that appear as error state in Veritas Volume Manager (VxVM) vxdisk command
book
Article ID: 100034089
calendar_today
Updated On:
Description
Error Message
The detached disks by VMwareDisks resource are seen in error state with vxdisk command
Cause
The issue occurs due to incorrect handling by the VmwareDisk resource in VCS during online/faulted state changes for the VxVM disks.
.
Resolution
To resolve this issue, Veritas has developed a new
resstatechange trigger to clean up the stale VxVM entries after the VMwareDisks resource offline operation.
Functionality :
The trigger is executed for the following state changes of the VMwareDisks resources.
- ONLINE -> OFFLINE
- FAULTED -> OFFLINE
The
resstatechange trigger does the following:
- Identify if the disk is managed by VxVM.
- If the disk is managed by VxVM, remove the disk from VxVM configuration.
- Remove the device from the operating system (OS) device tree.
- Scan the disks.
Follow the below configuration steps to add the mentioned trigger to the resource:
- Download the attachment which contains the resstatechange file.
- On all the nodes in the cluster, copy the resstatechange trigger to the /opt/VRTSvcs/bin/triggers/ directory.
- On any node, enter the following commands to enable the resstatechange trigger for all the VMwareDisks resource:
/opt/VRTSvcs/bin/haconf -makerw
/opt/VRTSvcs/bin/hares -modify TriggerResStateChange 1
/opt/VRTSvcs/bin/hares -modify TriggerResStateChange 1
/opt/VRTSvcs/bin/hares -modify TriggerResStateChange 1
……
…..
/opt/VRTSvcs/bin/hares -modify TriggerResStateChange 1
/opt/VRTSvcs/bin/haconf -dump -makero
Resource information in main.cf after modifications :
VMwareDisks vmware_disk_res1 (
TriggerResStateChange = 1
ESXDetails = {
"server101.veritas.com" = "root=XsLUiSPuKShUJoGMhMImJ" }
DiskPaths = {
"6000C297-282d-8f20-d84d-ec235f7b34ce:[SAN1] vm1/vm1_7.vmdk" = "1:0",
"6000C296-913f-ff78-9e29-4c6ec521497c:[SAN300G] vm1/vm1_8.vmdk" = "1:1" }
VirtualDiskMode = independent_persistent
)
Issue/Introduction
In a Cluster Server (VCS) cluster, the VMwareDisks agent attaches the disks to a single virtual machine at a time.This helps to enable vMotion and Distributed Resource Scheduler (DRS) capabilities to a virtual machine in a VMware environment.The agent, as part of the online/offline operation, attaches the disks to the virtual machine and detaches it from the virtual machine.
While detaching, the agent leaves stale VxVM entries.
Additional Information
ETrack: 3916381
Was this article helpful?
thumb_up
Yes
thumb_down
No