Sun N1 System Manager 1.3.1 Troubleshooting Guide

Using a Managed Server to Patch Solaris OS 9 Distributions

Solaris OS 9 update 7 or earlier distributions on the management server must be patched before being deployed to manageable servers. The patches described are necessary to enable N1 System Manager to provision Solaris OS 9 update 7 and earlier versions to managed server. The procedures in this section are not required for Solaris OS 9 update 8.

To patch your Solaris OS 9 update 7 or earlier distributions, you first create either an x86 based or SPARC based Solaris 9 patch server using an available managed server. You then use the patch server to patch your Solaris 9 update 7 distributions on the management server, after which you can provision the patched distributions to managed servers.

This section provides the procedures for creating and using a patch server to patch your Solaris OS 9 update 7 or earlier distributions. The following topics are discussed:


Note –

The procedures in this section require that you have created at least one Solaris OS 9 update 7 or earlier distribution on the management server. For instructions on how to create an OS distribution, see To Copy an OS Distribution From CDs or a DVD in Sun N1 System Manager 1.3 Operating System Provisioning Guide or To Copy an OS Distribution From ISO Files in Sun N1 System Manager 1.3 Operating System Provisioning Guide.


Creating and Using a Solaris OS 9 x86 Patch Server to Patch Solaris OS 9 Update 7 Distributions

This section provides the procedures for creating a Solaris OS 9 x86 patch server, and then using the patch server to patch the Solaris OS 9 distributions on the management server. The following topics are discussed:


Caution – Caution –

The procedures are sequentially dependent, and must be followed in the above order.


ProcedureTo Create a Solaris OS 9 x86 Patch Server

Before You Begin

At least one Solaris OS 9 update 7 or earlier distribution on the management server. For instructions on how to create an OS distribution, see To Copy an OS Distribution From CDs or a DVD in Sun N1 System Manager 1.3 Operating System Provisioning Guide or To Copy an OS Distribution From ISO Files in Sun N1 System Manager 1.3 Operating System Provisioning Guide

  1. Select an unused x86 managed server to become the x86 patch server.

    The following steps refer to the selected managed server as the x86 patch server.

  2. Install the Solaris x86 OS on the x86 patch server.

    If the OS distribution to be provisioned is Solaris x86 OS 9 update 7, then install Solaris x86 OS 9 update 7 on the x86 patch server.

    If the OS distribution is a version earlier than Solaris x86 OS 9 update 7, then install that version of the Solaris OS on the x86 patch server.

  3. Log in as root (su - root) to the x86 patch server.

  4. Create a /patch directory on the x86 patch server.

  5. Download and unzip the patches from http://sunsolve.sun.com to the /patch directory on the x86 patch server as follows:

    • For a Solaris OS 9 on x86 distribution, download and unzip the following patches into the /patch directory: 117172-17 and 117468-02.

    • For a Solaris OS 9 on SPARC distribution, download and unzip the following patches into the /patch directory: 117171-17, 117175-02, and 113318-20. .

Next Steps

Patch the Solaris x86 OS on the patch server as described in the next procedure.

ProcedureTo Patch the Solaris x86 OS on the Patch Server

Before You Begin

Create the Solaris x86 OS patch server as described in To Create a Solaris OS 9 x86 Patch Server.

  1. Log in as root (su - root) on the patch server.

  2. Type reboot -- -s to reboot the Solaris 9 patch server to single-user mode.

  3. In single-user mode, change to the /patch directory.

  4. Install the Solaris x86 OS patches.


    # patchadd -M . 117172-17
    # patchadd -M . 117468-02
    

    Tip –

    Pressing Control+D returns you to multiuser mode.


Next Steps

Configure and restart NFS on the management server as described in the next procedure.

ProcedureTo Configure and Restart NFS on the Management Server

Before You Begin

Patch the Solaris OS on the patch server as described in To Patch the Solaris x86 OS on the Patch Server.

  1. Log in as root (su - root) on the management server server.

  2. Edit the /etc/exports file and change /js *(ro,no_root_squash) to /js *(rw,no_root_squash).

  3. Save and close the /etc/exports file.

  4. Type /etc/init.d/nfs restart to restart NFS.

Next Steps

Patch the Solaris x86 OS distribution on the management server as described in the next procedure.

ProcedureTo Patch the Solaris OS 9 Distribution on the Management Server

Before You Begin

