ITEM: DA0944L

0516-304 mkvg: unable to find device id in device configuration databa



Question:

Env:
  AIX 4.2 or 4.1.5
  sysback 3.3
  

Problem:
  The customers are doing a full system restore, when the Making a Volume Group
  fails.  I have the customer choose the option to Perform System Maintenance

  Run the mkvg command like this:
  mkvg -fy rootvg -s4 -d8 hdisk0 hdisk1 hdisk2 hdisk3

  It fails with this error message:

  0516-304 mkvg: unable to find device id in device configuration 
           database
  0516-324 mkvg: unable to find PV identifier for physical volume.
           The device configuration database in inconsistent.

Action Taken:
  It turns out the problem is with changes added to the mkvg script.  The
  mkvg now needs the use of the dd command.  Sysback removes the dd command
  before it starts the restore process, thus causing the mkvg command to
  fail.

  WORKAROUND PROVIDED TO THE CUSTOMER:
  ------------------------------------

  If you have another 4.2.1 system with a diskette drive then
  do this:

  Done on that system that is up and running AIX 4.2.1
  find /usr/bin/dd | backup -ivq

  On the system that is in the middle of the install do this:
  Choose the option to "Perform System Maintenance"
  put the diskette in the drive
  restbyname -xvq
  mkvg -fy rootvg \
  Include all the disks that should be part of rootvg
  exit

  If you don't have another system then do this:
  cd /
  sbread -H /dev/rmt\#.1
    What is the PACK flag set to
  if Y do this:
  sbread /dev/rmt\#.1 | sbuncomp | restbyname -xvqf- ./usr/bin/dd

  if N do this:
  sbread /dev/rmt\#.1 | restbyname -xvqf- ./usr/bin/dd
  mkvg -fy rootvg \
  Include all the disks that should be part of rootvg
  sbdevice -r /dev/rmt\#
  sbdevice -f4 /dev/rmt\#.1
  exit


I will open up a problem record with the developer, in the mean
time once the system is up, here is the script you can change
that will corrected it:

VERSION 3.3 EFIX
-----------------
cd /usr/lpp/sysback/inst
cp sysmain sysmain.bak
vi sysmain

CHANGE THIS LINE:

if [ $BOOTTYPE != $NET ]
   then rm -f /usr/lpp/sysback/inst/sysmenus \\
                /usr/lpp/sysback/inst/sysgetvginfo \\
                /usr/lpp/sysback/inst/syscheckvginfo \\
                /usr/lpp/sysback/inst/syseditvginfo \\
                /usr/sbin/logredo /usr/sbin/getrootfs \\
                /usr/sbin/importvg /usr/sbin/fsck \\
                /usr/lib/methods/devices.cat /bin/dd
fi

TO THIS:

if [ $BOOTTYPE != $NET ]
   then rm -f /usr/lpp/sysback/inst/sysmenus \\
                /usr/lpp/sysback/inst/sysgetvginfo \\
                /usr/lpp/sysback/inst/syscheckvginfo \\
                /usr/lpp/sysback/inst/syseditvginfo \\
                /usr/sbin/logredo /usr/sbin/getrootfs \\
                /usr/sbin/importvg /usr/sbin/fsck \\
                /usr/lib/methods/devices.cat
fi  


Response:

Fix with sysback 3.3.3.17


Support Line: 0516-304 mkvg: unable to find device id in device configuration databa ITEM: DA0944L
Dated: May 1997 Category: N/A
This HTML file was generated 99/06/24~13:30:16
Comments or suggestions? Contact us