vxmake command fails with duplicate record error message

book

Article ID: 100026777

calendar_today

Updated On:

Description

Error Message

#vxmake -g -d  
VxVM vxmake ERROR duplicate record, context:         vol 
 

One such example:

#vxmake -g sfsdg -d config1.out 
VxVM vxmake ERROR V-5-1-326 duplicate record, context:         vol  SNAP-ENIQ-etldata_-00_tier_dcl

(Note that the above UMI could vary depending on the context of the object) 

Cause

vxmake command fails because it can not resolve snapshot link object (ln) and snap object (sp) records in config file

Resolution

Use -c option to create config data file for vxmake command to restore link object (ln) and snap object (sp) records. If a cache object is also configured, then add "C" option as well.

# cd /etc/vx/cbr/bk/sfsdg.1330537564.9.sfs4344_01
# cat 1330537564.9.sfs4344_01.cfgrec|vxprint -dmvpshrcC -D - > config1.out 
# vxmake -g sfsdg -d config1.out

Applies To

Veritas Volume Manager (VxVM) 5.0MP1 or later

Issue/Introduction

vxmake command fails with duplicate record error message.