HP-UX 11.31 Patching on Itanium using the mirror disk to roll back

We need to patch a server with HP-UX 11.31 on Itanium. Before patch it we will make some tasks prior to use the mirror disk as roll back device. We look first that we can boot from both disks

check that both disks are bootable
hpux01 # lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
        /dev/disk/disk3_p2 -- Boot Disk
        /dev/disk/disk2_p2 -- Boot Disk
Boot: lvol1 on: /dev/disk/disk3_p2
                /dev/disk/disk2_p2
Root: lvol3 on: /dev/disk/disk3_p2
                /dev/disk/disk2_p2
Swap: lvol2 on: /dev/disk/disk3_p2
                /dev/disk/disk2_p2
Dump: lvol2 on: /dev/disk/disk3_p2, 0
hpux01 #
check which disk we are booting and if is well defined the alternate boot on the other
hpux01 # setboot
Primary bootpath : 0/1/1/0.0x5000c50023db77f9.0x0 (/dev/rdisk/disk3)
HA Alternate bootpath : 0/1/2/0 (LAN Interface)
Alternate bootpath : 0/1/1/0.0x5000cca00b1f36e9.0x0 (/dev/rdisk/disk2)

Autoboot is ON (enabled)
Hyperthreading : ON
               : ON (next boot)
hpux01 #
Break the mirror of some filesystems to be modified (/, /stand, /var, /opt and /usr). To do this, we first identify at which filesystem corresponds each lvol
hpux01 # bdf
Filesystem             kbytes    used    avail %used Mounted on
/dev/vg00/lvol3       1048576  482784   561408   46% /
/dev/vg00/lvol1       1835008  383384  1440344   21% /stand
/dev/vg00/lvol7       8912896 5363712  3523736   60% /var
/dev/vg00/lvol6       6258688 3697456  2541408   59% /usr
/dev/vg00/lvol5       1048576   26008  1014688    2% /tmp
/dev/vg00/lvol4       9404416 5440280  3933240   58% /opt
/dev/vg00/optoragrid 10485760 8136445  2224272   79% /opt/oragrid11.2
/dev/vg00/optoracle10 8388608 5317898  2878927   65% /opt/oracle10.2
/dev/vg00/optoracle  31457280 2763079 26902316    9% /opt/oracle
/dev/vg00/lvol8        131072   93080    37768   71% /home
/dev/odm                    0       0        0    0% /dev/odm
/dev/vg00/adminbd     1048576   18337   965966    2% /home/adminbd
hpux01 #
Break the mirror, it is very important that the lvol3 be the last. We check the state of the filesystem “b” with a fsck
hpux01 # for i in 1 4 6 7 3
> do
> sync
> lvsplit /dev/vg00/lvol$i
> fsck -F vxfs /dev/vg00/rlvol"$i"b
> done

Logical volume "/dev/vg00/lvol1b" created with character device "/dev/vg00/rlvol1b".
Logical volume "/dev/vg00/lvol1" has been successfully split.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
log replay in progress
replay complete - marking super-block as CLEAN
Logical volume "/dev/vg00/lvol4b" created with character device "/dev/vg00/rlvol4b".
Logical volume "/dev/vg00/lvol4" has been successfully split.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
log replay in progress
replay complete - marking super-block as CLEAN
Logical volume "/dev/vg00/lvol6b" created with character device "/dev/vg00/rlvol6b".
Logical volume "/dev/vg00/lvol6" has been successfully split.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
log replay in progress
replay complete - marking super-block as CLEAN
Logical volume "/dev/vg00/lvol7b" created with character device "/dev/vg00/rlvol7b".
Logical volume "/dev/vg00/lvol7" has been successfully split.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
log replay in progress
replay complete - marking super-block as CLEAN
Logical volume "/dev/vg00/lvol3b" created with character device "/dev/vg00/rlvol3b".
Logical volume "/dev/vg00/lvol3" has been successfully split.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
log replay in progress
replay complete - marking super-block as CLEAN
hpux01 #
Check that have been split properly. We check that the boot disk is the normal lvol and on the other, the lvol “b”
[ad#enlaces-horizontal]
hpux01 # vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00

...

--- Physical volumes ---
PV Name /dev/disk/disk3_p2
PV Status available
Total PE 4347
Free PE 1137
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk2_p2
PV Status available
Total PE 4357
Free PE 1147
Autoswitch On
Proactive Polling On

hpux01 # lvdisplay -v /dev/vg00/lvol3b|more
--- Logical volumes ---
LV Name /dev/vg00/lvol3b
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 1024
Current LE 32
Allocated PE 32
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/disk/disk2_p2 32 32

--- Logical extents ---
LE PV1 PE1 Status 1
00000 /dev/disk/disk2_p2 00312 current
...
hpux01 #
Mount the lvol3b, which contains the / of the roll back disk and edit the /etc/fstab, changing the normal lvoles by their corresponding “b”. Do the same with the lvol1b, to edit the /stand/bootconf, you have to have the mirror disk (Alternate Boot):
hpux01 # mount /dev/vg00/lvol3b /mnt
hpux01 # vi /mnt/etc/fstab
# System /etc/fstab file. Static information about the file systems
# See fstab(4) and sam(1M) for further details on configuring devices.
/dev/vg00/lvol3b / vxfs delaylog 0 1
/dev/vg00/lvol1b /stand vxfs tranflush 0 1
/dev/vg00/lvol4b /opt vxfs delaylog 0 2
/dev/vg00/lvol5 /tmp vxfs delaylog 0 2
/dev/vg00/lvol6b /usr vxfs delaylog 0 2
/dev/vg00/lvol7b /var vxfs delaylog 0 2
/dev/vg00/lvol8 /home vxfs delaylog 0 2
/dev/vg00/optoracle /opt/oracle vxfs delaylog 0 2
/dev/vg00/optoracle10 /opt/oracle10.2 vxfs delaylog 0 2
/dev/vg00/optoragrid /opt/oragrid11.2 vxfs delaylog 0 2
/dev/vg00/adminbd /home/adminbd vxfs delaylog 0 2
# Swap secundario
/dev/vg00/swapsec ... swap pri=2 0 0
#####
hpux01 # cat /stand/bootconf
l /dev/disk/disk3_p2
hpux01 # umount /mnt
hpux01 # mount /dev/vg00/lvol1b /mnt
hpux01 # vi /mnt/bootconf
l /dev/disk/disk2_p2
hpux01 # umount /mnt
hpux01 #
log in to the console
login as: Admin
Admin@hpux01-console's password:

Hewlett-Packard Integrity Integrated Lights-Out 2

(c) Copyright Hewlett-Packard Company 1999-2007. All Rights Reserved.

MP Host Name: hpux01-console

Revision F.02.17

*************************************************************************
MP ACCESS IS NOT SECURE
Default MP users are currently configured and remote access is enabled.
Modify default users' passwords or delete default users (see UC command)
OR
Disable all types of remote access (see SA command)
*************************************************************************

MP MAIN MENU:
      CO: Console
     VFP: Virtual Front Panel
      CM: Command Menu
   SMCLP: Server Management Command Line Protocol
      CL: Console Log
      SL: Show Event Logs
      HE: Main Help Menu
       X: Exit Connection

[hpux01-console] MP> co

[Use Ctrl-B or ESC-( to return to MP main menu.]

- - - - - - - - - - Prior Console Output - - - - - - - - - -
hpux01 #
hpux01 #
hpux01 #
- - - - - - - - - - - - Live Console - - - - - - - - - - - -
Reboot on single-user to go later to run-level 2 and install the patches
hpux01 # shutdown -ry 0

SHUTDOWN PROGRAM
01/03/13 09:17:42 MET

Broadcast Message from root (console) Thu Jan 3 09:17:42...
PLEASE LOG OFF NOW ! ! !
System maintenance about to begin.
All processes will be terminated in 0 seconds.

Broadcast Message from root (console) Thu Jan 3 09:17:42...
SYSTEM BEING BROUGHT DOWN NOW ! ! !

/sbin/auto_parms: DHCP access is disabled (see /etc/auto_parms.log)

System shutdown in progress
___________________________

...

Transition to run-level 0 is complete.
Executing "/sbin/reboot ".
Shutdown at 09:21 (in 0 minutes)

*** FINAL System shutdown message from root@hpux01 ***
System going down IMMEDIATELY Note: reboot: Couldn't write to : /dev/pts/0
System shutdown time has arrived

sync'ing disks (0 buffers to flush):
0 fcache pages still dirty 0 buffers not flushed 0 buffers still dirty
Calling function e000000002501270 for Shutdown State 5 type 0x1
Calling function e000000001c9e030 for Shutdown State 5 type 0x1
Closing open logical volumes... Done
##################################################################### POST
***********************************************************
* ROM Version : 04.03
* ROM Date : 04/08/2008
* BMC Version : 05.23
***********************************************************
0 0 0x0015B2 0x0000000014611377 boot time event
1 0 0x0000A4 0x0000000000000000 start memory configuration
2 0 0x001CBB 0x0000000000000000 System set to insecure mode
0 0 0x0015B2 0x0000000032363476 boot time event
1 0 0x000014 0x0000000000000000 CPU0 starting cell relocation
1 0 0x000009 0x0000000000000000 CPU0 launch EFI

EFI version 2.00 [14.62]
Running on Intel(R) Itanium Processor Family
EFI 2.0 IPF server rx2660 7.12 [Fri Feb 23 17:21:28 2007] firmware by HP

Copyright (c) 2000-2006 Broadcom Corporation
Broadcom NetXtreme Gigabit Ethernet EFI driver v9.4.4

Loading 'SysROM:Floating-Point Software Assistance Handler'...
-- 'SysROM:Floating-Point Software Assistance Handler' returned Success
Loading 'SysROM:SCSI Bus Driver'...
-- 'SysROM:SCSI Bus Driver' returned Success
Loading 'SysROM:SCSI Disk Driver'...
-- 'SysROM:SCSI Disk Driver' returned Success
Loading 'SysROM:SCSI Tape Driver'...
-- 'SysROM:SCSI Tape Driver' returned Success
Loading device drivers
The server starts to boot and the Loader will be appear
                   EFI Boot Manager ver 2.00 [14.62]
OS might use only the primary console set via boot manager or conconfig command
                                       /----------------------------------  
 /----------------------------------  |       System Overview            | 
 |            Boot Menu             |  |   hp server rx2660               |  
 | HP-UX Primary Boot: 0/1/1/0....  |  | Serial #:  USE46454P8            | 
 | HP-UX HA Alternate Boot: 0/1...  |  |                                  |  
 | HP-UX Alternate Boot: 0/1/1/...  |  | System Firmware:  4.11 [4842]    |  
 | EFI Shell [Built-in]             |  | BMC Version:      5.25           |  
 | -------------------------------  |  | MP Version:       F.02.23        |  
 | Boot Configuration               |  | Installed Memory: 24576 MB       |  
 | System Configuration             |  |                                  |  
 | Security Configuration           |  |  CPU  Logical                    |  
 ----------------------------------/  | Module CPUs   Speed  Status      |  
                                       |    0    4   1.67 GHz Active      | 
                                       |    1    4   1.67 GHz Active      |  
                                       |                                  |  
                                       |                                  |  
                                       |                                  |  
                                       |                                  |   
                                       ----------------------------------/
Use ^ and v to change option(s). Use Enter to select an option
Boot entry selection will boot in 9 second(s). Retry 0 of 0
if we dont press any key, the primary boot device will be used
Loading.: HP-UX Primary Boot: 0/1/1/0.0x5000c50023db77f9.0x0
Starting: HP-UX Primary Boot: 0/1/1/0.0x5000c50023db77f9.0x0

(C) Copyright 1999-2011 Hewlett-Packard Development Company, L.P.
All rights reserved

HP-UX Boot Loader for IPF  --  Revision 2.044

Press Any Key to interrupt Autoboot
EFIHPUXAUTO ==> boot vmunix
Seconds left till autoboot -    
Type 'help' for help
at this point we interrupt the boot by pressing any key
[ad#enlaces-horizontal]
HPUX> help
-- HPUX bootloader for IPF Help --

   -------- supported commands ---------
   boot [kernel]      - boots HPUX kernel
   help [-d]          - help screen (-d to list debug commands)
   mmap               - show current EFI memory map
   ls [-aRdnlogrtucpFLis] [path...]
   ll [-aRdnlogrtucpFLis] [path...] (same as ls -alF)
   setauto [-d] [str] - sets AUTO file (-d to delete AUTO file)
   showauto           - shows AUTO file
   ver                - prints version numbers
   exit               - exits bootloader

HPUX>
boot on single user
HPUX> boot vmunix -is
> System Memory = 24553 MB
loading section 0
............................................................................... (complete)
loading section 1
................. (complete)
loading symbol table
loading System Directory (boot.sys) to MFS
.....
loading MFSFILES directory (bootfs) to MFS
................................................

================================================================================
WARNING: Multiple console output devices are configured. If this message
remains on the screen for more than a few minutes, then this is not the
device in use by HP-UX as the console output device. If you would like this
device to be the one used by HP-UX as the console output device, reboot and
use the EFI boot manager or the EFI 'conconfig' command to select this device
and deconfigure the others.
================================================================================
Launching /stand/vmunix
SIZE: Text:46175K + Data:8573K + BSS:27581K = Total:82331K

Console is on Serial Device - via PCDP
Booting kernel...

Loaded ACPI revision 2.0 tables.
Using /stand/ext_ioconfig

Memory Class Setup
-------------------------------------------------------------------------
Class     Physmem              Lockmem              Swapmem
-------------------------------------------------------------------------
System :  23353 MB             23353 MB             23353 MB
Kernel :  23353 MB             23353 MB             23353 MB
User   :  21968 MB             19475 MB             19552 MB
-------------------------------------------------------------------------

ktracer is off until requested.
Enabling spinlock ALAT switching
Installing Socket Protocol families AF_INET and AF_INET6
Kernel EVM initialized
sec_init(): kernel RPC authentication/security initialization.
secgss_init():  kernel RPCSEC_GSS security initialization.
rpc_init(): kernel RPC initialization.
rpcmod_install(): kernel RPC STREAMS module "rpcmod" installation. ...(driver_install)
NOTICE: nfs_client_pv3_install(): nfs3 File system was registered at index 10.
NOTICE: nfs_client_pv4_install(): nfs4 File system was registered at index 11.
NOTICE: cachefsc_install: cachefs File system was registered at index 13.
LLT INFO V-14-1-10009 LLT 5.1.100.000 Protocol available
GAB INFO V-15-1-20021 GAB 5.1.100.000 available
VXFEN INFO V-11-1-56 VxFEN 5.1.100.000 loaded. Protocol versions supported: 10,20
vxfen: vxfen protocol available
fclp0: Claiming Fibre Channel HBA port at hardware path 0/2/0/0/0/0/4/0/0/0
fclp1: Claiming Fibre Channel HBA port at hardware path 0/2/0/0/0/0/4/0/0/1
fclp2: Claiming Fibre Channel HBA port at hardware path 0/4/0/0/0/0/4/0/0/0
fclp3: Claiming Fibre Channel HBA port at hardware path 0/4/0/0/0/0/4/0/0/1

Boot device's HP-UX HW path is: 0/1/1/0.0x5000c50023db77f9.0x0

    System Console is on the Built-In Serial Interface

igelan0: INITIALIZING HP PCI-X 1000Base-T Dual-port Built-in at hardware path 0/1/2/0
iether2: INITIALIZING HP AD222-60001 PCIe 1000Base-T 2-port 4Gb FC/2-port 1000B-T Combo
Adapter at hardware path 0/2/0/0/0/0/2/0/0/0
iether3: INITIALIZING HP AD222-60001 PCIe 1000Base-T 2-port 4Gb FC/2-port 1000B-T Combo
Adapter at hardware path 0/2/0/0/0/0/2/0/0/1
iether4: INITIALIZING HP AD222-60001 PCIe 1000Base-T 2-port 4Gb FC/2-port 1000B-T Combo
Adapter at hardware path 0/4/0/0/0/0/2/0/0/0
iether5: INITIALIZING HP AD222-60001 PCIe 1000Base-T 2-port 4Gb FC/2-port 1000B-T Combo
Adapter at hardware path 0/4/0/0/0/0/2/0/0/1
igelan1: INITIALIZING HP PCI-X 1000Base-T Dual-port Built-in at hardware path 0/1/2/1

AF_INET socket/streams output daemon running, pid 58

afinet_prelink: module installed

Starting the STREAMS daemons-phase 1

LVM: Root VG activated

    Swap device table:  (start & size given in 512-byte blocks)

        entry 0 - major is 64, minor is 0x2; start = 0, size = 16777216

Checking root file system.
file system is clean - log replay is not required
Root check done.

Create STCP device files

Starting the STREAMS daemons-phase 2

     $Revision: vmunix:    B.11.31_LR FLAVOR=perf

Memory Information:

    physical page size = 4096 bytes, logical page size = 4096 bytes
    Physical: 25143204 Kbytes, lockable: 18535184 Kbytes, available: 21088572 Kbytes

/sbin/ioinitrc:
/dev/vg00/lvol1:file system is clean - log replay is not required
/sbin/krs_sysinit:
       * The module 'gvid_info' has been loaded.
       * The module 'rng' has been loaded.

insf: Installing special files for ipmi instance 0 address 250/0
insf: Installing special files for pseudo driver framebuf

INIT: Overriding default level with level 's'
INIT: SINGLE USER MODE

INIT: Running /sbin/sh

#
change now to run-level 2
# init 2

     HP-UX Start-up in progress
     __________________________

     Configure system crash dumps ................................. OK
     ...

The system is ready.

Console Login:
Once we got here we can start now to install the patches, that you previously left for example in /var/patches
Console Login:root

hpux01 # cd /var/parches/
hpux01 # ll
-rw-r--r--   1 21164      12753      1835632640 Sep  1 03:32 QPK1131_B.11.31.1209.383.depot
hpux01 # DISPLAY="" swinstall -s /var/parches/QPK1131_B.11.31.1209.383.depot
NOTE:    The interactive UI was invoked, since no software was specified.

Starting the terminal version of swinstall...

To move around in swinstall:

- use the "Tab" key to move between screen elements
- use the arrow keys to move within screen elements
- use "Ctrl-F" for context-sensitive help anywhere in swinstall

On screens with a menubar at the top like this:
------------------------------------------------------
|File View Options Actions                         Help|
| ---- ---- ------- ------------------------------- ---|

- use "Tab" to move from the list to the menubar
- use the arrow keys to move around
- use "Return" to pull down a menu or select a menu item
- use "Tab" to move from the menubar to the list without selecting a menu item
- use the spacebar to select an item in the list

On any screen, press "CTRL-K" for more information on how to use the keyboard.

Press "Return" to continue...
A screen appears with the patches. With the Alt key go to Actions menu and select Manage Patch Selection
┌ ===             SD Install - Software Selection (hpux01) (1)                  ┐  
│File_View_Options_Actions_________________________________________________Help_│  
│                  │ Match What Target Max      │d help.                        │  
│Source: hpux01:/va│ Add Software Group...      │209.383.depot                  │  
│Target:  hpux01:/ │ Save Software Group...     │                               │  
│                  │ Manage Patch Selection...  │                               │  
│Only software comp│────────────────────────────│ilable for selection           │                
│──────────────────│ Change Source...           │───────────────────────────────│                
│Top (Bundles and P│ Add New Codeword           │                0 of 2 selected│                
│──────────────────│────────────────────────────│───────────────────────────────│                
│  Marked?    Name │ Change Target...           │    Information                │                
│┌─────────────────│────────────────────────────│─────────────────────────────┐ │                
││            QPKAP│ Install...                 │.   Applications Patches for ^ │                
││            QPKBA│ ========================== │.   Base Quality Pack Bundle   │                
││                 │ (nothing selected)         │                               │                
││                 └────────────────────────────┘                               │                
││                                                                              │                
││                                                                              │                
││                                                                              │                
││                                                                              │                
││                                                                            v │                
│└<──────────────────────────────────────────────────────────────────────────>┘ │                
│                                                                               │  
└───────────────────────────────────────────────────────────────────────────────┘
On the next screen press CTRL+L if it goes badly drawn and select the 2 options
┌ ===             SD Install - Software Selection (hpux01) (1)                  ┐  
┌                        Manage Patch Selection (hpux01)                        ┐  
│┌─────────────────────────────────────────────────────────────────────────────┐│  
││                                                                             ││  
││[X] Include patches with selected (marked) software from the source.         ││  
││[X] Automatically select patches for existing software on the target         ││  
││                                                                             ││
││Enter the filter (if any) to be applied to automatic patch selection.        ││
││Press Help for more information on composing a filter.                       ││
││[ Filter... ] *.*____________________________________________________________││                
││Patch categories on hpux01:/var/parches/QPK1131_B.11.31.1209.383.depot:      ││
││┌───────────────────────────────────────────────────────────────────────────┐││                
│││ defect_repair         Provide defect repair                               ^││
│││ general_release       General Release patch                                ││
│││ enhancement           Provide enhancement                                  ││
│││ critical              Fix a critical                                       ││
│││ corruption            Fix corruption                                       ││
│││ halts_system          Fix a hang or abort                                 v││
││└───────────────────────────────────────────────────────────────────────────┘││
│└<───────────────────────────────────────────────────────────────────────────>┘│                
│───────────────────────────────────────────────────────────────────────────────│  
│ [   OK   ]                       [ Cancel ]                        [  Help  ] │
└───────────────────────────────────────────────────────────────────────────────┘
Pressing OK indicates that the patches that pass the filters are installed
┌                      Confirmation (hpux01)                      ┐  
│                                                                 │  
│ Patches for software installed on the target will now be        │  
│ automatically marked. Only patches that pass the filter will be │  
│ marked.                                                         │  
│                                                                 │  
│ Do you wish to continue and have patches automatically marked?  │                
│─────────────────────────────────────────────────────────────────│                
│ [   Yes   ]                                         [[ No    ]] │                
└─────────────────────────────────────────────────────────────────┘
When finished, go to the Actions menu -> Install
┌ ===             SD Install - Software Selection (hpux01) (1)                  ┐  
│File_View_Options_Actions_________________________________________________Help_│  
│                  │ Match What Target Max      │d help.                        │  
│Source: hpux01:/va│ Add Software Group...      │209.383.depot                  │  
│Target:  hpux01:/ │ Save Software Group...     │                               │  
│                  │ Manage Patch Selection...  │                               │  
│Only software comp│────────────────────────────│ilable for selection           │                
│──────────────────│ Change Source...           │───────────────────────────────│                
│Top (Bundles and P│ Add New Codeword           │                0 of 2 selected│                
│──────────────────│────────────────────────────│───────────────────────────────│                
│  Marked?    Name │ Change Target...           │    Information                │                
│┌─────────────────│────────────────────────────│─────────────────────────────┐ │                
││            QPKAP│ Install...                 │.   Applications Patches for ^ │                
││            QPKBA│ ========================== │.   Base Quality Pack Bundle   │                
││                 │ (nothing selected)         │                               │                
││                 └────────────────────────────┘                               │                
││                                                                              │                
││                                                                              │                
││                                                                              │                
││                                                                              │                
││                                                                            v │                
│└<──────────────────────────────────────────────────────────────────────────>┘ │                
│                                                                               │  
└───────────────────────────────────────────────────────────────────────────────┘
You will then see a screen indicating that the patches are selected/deselected, depending on the dependencies between them. Indicates OK and allowed to complete the analysis phase. After the analysis phase correct mode, press OK and install the patches. At the end of the following appears
┌ ===             Install Analysis (hpux01)  (2)                  ┐  
│                                                                 │  
│ After Analysis has completed, press 'OK' to proceed, or 'CANCEL'│  
│ to return to prior selection screen.                            │  
│                                                                 │  
│                                                                 │  
│ Target             :  hpux01:/                                  │                
│ Status             :  Ready                                     │                
│ Products Scheduled :  94 of 143                                 │                
│                                                                 │                
│ [ Products... ] [ Logfile... ] [ Disk Space... ] [ Re-analyze ] │                
│─────────────────────────────────────────────────────────────────│                
│ [   OK   ]                [ Cancel ]                [  Help  ]  │                
└─────────────────────────────────────────────────────────────────┘
[ad#enlaces-horizontal]
Finally, warns that you have to reboot to apply the changes
        *** FINAL System shutdown message (hpux01) ***
System going down IMMEDIATELY

System shutdown time has arrived

Jan  3 09:42:16 rpcbind: rpcbind terminating on signal.
Jan  3 09:42:16 /usr/sbin/envd[2200]: terminated by signal 15
       * The kernel registry database has been saved to disk.
       * The kernel configuration changes that were being held for next
         boot have been applied.
Calling function e000000001a18640 for Shutdown State 1 type 0x1

sync'ing disks (0 buffers to flush):

 0 fcache pages still dirty
 0 buffers not flushed
 0 buffers still dirty

Calling function e000000002501270 for Shutdown State 5 type 0x1
Calling function e000000001c9e030 for Shutdown State 5 type 0x1

Closing open logical volumes...
Done

***********************************************************
* ROM Version : 04.03
* ROM Date    : 04/08/2008
* BMC Version :  05.23
***********************************************************
0 0 0x0015B2 0x0000000014611377 boot time event
1 0 0x0000A4 0x0000000000000000 start memory configuration
2 0 0x001CBB 0x0000000000000000 System set to insecure mode
0 0 0x0015B2 0x0000000032363476 boot time event
1 0 0x000014 0x0000000000000000 CPU0 starting cell relocation
1 0 0x000009 0x0000000000000000 CPU0 launch EFI

EFI version 2.00 [14.62]
Running on Intel(R) Itanium Processor Family
EFI 2.0 IPF server rx2660 7.12 [Fri Feb 23 17:21:28 2007] firmware by HP

Copyright (c) 2000-2006 Broadcom Corporation
Broadcom NetXtreme Gigabit Ethernet EFI driver v9.4.4

Loading 'SysROM:Floating-Point Software Assistance Handler'...
-- 'SysROM:Floating-Point Software Assistance Handler' returned Success
Loading 'SysROM:SCSI Bus Driver'...
-- 'SysROM:SCSI Bus Driver' returned Success
Loading 'SysROM:SCSI Disk Driver'...
-- 'SysROM:SCSI Disk Driver' returned Success
Loading 'SysROM:SCSI Tape Driver'...
-- 'SysROM:SCSI Tape Driver' returned Success
Loading device drivers
                   EFI Boot Manager ver 2.00 [14.62]
OS might use only the primary console set via boot manager or conconfig command
                                       /----------------------------------  
 /----------------------------------  |       System Overview            | 
 |            Boot Menu             |  |   hp server rx2660               |  
 | HP-UX Primary Boot: 0/1/1/0....  |  | Serial #:  USE46454P8            | 
 | HP-UX HA Alternate Boot: 0/1...  |  |                                  |  
 | HP-UX Alternate Boot: 0/1/1/...  |  | System Firmware:  4.11 [4842]    |  
 | EFI Shell [Built-in]             |  | BMC Version:      5.25           |  
 | -------------------------------  |  | MP Version:       F.02.23        |  
 | Boot Configuration               |  | Installed Memory: 24576 MB       |  
 | System Configuration             |  |                                  |  
 | Security Configuration           |  |  CPU  Logical                    |  
 ----------------------------------/  | Module CPUs   Speed  Status      |  
                                       |    0    4   1.67 GHz Active      | 
                                       |    1    4   1.67 GHz Active      |  
                                       |                                  |  
                                       |                                  |  
                                       |                                  |  
                                       |                                  |   
                                       ----------------------------------/
Use ^ and v to change option(s). Use Enter to select an option
Boot entry selection will boot in 9 second(s). Retry 0 of 0

Loading.: HP-UX Primary Boot: 0/1/1/0.0x5000c50023db77f9.0x0
Starting: HP-UX Primary Boot: 0/1/1/0.0x5000c50023db77f9.0x0

(C) Copyright 1999-2011 Hewlett-Packard Development Company, L.P.
All rights reserved

HP-UX Boot Loader for IPF  --  Revision 2.043

Press Any Key to interrupt Autoboot
EFIHPUXAUTO ==> boot vmunix
Seconds left till autoboot -    10
AUTOBOOTING...
> System Memory = 24553 MB

loading section 0

...

The system is ready.

Console Login:
At this point press CTRL+B and log out of the console. Once verified that there is no problem associated with the installation, resynchronize the mirror, eliminating the lvoles “b”

hpux01 # vgdisplay -v vg00 | grep lvol | grep b
   LV Name                     /dev/vg00/lvol1b
   LV Name                     /dev/vg00/lvol4b
   LV Name                     /dev/vg00/lvol6b
   LV Name                     /dev/vg00/lvol7b
   LV Name                     /dev/vg00/lvol3b
hpux01 # for i in 1 3 4 6 7
> do
> lvmerge /dev/vg00/lvol"$i"b /dev/vg00/lvol"$i"
> done
Logical volume "/dev/vg00/lvol1b" merged with logical volume "/dev/vg00/lvol1".
Logical volume "/dev/vg00/lvol1b" has been successfully removed.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
Logical volume "/dev/vg00/lvol3b" merged with logical volume "/dev/vg00/lvol3".
Logical volume "/dev/vg00/lvol3b" has been successfully removed.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
Logical volume "/dev/vg00/lvol4b" merged with logical volume "/dev/vg00/lvol4".
Logical volume "/dev/vg00/lvol4b" has been successfully removed.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
Logical volume "/dev/vg00/lvol6b" merged with logical volume "/dev/vg00/lvol6".
Logical volume "/dev/vg00/lvol6b" has been successfully removed.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
Logical volume "/dev/vg00/lvol7b" merged with logical volume "/dev/vg00/lvol7".
Logical volume "/dev/vg00/lvol7b" has been successfully removed.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
hpux01 #
If we boot normally and the system restarts or doesn´t boot correctly  because they have gone bad patches, we have to boot from the mirror disk. For this, after restart, although you choose to boot from the alternate boot disk, the system will not boot. But if we boot in maintenance mode, we can change the boot headers and boot from the mirror disk
                      EFI Boot Manager ver 2.00 [14.62]
OS might use only the primary console set via boot manager or conconfig command
                                       /----------------------------------  
 /----------------------------------  |       System Overview            | 
 |            Boot Menu             |  |   hp server rx2660               |  
 | HP-UX Primary Boot: 0/1/1/0....  |  | Serial #:  USE46454P8            | 
 | HP-UX HA Alternate Boot: 0/1...  |  |                                  |  
 | HP-UX Alternate Boot: 0/1/1/...  |  | System Firmware:  4.11 [4842]    |  
 | EFI Shell [Built-in]             |  | BMC Version:      5.25           |  
 | -------------------------------  |  | MP Version:       F.02.23        |  
 | Boot Configuration               |  | Installed Memory: 24576 MB       |  
 | System Configuration             |  |                                  |  
 | Security Configuration           |  |  CPU  Logical                    |  
 ----------------------------------/  | Module CPUs   Speed  Status      |  
                                       |    0    4   1.67 GHz Active      | 
                                       |    1    4   1.67 GHz Active      |  
                                       |                                  |  
                                       |                                  |  
                                       |                                  |  
                                       |                                  |   
                                       ----------------------------------/
Use ^ and v to change option(s). Use Enter to select an option
Boot entry selection will boot in 9 second(s). Retry 0 of 0

Loading.: HP-UX Alternate Boot: 0/1/1/0.0x5000c5002c8bd4ed.0x0
Starting: HP-UX Alternate Boot: 0/1/1/0.0x5000c5002c8bd4ed.0x0

(C) Copyright 1999-2011 Hewlett-Packard Development Company, L.P.
All rights reserved

HP-UX Boot Loader for IPF  --  Revision 2.044

Press Any Key to interrupt Autoboot
EFIHPUXAUTO ==> boot vmunix
Seconds left till autoboot -
Type 'help' for help
Interrupt the boot pressing any key and boot in maintenance mode
HPUX> boot vmunix -lm
> System Memory = 24553 MB
loading section 0
............................................................................... (complete)
loading section 1
................. (complete)
loading symbol table
loading System Directory (boot.sys) to MFS
.....
loading MFSFILES directory (bootfs) to MFS
................................................

================================================================================
WARNING: Multiple console output devices are configured. If this message
remains on the screen for more than a few minutes, then this is not the
device in use by HP-UX as the console output device. If you would like this
device to be the one used by HP-UX as the console output device, reboot and
use the EFI boot manager or the EFI 'conconfig' command to select this device
and deconfigure the others.
================================================================================

Launching /stand/vmunix
SIZE: Text:46175K + Data:8573K + BSS:27581K = Total:82331K

Console is on Serial Device - via PCDP
Booting kernel...

Loaded ACPI revision 2.0 tables.
Using /stand/ext_ioconfig

Memory Class Setup
-------------------------------------------------------------------------
Class     Physmem              Lockmem              Swapmem
-------------------------------------------------------------------------
System :  23353 MB             23353 MB             23353 MB           
Kernel :  23353 MB             23353 MB             23353 MB           
User   :  21968 MB             19475 MB             19552 MB           
-------------------------------------------------------------------------

ktracer is off until requested.
Enabling spinlock ALAT switching
Installing Socket Protocol families AF_INET and AF_INET6
Kernel EVM initialized
sec_init(): kernel RPC authentication/security initialization.
secgss_init():  kernel RPCSEC_GSS security initialization.
rpc_init(): kernel RPC initialization.
rpcmod_install(): kernel RPC STREAMS module "rpcmod" installation. ...(driver_install)
NOTICE: nfs_client_pv3_install(): nfs3 File system was registered at index 10.
NOTICE: nfs_client_pv4_install(): nfs4 File system was registered at index 11.
NOTICE: cachefsc_install: cachefs File system was registered at index 13.
LLT INFO V-14-1-10009 LLT 5.1.100.000 Protocol available
GAB INFO V-15-1-20021 GAB 5.1.100.000 available
VXFEN INFO V-11-1-56 VxFEN 5.1.100.000 loaded. Protocol versions supported: 10,20
vxfen: vxfen protocol available
fclp0: Claiming Fibre Channel HBA port at hardware path 0/2/0/0/0/0/4/0/0/0
fclp1: Claiming Fibre Channel HBA port at hardware path 0/2/0/0/0/0/4/0/0/1
fclp2: Claiming Fibre Channel HBA port at hardware path 0/4/0/0/0/0/4/0/0/0
fclp3: Claiming Fibre Channel HBA port at hardware path 0/4/0/0/0/0/4/0/0/1

Boot device's HP-UX HW path is: 0/1/1/0.0x5000c5002c8bd4ed.0x0

    System Console is on the Built-In Serial Interface

igelan0: INITIALIZING HP PCI-X 1000Base-T Dual-port Built-in at hardware path 0/1/2/0
iether2: INITIALIZING HP AD222-60001 PCIe 1000Base-T 2-port 4Gb FC/2-port 1000B-T Combo
Adapter at hardware path 0/2/0/0/0/0/2/0/0/0
iether3: INITIALIZING HP AD222-60001 PCIe 1000Base-T 2-port 4Gb FC/2-port 1000B-T Combo
Adapter at hardware path 0/2/0/0/0/0/2/0/0/1
iether4: INITIALIZING HP AD222-60001 PCIe 1000Base-T 2-port 4Gb FC/2-port 1000B-T Combo
Adapter at hardware path 0/4/0/0/0/0/2/0/0/0
iether5: INITIALIZING HP AD222-60001 PCIe 1000Base-T 2-port 4Gb FC/2-port 1000B-T Combo
Adapter at hardware path 0/4/0/0/0/0/2/0/0/1
igelan1: INITIALIZING HP PCI-X 1000Base-T Dual-port Built-in at hardware path 0/1/2/1

AF_INET socket/streams output daemon running, pid 58

afinet_prelink: module installed

Starting the STREAMS daemons-phase 1

LVM: Root VG activated

    Swap device table:  (start & size given in 512-byte blocks)

        entry 0 - major is 64, minor is 0x2; start = 0, size = 16777216

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

Starting the STREAMS daemons-phase 2

     $Revision: vmunix:    B.11.31_LR FLAVOR=perf

Memory Information:

    physical page size = 4096 bytes, logical page size = 4096 bytes
    Physical: 25143204 Kbytes, lockable: 18535184 Kbytes, available: 21088572 Kbytes

/sbin/ioinitrc:
/dev/vg00/lvol1:file system is clean - log replay is not required
/sbin/krs_sysinit:
       * The module 'gvid_info' has been loaded.
       * The module 'rng' has been loaded.

insf: Installing special files for ipmi instance 0 address 250/0
insf: Installing special files for pseudo driver framebuf

INIT: MAINTENANCE MODE

INIT: Running /sbin/sh

#
check the boot headers
# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
        /dev/disk/disk3_p2 -- Boot Disk
Boot: lvol1     on:     /dev/disk/disk3_p2
Root: lvol3     on:     /dev/disk/disk3_p2
Swap: lvol2     on:     /dev/disk/disk3_p2
Dump: lvol2     on:     /dev/disk/disk3_p2, 0
#
Change the boot headers by the lvoles “b”
# lvlnboot –b /dev/vg00/lvol1b
# lvlnboot –r /dev/vg00/lvol3b
# lvlnboot –s /dev/vg00/lvol2b
# lvlnboot –d /dev/vg00/lvol2b
# lvlnboot -v

Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
        /dev/disk/disk2_p2 -- Boot Disk
Boot: lvol1b     on:     /dev/disk/disk2_p2
Root: lvol3b     on:     /dev/disk/disk2_p2
Swap: lvol2b     on:     /dev/disk/disk2_p2
Dump: lvol2b     on:     /dev/disk/disk2_p2, 0
#
Reboot, choose the Alternate disk on the Loader screen and let the loader starts up normally. At the end of the boot, confirm that we have boot from the mirror disk
hpux01 # bdf
Filesystem           kbytes    used   avail %used Mounted on
/dev/vg00/lvol3b    1048576  482344  561824   46% /
/dev/vg00/lvol1b    1835008  574744 1250464   31% /stand
/dev/vg00/lvol7b    8912896 6032176 2862736   68% /var
/dev/vg00/lvol6b    6258688 3700784 2538088   59% /usr
/dev/vg00/lvol4b    9404416 5467896 3905784   58% /opt
...
Finally, we synchronize the mirror backwards, leaving lvoles “b” and overwriting the original
hpux01 # for i in 1 3 4 6 7
> do
> lvmerge /dev/vg00/lvol"$i" /dev/vg00/lvol"$i"b
> done
Logical volume "/dev/vg00/lvol1" merged with logical volume "/dev/vg00/lvol1b".
Logical volume "/dev/vg00/lvol1" has been successfully removed.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
Logical volume "/dev/vg00/lvol3" merged with logical volume "/dev/vg00/lvol3b".
Logical volume "/dev/vg00/lvol3" has been successfully removed.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
Logical volume "/dev/vg00/lvol4" merged with logical volume "/dev/vg00/lvol4b".
Logical volume "/dev/vg00/lvol4" has been successfully removed.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
Logical volume "/dev/vg00/lvol6" merged with logical volume "/dev/vg00/lvol6b".
Logical volume "/dev/vg00/lvol6" has been successfully removed.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
Logical volume "/dev/vg00/lvol7" merged with logical volume "/dev/vg00/lvol7b".
Logical volume "/dev/vg00/lvol7" has been successfully removed.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
hpux01 #
SHARE

sangeethakumar

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment