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

  • Article ID:100027071
  • Modified Date:
  • Product(s):

Problem

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

Error Message

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

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 <diskgroup> -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

Solution

Code changes to fix this issue is available from VxVM version 5.1 onwards. Please upgrade to VxVM 5.1 or latest to address this issue.

Workaround

Only way to resolve the issue is to reboot the system.


Applies To

This issue is applicable to systems running VxVM less than 5.1 version.

Related Articles

ERROR: Disk group %diskgroup name%: Some volumes in the disk group are in use" appears while deporting a disk group

Was this content helpful?

Get Support