#
# @HP_COPYRIGHT@
#
# HISTORY
# $NOHISTORY:$
# $EndNOHISTORY$
#
# @(#)$RCSfile: README,v $ $Revision: 1.6 $ (HP) $Date: 2003/11/25 19:36:27 $
#
The new upgrade_check utility checks over 20 system configuration
parameters that may affect the upgrade to HP AlphaServer SC version
2.6.  Run upgrade_check before running any other upgrade related
commands.

You must run upgrade_check from the management server, if your system
has one, or from node 0, if not.  You can run it directly from the CD.
No installation is required.

Syntax: <cd_mount_point>/kits/upgrade_check [logfile]

When upgrade_check detects a problem, it writes a description of that
problem and a suggested solution to standard out.  It does not attempt
to make any changes to your system.  It writes a more complete log
including information on tests that passed to
/var/sra/adm/log/InstallSC/upgrade_check.log by default, or to the
file you specify as a command line argument. 

Here is a list of messages that upgrade_check can output when it finds
problems.  Along with check:, description:, and solution:,
upgrade_check also outputs an additional information: line that may give
specific nodes, domains, or file systems on which the problem occurs,
or some other useful data depending on the specific test.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.volumes.multiple
description: The listed advfs domains on the named TruCluster domain are
    composed of multiple volumes.  After the upgrade, the advfs domain
    will have only one volume defined.
solution: Recreate the missing symbolic link(s) after the upgrade.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.cluvote.not_run
description: The following domains were unavailable, or the clu_quorum 
    command could not be run when checking for cluster member voting 
    rights.
solution: Bring the cluster up or remove it from the SC system.  If the
    cluster was already up, then run the clu_quorum command to see 
    determine the cause of the error.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.superuser.password_different
description: The root password for some domains may differ from others as
    the encrypted passwords are different.  This can occur if passwords
    are actually different or if they have been set individually on
    each domain rather than sharing/replicating password files for
    all domains.
solution: Check the root password on one domain in each set below.  If the
     sets have different root passwords, change the password on the 
     appropriatedomains (using NIS or by copying the /etc/passwd file)
     so that all domains are in agreement.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.cluvote.expected_file_mismatch
description: The expected votes (file value) is not equal to the sum of
    each member's node votes (file value) for the following nodes:
solution: Use clu_quorum to reset the members voting rights, or the
    cluster's expected votes.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.cluvote.expected_running_mismatch
description: The expected votes (running value) is not equal to the sum of
    each member's node votes (running value) for the following nodes:
solution: Use clu_quorum to reset the members voting rights, or the
    cluster's expected votes.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.file_system.pfs_online
description: The following PFS file systems are online.
solution: Use 'pfsmgr offline all' to put the file systems in the offline
    state.  Then use 'scrun -n all /sbin/sysconfig -u pfs' to unload
    the kernel module on all nodes.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.sia.in_inventory
description: An entry was found for /etc/sia in /var/adm/cdsl_admin.inv.
solution: Remove the /etc/sia entry in /var/adm/cdsl_admin.inv.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.cluvote.total_file_mismatch
description: The total node votes (file value) for the following domains
    is different than the cluster common expected votes value.
solution: Use clu_quorum to reset the members voting rights, or the
    cluster's expected votes.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.unix_disk.mounted
description: The following domains have mounted root_domain#root.
solution: Unmount root_domain#root on the indicated domains.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.inetd.atypical
description: The following domains have changed one or more of the typical
    entries in /etc/inetd.conf (ftp, telnet, shell, login, exec,
    cfgmgr, and only on the MS, tftp).
solution: Replace the modified /etc/inetd.conf with the original or
    replace the appropriate entry with one these:
    ftp stream tcp nowait root /usr/sbin/ftpd ftpd 
    telnet stream tcp nowait root /usr/sbin/telnetd telnetd 
    shell stream tcp nowait root /usr/sbin/rshd rshd 
    login stream tcp nowait root /usr/sbin/rlogind rlogind 
    exec stream tcp nowait root /usr/sbin/rexecd rexecd 
    cfgmgr stream tcp nowait root /sbin/cfgmgr cfgmgr
    tftp dgram udp wait root /usr/sbin/tftpd tftpd /tmp /var/adm/ris /ris

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.generic_boot_disk.used
description: The following domains have advfs file domains that use the
    generic boot disk.  If a domain was unavailable, the test could
    not be performed and its entry is marked with a ? (eg: atlasD1?)
solution: Remove the generic boot disk from any advfs domains

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.cluvote.total_running_mismatch
description: The total node votes (running value) for the following domains
    is different than the cluster common expected votes value.
solution: Use clu_quorum to reset the members voting rights, or the
    cluster's expected votes.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.advfs_domain.var_domain
description: The following domains do not have an advfs var_domain domain
     defined for the UNIX disk.
