How to verify the contents of a DCO

book

Article ID: 100039306

calendar_today

Updated On:

Description

Description

As of SF 5.1 the verifydco utility is included under /etc/vx/diag.d/ and this utility can be used to check the contents of the dco and confirm that the DCO (Data Change Object) isn't corrupt.

# ./verifydco -H
Usage: verifydco -g [-v verbose] [volume]
 

For example:

 # vxprint -qhtg dg1 
dg dg1 default default 24000 1342791256.16.systemA 

dm emc0_019c emc0_019c auto 65536 4154368 - 
dm emc0_019d emc0_019d auto 65536 4154368 - 

sd emc0_019c-01 - emc0_019c 0 204800 - emc0_019c ENA 
sd emc0_019c-02 - emc0_019c 204800 204800 - emc0_019c ENA 
sd emc0_019c-03 - emc0_019c 409600 204800 - emc0_019c ENA 

v testvol - ENABLED ACTIVE 204800 SELECT - fsgen 
pl testvol-01 testvol ENABLED ACTIVE 204800 CONCAT - RW 
sd emc0_019d-01 testvol-01 emc0_019d 0 204800 0 emc0_019d ENA 
dc testvol_dco testvol testvol_dcl 
v testvol_dcl - ENABLED ACTIVE 544 SELECT - gen 
pl testvol_dcl-01 testvol_dcl ENABLED ACTIVE 544 CONCAT - RW 
sd emc0_019c-04 testvol_dcl-01 emc0_019c 614400 544 0 emc0_019c ENA 

 # ./verifydco -vg dg1 testvol 
HEADER 
Magic: ACM1 
Version: 20 
Flag: 0x21 
Vol GUID:6d26b84e-f2ad-11e1-838703ba828ff9 
regionsz: 128 
mapsz: 16 (bytes) 
nodecnt: 32 
mapcnt: 33 
volsz: 204800 


The DCO header associated with testvol appears valid

Issue/Introduction

How to verify the contents of a DCO