EasyManua.ls Logo

NEC Express Server Express5800 Series - Expanding the Swap Area; Using the Swap Partition

NEC Express Server Express5800 Series
66 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
3. Procedure for Changing the System Environment Setting
Express5800/R320e-E4, R320e-M4 Installation Guide (Linux)
53
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

Table of Contents

Related product manuals