Thursday, April 30, 2015

Linux sunucuda ekstra swap (takas) alani olusturma

Platform:
# cat /etc/issue
Oracle Linux Server release 6.5
Kernel \r on an \m
# uname -a
Linux server 2.6.32-504.1.3.el6.x86_64 #1 SMP Tue Nov 11 17:57:25 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

32G swap alanı oluşturmak için;

# dd if=/dev/zero of=/swapfile bs=1024 count=32553600
# mkswap /swapfile
# swapon /swapfile

swap alanının açılışta otomatik mount olması için /etc/fstab 'e eklenen satır;

/swapfile               swap                    swap    defaults        0 0

No comments:

Post a Comment