ITEM: JE6269L

The -n flag on the remakevg command is not working



Question:

Env:
  AIX 4.2.1
  RISC 590
  sysback 4.2.1.8

Problem:
  Customer is having a problem recreating vg information from a stacked 
  muliple-volume backup that was made with Sysback.  The way the backup was
  made was with three separate mkvgback commands, and the last
  two mkvgback commands had -n flags on them to have the tape not rewind.  
  All three backups appear to be on the same volume.
  The customer was able to use SMIT to restore vg information on the first 
  vg backed up on the tape at the first backup image.
  The customer cannot restore the second vg contained on the second image, 
  however. Attempts to restore vg information from the
  second backup image report the error:
  vg info for rdbm02vg is not included on the backup
  Even though the vg's name appears when an
  sbread command is ran on the header.

Action Taken:
  I had the customer put the remakevg command in debug mode:
  export SBDEBUG=1
  
  From the output of the debug the remakevg command is rewinding even
  through the -n flag (no rewind) was given.

WORKAROUND:
  Either use the -i \ flag on the remakevg on the 
  command line.

  Or you can change the remakevg command to fix the problem
   1.  cd /usr/sbin
   2.  cp remakevg remakevg.org
   3.  vi remakevg
       Goto line 424

     CHANGE:
     -------
     if [ \\( $devtype = TAPE -o $devtype = VDEV \\) ]
           then \# Position tape to backup header

     TO:
     ---
     if [ "$rewind" != n -a \\( $devtype = TAPE -o $devtype = VDEV \\) ]
           then \# Position tape to backup header

  NOTE:  You are adding the entry  "$rewind" != n -a    to the if
         statement.

  This will be fixed with sysback.rte 4.2.1.10  


Support Line: The -n flag on the remakevg command is not working ITEM: JE6269L
Dated: November 1998 Category: N/A
This HTML file was generated 99/06/24~13:30:12
Comments or suggestions? Contact us