Results 1 to 2 of 2
The host is on WHM VPS.
Distro: CentOS 5.5
I am having trouble with No SWAP Space available on the machine. And I want to set it up. I've tried ...
- 09-19-2010 #1Just Joined!
- Join Date
- Sep 2010
- Posts
- 1
Swap Space Problem
The host is on WHM VPS.
Distro: CentOS 5.5
I am having trouble with No SWAP Space available on the machine. And I want to set it up. I've tried searching a lot but no solution I found specific to this problem. Only some where I found to fix/repare the file system according to my scenario of findings in the machine.
Following is the information till now I have found in the machine while trying to get a fix. But only the deeper I could go and found nothing to resolve.
I, then, followed a tutorial to create/increase the swap file. Following is what I reached to..Code:[~]# free -m total used free shared buffers cached Mem: 1024 176 847 0 0 0 -/+ buffers/cache: 176 847 Swap: 0 0 0
According to the instructions I checked with the command "swapon -s" and got following output
Apparently I didn't see any thing in the above detail. But I continued on as per the tutorial that goes down.Code:[~]# swapon -s Filename Type Size Used Priority [~]#
Unfortunately, the "swapon" command failed with the error "Operation not permitted". I also tried the above steps after performing "swapoff -a" just to make sure. But it resulted the same output.Code:[~]# dd if=/dev/zero of=/extraswap bs=1M count=2048 2048+0 records in 2048+0 records out 2147483648 bytes (2.1 GB) copied, 16.5224 seconds, 130 MB/s [~]# mkswap /extraswap Setting up swapspace version 1, size = 2147479 kB [~]# swapon /extraswap swapon: /extraswap: Operation not permitted
I also got some thing about to check with the "fdisk -l". but following is what it resulted
After getting the above error. I tried to check the file "partitions" in /proc. And I didn't see any "partitions" file there.Code:[~]# fdisk -l cannot open /proc/partitions [~]#
I am not able to do any thing else to increase the Swap file. I'd really need help for that purpose.Code:[~]# ls /proc ./ 15843/ 19551/ 23993/ 26386/ 5620/ loadavg sys/ ../ 15844/ 19552/ 24241/ 26393/ 5816/ locks sysrq-trigger 1/ 15845/ 19621/ 24362/ 26417/ 5848/ meminfo sysvipc/ 11556/ 15900/ 19622/ 26071/ 26451/ cmdline modules uptime 11557/ 15960/ 19623/ 26104/ 27952/ cpuinfo mounts user_beancounters 15831/ 17627/ 19624/ 26133/ 31833/ devices net/ version 15840/ 17691/ 22140/ 26313/ 31834/ filesystems self vmstat 15841/ 17692/ 23765/ 26340/ 31841/ fs/ stat vz/ 15842/ 17741/ 23767/ 26353/ 31842/ kmsg swaps [~]#
Thanks in advance..
Regards,
- 09-20-2010 #2
Hi and Welcome !
Post the output of fdisk -l and df -h commands here.It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First


Reply With Quote