Meningkatkan partisi swap pada server

Adakalanya kita ingin meningkatkan kapasitas partisi swap pada server linux aktif yang kita kelola. Maka langkah-langkahnya adalah sebagai berikut :

Unmount Swap:
# swapoff -v /dev/VolGroup00/LogVol02

Extend the LVM Logical Volume:
# lvm lvresize /dev/VolGroup00/LogVol02 -L +256M

OR (Either use ‘lvm lvresize’ OR ‘lvextend’ proceed with swap format after extend)

lvextend -L 512M (or G) /dev/VolGroup00/LogVol02

Format full Logical Volume as SWAP:
# mkswap /dev/VolGroup00/LogVol02

Enable Swap space:
# swapon -va

Testing swap space:
# cat /proc/swaps
# free -k

selesai, kita tak perlu merestart server 🙂

sumber :


One thought on “Meningkatkan partisi swap pada server

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s