HP-UX HB v13.00 Ch-04 - System Recovery

HP-UX Handbook Rev 13.00 Page 32 (of 54)
Chapter 04 System Recovery
October 29, 2013
Example:
to change "hpux -lm (52.6.0;0)/stand/vmunix"
to "hpux (52.6.0;0)/stand/vmunix"
use
mkboot -a "hpux (52.6.0;0)/stand/vmunix" /dev/rdsk/<device file>
step 2. Restore a valid copy /etc/fstab (either from backup or from
the /etc/fstabBK file created during the recovery process).
step 3. Restore a valid copy /etc/lvmtab, if needed.
step 4. Restore a valid copy /dev, if needed.
step 5. Run '/lvmrec.scrpt' to repair the following LVM
configuration information:
a. LVM records (lvmrec)
b. BDRA (Boot Data Reserve Area)
c. LABEL information
Requirement: The following files must reside on disk before
the script can complete:
a. /etc/lvmtab
b. /etc/fstab
c. /etc/lvmconf/<rootvg>.conf
d. all device files specified in /etc/fstab
To run '/lvmrec.scrpt' provide the device filename used to
access the bootlif as an argument to the script.
Example:
/lvmrec.scrpt c0t6d0
In this example 'c0t6d0' is the device file used to
access the bootlif.
step 6. Once '/lvmrec.scrpt' completes the recovery of the root LVM
is complete. If the '/lvmrec.scrpt' issued the
following warning:
"************ I M P O R T A N T ******************"
" "
"Root logical volume has been repaired, but......."
"you need to reboot the system and repair the Swap"
"logical volume using the following LVM command: "
" lvlnboot -A n -s /dev/<root lv>/<swap lvol> "
"because Recovery has no way to find out what is "
"the Swap logical volume information at this point"
" "
"*************************************************"
The Swap and Dump logical volumes will need to be re-configured.
The BDRA contains the "root", "swap" and "dump" logical volume
information. '/lvmrec.scrpt' only fixes the root logical volume
information in the BDRA. The "swap" and "dump" areas can be updated
via the "lvlnboot" command.
Example:
lvlnboot -s /dev/<vg00>/lvol2
lvlnboot -d /dev/<vg00>/lvol3
In this example 'lvol2' and 'lvol3' are the "swap" and "dump"
logical volumes respectively.