V-5-1-421 "Bad record type in description" is reported by vxmake

book

Article ID: 100012425

calendar_today

Updated On:

Description

Error Message

VxVM vxmake ERROR V-5-1-421 Bad record type in description

 

Another error appears while using cat, parsed with vxprint, to dump the disk config from *.cfgrec. 
 
Note: The name of the directory varies, depending on the disk group and server name.
 
# cd /etc/vx/cbr/bk/loopydg.1396636038.27.server101
# cat 1396636038.27.server101.cfgrec | vxprint -D - -ht
VxVM vxprint INFO V-5-1-16654 Cannot set dg-fail-policy to dgdisable
        siteconsistent=off
        autotagging=on
        fencekey=VCS
        ioship=off
, dg-fail-policy not applicable for disk group loopydg
Disk group: loopydg
DG NAME         NCONFIG      NLOG     MINORS   GROUP-ID
ST NAME         STATE        DM_CNT   SPARE_CNT         APPVOL_CNT
DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   STATE
RV NAME         RLINK_CNT    KSTATE   STATE    PRIMARY  DATAVOLS  SRL
RL NAME         RVG          KSTATE   STATE    REM_HOST REM_DG    REM_RLNK
CO NAME         CACHEVOL     KSTATE   STATE
VT NAME         RVG          KSTATE   STATE    NVOLUME
V  NAME         RVG/VSET/CO  KSTATE   STATE    LENGTH   READPOL   PREFPLEX UTYPE
PL NAME         VOLUME       KSTATE   STATE    LENGTH   LAYOUT    NCOL/WID MODE
SD NAME         PLEX         DISK     DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
SV NAME         PLEX         VOLNAME  NVOLLAYR LENGTH   [COL/]OFF AM/NM    MODE
SC NAME         PLEX         CACHE    DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
DC NAME         PARENTVOL    LOGVOL
SP NAME         SNAPVOL      DCO
EX NAME         ASSOC        VC                       PERMS    MODE     STATE
SR NAME         KSTATE
 
dg loopydg      default      default  19000    1396636038.27.server101
 
dm loopy01      ibm_shark0_0 auto     65536    2031232  -
dm loopy02      ibm_shark0_1 auto     65536    2031232  -
 
v  loopyvol     -            ENABLED  ACTIVE   4061184  SELECT    -        fsgen
pl loopyvol-01  loopyvol     ENABLED  ACTIVE   4061184  CONCAT    -        RW
sd loopy01-01   loopyvol-01  loopy01  0        2031232  0         ibm_shark0_0 ENA
sd loopy02-01   loopyvol-01  loopy02  0        2029952  2031232   ibm_shark0_1 ENA
 
 

Cause

When dumping a disk configuration from a *.cfgrec file in Storage Foundation 6.0.x, to create a vxmake template, the output as seen below is corrupt, causing vxmake to report the error.

 
VxVM vxprint INFO V-5-1-16654 Cannot set dg-fail-policy to dgdisable
        siteconsistent=off
        autotagging=on
        fencekey=VCS
        ioship=off
, dg-fail-policy not applicable for disk group loopydg
Disk group: loopydg
 
This is what causes vxmake to return this error:
 
 # vxmake -g mydg -d /tmp/vxmakemydg.out
   VxVM vxmake ERROR V-5-1-421 Bad record type in description
 
 

Resolution

  
Use one of the following procedures to resolve the issue.
 
  • Using a text editor, manually remove the highlighted text (as seen in the highlighted text in the "Error" section of this article) from the *.cfgrec dump file.
  • Use cat to parse a revised version of the disk configuration. 
     
Note: The directory name varies, depending on the disk group and server.
 
# cd /etc/vx/cbr/bk/loopydg.1396636038.27.server101
# cat *.cfgrec |grep -v dgfailpolicy | vxprint -D - -mvhpshr > /tmp/vxmakemydg.out
 
Including "grep -v dgfailpolicy" has the effect of removing the errant text (as seen in the highlighted text in the "Error" section of this article)  from the disk configuration.
 
 
 
 

Applies To

 

Issue/Introduction

When attempting to use vxmake to dump a disk group configuration, the task fails with an error.

Additional Information

ETrack: 3407525 UMI: V-5-1-421