Reducing swap space
To reduce swap space on an already installed system:
-
Log in as root.
-
Obtain a copy of the current VTOC:
prtvtoc -f vtoc-file raw-device
where vtoc-file is any unique filename you choose.
-
Edit vtoc-file and change the size of the swap slice.
The swap slice is usually defined on
slice 2, and the current size (in sectors) of swap space
is listed under the column labeled SIZE.
-
Use edvtoc to write the changed VTOC to disk:
edvtoc -f vtoc-file raw-device
-
Reboot the system to make the new swap space available for use.
In effect, you have divided one slice into two slices.
Refer to
prtvtoc(1M)
and
edvtoc(1M)
for more information on those commands.
Next topic:
Managing processors and processes
Previous topic:
Adding swap space
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004