Configure and restart NFS on the management server as described in To Configure and Restart NFS on the Management Server.

  1. Log in as root (su - root) on the management server server.

  2. Type n1sh show os all to list all OS distributions on the management server.

    Note the ID of the Solaris OS 9 update 7 or earlier distribution. The Solaris OS 9 update 7 distribution ID is used in place of DISTRO-ID in the following steps.

  3. Mount the Solaris 9 OS distribution on the management server.

    Type mount -o rw management-server-IP:/js/DISTRO-ID /mnt where management-server-IP is the IP address of the management server, and DISTRO-ID is the ID of the Solaris OS 9 update 7 or earlier distribution that is to be patched.

  4. Patch the distribution on the management server.

    1. Install the patches by performing one of the following actions:

      • If you are patching an x86 distribution, type the following commands:


        # patchadd -C /mnt/Solaris_9/Tools/Boot/ -M /patch 117172-17
        # patchadd -C /mnt/Solaris_9/Tools/Boot/ -M /patch 117468-02
        
      • If you are patching a SPARC distribution, type the following commands:


        # patchadd -C /mnt/Solaris_9/Tools/Boot/ -M /patch 117171-17
        # patchadd -C /mnt/Solaris_9/Tools/Boot/ -M /patch 117175-02
        # patchadd -C /mnt/Solaris_9/Tools/Boot/ -M /patch 113318-20
        

        Note –

        You will receive a partial error for the first patch installation. Ignore this error.


    2. Type unmount /mnt to unmount the management server.

Next Steps

Reconfigure and restart NFS on the management server as described in the next procedure.

ProcedureTo Reconfigure and Restart NFS on the Management Server

Before You Begin

Patch the Solaris OS 9 distribution on the management server as described in To Patch the Solaris OS 9 Distribution on the Management Server.

  1. Log in as root (su - root) on the management server server.

  2. Edit the /etc/exports file and change /js *(rw,no_root_squash) to /js *(ro,no_root_squash).

    Save and close the file.

  3. Type /etc/init.d/nfs restart to restart NFS.

Next Steps

Update the Solaris 9 OS distribution as described in the next procedure.

ProcedureTo Update the Solaris 9 x86 OS Distribution bootenv.rc File

Before You Begin

Reconfigure and restart NFS on the management server as described in To Reconfigure and Restart NFS on the Management Server.

  1. Log in as root (su - root) on the management server server.

  2. Change directory to /js/distro-id/Solaris_9/Tools/Boot/boot/solaris.

  3. Type ln -s ../../tmp/root/boot/solaris/bootenv.rc . to re-create the bootenv.rc link.

    The Solaris OS 9 on x86 distribution is ready for deployment to x86 manageable server.

Troubleshooting

If you want to patch another distribution, you might have to delete the /patch/117172-17 directory and re-create it using the unzip 117172-17.zip command. When the first distribution is patched, the patchadd command makes a change to the directory that causes problems with the next patchadd command execution.

This patch is not needed for the Solaris 9 update 8 build 5 OS.

Creating and Using a Solaris OS 9 SPARC Patch Server to Patch Solaris OS 9 Update 7 Distributions

This section provides the procedures for creating a Solaris OS 9 SPARC patch server, and then using the patch server to patch the Solaris OS 9 distributions on the management server. The following topics are discussed:


Caution – Caution –

The procedures are sequentially dependent, and must be followed in the above order.


ProcedureTo Create a Solaris OS 9 SPARC Patch Server

Before You Begin

Create at least one Solaris OS 9 update 7 or earlier distribution on the management server. For instructions on how to create an OS distribution, see To Copy an OS Distribution From CDs or a DVD in Sun N1 System Manager 1.3 Operating System Provisioning Guide or To Copy an OS Distribution From ISO Files in Sun N1 System Manager 1.3 Operating System Provisioning Guide

  1. Select an unused SPARC managed server to become the x86 patch server.

    The following steps refer to the selected managed server as the x86 patch server.

  2. Install the Solaris SPARC OS on the x86 patch server.

    If the OS distribution to be provisioned is Solaris SPARC OS 9 update 7, then install Solaris SPARC OS 9 update 7 on the SPARC patch server.

    If the OS distribution is a version earlier than Solaris SPARC OS 9 update 7, then install that version of the Solaris OS on the SPARC patch server.

  3. Log in as root (su - root) to the SPARC patch server.

  4. Create a /patch directory on the SPARC patch server.

  5. Download and unzip the patches from http://sunsolve.sun.com to the /patch directory on the SPARC patch server as follows:

    • For a Solaris OS 9 on x86 distribution, download and unzip the following patches into the /patch directory: 117172-17 and 117468-02.

    • For a Solaris OS 9 on SPARC distribution, download and unzip the following patches into the /patch directory: 117171-17, 117175-02, and 113318-20. .