solution: Without this advfs domain, you will not be able to perform the
     preupgrade backup.  You may proceed at your own risk, or
     follow the instructions in the Tru64 UNIX Installation Guide
     for building a UNIX disk.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.mac_addr.bad_mac_addr
description: The following nodes are missing from /etc/bootptab or have MAC
    addresses that are different from what hwmgr returned.  If a node
    was down or hwmgr returned an error, then the test could not be 
    performed and the node is marked with ? (eg: atlas1?)
solution: Check the actual MAC addresses using hwmgr and update /etc/bootptab
    to have the correct values.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.cluvote.no_vote
description: The following domains have lead nodes without voting rigths
solution: Use clu_quorum to reset the voting rights of the lead nodes.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.file_system.pfs_mod_loaded
description: The following nodes have the pfs.mod module configured into
    the kernel If a node is down, the test could not be performed and it's
    entry is marked with a ? (eg: atlas1?)
solution: Use 'scrun -n all /sbin/sysconfig -u pfs' to unload the kernel
    module on all nodes.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.disk_space.fs_capacity
description: The following domains have important file systems over 50% full.
    If a domain is down, the test could not be performed and it's
    entry is marked with a ? (eg: atlasD1?)
solution: If you are sure there is enough space to run perform the upgrade,
    then run sc_upgrade with the -diskcap option to override the 50%
    limit.  Otherwise, remove unimportant files from the indicated
    file systems.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.clu_upgrade.error
description: Running clu_upgrade check setup on the following domains produced
    errors.  If a domain was not available, the test could not be run
    and its entry is marked with a ? (eg: atlasD1?)
solution: Run clu_upgrade check setup manually to determine the cause of
    the errors.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.sia.incorrect_file
description: The file /etc/sia was found to be a link, or was not found at
    all.
solution: Replace /etc/sia with a plain file.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.unix_disk.not_unmounted
description: Unable to unmount root_domain#root on the following domains.
solution: Unmount root_domain#root on the indicated domains.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.database.not_setup
description: The database is not set up on the following (lead) nodes. If
    a node is not available, it's entry is marked with a ? (eg: atlas1?)
solution: Ensure the SC database is set up and rmshost is set correctly.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.advfs_domain.root_domain
description: The following domains do not have an advfs root_domain domain
     defined for the UNIX disk.
solution: Without this advfs domain, you will not be able to perform the
     preupgrade backup.  You may proceed at your own risk, or
     follow the instructions in the Tru64 UNIX Installation Guide
     for building a UNIX disk.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.superuser.password_notrun
description: The test for root passwords could not be run on the following
     domains.
solution: Boot the domains and rerun this program.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.volumes.unavailable
description: The following TruCluster domains were unavailable when checking
    for multiple volumes in the advfs domains.
solution: Reboot the domains and run this program again.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.file_system.scfs_online
description: The following SCFS file systems are online.
solution: Use 'scfsmgr offline all' to put the file systems in the
    offline state.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.unix_disk.bad_disk
description: The following domains may not have a UNIX disk, or the disk
    may not have a /vmunix.  If a domain was unavailable or if there were
    problems during test execution, then the test could not be performed 
    and its entry will be marked with a ? (eg: atlasD1?).
solution: Check that the UNIX disk is available that the system can boot
    from it.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.license.advfs-utilities
description: The lead node of each of the following domains did not have
    the ADVFS-UTILITIES license installed.  If the lead node of a domain
    is down, the test could not be performed and it's entry is marked
    with a ? (eg: atlasD1?)
solution: Install the ADVFS-UTILITIES on the domains listed below.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.osrev.wrong_rev
description: The following domains are running a version of the operating
    system that is not compatible with the upgrade.  If a domain was not
    available or the uname command produced an error, then the test could
    not be performed and its entry is marked with a ? (eg: atlasD1?)
solution: Bring the domains to the recommended OS level before upgrading SC.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.ris_rsh.bad_number
description: The following nodes must update /etc/sysconfigtab before
    performing the upgrade.  If a node is down, the test could not be run
    and it's entry is marked with a ? (eg: atlas1?)
solution: Update the sysconfigtab file on the management server and lead
    nodes of each domain as follows:
    1. Create a temp file (eg, /tmp/risfix) with the following entries:
       inet:
       tcp_sendspace = 61440
       tcp_recvspace = 61440
    2. Run "sysconfigdb -m -f /tmp/risfix"
    3. Run "sysconfig -r inet tcp_sendspace=61440"
    4. Run "sysconfig -r inet tcp_recvspace=61440"
    5. Reboot
    Repeat these steps on the management server and all lead nodes.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.unix_disk.not_in_hwmgr
description: The following domains have disks that are listed in devices/disk
     on the unix_disk, but which hwmgr knows nothing about.
solution: See the Troubleshooting section of the Installation Guide for
    what to do to correct this problem.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.unix_disk.not_on_unixdisk
description: The following domains have disks that hwmgr knows about, but
    that do not appear in the devices/disk directory on the unix_disk.
