HP-UX 9.x/8.x installation from scratch (Under construction)


Prerequisites

HP-UX 9.x/8.x does not install on disks larger than 2GB (exactly). It may boot off the Install media, but the subsequent CoreOS installation will fail. The typical message is a complaint about at least 55MB which have to be free for swap space.
HP-UX 9.x installs trouble-free only on disks listed in /etc/disktab/, the larger ones being:
HP-UX 8.x is even more restrictive, /etc/disktab/. I had to resort to the antique Seagate ST3600N to get it to install.
Some disks not listed in /etc/disktab/ are installable too, after some warnings (which can be ignored in my experience) from the installation procedure:
HP-UX 9.x takes at least 200MB, >330MB with NLS support, plus 55MB for swap space, thus a 400 to 420MB disk is minimum. If the LaserROM documentation should reside on the same disk it would have to be as large as 1GB. In this case disk space is very tight, so one might consider to install the LaserROM on a separate second disk, if possible.
All this doesn't include user and freeware filesystems.

Base system

From tape

(soon to come)

From CD

  1. Straightforward. Insert Install CD, cycle power. During startup press ESC to allow boot media select.
    Answer the questions and accept the defaults. One may alter some of the root filesystem parameters, e.g. increase swap space beyond the proposed value (but not larger than 128MB if LaserROM should coexist on the same 1GB disk).
    Leave/set date below Y2K.
  2. On request (update): insert Core OS CD and proceed. For external CD-ROM drives this might involve power cycling.
    If this does not work (as experienced e.g. with series 400 systems):
    1. press Reset, reboot and press ESC to allow selection of a minimal system (SYSHPUX).
    2. Then
       
      mount /dev/bsrc /UPDATE_CDROM; rm /update.lock; /etc/update 
      
    Accept proposed default terminal.
  3. In the presented menu choose Change Source/Destination and select CD-ROM, no password. Press Done/F4
  4. In the presented menu choose installation method. In my experience one may Select all filesets and install just everything (ca. 160 MB)
  5. Apply Y2K patches (HP-UX 9.1 for series 300/400 only):
    Insert CD, power cycle CD-ROM drive and
     
    mount /dev/bsrc /UPDATE_CDROM; rm /update.lock; /etc/update 
    
    If the mount fails, reboot and repeat.
    Alternative mount method:
     
    mount -r -t cdfs /dev/dsk/cEd3s0 /UPDATE_CDROM         # CD with SCSI ID=3 
    rm /update.lock; /etc/update                           # or use VUE toolbox, if active 
    
    In the presented menu change installation source to CD-ROM and select/install all filesets.
  6. If available, Tools and Languages (C,Pascal,FORTRAN):
    reboot with CD inserted, (alternatively try switch off/on CD drive)
    mount /dev/bsrc /UPDATE_CDROM; rm /update.lock; /etc/update
    or
     
    mount -r -t cdfs /dev/dsk/cEd3s0 /UPDATE_CDROM         # CD with SCSI ID=3 
    rm /update.lock; /etc/update                           # or use VUE toolbox, if active 
    
    Select/install all filesets, may skip NLS stuff
  7. On request and if the machine is already connected to a network one may configure it already during installation. Just answer the questions on
    network mask (e.g. 255.255.255.0)
    and Gateway address (e.g. 192.168.1.1 for a router), a (dummy) name must also be given.
  8. After (root) login start multi-user level, includes starting VUE:
     
    init 3 
    
  9. Note that if one chooses to leave the date as is, to avoid Y2K issues, one might have to fix SAM's other date related problems.

Additional Software

One may choose to install additional software to obtain a really useful system.

Patches

People call it HourlyPatches-UX, for a reason.
It is most convenient to apply patch bundles delivered on "Extension Software" CDs and such like, e.g. B3782-10209 for HP-UX 9.0 and more. Mount the CD
mount -r -t cdfs /dev/dsk/c201d3s0   # SCSI ID=3 for an HP 9000/715
and follow the instructions in the associated READMEFIRST file. One may install just everything. This usually requires a kernel rebuild and reboot.
One may also apply single patches, e.g.
 
sh PHCO_7747 # unpack, yields PHCO_7747.updt, PHCO_7747.text  
/etc/update  # change source: from tape, enter PHCO_7747.updt 

Software from a netdist server

Programming languages and developer kits come to mind. These might easily take another 200MB of disk space.
Set up the server first. Then, on the client side:
/etc/update                          # gives you a menu
Change Source or Destination         # choose this
From Netdist Server to Local System  # choose this
fill in the netdist server's name and proceed. If this doesn't work, try the server's IP address.
Server and client may run on the same machine.

