How to uninstall Veritas Solaris packages for VRTSvcs, VRTSvcsag & VRTSodm from Solaris Local Zones

book

Article ID: 100053795

calendar_today

Updated On:

Description

Description

This articles describes how to uninstall Veritas Solaris packages for VRTSvcs, VRTSvcsag & VRTSodm from Solaris Local Zones.


The Solaris 11.4 environments consists of 4 x Solaris Local Zones in a "running" state:

# zoneadm list -civ
  ID NAME             STATUS      PATH                         BRAND      IP
   0 global           running     /                            solaris    shared
   1 zone1            running     /zones/zone1             solaris    excl
   2 zone2            running     /zones/zone2             solaris    excl
   3 zone3            running     /zones/zone3             solaris    excl
   4 zone4            running     /zones/zone4             solaris    excl

 

Display the current Veritas package versions for Solaris Local Zones in a "running" state:


# for zone in `zoneadm list -s | egrep -v 'global|^NAME' | awk '{ print $1 }'`; do echo "ZONE: $zone" ; zlogin $zone "pkg list VRTS*" ; done
ZONE: zone1
NAME (PUBLISHER)                                  VERSION                    IFO
VRTSodm                                           7.4.2.2500                 i--
VRTSperl                                          5.30.0.0                   i--
VRTSvcs                                           7.4.2.1200                 i--
VRTSvcsag                                         7.4.2.1200                 i--

VRTSvlic                                          4.1.74.4                   i--
ZONE: zone2
NAME (PUBLISHER)                                  VERSION                    IFO
VRTSodm                                           7.4.2.2500                 i--
VRTSperl                                          5.30.0.0                   i--
VRTSvcs                                           7.4.2.1200                 i--
VRTSvcsag                                         7.4.2.1200                 i--

VRTSvcsea                                         7.4.2.0                    i--
VRTSvlic                                          4.1.74.4                   i--
VRTSvxfs                                          7.4.2.0                    i--
ZONE: zone3
NAME (PUBLISHER)                                  VERSION                    IFO
VRTSodm                                           7.4.2.2500                 i--
VRTSperl                                          5.30.0.0                   i--
VRTSvcs                                           7.4.2.1200                 i--
VRTSvcsag                                         7.4.2.1200                 i--

VRTSvcsea                                         7.4.2.0                    i--
VRTSvlic                                          4.1.74.4                   i--
VRTSvxfs                                          7.4.2.0                    i--
ZONE: zone4
NAME (PUBLISHER)                                  VERSION                    IFO
VRTSodm                                           7.4.2.2500                 i--
VRTSperl                                          5.30.0.0                   i--
VRTSvcs                                           7.4.2.1200                 i--
VRTSvcsag                                         7.4.2.1200                 i--

VRTSvcsea                                         7.4.2.0                    i--
VRTSvlic                                          4.1.74.4                   i--
VRTSvxfs                                          7.4.2.0                    i--

 

The following syntax can be used to uninstall the 3 x Veritas packages "VRTSodm VRTSvcs VRTSvcsag" from a Solaris Local Zone


# zlogin "pkg uninstall --no-backup-be VRTSodm VRTSvcs VRTSvcsag"
 

Sample commands
 

# zlogin zone1 "pkg uninstall --no-backup-be VRTSodm VRTSvcs VRTSvcsag"
Planning: Solver setup ... Done
Planning: Running solver ... Done
Planning: Finding local manifests ... Done
Planning: Package planning ... Done
Planning: Merging actions ... Done
Planning: Checking for conflicting actions ... Done
Planning: Consolidating action changes ... Done
Planning: Evaluating mediators ... Done
Planning: Planning completed in 7.38 seconds
WARNING: The boot environment being modified is not the active one.  Changes
made will not be reflected on the next boot.

            Packages to remove:  3
           Mediators to change:  1
            Services to change:  2
       Create boot environment: No
Create backup boot environment: No

 Actions:    1/1089 actions (Removing old actions)
 Actions: Completed 1089 actions in 0.15 seconds.
 Done
 Done
 Done
 Done
 Done


Repeat the above process for the remaining 3 x Solaris Local Zones:
 

# zlogin zone2 "pkg uninstall --no-backup-be VRTSodm VRTSvcs VRTSvcsag"

# zlogin zone3 "pkg uninstall --no-backup-be VRTSodm VRTSvcs VRTSvcsag"

# zlogin zone4 "pkg uninstall --no-backup-be VRTSodm VRTSvcs VRTSvcsag"

 

List the Solaris Local Zones that are in a "running" state:

# zoneadm list -s
NAME             STATUS           AUXILIARY STATE
global           running
zone1            running
zone2            running
zone3            running
zone4            running
 

Confirm the required Veritas packages have been removed (uninstalled) from the Solaris Local Zones that are in a "running" state


# for zone in `zoneadm list -s | egrep -v 'global|^NAME' | awk '{ print $1 }'`; do echo "ZONE: $zone" ; zlogin $zone "pkg list VRTS*" ; done
ZONE: zone1
NAME (PUBLISHER)                                  VERSION                    IFO
VRTSperl                                          5.30.0.0                   i--
VRTSvlic                                          4.1.74.4                   i--
ZONE: zone2
NAME (PUBLISHER)                                  VERSION                    IFO
VRTSperl                                          5.30.0.0                   i--
VRTSvcsea                                         7.4.2.0                    i--
VRTSvlic                                          4.1.74.4                   i--
VRTSvxfs                                          7.4.2.0                    i--
ZONE: zone3
NAME (PUBLISHER)                                  VERSION                    IFO
VRTSperl                                          5.30.0.0                   i--
VRTSvcsea                                         7.4.2.0                    i--
VRTSvlic                                          4.1.74.4                   i--
VRTSvxfs                                          7.4.2.0                    i--
ZONE: zone4
NAME (PUBLISHER)                                  VERSION                    IFO
VRTSperl                                          5.30.0.0                   i--
VRTSvcsea                                         7.4.2.0                    i--
VRTSvlic                                          4.1.74.4                   i--
VRTSvxfs                                          7.4.2.0                    i--

 

Issue/Introduction

How to uninstall Veritas Solaris packages for VRTSvcs, VRTSvcsag & VRTSodm from Solaris Local Zones