ERROR V-5-2-3720 Unexpected error, dgid mismatch." when running vxconfigbackup

book

Article ID: 100018654

calendar_today

Updated On:

Description

Error Message

VxVM vxconfigbackup ERROR V-5-2-3720 Unexpected error, dgid mismatch.

 

Resolution

vxconfig backup is a tool designed to backup VxVM configuration database
 
It is started by the daemon vxconfigbackupd, which is ran in the startup process by the script:
 
For Solaris10 : /lib/svc/method/vxvm-recover
 
For previous Solaris versions and other OS.: /etc/init.d/vxvm-recover

By default, it backs up the configuration into /etc/vx/cbr/bk/dgname.dgid .

However, if for some reason, the files under dgname.dgid gets corrupt, the vxconfig backup will fail with the error:
            VxVM vxconfigbackup ERROR V-5-2-3720 Unexpected error, dgidmismatch.

To begin with, we need to identify the DiskGroup which is failing, i.e. :
# vxconfigbackuprootvg2
VxVM vxconfigbackup ERRORV-5-2-3720 Unexpected error, dgid mismatch.

Once we have identified the DiskGroup, we must see if the error is caused by the corrupted files within the backup directory; this can be done by running the config backup and redirecting its output to another directory, i.e:

#  vxconfigbackup -l/var/tmp/backup_test_rootvg2rootvg2

Start backing up diskgrouprootvg2 to

/var/tmp/backup_test_rootvg2/rootvg2.1188102555.37.hostid...

VxVM  NOTICE V-5-2-3100Backup complete for diskgroup: rootvg2

As we can see, the backup tool is working correctly, and the issue is with the backup repository.
 
To solve the issue, we can rename the repository:

# mv/etc/vx/cbr/bk/rootvg2.1188102555.37.hostid/etc/vx/cbr/bk/previous_rootvg2.1188102555.37.hostid

and run vxconfigbackup again:

#  vxconfigbackuprootvg2

Start backing up diskgroup rootvg2 to

/etc/vx/cbr/bk/rootvg2.1188102555.37.hostid...

VxVM  NOTICE V-5-2-3100 Backup complete for diskgroup:rootvg2
 

 

Issue/Introduction

Getting "VxVM vxconfigbackup ERROR V-5-2-3720 Unexpected error, dgid mismatch." when running vxconfig backup