Go to main content

Installing and Configuring an Oracle® Solaris Cluster 4.4 Environment

Exit Print View

Updated: September 2019
 
 

How to Uninstall a Specific Oracle Solaris Cluster Package

Perform this task to uninstall one or more individual Oracle Solaris Cluster software packages.

  1. On the cluster node where the package to remove is installed, assume a role that provides solaris.cluster.admin authorization.
  2. If the package to remove is associated with an SMF service, ensure that the service is disabled.

    Check the status of the SMF service. If the service is online, disable it, then check the status again to verify that the SMF service is disabled. Checking for a disabled service might take more time to complete.

    phys-schost# svcs -a | grep service-name
    online 15:50:26 svc:/service-name:default
    phys-schost# svcadm disable svc:/service-name:default
    
    phys-schost# svcs -a | grep service-name
    disabled 15:55:33 svc:/service-name:default

    For a list of Oracle SolarisCluster SMF services, see Oracle Solaris OS Feature Restrictions in Administering an Oracle Solaris Cluster 4.4 Configuration.

  3. Check whether the package to remove has any dependencies.
    phys-schost# pkg content -o type,pkg.name -t depend -a fmri=package '*'
    TYPE PKG.NAME
    group package-1
    require package-2
  4. If the package to remove has a require dependency with another package, such as group package ha-cluster-full uninstall that package.

    Uninstallation of the package to remove would fail if its require dependency package still exists. Uninstalling a group package does not uninstall its dependency packages.

    phys-schost# pkg uninstall require-dependency-package

    Note -  A group dependency with the package to uninstall does not prevent uninstallation of the package. When the package is uninstalled, it is put in the avoid list of the group dependency. For more information about uninstalling packages with dependencies, see “Uninstalling Packages” in Updating Systems and Adding Software in Oracle Solaris 11.4.
  5. Uninstall the package to remove.
    phys-schost# pkg uninstall package
  6. Verify that the package is uninstalled.
    phys-schost# pkg list package
    pkg list: no packages matching 'package' installed
Example 24  Uninstalling the Oracle Solaris Cluster Manager Packages

The following example shows the removal from one cluster node of the Oracle Solaris Cluste rManager software packages, ha-cluster/system/manager and ha-cluster/system/manager-wls. Each package has an associated SMF service, system/cluster/manager and system/cluster/manager-wls, that is first disabled. The packages have a require dependency on the ha-cluster-full group package.

Check for active SMF services.

phys-schost-1# svcs -a | grep manager
online 15:50:26 svc:/system/cluster/manager:default
online 15:50:26 svc:/system/cluster/manager-wls:default

Disable the manager SMF service and verify it is disabled.

phys-schost-1# svcadm disable svc:/system/cluster/manager:default
phys-schost-1# svcs -a | grep manager
disabled 15:53:33 svc:/system/cluster/manager:default
online 15:50:26 svc:/system/cluster/manager-wls:default

Disable the manager-wls SMF service and verify it is disabled.

phys-schost-1# svcadm disable svc:/system/cluster/manager-wls:default
phys-schost-1# svcs -a | grep manager
disabled 15:53:33 svc:/system/cluster/manager:default
disabled 15:56:43 svc:/system/cluster/manager-wls:default

Check for package dependencies.

phys-schost-1# pkg content -o type,pkg.name -t depend -a fmri=ha-cluster/system/manager
'*'
TYPE PKG.NAME
require ha-cluster-full
…
phys-schost-1# pkg content -o type,pkg.name -t depend -a fmri=ha-cluster/system/managerwls
'*'
TYPE PKG.NAME
require ha-cluster-full
…

Uninstall the require dependency package.

phys-schost-1# pkg uninstall ha-cluster-full

Uninstall the Oracle Solaris Cluster Manager packages.

phys-schost-1# pkg uninstall ha-cluster/system/manager ha-cluster/system/manager-wls

Verify that the packages are no longer installed.

phys-schost# pkg list manager
pkg list: no packages matching 'manager' installed
phys-schost# pkg list manager-wls
pkg list: no packages matching 'manager-wls' installed