Solaris 7 OnLine Release Notes (SUNWrdm)

Upgrade exits with : Error: upgrade_script terminated abnormally.

This problem occurs when you have to reallocate disk space. The upgrade_log displays a syntax error in upgrade_script.

Workaround: Perform the following steps:

  1. Find the line that contains "syntax error" in the upgrade script:


    For example:

    syntax error is located at line 3519: `fi' unexpected
  2. Edit the following file by using vi(1). (Using the vi text editor is recommended because of the size of the file).

  3. Go to the line containing the syntax error by using the vi(1) command 3519 G.

  4. Look above this line for a fi that is on a line by itself above the line that has the syntax error. This should be located below a log progress statement. For example:

    if [ $? = 0 ] ; then chgrp 1 
    $base/export/root/petrel/etc/rmmount.conf; fi
    logprogress 4073 none
    fi   <------ This is the extra fi in upgrade_script
    if [ 4074 -gt $resumecnt ] ; then
    rm -f ${base}///var/sadm/install_data/CLUSTER
    rm -f ${base}///var/sadm/system/admin/CLUSTER
    echo CLUSTER=SUNWCall > ${base}///var/sadm/system/admin/CLUSTER
    logprogress 4074 none
  5. Remove fi by typing x twice in the vi editor.

  6. Save the following script:

    /tmp/root/var/sadm/system/logs/upgrade_log upgrade
  7. Halt the system by typing:

    # halt 0
  8. Restart the installation by typing one of the following commands:

    OK> boot net


    OK> boot cdrom
  9. Select Upgrade again.

The installation should now complete.