Hello
It is my first question here and I would like to thanks all of you to keep alive this stream and to give answers (I regulary read). Thanks for the good job. After installing CENTOS4.2 and "play with" I type the command swapon -s to verify everythings is ok but the command does nor return info as it should do. Is it something known ? Thanks
Jean-Pierre Castello HP France mobile : + 33 (0) 6 72 99 37 40 E-MAIL : Jean-Pierre.Castello@hp.com
(The contents of this message and any attachments to it are confidential and may be legally privileged. If you have received this message in error you should delete it from your system immediately and advise the sender. To any recipient of this message within HP: unless otherwise stated , you should consider this message and attachments as " HP CONFIDENTIAL". )
Castello, Jean-pierre (TS/Linux-HPC) wrote:
Hello
It is my first question here and I would like to thanks all of you to keep alive this stream and to give answers (I regulary read). Thanks for the good job. After installing CENTOS4.2 and "play with" I type the command swapon -s to verify everythings is ok but the command does nor return info as it should do. Is it something known ? Thanks
Jean-Pierre Castello HP France mobile : + 33 (0) 6 72 99 37 40 E-MAIL : Jean-Pierre.Castello@hp.com
Jean-Pierre,
I don't have an answer per se, but this command does work for me as root. Are you attempting to do this as root or by using sudo? I am running Centos4 U2 as well.
If you are doing this with sudo you will need to specify the entire path to get swapon to run /sbin/swapon -s
If you are doing this as root, do you get an error of some sort?
HTH
Alex White
Castello, Jean-pierre (TS/Linux-HPC) wrote:
Hello
It is my first question here and I would like to thanks all of you to keep alive this stream and to give answers (I regulary read). Thanks for the good job. After installing CENTOS4.2 and "play with" I type the command swapon -s to verify everythings is ok but the command does nor return info as it should do. Is it something known ? Thanks
Not quite sure what it is (or is not) doing on your system, but on my CentOS 4.2 system at home here's what I get:
[jleafey@jaybird ~]$ swapon -s bash: swapon: command not found
OK, simple enough, /sbin isn't in my path, so neither is swapon. Next try:
[jleafey@jaybird ~]$ /sbin/swapon -s Filename Type Size Used Priority/dev/mapper/sysvol-swap0 partition 2097144 70864 -1
Looks good, but would sudo give different results?
[jleafey@jaybird ~]$ sudo /sbin/swapon -s Filename Type Size Used Priority/dev/mapper/sysvol-swap0 partition 2097144 70864 -1 [jleafey@jaybird ~]$
Nope, it's all good. As far as I can tell, it seems to work just fine for me. What results are you getting?