LaserROM documentation

  1. mount the CD
     
    mount -r -t cdfs /dev/dsk/cEd3s0   /cdrom # example for series 400: CD with SCSI ID=3  
    mount -r -t cdfs /dev/dsk/c201d3s0 /cdrom # example for a 9000/715: CD with SCSI ID=3  
    
    Note that the script(s) on the CD assume filenames to be uppercase (for compatibility with Billyware PCs). So if the CD is mounted on a remote non-HP-UX server and exported to the installing machine sth like
     
    mount -v'cdrfs' -r -o upcase /dev/cd0 /cdrom   # AIX example, force uppercase 
    
    might be necessary.
  2. follow the instructions in /cdrom/UXINSTAL/README and
    The CD content will not actually be copied, only a few MB of steering information and the reader program will be stored in /usr/lrom, the configuration file is /usr/lrom/.lromrc. Note that lrom assumes all filenames to be uppercase, if they're not, it won't work.
  3. For the actual content there are various options: In either case modify /usr/lrom/.lromrc to point to the new location.

Some basic customizations

  1. In /etc/inetd.conf disable all unnecessary services. If the machine should offer boot services, bootps and tftp must be enabled.
  2.  
    chmod o-x /usr/bin/ypcat 
    
  3. /etc/netnmrc
    Outcomment the start of snmpd (and dpid2 ?)
  4. In /etc/inittab
    disable unwanted services by placing a colon (':') at the beginning of the line, and enable multiuser operation by:
     
    init:3:initdefault   # first line, HP-UX 9.x 
    init:4:initdefault   # first line, HP-UX 8.x 
    
    This also enables automatic start of VUE desktop, provided the line
    vue :34:respawn:/etc/vuerc   
    
    is present.
  5. IP name and name resolution
    This should already be set at installation time. If not, run
    /etc/set_parms hostname
    Influential files are
    /etc/src.sh       # defines system name and time zone
    /etc/hosts        # defines host names, including the own 
    
    /etc/resolv.conf defines domain name and name server(s):
    domain     localdomain
    nameserver 192.168.1.1   # e.g. a home router passing requests to the provider    
    # possibly:
    nameserver 127.0.0.1     # localhost, only if machine is name server itself ! 
    nameserver my.ip.address # only if machine is name server itself !
    

    The central script for LAN setup is /etc/netlinkrc, executed at system startup. It should have:
                                            # example, starts the NIC:
    /etc/ifconfig lan0 inet `hostname` netmask 255.255.255.0 up
    /etc/route add  default 192.168.1.1 1   # example, to define a gateway 
    
    One may use lanscan to query the name of the NIC.
  6. specification of IP name resolution order,
    i.e. lookup in /etc/hosts first, then query the DNS, comes standard only for HP-UX >9.05 (afaik). According to instructions in comp.sys.hp.hpux it should be available for HP-UX==9.05 via patches, e.g. from above mentioned patch CDs. If such patch CD is not available,
    1. get patches e.g.
      for series 700 from ftp.itrc.hp.com:
      PHCO_11161, PHCO_7747 (libc), PHCO_4439 (mount), PHNE_4563 (nslookup), PHNE_4487 (ifconfig), PHSS_7751 (VUE), PHSS_5902 (xterm, xhost, xrdb) (not found),
      for series 800 from ftp.itrc.hp.com:
      PHCO_11162, PHCO_7748 (libc), PHCO_4784 (mount), PHNE_4563 (nslookup), PHNE_4488 (ifconfig), PHSS_7751 (VUE), PHSS_5902 (xterm, xhost, xrdb) (not found),
      (it looks like the HP archives have disappeared in the mean time, I have offline copies).
    2. install them using e.g.
       
      sh PHCO_7747 # unpack, PHCO_7747.updt, PHCO_7747.text  
      /etc/update  # change source: from tape, enter PHCO_7747.updt 
      
    Then /etc/newconfig/nsswitch/nssw.filesdns or /etc/newconfig/nsswitch/nssw.dnsfiles may serve as templates for /etc/nsswitch.conf which steers name resolution. An entry like
     
    hosts: files[NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] nis   
    
    specifies name resolution in the order /etc/hosts, DNS nameserver, NIS. (leave out the nis entry if NIS won't be active). More information with
     
    man switch 
    

Additional local software (Under construction)

Check the software list for "essential" stuff (marked L) to be preferrably installed locally on the system disk.
For convenience I've setup an installer script which unpacks and installs prepared packages, e.g.:
mount rs6kf:/swdepotfs/ /mnt
cd /opt/
/mnt/HPUX/PA/090x/installopt.sh
# or, respectively
/mnt/HPUX/68K/0910/installopt.sh
Bulky and less important application software is better kept on an external server and mounted via NFS.

What's next ?

After installation you will need to customize your system.
Last update: 24-Jan-2010, M.Kraemer