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?