Depots - HP-UX

The Ignite Server is tl-hp08.
Creating Additional Core Operation System Depots:
This will be updated on at least a semi-annual basis.
  1. Get a list of depots on tl-hp08: swlist -l depot
  2. Deregister the core depot that's being replaced:
    swreg  -u  -l  depot  <name of core depot from list>
  3. Move and rename the core depot that's being replaced:

bulletcd  /var/opt/ignite/depots/<Release>
bulletmv  core  /depots/ignite/<Release>/core.<mmyy>
(ex:  core.Sept2002)
bulletln -s /depots/ignite/<Release>/core.<mmyy>
/var/opt/ignite/depots/<Release>/core.<mmyy>
  1. On the Ignite Server, mount HP's Core OS CD for an OS version for which you want to create a depot.
  2. Set your DISPLAY and run "ignite"  (/opt/ignite/bin/ignite) on the Ignite Server.
  3. Once the ignite GUI comes up, select "Server Setup", continue past the initial screens (must have a valid IP address to continue) and skip the DHCP setup.
  4. Select "Copy CD" in the "Software Depot Setup" menu.  As an example, let's assume you're creating a depot of 11.0 Core.  This copies by default to depot: /var/opt/ignite/depots/Rel_B.11.0/core.

    This "Copy CD" executes the following commands behind the scenes:

bullet/opt/ignite/bin/make_depots -s /iuxcdrom0 -d /var/opt/ignite/depots/Rel_B.11.0/core -l /var/opt/ignite/logs/server_setup
bullet/opt/ignite/bin/make_config -c /var/opt/ignite/data/Rel_B.11.0/core_cfg -s /var/opt/ignite/depots/Rel_B.11.0/core
bullet/opt/ignite/bin/manage_index -a -f /var/opt/ignite/data/Rel_B.11.0/core_cfg
-c "HP-UX B.11.0 default"
(NOTE: The manage_index will fail on creating additional core depots since it
tries to find a "Default" configuration clause to update in /var/opt/ignite/INDEX.
This error can be ignored since the name of the core config file doesn't change
so INDEX doesn't need to be updated.)

NOTE:An alternative to using setup_server in the GUI to create the 11i Core-OS depot is to run the Ignite commands manually. The manual procedure for creating an 11i Core-OS depot for the server to use with client installs is:
1) Copy the contents of this CD to a depot:
# make_depots -r B.11.23 -s /dev/dsk/c0t0d0 -d /var/opt/ignite/depots/Rel_B.11.X/core
2) Unmount the first CD and mount the second 11i Core-OS CD. Using the same target , copy the contents of the second CD:
3) Create a config file to describe your new depot:
# make_config -c /var/opt/ignite/data/Rel_B.11.X/core_cfg -s /var/opt/ignite/depots/Rel_B.11.X/core
4) Add the configuration to the INDEX file:# manage_index -a -f /var/opt/ignite/data/Rel_B.11.X/core_cfg
  1. Go into the core depot directory and touch a date file to keep track of the date of the CD used to create the depot:

bulletcd /var/opt/ignite/depots/<Release>/core
bullettouch date.<mmyy>
(ex:  date.Dec2002)
  1. Check the validity of the newly-created depot:

bulletswlist -l depot (to be sure depot is listed)
bulletTry to run swinstall using the newly-created depot.
  1. Check out Server's configuration (only do these steps for the initial core depot setup):

bullet/opt/ignite/bin/instl_adm -d > /tmp/instl.out

bulletvi /tmp/instl.out  <-- If Server has the wrong IP address, correct it now.
bulletThen run "instl_adm -f /tmp/instl.out"


Creating Application Software Bundle:
This will be updated on a quarterly basis.
  1. Mount HP's Application CD containing the Auxiliary-Opt, WDB and WDB-GUI products on the Ignite Server.
    NOTE: If Itanium-based DVD, mount it on an Itanium server.
  2. Run "swinstall" to be sure you can see the software.   You may need to enter a codeword.
  3. On Ignite Server,
    mkdir -p /var/opt/ignite/Applications/<month&year>/app<110/11i/1123>_<mmyy>[Ex: mkdir -p /var/opt/ignite/Applications/Sept2002/app110_0902  or
           mkdir -p /var/opt/ignite/Applications/Sept2002/app11i_0902 or       mkdir -p /var/opt/ignite/Applications/Sept2002/app1123_0902]
  4. Be sure the app<110/11i/1123>_<mmyy> directory has 777 permissions.
  5. Run "swcopy":

