Castello, Jean-pierre (TS/Linux-HPC)
2005-Dec-05 15:12 UTC
[CentOS] CENTOS4.2 swapon -s result ?
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 at 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". ) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20051205/28d8998f/attachment-0002.html>
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 at hp.comJean-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 at jaybird ~]$ swapon -s bash: swapon: command not found OK, simple enough, /sbin isn't in my path, so neither is swapon. Next try: [jleafey at 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 at jaybird ~]$ sudo /sbin/swapon -s Filename Type Size Used Priority/dev/mapper/sysvol-swap0 partition 2097144 70864 -1 [jleafey at 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? -- Jay Leafey - Memphis, TN jay.leafey at mindless.com -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 5322 bytes Desc: S/MIME Cryptographic Signature URL: <http://lists.centos.org/pipermail/centos/attachments/20051205/7c814d85/attachment-0002.bin>
Castello, Jean-pierre (TS/Linux-HPC)
2005-Dec-06 12:23 UTC
[CentOS] RE: CENTOS4.2 swapon -s result ?
Thanks Alex White and Jay Leafey I do /sbin/swap -s under root and nothing is return. [root at node-36 ~]# /sbin/swapon -s [root at node-36 ~]# I also notice that /dev/swaps is empty and here the partition table reported by parted cmd Disk geometry for /dev/cciss/c0d0: 0.000-69459.609 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.016 103.593 primary ext3 boot 2 103.594 55398.750 primary ext3 3 55398.750 63590.625 primary linux-swap 4 63590.625 69459.609 extended lba 5 63590.641 69459.609 logical ext3 I am also surprised ! Thanks Jean-Pierre Castello E-MAIL : Jean-Pierre.Castello at hp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20051206/a730168f/attachment-0002.html>
what about /etc/fstab, any swaps listed there? maybe someone turned off swap? what about cat /proc/swap or /proc/swaps Cheers, MaZe. On Tue, 6 Dec 2005, Castello, Jean-pierre (TS/Linux-HPC) wrote:> Thanks Alex White and Jay Leafey > I do /sbin/swap -s under root and nothing is return. > [root at node-36 ~]# /sbin/swapon -s > [root at node-36 ~]# > > I also notice that /dev/swaps is empty and here the partition table > reported by parted cmd > > Disk geometry for /dev/cciss/c0d0: 0.000-69459.609 megabytes > Disk label type: msdos > Minor Start End Type Filesystem Flags > 1 0.016 103.593 primary ext3 boot > 2 103.594 55398.750 primary ext3 > 3 55398.750 63590.625 primary linux-swap > 4 63590.625 69459.609 extended lba > 5 63590.641 69459.609 logical ext3 > > I am also surprised ! > > Thanks > Jean-Pierre Castello > E-MAIL : Jean-Pierre.Castello at hp.com > >
Castello, Jean-pierre (TS/Linux-HPC)
2005-Dec-06 17:27 UTC
[CentOS] RE: CENTOS4.2 swapon -s result ?
Ok thanks to point me on the fstab file. Effectivelly for one raison I don't know yet the entry for the swap was strange and did not work. LABEL=SWAP-cciss/c0d0p swap swap defaults replaced by /dev/cciss/c0d0p3 swap swap defaults 0 0 and everything works with swapon cmd. Thanks again. Jean-Pierre -----Original Message----- From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Maciej Zenczykowski Sent: mardi 6 d?cembre 2005 13:51 To: CentOS mailing list Subject: Re: [CentOS] RE: CENTOS4.2 swapon -s result ? what about /etc/fstab, any swaps listed there? maybe someone turned off swap? what about cat /proc/swap or /proc/swaps Cheers, MaZe. On Tue, 6 Dec 2005, Castello, Jean-pierre (TS/Linux-HPC) wrote:> Thanks Alex White and Jay Leafey > I do /sbin/swap -s under root and nothing is return. > [root at node-36 ~]# /sbin/swapon -s > [root at node-36 ~]# > > I also notice that /dev/swaps is empty and here the partition table > reported by parted cmd > > Disk geometry for /dev/cciss/c0d0: 0.000-69459.609 megabytes > Disk label type: msdos > Minor Start End Type Filesystem Flags > 1 0.016 103.593 primary ext3 boot > 2 103.594 55398.750 primary ext3 > 3 55398.750 63590.625 primary linux-swap > 4 63590.625 69459.609 extended lba > 5 63590.641 69459.609 logical ext3 > > I am also surprised ! > > Thanks > Jean-Pierre Castello > E-MAIL : Jean-Pierre.Castello at hp.com > >_______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos