IUX - Recovery methods

From Wiki-UX.info
Jump to: navigation, search

Using make_net_recovery

Command syntax

The basic make_net_recovery sintaxis is:

# make_net_recovery -v -p -s <Ignite-UX Server> \
-x inc_entire=vg00 -n #
-v = verbose
-p = preview
-s <Ignite-UX Server> = hostname, full qualified domain name or IP Address
-x inc_entire=vg00 = save all bootable volume group
-n # = Number of copies to save, default is 2, 1 is recommended
# make_net_recovery -v -p -s crc8000.cri.hp.com \
-x inc_entire=vg00 -n 1

PAX Patch Warning

# make_net_recovery -v -p -s crc8000.cri.hp.com \
> -x inc_entire=vg00 -n 1
       * Creating NFS mount directories for configuration files.
       * Recovery Archive Name = 2008-06-25,09:48

       * Lanic Id  = 0x00156004A2FA

       * Ignite-UX Server = crc8000.cri.hp.com


=======  06/25/08 09:48:12 CDT  Started make_net_recovery. (Wed Jun 25 09:48:12
         CDT 2008)
         @(#)Ignite-UX Revision C.7.6.100
         @(#)ignite/net_recovery (opt) Revision:
         /branches/IUX_RA0806/ignite/src@73644 Last Modified: 2008-04-15
         17:21:10 -0600 (Tue, 15 Apr 2008)

       * Testing for necessary pax patch.
WARNING: The version of pax on the system to be archived needs to
         be patched with one of the following patches or later.
         If you do not load the pax patch, some files will not be
         correctly archived (see the Ignite-UX release notes for
         details):

             HP-UX     Patch needed
            -------    ------------
            B.11.00     PHCO_30150
            B.11.11     PHCO_32438

         You can get patches over the web from the patch database at:
            http://itresourcecenter.hp.com
         or directly from the FTP server at:
            ftp://ftp.itrc.hp.com/hp-ux_patches


You have 10 seconds to cancel archive creation...
Do you want to cancel? (y or [n])
y

=======  06/25/08 09:48:16 CDT  make_net_recovery completed unsuccessfully

Warning indicates system must have installed at least the recommended or higher PAX patch.

The patch family tree browser shows the lineage for a specified patch and it can be used to determine if you have installed the latest version of an specific patch.

To look for the PHCO_32438 patch family tree just go to:

http://www11.itrc.hp.com/service/patch/patchTree.do?patchid=PHCO_35998&sel={hpux:11.11,}&BC=main%7Csearch%7CpatchDetail{PHCO_35998,{hpux:11.11,}}%7C

The next command line will shows if a patch is already installed and configured or not. If patch is not present swlist will not return an output.

# swlist -a state <PATCH_ID>

Swlist patch sample:

# swlist -a state PHCO_32438 
# Initializing...
# Contacting target "delta"...
#
# Target:  delta:/
#
# PHCO_32438 
PHCO_32438 .UX-CORE                    configured

Running make_net_recovery in preview mode

# make_net_recovery -v -p -s crc8000.cri.hp.com \
-x inc_entire=vg00 -n 1

       * Creating NFS mount directories for configuration files.
       * Recovery Archive Name = 2008-06-25,09:53

       * Lanic Id  = 0x00156004A2FA

       * Ignite-UX Server = crc8000.cri.hp.com


=======  06/25/08 09:53:06 CDT  Started make_net_recovery. (Wed Jun 25 09:53:06
         CDT 2008)
         @(#)Ignite-UX Revision C.7.6.100
         @(#)ignite/net_recovery (opt) Revision:
         /branches/IUX_RA0806/ignite/src@73644 Last Modified: 2008-04-15
         17:21:10 -0600 (Tue, 15 Apr 2008)

       * Testing for necessary pax patch.
       * Recovery Archive Description = Recovery Archive

       * Recovery Archive Location    =
         crc8000.cri.hp.com:/var/opt/ignite/recovery/archives/delta				<-- NFS archive path

       * Number of Archives to Save   = 1

       * Pax type  = tar


        In?     dsk/vg  name                    minor#  Associated disks/mountpoints
        2       v       /dev/vg00               0x00    /dev/dsk/c3t0d0
                                                /dev/vg00/lvol1 /stand  2
                                                /dev/vg00/lvol2
                                                /dev/vg00/lvol3 /       2
                                                /dev/vg00/lvol4 /opt    2
                                                /dev/vg00/lvol5 /tmp    2
                                                /dev/vg00/lvol6 /usr    2
                                                /dev/vg00/lvol7 /var    2
                                                /dev/vg00/lvol8 /home   2
                                                /dev/vg00/depot /depot  2
                                                /dev/vg00/golden_depot  /image_depot    2

        ** 0 - The Volume Group or Filesystem is Not included in the
               System Recovery Archive
        ** 1 - The Volume Group or Filesystem is Partially included in the
               System Recovery Archive
        ** 2 - The Volume Group or Filesystem is Fully included in the
               System Recovery Archive

       * Checking Versions of Recovery Tools
       * Scanning system for IO devices...
       * Boot device is: 0/1/1/1.0.0
       * Creating System Configuration.
       * /opt/ignite/bin/save_config -f /var/opt/ignite/recovery/client_mnt/0x0
         0156004A2FA/recovery/2008-06-25,09:53/system_cfg vg00
       * Backing Up Volume Group /dev/vg00
       * /usr/sbin/vgcfgbackup /dev/vg00
       * Creating Map Files for Volume Group /dev/vg00
       * /usr/sbin/vgexport -s -p -m /etc/lvmconf/vg00.mapfile /dev/vg00

       * Creating Control Configuration.
       * Creating Archive File List
       * Creating Archive Configuration

       * /opt/ignite/lbin/make_arch_config -c /var/opt/ignite/recovery/client_m
         nt/0x00156004A2FA/recovery/2008-06-25,09:53/archive_cfg -g /var/opt/ig
         nite/recovery/client_mnt/0x00156004A2FA/recovery/2008-06-25,09:53/flis
         t -n 2008-06-25,09:53 -r pa -b 64 -d Recovery\ Archive -L
         /var/opt/ignite/recovery/arch_mnt -l
         crc8000.cri.hp.com:/var/opt/ignite/recovery/archives/delta -i 1 -m t
       * Saving the information about archive to
         /var/opt/ignite/recovery/previews
       *

       * **** This is just Preview Only.                        ****
       * **** No archive has been created yet.                  ****
       * **** You may modify the configure files                ****
       * **** and use -r option for resuming to create archive. ****


=======  06/25/08 09:53:32 CDT  make_net_recovery completed successfully!

Even when the make_net_recovery preview finish succesfully, it does no means Ignite server is properly configured to create the archive. The make_net_recovery preview will not check the nfs mount point inclusion on the Ignite server, so you may still have errors in the image creation proccess.

NFS mount errors

# make_net_recovery -v -s crc8000.cri.hp.com \
-x inc_entire=vg00 -n 1
       * Creating NFS mount directories for configuration files.
       * Recovery Archive Name = 2008-06-25,09:59

       * Lanic Id  = 0x00156004A2FA

       * Ignite-UX Server = crc8000.cri.hp.com


=======  06/25/08 09:59:21 CDT  Started make_net_recovery. (Wed Jun 25 09:59:21
         CDT 2008)
         @(#)Ignite-UX Revision C.7.6.100
         @(#)ignite/net_recovery (opt) Revision:
         /branches/IUX_RA0806/ignite/src@73644 Last Modified: 2008-04-15
         17:21:10 -0600 (Tue, 15 Apr 2008)

       * Testing for necessary pax patch.
       * Recovery Archive Description = Recovery Archive

       * Recovery Archive Location    =
         crc8000.cri.hp.com:/var/opt/ignite/recovery/archives/delta

       * Number of Archives to Save   = 1

       * Pax type  = tar


        In?     dsk/vg  name                    minor#  Associated disks/mountpoints
        2       v       /dev/vg00               0x00    /dev/dsk/c3t0d0
                                                /dev/vg00/lvol1 /stand  2
                                                /dev/vg00/lvol2
                                                /dev/vg00/lvol3 /       2
                                                /dev/vg00/lvol4 /opt    2
                                                /dev/vg00/lvol5 /tmp    2
                                                /dev/vg00/lvol6 /usr    2
                                                /dev/vg00/lvol7 /var    2
                                                /dev/vg00/lvol8 /home   2
                                                /dev/vg00/depot /depot  2
                                                /dev/vg00/golden_depot  /image_depot    2

        ** 0 - The Volume Group or Filesystem is Not included in the
               System Recovery Archive
        ** 1 - The Volume Group or Filesystem is Partially included in the
               System Recovery Archive
        ** 2 - The Volume Group or Filesystem is Fully included in the
               System Recovery Archive

       * Checking Versions of Recovery Tools
       * Scanning system for IO devices...
       * Boot device is: 0/1/1/1.0.0
       * Creating System Configuration.
       * /opt/ignite/bin/save_config -f /var/opt/ignite/recovery/client_mnt/0x0
         0156004A2FA/recovery/2008-06-25,09:59/system_cfg vg00
       * Backing Up Volume Group /dev/vg00
       * /usr/sbin/vgcfgbackup /dev/vg00
       * Creating Map Files for Volume Group /dev/vg00
       * /usr/sbin/vgexport -s -p -m /etc/lvmconf/vg00.mapfile /dev/vg00

       * Creating Control Configuration.
       * Creating Archive File List
       * Creating Archive Configuration

       * /opt/ignite/lbin/make_arch_config -c /var/opt/ignite/recovery/client_m
         nt/0x00156004A2FA/recovery/2008-06-25,09:59/archive_cfg -g /var/opt/ig
         nite/recovery/client_mnt/0x00156004A2FA/recovery/2008-06-25,09:59/flis
         t -n 2008-06-25,09:59 -r pa -b 64 -d Recovery\ Archive -L
         /var/opt/ignite/recovery/arch_mnt -l
         crc8000.cri.hp.com:/var/opt/ignite/recovery/archives/delta -i 1 -m t
       * Saving the information about archive to
         /var/opt/ignite/recovery/previews
       * Creating The Networking Archive

Permission denied
ERROR:   Unable to mount or write
         crc8000.cri.hp.com:/var/opt/ignite/recovery/archives/delta
         On crc8000.cri.hp.com you may need to:
         mkdir -p /var/opt/ignite/recovery/archives/delta
         chown bin:bin /var/opt/ignite/recovery/archives/delta

         If the OS on crc8000.cri.hp.com is 11.31 or later, vi /etc/dfs/dfstab.
         The /etc/dfs/dfstab file on "crc8000.cri.hp.com" should contain the
         entry: "share -F nfs -o sec=sys,anon=2,rw=<client>
         /var/opt/ignite/recovery/archives/delta". Where <client> is replaced
         by a fully qualified client name.
         After editing the /etc/dfs/dfstab file, run "shareall -F nfs"
         If you need to change the owner of the directory,
         you will also need to re-share the directory.

         Otherwise, vi /etc/exports. The /etc/exports file on
         "crc8000.cri.hp.com" should contain the entry:
         "/var/opt/ignite/recovery/archives/delta -anon=2,access=delta".
         After editing the /etc/exports file, run exportfs -av
         If you need to change the owner of the directory,
         you will also need to re-export the directory.

         See make_net_recovery(1M) for more information.
ERROR:   Failed to Create NFS mount Archive directory.


=======  06/25/08 09:59:54 CDT  make_net_recovery completed unsuccessfully

Including NFS mount points in the Ignite server

Some errors will be found the end of the archive cretion proccess output. This errors will provide the steps to follow to fix the issue.

Creating the archive directiory

Applicable for 11.11, 11.23 and 11.31 releases

# mkdir -p /var/opt/ignite/recovery/archives/<client>
# chown bin:bin /var/opt/ignite/recovery/archives/<client>

Modifying the directories to export to NFS clients

a. Applicable for 11.31 environments:

vi /etc/dfs/dfstab
Add line "share -F nfs -o sec=sys,anon=2,rw=<client> /var/opt/ignite/recovery/archives/<client>"
run "shareall -F nfs"

Where <client> is replaced by a fully qualified client name. If you need to change the owner of the directory, you will also need to re-share the directory.

b. Applicable for 11.11 and 11.23 environments:

vi /etc/exports
Add line "/var/opt/ignite/recovery/archives/<client> -anon=2,access=<client>"
run "exportfs -av"

Where <client> is replaced by a fully qualified client name. If you need to change the owner of the directory, you will also need to re-export the directory.

Succesful make_net_recovery

# make_net_recovery -v -s crc8000.cri.hp.com \
> -x inc_entire=vg00 -n 1
       * Creating NFS mount directories for configuration files.
       * Recovery Archive Name = 2008-06-25,10:08

       * Lanic Id  = 0x00156004A2FA

       * Ignite-UX Server = crc8000.cri.hp.com


=======  06/25/08 10:08:57 CDT  Started make_net_recovery. (Wed Jun 25 10:08:57
         CDT 2008)
         @(#)Ignite-UX Revision C.7.6.100
         @(#)ignite/net_recovery (opt) Revision:
         /branches/IUX_RA0806/ignite/src@73644 Last Modified: 2008-04-15
         17:21:10 -0600 (Tue, 15 Apr 2008)

       * Testing for necessary pax patch.
       * Recovery Archive Description = Recovery Archive

       * Recovery Archive Location    =
         crc8000.cri.hp.com:/var/opt/ignite/recovery/archives/delta

       * Number of Archives to Save   = 1

       * Pax type  = tar


        In?     dsk/vg  name                    minor#  Associated disks/mountpoints
        2       v       /dev/vg00               0x00    /dev/dsk/c3t0d0
                                                /dev/vg00/lvol1 /stand  2
                                                /dev/vg00/lvol2
                                                /dev/vg00/lvol3 /       2
                                                /dev/vg00/lvol4 /opt    2
                                                /dev/vg00/lvol5 /tmp    2
                                                /dev/vg00/lvol6 /usr    2
                                                /dev/vg00/lvol7 /var    2
                                                /dev/vg00/lvol8 /home   2
                                                /dev/vg00/depot /depot  2
                                                /dev/vg00/golden_depot  /image_depot    2

        ** 0 - The Volume Group or Filesystem is Not included in the
               System Recovery Archive
        ** 1 - The Volume Group or Filesystem is Partially included in the
               System Recovery Archive
        ** 2 - The Volume Group or Filesystem is Fully included in the
               System Recovery Archive

       * Checking Versions of Recovery Tools
       * Scanning system for IO devices...
       * Boot device is: 0/1/1/1.0.0
       * Creating System Configuration.
       * /opt/ignite/bin/save_config -f /var/opt/ignite/recovery/client_mnt/0x0
         0156004A2FA/recovery/2008-06-25,10:08/system_cfg vg00
       * Backing Up Volume Group /dev/vg00
       * /usr/sbin/vgcfgbackup /dev/vg00
       * Creating Map Files for Volume Group /dev/vg00
       * /usr/sbin/vgexport -s -p -m /etc/lvmconf/vg00.mapfile /dev/vg00

       * Creating Control Configuration.
       * Creating Archive File List
       * Creating Archive Configuration

       * /opt/ignite/lbin/make_arch_config -c /var/opt/ignite/recovery/client_m
         nt/0x00156004A2FA/recovery/2008-06-25,10:08/archive_cfg -g /var/opt/ig
         nite/recovery/client_mnt/0x00156004A2FA/recovery/2008-06-25,10:08/flis
         t -n 2008-06-25,10:08 -r pa -b 64 -d Recovery\ Archive -L
         /var/opt/ignite/recovery/arch_mnt -l
         crc8000.cri.hp.com:/var/opt/ignite/recovery/archives/delta -i 1 -m t
       * Saving the information about archive to
         /var/opt/ignite/recovery/previews
       * Creating The Networking Archive

       * /opt/ignite/data/scripts/make_sys_image -d
         /var/opt/ignite/recovery/arch_mnt -t n -s local -n 2008-06-25,10:08 -m
         t -w /var/opt/ignite/recovery/client_mnt/0x00156004A2FA/recovery/2008-
         06-25,10:08/recovery.log -u -R -g /var/opt/ignite/recovery/client_mnt/
         0x00156004A2FA/recovery/2008-06-25,10:08/flist -a 4670180

       * Preparing to create a system archive.
       * The archive is estimated to reach 2335090 kbytes.
       * Free space on /var/opt/ignite/recovery/arch_mnt
         after archive should be about 7468270 kbytes.

       * Archiving contents of delta via tar to
          /var/opt/ignite/recovery/arch_mnt/2008-06-25,10:08.
       * Creation of system archive complete.

NOTE: Could not read the /etc/resolv.conf file.
       * Creating CINDEX Configuration File

       * /opt/ignite/bin/manage_index -q -c 2008-06-25,10:08\ Recovery\ Archive
         -i /var/opt/ignite/recovery/client_mnt/0x00156004A2FA/CINDEX -u
         Recovery\ Archive


=======  06/25/08 10:29:42 CDT  make_net_recovery completed successfully!

Recovering Image

# bootsys -c crc8000.cri.hp.com
Called with options: "-c crc8000.cri.hp.com"
        ebooting delta now.
#
sync'ing disks (0 buffers to flush):
0 buffers not flushed
0 buffers still dirty

Closing open logical volumes...
Done

.
.
.
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 3


HARD Booted.

ISL Revision A.00.43  Apr 12, 2000

ISL booting  hpux  (;0)/stand/WINSTALL

Boot
: disk(0/1/1/1.0.0.0.0.0.0;0)/stand/WINSTALL
12283904 + 2244720 + 2718888 start 0x20c568




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.

    System Console is on the Built-In Serial Interface
iether0: INITIALIZING HP AB352-60001 PCI/PCI-X 1000Base-T Dual-port Core at hardware path 0/1/2/0
iether1: INITIALIZING HP AB352-60001 PCI/PCI-X 1000Base-T Dual-port Core at hardware path 0/1/2/1
igelan2: INITIALIZING HP A9784-60002 PCI/PCI-X 1000Base-T FC/GigE Combo Adapter at hardware path 0/4/1/0/6/0
    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
Starting the STREAMS daemons-phase 2
           $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: 1536924 Kbytes, available: 1788036 Kbytes

       * Preparing to execute init...
=======  06/25/08 12:00:06 EDT  HP-UX Installation Initialization. (Wed Jun 25
         12:00:06 EDT 2008)
         @(#)Ignite-UX Revision C.7.6.100
         @(#)ignite/launch (opt) Revision:
         /branches/IUX_RA0806/ignite/src@73644 Last Modified: 2008-04-15
         17:21:10 -0600 (Tue, 15 Apr 2008)
       * Configuring RAM filesystems...
       * Scanning system for IO devices...
       * Boot device is: 0/1/1/1.0.0
NOTE:    Default (boot) source does not appear to be a valid (or complete)
         install source, switching source to Network
       * Setting keyboard language.
.                       User Interface and Media Options

   This screen lets you pick from options that will determine if an
   Ignite-UX server is used, and your user interface preference.

 Source Location Options:
   [   ]  Media only installation
   [   ]  Media with Network enabled (allows use of SD depots)
   [ * ]  Ignite-UX server based installation

 User Interface Options:
   [   ]  Guided Installation   (very basic installs - deprecated mode)
   [ * ]  Advanced Installation (recommended for disk and filesystem management)
   [   ]  No user interface - setup basic networking, use defaults and go
   [   ]  Remote graphical interface running on the Ignite-UX server

   Hint: If you need to make LVM size changes, or want to set the
         final networking parameters during the install, you will
         need to use the Advanced mode (or remote graphical interface).



   [   OK   ]                  [ Cancel ]                         [  Help  ]

Return Ignite-UX_Handbook