Expanding The Swap Area; Using The Swap Partition - NEC Express Server Express5800 Series Installation Manual

Linux
Hide thumbs Also See for Express Server Express5800 Series:
Table of Contents

Advertisement

Chapter 1 Installing Operating System
3.4

Expanding the swap Area

Expand the swap area according to the following procedure.
3.4.1

Using the swap partition

If there is a free space in the hard disk drive of the slot 0 of the CPU/IO module 0 and CPU/IO module 1, the
partition for swap can be created, and the swap area can be expanded.
1.
Create the partition by referring to steps 1 to 12 of Chapter 1 (3.3 Adding Partitions) in this manual.
The case where the partition "/dev/md/swap2"is created is described here.
2.
Execute the following command to create the swap area.
# mkswap /dev/md/swap2
3.
Set so that the partition can be mounted automatically at startup.
Execute the following command to check the UUID value.
# blkid /dev/md/swap2
/dev/md/swap2: UUID="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ・・・
Open "/etc/fstab" with the editor, and add the following line.
UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx swap swap defaults 0 0
4.
Execute the following command to update "/etc/mdadm.conf".
# cp –a /etc/mdadm.conf /etc/mdadm.conf.bak
# sed -i -e '/^ARRAY/d' /etc/mdadm.conf
# mdadm --detail --scan -v | grep '^ARRAY' >> /etc/mdadm.conf
5.
Execute the following command to update the initial RAM disk image to be used at the system
startup.
# mv /boot/initramfs-`uname -r`.img /boot/initramfs-`uname -r`.img.bak
# dracut /boot/initramfs-`uname -r`.img `uname -r`
6.
Execute the following command to disable all swaps.
# swapoff -a
7.
Execute the following command to enable all swaps.
# swapon -a
8.
Execute the following command to check swap is enabled.
# swapon -s
Express5800/R320e-E4, R320e-M4 Installation Guide (Linux)
3. Procedure for Changing the System Environment Setting
53

Advertisement

Table of Contents
loading

This manual is also suitable for:

Express5800/r320e-e4Exp320sExpress5800/r320e-m4Exp320r

Table of Contents