swapon: Function not implemented


 
Thread Tools Search this Thread
Operating Systems Linux swapon: Function not implemented
# 1  
Old 02-22-2010
swapon: Function not implemented

Hi,

Trying to add a swap file to my server as below:

Code:
dd if=/dev/zero of=/swapfile1 bs=1M count=2048
2048+0 records in
2048+0 records out
2147483648 bytes (2.1 GB) copied, 27.4514 seconds, 78.2 MB/s
[root@clearab2 /]# mkswap -c /swapfile1
Setting up swapspace version 1, size = 2147479 kB
[root@clearab2 /]# swapon /swapfile1
swapon: /swapfile1: Function not implemented
[root@clearab2 /]# swapon -a
swapon: /swapfile1: Function not implemented

Does anyone know why this is happening i have googled but cant find anything?
# 2  
Old 02-22-2010
Could you post the output of
Code:
uname -a
zgrep 'CONFIG_SWAP' /proc/config.gz
cat /proc/swaps
swapon -V

# 3  
Old 02-22-2010
Hi,

Thanks for the quick reply, output below:

Code:
uname -a
Linux clearab2.miniserver.com 2.6.32.7-x1 #1 SMP Fri Feb 5 10:32:19 GMT 2010 i686 i686 i386 GNU/Linux
[root@clearab2 /]# zgrep 'CONFIG_SWAP' /proc/config.gz
gzip: /proc/config.gz: No such file or directory
[root@clearab2 /]# cat /proc/swaps
cat: /proc/swaps: No such file or directory
[root@clearab2 /]# swapon -V
swapon: (util-linux 2.13-pre7)

# 4  
Old 02-22-2010
What kind of machine are you on? Seems to me like the kernel used is optimized for some kind of embedded system, without support for a swap-space.
# 5  
Old 02-22-2010
its a webserver hosted by memset it should be a full install of centos 5.4 on a virtual platform.
# 6  
Old 02-22-2010
Ok, so it's probably a para-virtualized system or something similar. That means that you don't really have a system of your own, but share it with others. In order to avoid security problems most of these systems deny access to the /proc interface. In your case, it seems that this also prevents access to the interfaces governing swap space.

I'm afraid there's not much you can do other than asking your hoster for more swap space/memory.
# 7  
Old 02-22-2010
I have checked with them and they have disabled it as they say it will impact on disk I/O if every customer has a swap partition. Thanks for your help.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Function - Make your function return an exit status

Hi All, Good Day, seeking for your assistance on how to not perform my 2nd, 3rd,4th etc.. function if my 1st function is in else condition. #Body function1() { if then echo "exist" else echo "not exist" } #if not exist in function1 my all other function will not proceed.... (4 Replies)
Discussion started by: meister29
4 Replies

2. Shell Programming and Scripting

Will files, creaetd in one function of the same script will be recognized in another function?

Dear All. I have a script, which process files one by one. In the script I have two functions. one sftp files to different server the other from existing file create file with different name. My question is: Will sftp function recognize files names , which are created in another... (1 Reply)
Discussion started by: digioleg54
1 Replies

3. UNIX for Advanced & Expert Users

How a windowing system is implemented in C ?

Hi All, I was wondering how using C the programmers have implemented a GUI (x window & ms windows). Am curious to learn about the overall architecture. I learned a bit about graphics primitives, memory mapped io, etc I want to learn more whether the above is the foundation upon which modern... (4 Replies)
Discussion started by: coolatt
4 Replies

4. UNIX for Advanced & Expert Users

lvm swapon failed Device or resource busy

Is there a trick to mounting swap in n a lvm? I can't get it to work. # swapon -va swapon on /dev/mapper/VG-lv_swap swapon: /dev/mapper/VG-lv_swap: found swap signature: version 1, page-size 4, same byte order swapon: /dev/mapper/VG-lv_swap: pagesize=4096, swapsize=4294967296,... (1 Reply)
Discussion started by: cokedude
1 Replies

5. Programming

Algorithm needs to be implemented in JAVA

Hi, I need to implement this algorithm in JAVA. I tried to write half of the code But I stopped in the other half. The algorithm: Marking procedure at router R: let R' = Bitlntereave(R, Hash(R)) let k be the number of non-overlapping fragments in R' for each packet w let x be a random... (0 Replies)
Discussion started by: ENG_MOHD
0 Replies

6. Shell Programming and Scripting

Passing global variable to a function which is called by another function

Hi , I have three funcions f1, f2 and f3 . f1 calls f2 and f2 calls f3 . I have a global variable "period" which i want to pass to f3 . Can i pass the variable directly in the definition of f3 ? Pls help . sars (4 Replies)
Discussion started by: sars
4 Replies

7. UNIX for Advanced & Expert Users

What do you want to see implemented in Unix ?

Hello all, I just want to ask everyone what does he/she want to see implemented in Unix ? Applications, services, drivers, modules ? Just mention it here :) Thank you very much in advance. (0 Replies)
Discussion started by: core-ix
0 Replies

8. UNIX for Advanced & Expert Users

Free software like proftpd or wu-ftpd implemented under SSH

Anybody can to suggest to me a ftp software like proftpd or wu-ftpd (ftp with chroot for users) implemented with tunneling under SSH. Thanks in advance. Hugo. (2 Replies)
Discussion started by: hugo_perez
2 Replies
Login or Register to Ask a Question