24x7server

Well-Known Member
Apr 17, 2013
1,912
99
78
India
cPanel Access Level
Root Administrator
Twitter
Hello,

You need to remove your your current swap partition from your server and then create new with your size.

Can you please let me know following command out put so that we can check your current swap partition

Code:
df -h

free -m

cat /etc/fstab
 

shahabff

Registered
Jul 19, 2015
3
0
1
uas
cPanel Access Level
Root Administrator
root [/]# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 59G 30G 26G 54% /
devtmpfs 7.8G 184K 7.8G 1% /dev
tmpfs 7.8G 0 7.8G 0% /dev/shm
/dev/sda1 59G 30G 26G 54% /
devtmpfs 7.8G 184K 7.8G 1% /dev
/dev/sda2 49G 16G 31G 34% /home
/dev/sdb1 110G 62G 43G 59% /home2
/dev/sdc1 110G 65G 40G 62% /home3
/dev/loop0 2.6G 183M 2.3G 8% /tmp
/dev/loop0 2.6G 183M 2.3G 8% /var/tmp



root [/]# free -m
total used free shared buffers cached
Mem: 15849 15321 528 0 745 6384
-/+ buffers/cache: 8191 7657
Swap: 2046 2046 0


root [/]# cat /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/sda1 / ext4 errors=remount-ro,usrjquota=quota.user,jqfmt=vfsv0 0 1
/dev/sda2 /home ext4 usrjquota=quota.user,jqfmt=vfsv0 1 2
/dev/sda3 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts defaults 0 0
/dev/sdb1 /home2 ext4 usrjquota=quota.user,jqfmt=vfsv0 0 0
/dev/sdc1 /home3 ext4 usrjquota=quota.user,jqfmt=vfsv0 0 0
/tmp /var/tmp ext3 defaults,bind,noauto 0 0
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

Were any of the articles linked in earlier posts to this thread helpful?

Thank you.