[expert] Wierd CPU Utilization

2002-07-30 Thread Jason Bowman


This might be something more... like a kernel based problem but sometimes 
under high load I have noticed the cpu utilization to go to a number of a 
negative couple thousand. Attached is a capture of vmstat -n 1. Note that the 
last column is the precent cpu not being used.

Jason B.




[root@waturu sbin]# vmstat -n 1
   procs  memoryswap  io system cpu
 r  b  w   swpd   free   buff  cache  si  sobibo   incs  us  sy  id
 2  0  0   4128   4344   2296 321984   0   03328  130   457  14   5  81
 4  0  0   4128   4432   2300 321224   0   0  3456 0  358   485  32  64   4
 4  0  0   4128   4376   2296 318400   0   0  3200 0  323   527  36  71 42107516
 4  0  0   4128   4356   2296 321872   0   0  3968 0  373   426  22  77   1
 3  0  1   4128   4468   2300 321712   0   0  3968 11776  402   583  18  87 42107518
 3  0  0   4128   4384   2312 321864   0   0  3584  4412  465   494  19  81   0
 3  0  0   4128   4372   2316 321848   0   0  4224 0  390   519  20  85 42107518
 4  0  0   4128   4416   2320 321740   0   0  3840 0  379   474  22  76   2
 5  0  0   4128   4460   2324 321600   0   0  4224 0  388   491  17  88 41297757
 3  0  1   4128   4368   2328 321596   0   0  3712 15500  447   517  18  82   0
 3  0  0   4128   4464   2332 321612   0   0  3712  3628  439   470  21  84 42524424
 4  0  0   4128   4436   2336 320208   0   0  3072 0  336   469  28  74 41698710
 5  0  0   4128   7472   2340 318520   0   0  3328 0  324   567  33  70 42524426
 2  0  0   4128   4432   2344 321492   0   0  4224 0  365   427  12  88   0
 6  0  1   4128   4356   2348 321480   0   0  3712 15416  441   478  12  92 42107519
 4  0  0   4128      2360 321488   0   0  3712  2436  439   505  18  82   0
 4  0  0   4128   4400   2356 321500   0   0  4224 0  434   691  19  85 41698707
 5  0  0   4128   4364   2360 321484   0   0  3968 0  416   568  15  85   0

[root@waturu sbin]#


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] How to add something to chkconfig?

2002-07-30 Thread Jason Bowman

On Tuesday 30 July 2002 01:38 pm, David Guntner wrote:
> I've added a startup script to my /etc/rc.d/init.d directory, but when I
> try to do a "chkconfig --list {the-file}" so that I can see it, I'm
> informed that "service {the-file} does not support chkconfig."  How do I
> add something that exists in init.d to chkconfig?
>
>   --Dave

CHKCONFIG(8) CHKCONFIG(8)

NAME
   chkconfig - updates and queries runlevel information for system 
services

SYNOPSIS
   chkconfig --list [name]
   chkconfig --add name
   chkconfig --del name
   chkconfig [--level levels] name 
   chkconfig [--level levels] name
--  -

OPTIONS
--  -
   --add name

This  option adds a new service for management by chkconfig.  When a new 
service is added, chkconfig ensures that the service has either a start or  a  
kill  entry  in every  runlevel.  If  any  runlevel is missing such an entry, 
chkconfig creates the appropriate entry as specified by the default values in 
the init script.

Later,
Jason B.




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Unmountable Samba mounts and other oddities

2002-07-29 Thread Jason Bowman


From the man pages for unmount:
 -l Lazy unmount. Detach the filesystem from the filesystem hierarchy  
 
now, and  cleanup all references to the filesystem as soon as 
it is not busy anymore.  (Requires kerĀ­nel 2.4.11 or later.)

 - Jason B.

On Tuesday 30 July 2002 07:58 pm, James Sparenberg wrote:
> Jason,
>Not to seem dense.  (I really do try not to.) is that a -1
> (one) or a -l (ell).  Second where did you find this out?  It's
> seems to be a neat way to umount a "stuck" mount, I'd like to read
> more.
>
> James
>
>
> On Mon, 29 Jul 2002 18:44:08 -0400
>
> PlugHead <[EMAIL PROTECTED]> wrote:
> > I have this problem all the time:
> >
> > 'umount /mount/point -l'
> >
> > should do the trick.
> >
> > -Jason
> >
> > (And once again, my first post on the topic was dropped...
> > grr...)
> >
> > On Monday 29 July 2002 05:42 pm, Rob Gillen wrote:
> > > Thanks for the advice. Unfortunately, the thing is that when I
> > > drop down to runlevel 1, pretty much everything is killed off
> > > except kernel-level processes.
> >
> > =
> > "Did any of them kids have some space alien with a face like a
> > friendly turd in a bike basket?"
> > -- (Terry Pratchett & Neil Gaiman, Good Omens)




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Hack attack or not?

2002-07-28 Thread Jason Bowman

