This error occurs due to the less space of the swap file than the expected value to resolve this error we have to increase the size of the swap file
The following dd command example creates a swap file with the name “myswapfile” under /root directory with required size
#free -k {to see the current swap size} # dd if=/dev/zero of=/root/myswapfile bs=1M count=1024
Cahnge last line into /root/myswapfile swap swap defaults 0 0 ;
Save it and exit
The following dd command example creates a swap file with the name “myswapfile” under /root directory with required size
#free -k {to see the current swap size} # dd if=/dev/zero of=/root/myswapfile bs=1M count=1024
Cahnge last line into /root/myswapfile swap swap defaults 0 0 ;
Save it and exit
No comments:
Post a Comment