vxdg deport command fails with "VxVM vxdg ERROR V-5-1-584 Disk group testdg: Some volumes in the disk group are in use" error

book

Article ID: 100027071

calendar_today

Updated On:

Description

Error Message

# vxdg deport testdg
VxVM vxdg ERROR V-5-1-584 Disk group testdg: Some volumes in the disk group are in use

WorkaroundThe only way to resolve the issue is to reboot the system.

 

Cause

The command to deport vxvm disk groups (vxdg deport) expects all the file systems that uses the volumes from the disk groups to be unmounted. In certain occasions, even after unmounting all the associated file systems and stopping the volumes, disk group deport may fail with above error message.

To check whether VxVM is still sending I/O to the volume, run the following command:
 


# vxprint -g -m | grep devopen
 

NOTE: If the above command returns "devopen=on" then the volume is still in an active state in the kernel, although it is probably not showing up as mounted when the df -k command is run.

Due to a defect in the code tracked via etrack incident 1541159, the disk group deport fails even when no volume device belonging to the DG has MSG reference count greater than 0 which incorrectly causes device BUSY error. This is reflected from vxconfigd debug log (when enabled):



04/21 19:32:15: VxVM vxconfigd DEBUG V-5-1-900 REQUEST DG_DEPORT_ID: client 1718112811, pid 420, portal DIAG, size 172
04/21 19:32:15: VxVM vxconfigd DEBUG V-5-1-5892 REQUEST FAILURE: client 1718112811: Disk group does not exist

04/21 19:32:15: VxVM vxconfigd DEBUG V-5-1-900 REQUEST DG_DEPORT: client 1718112811, pid 420, portal DIAG, size 136
04/21 19:32:15: VxVM vxconfigd DEBUG V-5-1-681 IOCTL DELETE_GROUP dgiid=1024.563: failed: errno=16 (Device or resource busy)
04/21 19:32:15: VxVM vxconfigd DEBUG V-5-1-5892 REQUEST FAILURE: client 1718112811: Volume or plex device is open or attached

Issue/Introduction

Deporting Veritas Volume Manager (VxVM) disk groups fails with "VxVM vxdg ERROR V-5-1-584 Disk group testdg: Some volumes in the disk group are in use" error

Additional Information

ETrack: 1541159