Next Steps

Patch the Solaris OS on the patch server as described in To Patch the Solaris SPARC OS on the Patch Server.

ProcedureTo Patch the Solaris SPARC OS on the Patch Server

Before You Begin

Create the Solaris SPARC OS patch server as described in To Create a Solaris OS 9 SPARC Patch Server.

  1. Log in as root (su - root) on the patch server.

  2. Type reboot -- -s to reboot the Solaris 9 patch server to single-user mode.

  3. In single-user mode, change to the /patch directory.

  4. Install the Solaris SPARC OS patches.


    # patchadd -M . 117171-17
    # patchadd -M . 117175-02
    # patchadd -M . 113318–20
    

    Tip –

    Pressing Control+D returns you to multiuser mode.


Next Steps

Configure and restart NFS on the management server as described in the next procedure.

ProcedureTo Configure and Restart NFS on the Management Server

Before You Begin

Patch the Solaris SPARC OS on the patch server as described in To Patch the Solaris SPARC OS on the Patch Server.

  1. Log in as root (su - root) on the management server server.

  2. Edit the /etc/exports file and change /js *(ro,no_root_squash) to /js *(rw,no_root_squash).

  3. Save and close the /etc/exports file.

  4. Type /etc/init.d/nfs restart to restart NFS.

Next Steps

Patch the Solaris OS 9 distribution on the management server as described in the next procedure.

ProcedureTo Patch the Solaris OS 9 Distribution on the Management Server

Before You Begin

Configure and restart NFS on the management server as described in To Configure and Restart NFS on the Management Server.

  1. Log in as root (su - root) on the management server server.

  2. Type n1sh show os all to list all OS distributions on the management server.

    Note the ID of the Solaris OS 9 update 7 or earlier distribution. The Solaris OS 9 update 7 distribution ID is used in place of DISTRO-ID in the following steps.

  3. Mount the Solaris 9 OS distribution on the management server.

    Type mount -o rw management-server-IP:/js/DISTRO-ID /mnt where management-server-IP is the IP address of the management server, and DISTRO-ID is the ID of the Solaris OS 9 update 7 or earlier distribution that is to be patched.

  4. Patch the distribution on the management server.

    1. Install the patches by performing one of the following actions:

      • If you are patching an x86 distribution, type the following commands:


        # patchadd -C /mnt/Solaris_9/Tools/Boot/ -M /patch 117172-17
        # patchadd -C /mnt/Solaris_9/Tools/Boot/ -M /patch 117468-02
        
      • If you are patching a SPARC distribution, type the following commands:


        # patchadd -C /mnt/Solaris_9/Tools/Boot/ -M /patch 117171-17
        # patchadd -C /mnt/Solaris_9/Tools/Boot/ -M /patch 117175-02
        # patchadd -C /mnt/Solaris_9/Tools/Boot/ -M /patch 113318-20
        

        Note –

        You will receive a partial error for the first patch installation. Ignore this error.


    2. Type unmount /mnt to unmount the OS distribution.

Next Steps

Reconfigure and restart NFS on the management server as described in the next procedure.

ProcedureTo Reconfigure and Restart NFS on the Management Server

Before You Begin

Patch the Solaris OS 9 distribution on the management server as described in To Patch the Solaris OS 9 Distribution on the Management Server.

  1. Log in as root (su - root) on the management server server.

  2. Edit the /etc/exports file and change /js *(rw,no_root_squash) to /js *(ro,no_root_squash).

    Save and close the file.

  3. Type /etc/init.d/nfs restart to restart NFS.

Next Steps

Update the Solaris 9 OS distribution bootenv.rc file as described in the next procedure.

ProcedureTo Update the Solaris 9 SPARC OS Distribution bootenv.rc File

  1. Log in as root (su - root) on the management server server.

  2. Change directory to /js/distro-id/Solaris_9/Tools/Boot/boot/solaris.

  3. Type ln -s ../../tmp/root/boot/solaris/bootenv.rc . to re-create the bootenv.rc link.

    The Solaris OS 9 on x86 distribution is ready for deployment to x86 manageable server.

Troubleshooting

If you want to patch another distribution, you might have to delete the /patch/117172-17 directory and re-create it using the unzip 117172-17.zip command. When the first distribution is patched, the patchadd command makes a change to the directory that causes problems with the next patchadd command execution.

This patch is not needed for the Solaris 9 update 8 build 5 OS.