bulletThe target would be the Server's (tl-hp08's) directory you just created...For example, /var/opt/ignite/Applications/Sept2002/app11i_0902
bulletThe source would be "local directory" and depot path would be "/cdrom" (or wherever the CD is mounted).
  1. To select the Auxiliary-Opt, WDB, and WDB-GUI products, you may have to change "View" to "by product". 
  2. Then select "Copy". 
  3. Next, make a bundle.  Syntax is as follows:
    make_bundles -B -n DsiApps11i -t "HPUX 11i  Sept 2002 Auxiliary-Opt and WDB" /var/opt/ignite/Applications/Sept2002/app11i_0902

    [NOTE: This creates a directory called DsiApps11i under /var/opt/ignite/Applications/Sept2002/app11i_0902.]
  4. Create the configuration file for the software.  Syntax is as follows:
    make_config -s /var/opt/ignite/Applications/Sept2002/app11i_0902 -a 800 -c /var/opt/ignite/data/Rel_B .11.11/DsiApps_cfg
  5. Update the INDEX file.  Syntax is as follows:
    [NOTE:  If the configuration file, like DsiApps_cfg, is already part of the INDEX file, you don't need to do this step.]
    manage_index -a -f /var/opt/ignite/data/Rel_B.11.11/DsiApps_cfg -c "HP-UX B.11.11 DSI"
    .
    [NOTE:  You can also update the /var/opt/ignite/INDEX file manually to include a AuxOpt_cfg entry.]
  6. Run "instl_adm -T" to check the syntax of the INDEX file.

Creating Patch Bundle:
This will be updated on a quarterly basis.
  1. Mount HP's Support Plus CD containing the gold pack on the Ignite Server.
  2. On Ignite Server,
    mkdir /var/opt/ignite/Patches/<month&year>/<qpk1100 or goldqpk11i>
    [Ex: mkdir /var/opt/ignite/Patches/June2002/qpk1100        or       mkdir /var/opt/ignite/Patches/June2002/goldqpk11i]
  3. Make sure the qpk1100 or goldqpk11i directory has 777 permissions.
  4. Run "swcopy".  Syntax is as follows:
    swcopy -s /cdrom/goldqpk11i  \*  @ tl-hp08:/var/opt/ignite/Patches/June2002/goldqpk11i

    [NOTE: No "make_bundles" is necessary since we're copying the entire Gold Pack bundle.]
  5. Run "swlist" to be sure you can read the bundle.  Syntax is as follows:
    swlist -d  @  /var/opt/ignite/Patches/June2002/goldqpk11i 
  6. make_config -s /var/opt/ignite/Patches/June2002/goldqpk11i -a 800 -c /var/opt/ignite/data/Rel_B.11.11/GoldPatches_cfg
  7. Update the INDEX file.  Syntax is as follows:
    [NOTE:  If the configuration file, like GoldPatches_cfg, is already part of the INDEX file, you don't need to do this step.]
    manage_index -a -f /var/opt/ignite/data/Rel_B.11.11/GoldPatches_cfg -a "HP-UX B.11.11 default"
    .
    [NOTE:  You can also update the /var/opt/ignite/INDEX file manually to include a GoldPatches_cfg entry.
  8. Run "instl_adm -T" to check the syntax of the INDEX file.
Creating Required Patch Bundles:
This section refers to patches that were identified as required after the Support Plus media was made. This will be updated on a quarterly basis.
NOTE:  If there are no required patches for the Support Plus media, be sure to remove (or comment out) references to critical_cfg or REQD_PATCH:

bulletComment out critical_cfg in /var/opt/ignite/INDEX.
bulletRemove /var/opt/ignite/data/<release>/critical_cfg.
bulletComment out REQD_PATCH software selection in /var/opt/ignite/saved_cfgs/<release>_DSI.
  1. Dowload the patch(es) from HP's website into a temporary directory such as /tmp/patches/<Release> and untar it.
  2. After untarring the file, a create_depot script will be created. Edit this  script   and change the line that makes the file interactive when it is run.
    Change the following line:

    typset -i INTERACTIVE =0                  to
    typset -i INTERACTIVE =1 
  3. Run the create_depot script:
    # ./create_depot

    Depot Name: /var/opt/ignite/Patches/<month&year>/critical<110 or 11i>
    Bundle Name: REQD_PATCH
    Bundle Title: Additional Required Patches
    Unshar patch files (y/n):

    The directory /var/opt/ignite/Patches/<month&year>/critical<110 or 11i>will be created with the required patch bundle under it.
  4. Make sure the critical110 or critical11i directory has 777 permissions.
  5. Run "swlist" to be sure you can read the bundle.  Syntax is as follows:
    swlist -d  @  /var/opt/ignite/Patches/<month&year>/critical<110 or 11i>
  6. make_config -s /var/opt/ignite/Patches/<month&year>/critical<110 or 11i> -a 800 -c/var/opt/ignite/data/<Release>/critical_cfg
  7. Update the INDEX file.  Syntax is as follows:
    [NOTE:  If the configuration file, like critical_cfg, is already part of the INDEX file, you don't need to do this step.]
    manage_index -a -f /var/opt/ignite/data/Rel_B.11.11/GoldPatches_cfg -a "HP-UX B.11.11 default"
    .
    [NOTE:  You can also update the /var/opt/ignite/INDEX file manually to include a critical_cfg entry.
  8. Run "instl_adm -T" to check the syntax of the INDEX file.
  9. Also be sure REQD_PATCH is a software selection in the /var/opt/ignite/saved_cfgs/<release>_DSI file.
Removing Depot Software:
This will be done on a quarterly basis.  As new software gets added, the older depots should be removed.

  1. Get a list of depots on the Ignite Server:
    swlist -l depot
  2. Remove depots no longer used:
    swreg -u -l depot <name of depot>
  3. Remove the depot directory.
SHARE

sangeethakumar

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

0 comments:

Post a Comment