Novell LINUX ENTERPRISE SERVER 11 - DEPLOYMENT Deployment Manual page 246

Table of Contents

Advertisement

compared to physical ram, both are extremely slow and the actual speed difference is
not as important as one would think in the first place.
Procedure 15.1 Adding a Swap File Manually
To add a swap file in the running system, proceed as follows:
1 Create an empty file in your system. For example, if you want to add a swap file
2 Initialize this swap file with the command
3 Activate the swap with the command
4 Check the current available swap spaces with the command
5 To enable this swap file permanently, add the following line to /etc/fstab:
15.1.5 Partitioning and LVM
From the expert partitioner, access the LVM configuration with Volume Management.
However, if a working LVM configuration already exists on your system, it is automat-
ically activated as soon as you enter the LVM configuration for the first time in a session.
In this case, any disks containing a partition belonging to an activated volume group
cannot be repartitioned because the Linux kernel cannot reread the modified partition
234
Deployment Guide
with 128 MB swap at /var/lib/swap/swapfile, use the commands:
mkdir -p /var/lib/swap
dd if=/dev/zero of=/var/lib/swap/swapfile bs=1M count=128
mkswap /var/lib/swap/swapfile
swapon /var/lib/swap/swapfile
To disable this swap file, use the command
swapoff /var/lib/swap/swapfile
cat /proc/swaps
Note, that at this point this is only temporary swap space. After the next reboot,
it is not used anymore.
/var/lib/swap/swapfile swap swap defaults 0 0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 11

Table of Contents