Linux-UNIX: Deactivate and uninstall A-TAP in Zones and WPARs environment
Procedure
-
On every sub-Zone/sub-WPAR with A-TAP installed/active:
- Deactivate (and deinstrument if necessary, for Oracle on AIX) all A-TAPs using guardctl following the steps in Linux-UNIX: Deactivating A-TAP.
- Manually remove (rm -rf) the installation directory
- Manually remove the ATAP libraries: find /usr/lib -type f -name 'libguard-*.so' | xargs rm -f
Note: Removing the libraries may give errors; these can be ignored. -
Uninstall STAP/KTAP using the normal method
- Remove the libraries: find /usr/lib -type f -name 'libguard-*.so' | xargs rm -f o
- On Solaris, remove the ktap device from each zone’s configuration:
zoneadm –z <zonename> halt zonecfg –z <zonename> <zonename>> info
If a ktap device is found, remove it :/<zonename> remove device match=/dev/ktap_xxxx (FOR SOLARIS 10) /<zonename> remove device match=/dev/guard_ktap (FOR SOLARIS 11) <zonename>> verify <zonename>> exit zoneadm -z <zonename> boot
- Remove the ktap device file and link from each sub-Zone/sub-WPAR device directory, for
example:
/export/home2/zones/iris3/dev cd /export/home2/zones/iris3/dev rm -f ktap_xxxx guard_ktap
- With multiple KTAP devices, repeat the steps for each KTAP device by using the name ktap_xxxx (Solaris 10) or guard_ktap_x (Solaris 11).