ERROR V-5-1-7021 Volume has badlog DCO" reported for DCO log

book

Article ID: 100020719

calendar_today

Updated On:

Description

Error Message

VxVM vxsnap ERROR V-5-1-7021 Volume has badlog DCO"

Cause

The issue occurs as the DCO log attached to a snapshot is stale.
 
 

Resolution

1. Remove the log with the following command:
#vxsnap -f -g unprepare

 

If the volume in question has a snap object, it will fail with following error messages;

VxVM vxsnap ERROR V-5-1-6170  Volume  is in snapshot chain
 
In this case, the snapshot object should be removed before running the above command as below;
# vxassist -g snapclear <snapshotvolume>    <<<< Should be a snapshot volume not a source volume 
 
Then run the above command again.
 
2. Add the log back with:
vxsnap -g prepare
 
 

 

Issue/Introduction

When running the vxprint command, the DCO log state is reported as "BADLOG" state OR When running the "vxsnap -g refresh " it would give an error "VxVM vxsnap ERROR V-5-1-7021 Volume has badlog DCO"