On Monday 29 July 2002 02:10 am, James Sparenberg wrote:
> David
>
>If you find Tripwire a bit much to install you might look at
> Snort (from freshmeat) it's a little less of a hassle to install
> and is on par with the free version of TripWire.
>
> James
>

Maybe you ment something like AIDE? Snort is a NIDS (Network Intrusion 
Detection System)... tripwire and AIDE are file integrety checkers. See 
http://freshmeat.net/projects/aide/

 - Jason B.





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] kernel building questions

2002-07-12 Thread Jason Bowman


Have you tried compiling reiserfs into the kernel instead of a module? I know 
you can use the mkinitrd to make a ram disk with all of the modules you need 
to load before the file systems can be mounted, but I have found it easier 
(sometimes) to just compile it in. 

 - Jason B.

On Thursday 11 July 2002 04:31 am, Darren King wrote:
> I went and picked up the cooker kernel (source rpm) and build it to try
> and address some major hardware problems I have.
>
> I built the kernel, and installed it (make menuconfig, make dep, make
> bzImage, make modules, make modules_install). I updated lilo.conf and
> added a new entry as I kept the new kernel separate from my existing
> kernel.
>
> well the kernel panic'd.  Didn't boot at all.  I get messages about
> reiserfs and stuff but I can't read them as they fly by too fast.  I
> looked under /var/log but couldn't find the messages.  Where would the
> boot log for these failed boots be stored (what file?)
>
> It seems as though my boot doesn't get far enough to start writing the
> log to a file.  Here are some of the messages that I can read:
>
> kmod: failed to exec modprobe -s -k freereiserfs errno=2
> mount: error 19 mounting reiserfs flags notail
> pivotroot:pivot_root (/sysroot, /sysroot/initrd) failed 2
>
> any idead?  I compiled in reiserfs suppport but it doesn't look good!
>
> Darren




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] How to request packages?

2002-07-02 Thread Jason Bowman


If you have to build from source (or just want to) use checkinstall and get 
all the advantages of an rpm's install/uninstall/file tracking!

aka:
tar xvzf something.tar.gz
make
make test
su root
checkinstall make install

It works for almost all programs, bind from sources is one of the few that it 
didn't work with.

Note: I have no idea how "distributable" the resulting rpm is, but it works 
good for installing software on to production servers when they don't have a 
compiler installed. I'm not sure others on the net would want to use them 
thou... (Best to stick w/ good mdk rpm's if you can.)

 - Jason B.

On Friday 28 June 2002 10:27 am, Praedor Tempus wrote:
> Or...how about adding a ports system to Mandrake that can reside alongside
> RPM?  I believe that ports, ported from the *BSD world, is what several
> newer linux kids on the block use, like Gentoo.
>
> The main reason I like RPMs at all vs simple tarballs is the database that
> knows it was installed and can easily upgrade or remove said package.
> Tarballs are easy to lose track of and, of course, there is no system
> database holding information on what tarballs have been installed where (of
> course, RPM doesn't do a job at all on where either - a weakness).
>
> Or...can the Mandrake RPM system be modified to allow for installation of
> tarballs and have an install added/tracked by some hack of RPM?
>
> In any case, if you need/want this app, you do not NEED an RPM, just get
> the tarball and install it.  You will be able to use it just fine.  Most
> scientific/specialty software I need can only be had in tarball form anyway
> and they work for me just fine.  Have you tried building the source and
> failed?  USUALLY it is as simple as 1) ./configure  switch>, 2) "make", and 3) "make install".  I have only rarely come across
> some wierdo code that doesn't have a config script or simple means of
> building the source.  If you have tried and failed to build the source
> already, what did you do and what were the error messages?
>
> praedor
>
> On Thursday 27 June 2002 03:01 pm, Alastair Scott wrote:
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > On Thursday 27 June 2002 8:26 pm, Jan Lentfer wrote:
> > > Hi all,
> > >
> > > i would like to ask Mandrake to add a package to their distribution.
> > > Can anyone tell me how to do this?
> > >
> > > In particular I want them to add "kaptain"
> > > (http://kaptain.sourceforge.net/) as a package. That's a programm
> > > that provides graphical interfaces to command line programs using
> > > grammar files. It is widley used to controll the EMBOSS
>
> [...]
>
> > Producing RPMs is difficult - the problem is getting a generic install
> > which will work on all machines. (A lot of non-Mandrake packages fail
> > here).
>
> [...]




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] I made it -- 1 year uptime

2002-06-26 Thread Jason Bowman

On Tuesday 25 June 2002 11:56 am, Hoyt wrote:
> This is the value of maintaining a daily log of changes you make to the
> system. It not only helps you, but it helps the "next guy" as well.

Just curious, I have often times wanted to capture a session while working w/ 
a server. Do you know of any programs that do this?  Even if it only captures 
the commands it would be great!

Jason B.

PS: I once had a program that did this, but I forgot what it was and I could 
not find any way to parse its output.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com