In the following step-by-step guide, we'll add an additional 2GB of SWAP space to an AMP.1) First, create a blank file to hold the SWAP data (note that you can increase the size of the final SWAP file by increasing the 'count' number below)dd if=/dev/zero of=/extraswap bs=1M count=20482) Next, tell the Linux OS to prepare the file for use as SWAP spacemkswap /extraswap3) Then, issue a command to turn-on the new SWAP fileswapon /extraswap4) Finally, to make the extra SWAP space work after a reboot, poweroff, etc.echo -e "/extraswap\t\t\t\tnone\t\t\t\t\tswap\tsw\t\t\t\t0 0" >> /etc/fstab
© Copyright 2024 Hewlett Packard Enterprise Development LPAll Rights Reserved.