Common Problems and Procedures - VLT

Introduction / Philosophy

blah blah blah

  • Duplicating the HP-UX OS Distribution
  • Read the HP-UX 10.10 'INSTALL' DAT to a file with:

    te16# dd if=/dev/rmt/0m of=/tmp/install_tape.image bs=2k

    then insert a blank tape and write the image out with:

    te16# dd if=/tmp/install_tape.image of=/dev/rmt/0m bs=2k

    Mount the HP-UX 10.10 'CORE-OS' CDROM, insert a blank tape and run:

    te16# cd /cdrom
    te16# swpackage -s /cdrom -x target_type=tape [0-9A-Z]*

    To duplicate the applications CDROM you must first install from the applications to a hard disk depot - they will NOT duplicate directly to tape because of some protection mechanism. Use swinstall interactively to install the required selection (in this example HP-UX development tools, C-ANSI compiler, Fortran 77 and Enware X station software) *AND* the English HP-UX VUE Runtime Environment.

    Once installed to a depot (in this example /diska/depot), the selected packages, *EXCLUDING* the English HP-UX VUE Runtime Environment can be copied to tape with the command:

    te16# swpackage -s /diska/dept -x target_type=tape B3393AA_APX B3898AA_APX B3906AA_APX B4474EA

  • Adding Sun hardware
  • Booting single user on Sun
  • Booting single user on HP-UX
  • Interrupt the boot sequence when prompted and enter the command:

    > boot pri isl

    Enter the command:

    ISL> hpux -is

    To mount all local file systems (necessary for vi) run

    # /sbin/init.d/hfsmount start

    To start networking services run

    # /sbin/init.d/net start

  • Building a new kernel without sam
  • Beware that before you start you probably want to use sam just to regenerate the *same* kernel! Sam puts a lot of drivers in without them even being requested. Not that this means the kernel will support more hardware, but it does mean that the config file /stand/system will be put into a "normalised" state, making manual updates and sam updates less different. Specifically the following drivers are added by sam:

    CharDrv
    asp
    c720
    core
    foreign
    framebuf
    ite
    klog
    lasi
    netman
    pa
    sctl
    strpty_included
    wsio

    and the following drivers are removed:

    nm

    Sam *does* see changes made manually to /stand/system.

    The command to actually remake the kernel is:

    # mk_kernel -o /stand/vmunix -v
    # sync; sync; sync; reboot

  • Building a new HP-UX system
  • Peter Bishop has a document available on setting this up. It is located at:

    host: te??
    directory: ~pbishop/vlt
    framemaker file: Install_CD+DAT_MAY97_HP-UX.B.10.10
    postscript file: Install_CD+DAT_MAY97_HP-UX.B.10.10.ps

    Giorgio holds a copy of the latest version, which he should not alter, but it is probably worthwhile checking that he has not altered it.

    After completing the instructions in this document, there are additional commands that need to be run to make the machine conformant with other HP-UX 10.10 machines in VLT at ESO. These are detailed here.

    The Framemaker 5 source can be found in the directory te13:/home/te13c/vltsccm/vlt/doc/VLT-MAN-ESO-17200-0642/issue_1.8/text/install/HP-UX/ and the file is called install_MAY97_HP-UX.B.10.10. There is a postscript version available in the same directory call install_MAY97_HP-UX.B.10.10.ps.

    When doing the "Configuration FIles for HP-UX" section, if configuring an HP-UX 10.10 machine then the retrieval of configuration files amounts to the following:

    # umask 022
    # ftp <another_vlt_server>
    username (root): root
    password: <password>
    ftp> cd /etc
    ftp> lcd /etc
    ftp> !mkdir /root
    ftp> get passwd
    ftp> !passwd root
    New password: <new_password>
    Re-enter new password: <new_password>
    ftp> !mv /.Xauthority /.profile /.vue* /.sw* /.sh_* /root
    ftp> get group
    ftp> get hosts

    and ensure that this machine is on the hosts distribution list

    ftp> get auto_master
    ftp> get auto_home
    ftp> get motd
    ftp> get csh.login

    and ensure that this machine is on the csh.login distribution list

    ftp> get hosts.equiv
    ftp> lcd /bin
    ftp> cd /bin
    ftp> get tcsh
    ftp> !chmod 555 /bin/tcsh
    ftp> cd /root
    ftp> lcd /root
    ftp> get .rhosts
    ftp> get .profile
    ftp> ^D
    # telnet localhost
    login: root
    password: <password>

    Verify that root can successfully log in.

  • Building a new Sun system
  • Anne has documents on 'jumpstarting'

  • Adding free software to VLT HPUX 10 systems
  • If the package is available from the HP-UX Porting and Archive Centre, then download the package (if using netscape append '.gz' to the file name)
    copy it into /tmp on te16
    gunzip it
    run 'swinstall' to examine the contents to ensure that it installs under /opt; if it doesn't then don't use it; get the source instead.
    create a directory /usr/server/opt/<packagename>
    create a symbolic link from /opt/<packagename> to /usr/server/opt/<packagename>
    run 'swinstall -s /tmp/<packagefile> <packagename>'
    update te16:/etc/PATH and te16:/etc/MANPATH with care! MANPATH has already hit its length limit
    update te16:/root/rdist/hpux10/Distfile
    rdist the necessary items

  • Resetting an HP text terminal
  • Power off, hold down 'D' (for 'default') and power on, continuing to hold down 'D' for at least five seconds.

  • Tapes and Cleaning
  • If the DAT LEDs blink to indicate that cleaning is necessary, clean the drive *three* times and cross off three cleans on the cleaning-tape label. After using a new DAT tape always clean the drive once.

  • ~user still expands to old home directory after NIS passwd update
  • The home directory is cached by the shell, and also somewhere internally by the NIS system. To ensure effect touch /etc/nsswitch.conf and start a new shell - in that order.

    $Header$