solution: See the Troubleshooting section of the Installation Guide for
    what to do to correct this problem.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.advfs_domain.unix_disk
description: The following domain members' have advfs domains referencing
    the UNIX disk. If a domain is down, the test could not be 
    performed and it's entry is marked with a ? (eg: atlasD1?)
solution: Replace the link in /etc/fdmns/*_domain with a link to
    the member's bootdef_dev.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.dbrev.incompatible
description: The upgrade is incompatible with the current database version.
solution: Return the database to the version originally installed with your
    SC system.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.inetd.notrun
description: The test for typical entries in /etc/inetd.conf could not be
    run on the following domains.
solution: Bring the domains back on line and run this program again.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.general.scrun_error
description: There was a problem running scrun.  The error message is below.
    The current test could not be run.
solution: Correct the problem with scrun and rerun this program.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.cluvote.node_vote_mismatch
description: The following nodes have a different vote value at runtime 
    (running value) than appears in /etc/sysconfigtab (file value).
solution: Use clu_quorum to reset the members voting rights, or the
    cluster's expected votes.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.routes.no_default
description: The following nodes do not have a default route in /etc/routes.
    If a node was unavailable, the test could not be performed and its entry
    is marked with a ? (eg: atlas1?)
solution: If the nodes do not have an external interface, add a default
    route by running the following for the appropriate nodes:
    "sra command -node 'atlas[2-31]' -command \
      /usr/sra/bin/SetDefaultRoute -m 1"
    (substitute the nodes given below for atlas[2-31])

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.unix_disk.no_comparison_made
description: Unable to compare the disks known to hwmgr to those listed
    in the devices/disk directory for the following domains.
solution: This usually means that the domains were unavailable.  Reboot
    the domains and run this script again.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.dir.not_directory
description: On the following domains the listed file ought to be a directory,
    but it is not.  If a domain was down, then the test could not be run
    and it's entry is marked with a ? (eg: atlasD1?)
solution: If the file does not exist, then create it using mkdir.  If a link
    exists in its place, then remove the link and copy the directory it
    points to.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.sia.grep_error
description: When checking /var/adm/cdsl_admin.inv for /etc/sia, either the
    domain was down or an error occurred with grep (most likely, the 
    file was missing).
solution: Boot the domain(s), if necessary, and check that the file
    /var/adm/cdsl_admin.inv exists.  If not, check the log for the 
    exact error that grep is returning.  After you have corrected the
    problem, rerun this program.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.evm.evm_errors
description: There are errors in EVM on the following domains. If a domain
    is down, the test could not be performed and it's entry is marked
    with a ? (eg: atlasD1?)
solution: Run "evmget -A -f '[name *.evm] & [age < 5m]'" on the 
    domains and look for errors.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.advfs_domain.usr_domain
description: The following domains do not have an advfs usr_domain domain
     defined for the UNIX disk.
solution: Without this advfs domain, you will not be able to perform the
     preupgrade backup.  You may proceed at your own risk, or
     follow the instructions in the Tru64 UNIX Installation Guide
     for building a UNIX disk.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.inetd.missing
description: The following domains are missing one or more of the typical
    entries in /etc/inetd.conf (ftp, telnet, shell, login, exec,
    cfgmgr, and only on the MS, tftp).
solution: Replace the modified /etc/inetd.conf with the original or add
    one of these as appropriate:
    ftp stream tcp nowait root /usr/sbin/ftpd ftpd 
    telnet stream tcp nowait root /usr/sbin/telnetd telnetd 
    shell stream tcp nowait root /usr/sbin/rshd rshd 
    login stream tcp nowait root /usr/sbin/rlogind rlogind 
    exec stream tcp nowait root /usr/sbin/rexecd rexecd 
    cfgmgr stream tcp nowait root /sbin/cfgmgr cfgmgr
    tftp dgram udp wait root /usr/sbin/tftpd tftpd /tmp /var/adm/ris /ris

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.accounting.in_place
description: The following domains have SC-specific UNIX accounting in place.
solution: Follow the instructions for removing HP AlphaServer SC-Specific
    UNIX Accounting in chapter 21 of the System Administration Guide.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.domain_members.unavailable
description: The following nodes are not in multi-user mode.
solution: Bring the nodes to multi-user state with sra boot or delete
    them from their domains with sra delete_member.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.ris.not_installed
description: No RIS server detected on the management server.
solution: If you have not installed RIS elsewhere, then install it on the
    management server.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.webes.installed
description: The following domains have the indicated WEBES subsets
    installed.
solution: Use setld -d to remove the given subset from the node(s).

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
check: preinst.ext_adapter.bad_ext_adapter
description: The following nodes have external network adapters that are not
     correctly described in the SC database. If a node is not available, it's
     entry is marked with a ? (eg: atlas1?).
solution: Use the \"sra edit\" command to update the database to reflect these 
     adapters.