Friday, June 28, 2013

Restore HP-UX from ignite tape (with screen dump)

 Objective

To restore HP-UX (11i, 11.23 should work) from a backup (make_tape_recovery)

  1. Login MP console and recycle it
  2. "CO" to console
  3. Within that "10 seconds", press any key and see the menu
    ---- Main Menu ---------------------------------------------------------------
    
         Command                           Description
         -------                           -----------
         BOot [PRI|ALT|]             Boot from specified path
         PAth [PRI|ALT] []           Display or modify a path
         SEArch [DIsplay|IPL] []     Search for boot devices
    
         COnfiguration menu                Displays or sets boot values
         INformation menu                  Displays hardware information
         SERvice menu                      Displays service commands
    
         DIsplay                           Redisplay the current menu
         HElp [|]           Display help for menu or command
         RESET                             Restart the system
    ----
    Main Menu: Enter command or menu > sea
  4. Insert the tape and run "SEA" to search devices
    Main Menu: Enter command or menu > SEA
    
    Searching for potential boot device(s)
    This may take several minutes.
    
    To discontinue search, press any key (termination may not be immediate).
    
    
                                                                               IODC
       Path#  Device Path (dec)  Device Path (mnem)  Device Type               Rev
       -----  -----------------  ------------------  -----------               ----
       P0     0/0/2/0.0          ide.0               Random access media       1    
       P1     0/1/1/0.0          intscsia.0          Random access media       1    
       P2     0/1/1/1.4          intscsib.4          Sequential access media   1    
    
    
    Main Menu: Enter command or menu >
  5. "P2 0/1/1/1.4 intscsib.4 Sequential access media 1" -> which is the tape drive


  6. Start Restore
    Main Menu: Enter command or menu > BOot P2
    
    Interact with IPL (Y, N, or Cancel)?> N
    
    
    Booting... 
    Boot IO Dependent Code (IODC) revision 1
    
    
    HARD Booted.
    
    ISL Revision A.00.43  Apr 12, 2000 
    
    ISL booting  hpux (;0):INSTALL
    
    Boot
    : tape(0/1/1/1.4.0.0.0.0.0;0):WINSTALL
    
    11751424 + 1962072 + 2627800 start 0x2026e8
    
    
    
    
    
    alloc_pdc_pages: Relocating PDC from 0xfffffff0f0c00000 to 0x3f900000.
    
    gate64: sysvec_vaddr = 0xc0002000 for 2 pages
    NOTICE: nfs3_link(): File system was registered at index 4.
    NOTICE: autofs_link(): File system was registered at index 6.
    NOTICE: cachefs_link(): File system was registered at index 7.
    igelan0: INITIALIZING HP PCI 1000Base-T Core at hardware path 0/1/2/0
    
        System Console is on the Built-In Serial Interface
        Swap device table:  (start & size given in 512-byte blocks)
            entry 0 - auto-configured on root device; ignored - no room
    
    WARNING: no swap device configured, so dump cannot be defaulted to primary swap.
    
    WARNING: No dump devices are configured.  Dump is disabled.
    
    Starting the STREAMS daemons-phase 1
    
    Create STCP device files
    
              $Revision: vmunix:    vw: -proj    selectors: CUPI80_BL2000_1108 -c 'Vw for CUPI80_BL2000_1108 build' -- cupi80_bl2000_1108 'CUPI80_BL2000_1108'  Wed Nov  8 19:24:56 PST 2000 $
    
    Memory Information:
    
        physical page size = 4096 bytes, logical page size = 4096 bytes
    
        Physical: 2095104 Kbytes, lockable: 1549872 Kbytes, available: 1795200 Kbytes
    
    
    
    =======  06/17/13 20:46:28 EDT  HP-UX Installation Initialization. (Mon Jun 17 
             20:46:28 EDT 2013)
             @(#) Ignite-UX Revision B.5.1.33
             @(#) install/init (opt) $Revision: 10.279 $
           * Scanning system for IO devices...
           * Querying disk device: 0/1/1/0.0.0 ...
    Recovery tape created from system: rp3410 on Mon Jun  3 15:12:27 2013
    
    
    WARNING: The configuration information calls for a non-interactive
             installation.
    
             Press  within 10 seconds to cancel batch-mode installation:
           * Using client directory: /var/opt/ignite/clients/0x00306E4B16B6
           * Checking configuration for consistency...
           * Attempting a non-interactive installation.
           * Loading configuration utility...
           * Beginning installation from source: /dev/rmt/0m
    =======  06/17/13 20:47:21 EDT  Starting system configuration...
           * Configure_Disks:  Begin
           * Will install B.11.11 onto this system.
           * Creating LVM physical volume "/dev/rdsk/c2t0d0" (0/1/1/0.0.0).
           * Creating volume group "vg00".
           * Creating logical volume "vg00/lvol1" (/stand).
           * Creating logical volume "vg00/lvol2" (swap_dump).
           * Creating logical volume "vg00/lvol3" (/).
           * Creating logical volume "vg00/lvol4" (/tmp).
           * Creating logical volume "vg00/lvol5" (/home).
           * Creating logical volume "vg00/lvol6" (/opt).
           * Creating logical volume "vg00/lvol7" (/usr).
           * Creating logical volume "vg00/lvol8" (/var).
           * Extending logical volume "vg00/lvol1" (/stand).
           * Extending logical volume "vg00/lvol2" (swap_dump).
           * Extending logical volume "vg00/lvol3" (/).
           * Extending logical volume "vg00/lvol4" (/tmp).
           * Extending logical volume "vg00/lvol5" (/home).
           * Extending logical volume "vg00/lvol6" (/opt).
           * Extending logical volume "vg00/lvol7" (/usr).
           * Extending logical volume "vg00/lvol8" (/var).
           * Making HFS filesystem for "/stand", (/dev/vg00/rlvol1).
           * Making VxFS filesystem for "/", (/dev/vg00/rlvol3).
           * Making VxFS filesystem for "/tmp", (/dev/vg00/rlvol4).
           * Making VxFS filesystem for "/home", (/dev/vg00/rlvol5).
           * Making VxFS filesystem for "/opt", (/dev/vg00/rlvol6).
           * Making VxFS filesystem for "/usr", (/dev/vg00/rlvol7).
           * Making VxFS filesystem for "/var", (/dev/vg00/rlvol8).
           * Setting rotational delay to 0 for "/stand".
           * Configure_Disks:  Complete
           * Download_mini-system:  Begin
    x ./sbin/fs/hfs/mkfs, 290816 bytes, 568 tape blocks
    x ./sbin/fs/hfs/newfs, 212992 bytes, 416 tape blocks
    x ./sbin/fs/vxfs/mkfs, 393216 bytes, 768 tape blocks
    x ./sbin/fs/vxfs/newfs, 327680 bytes, 640 tape blocks
    x ./sbin/mkfs symbolic link to /sbin/fs_wrapper
    x ./sbin/newfs symbolic link to /sbin/fs_wrapper
    x ./sbin/lib/mfsconfig.d/hfs, 978 bytes, 2 tape blocks
    x ./sbin/lib/mfsconfig.d/vxfs, 966 bytes, 2 tape blocks
    x ./sbin/fs_wrapper, 233472 bytes, 456 tape blocks
    x ./sbin/sh, 401408 bytes, 784 tape blocks
    x ./usr/bin/mediainit, 32768 bytes, 64 tape blocks
    x ./usr/sbin/tunefs, 20480 bytes, 40 tape blocks
    x ./sbin/extendfs symbolic link to /sbin/fs_wrapper
    x ./sbin/fs/vxfs/extendfs, 319488 bytes, 624 tape blocks
    x ./sbin/fs/hfs/extendfs, 245760 bytes, 480 tape blocks
    x ./sbin/lvchange, 815104 bytes, 1592 tape blocks
    ./sbin/lvcreate linked to ./sbin/lvchange
    ./sbin/lvdisplay linked to ./sbin/lvchange
    ./sbin/lvextend linked to ./sbin/lvchange
    ./sbin/lvlnboot linked to ./sbin/lvchange
    ./sbin/lvreduce linked to ./sbin/lvchange
    ./sbin/lvremove linked to ./sbin/lvchange
    ./sbin/lvrmboot linked to ./sbin/lvchange
    ./sbin/pvchange linked to ./sbin/lvchange
    ./sbin/pvcreate linked to ./sbin/lvchange
    ./sbin/pvdisplay linked to ./sbin/lvchange
    ./sbin/pvmove linked to ./sbin/lvchange
    ./sbin/sdstolvm linked to ./sbin/lvchange
    ./sbin/vgcfgbackup linked to ./sbin/lvchange
    ./sbin/vgcfgrestore linked to ./sbin/lvchange
    ./sbin/vgchange linked to ./sbin/lvchange
    ./sbin/vgcreate linked to ./sbin/lvchange
    ./sbin/vgdisplay linked to ./sbin/lvchange
    ./sbin/vgexport linked to ./sbin/lvchange
    ./sbin/vgextend linked to ./sbin/lvchange
    ./sbin/vgimport linked to ./sbin/lvchange
    ...
    x ./monitor_bpr, 20480 bytes, 40 tape blocks
           * Download_mini-system:  Complete
           * Loading_software:  Begin
           * Installing boot area on disk.
           * Enabling swap areas.
           * Backing up LVM configuration for "vg00".
           * Processing the archive source (Recovery Archive).
           * Mon Jun 17 20:51:06 EDT 2013: Starting archive load of the source 
             (Recovery Archive).
           * Positioning the tape (/dev/rmt/0mn).
           * Archive extraction from tape is beginning. Please wait.
    pax_iux: Ready for volume 2
    
    pax_iux: Type "go" when ready to proceed (or "quit" to abort):
     
     
  7. change the tape volume 2 (if any) and "go"
go
Continuing
Connection closed by foreign host.
...
Closing open logical volumes...

Done




Firmware Version  46.34

Duplex Console IO Dependent Code (IODC) revision 1



- - - - - - - - - - - - Live Console - - - - - - - - - - - -



Firmware Version  46.34

Duplex Console IO Dependent Code (IODC) revision 1
------------------------------------------------------------------------------
   (c) Copyright 1995-2004, Hewlett-Packard Company, All rights reserved
------------------------------------------------------------------------------

  Processor   Speed            State           CoProcessor State  Cache Size
  Number                                       State              Inst    Data
  ---------  --------   ---------------------  -----------------  ------------
      0      800  MHz   Active                 Functional         33554432 33554432
      1      800  MHz   Stopped:Deconfigured   Unknown            0 0

  Central Bus Speed (in MHz)  :        200  
  Available Memory            :    2097152  KB
  Good Memory Required        : Not initialized. Defaults to 32 MB. 

   Primary boot path:    0/1/1/0.0           
   Alternate boot path:  0/0/2/0.3           
   Console path:         0/7/1/1.0           
   Keyboard path:        0/0/4/0.0           


Processor is booting from the first available device.

To discontinue, press any key within 10 seconds.

10 seconds expired.
Proceeding...

Trying Primary Boot Path
------------------------
Booting... 
Boot IO Dependent Code (IODC) revision 1


HARD Booted.

ISL Revision A.00.43  Apr 12, 2000 

ISL booting  hpux

Boot
: disk(0/1/1/0.0.0.0.0.0.0;0)/stand/vmunix

10952704 + 1904640 + 2656664 start 0x1f6068





alloc_pdc_pages: Relocating PDC from 0xfffffff0f0c00000 to 0x3f900000.

gate64: sysvec_vaddr = 0xc0002000 for 2 pages
NOTICE: autofs_link(): File system was registered at index 3.
NOTICE: cachefs_link(): File system was registered at index 5.
NOTICE: nfs3_link(): File system was registered at index 6.
igelan0: INITIALIZING HP PCI 1000Base-T Core at hardware path 0/1/2/0

    System Console is on the Built-In Serial Interface
Logical volume 64, 0x3 configured as ROOT
Logical volume 64, 0x2 configured as SWAP
Logical volume 64, 0x2 configured as DUMP
    Swap device table:  (start & size given in 512-byte blocks)
        entry 0 - major is 64, minor is 0x2; start = 0, size = 8388608
Starting the STREAMS daemons-phase 1

Checking root file system.
file system is clean - log replay is not required
Root check done.
Create STCP device files

            $Revision: vmunix:    vw: -proj    selectors: CUPI80_BL2000_1108 -c 'Vw for CUPI80_BL2000_1108 build' -- cupi80_bl2000_1108 'CUPI80_BL2000_1108'  Wed Nov  8 19:24:56 PST 2000 $

Memory Information:

    physical page size = 4096 bytes, logical page size = 4096 bytes

    Physical: 2095104 Kbytes, lockable: 1560428 Kbytes, available: 1798776 Kbytes



/sbin/ioinitrc:
insf: Installing special files for ipmi instance 0 address 16
insf: Installing special files for pseudo driver framebuf
/sbin/krs_sysinit:

...

Starting the XMLTools subsystem ............................................. OK
     Starting OpC agent processes (opcagt). ...................................... OK
     Start CDE login server ...................................................... OK

The system is ready.


GenericSysName [HP Release B.11.11] (see /etc/issue)

Console Login:
 
If you see the login prompt it means it is restored !

No comments: