Technical article 125204

How do I remove the OpenServer Kernel Personality (OKP) product?

UnixWare 7.1.3

Written · Last revised

Problem

Removing the /openserver directory in multi-user state can lead to data loss.

The procedure for removing OKP that is documented in the online documentation, while it will work safely in most cases, may in some instances lead to data loss if the directory /openserver is removed in multi-user mode. This can happen if:

- a process has a file open under /openserver - a file system containing data is mounted under /openserver

when /openserver is removed.  It is recommended that
you remove the OKP product in Single User Mode so that
no other processes will be running and nothing will be
mounted under /openserver.

A correction to the removal procedure was supplied in the CD and Web copy of the release notes, but this procedure included an unnecessary execution of the unimport command and omitted a final reboot.

Cause

Lingering mounts and files held open by OKP processes are removed or closed.

Solution

Go to Single User Mode before removing OKP.

Follow this procedure to remove OKP completely from UnixWare 7.1.3, including the /openserver directory:

1.  Backup any data residing under /openserver that you
    want to preserve.
2.  Log in as root, and enter:
# shutdown -i6 -g0 -y
During the reboot, press the space bar when you see
the UnixWare logo on the console.  This displays the
[boot] prompt.
3.  At the [boot] prompt, enter:
[boot] INITSTATE=S
[boot] boot
4.  When prompted, enter the root password to enter
    Single User Mode.
5.  Enter:
# pkgrm osrcompat
6.  Once osrcompat has been successfully removed, enter:
# rm -fr /openserver
This command takes at least 10 minutes, longer
depending     on the amount of data under /openserver.
7.  When the previous command is finished, enter:
# shutdown -i6 -g0 -y

The system displays messages indicating that the kernel is being rebuilt, and the system reboots into multi-user once the build is complete.

See also

OKP Release Notes at
http://www.sco.com/support/update/download/okp.html

From the Xinuos technical article database, record 125204. Reproduced with permission. The original is at www.sco.com/ta/125204, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.