Re: [CentOS] Grub fallback problem

2009-07-30 Thread John Doe
From: Matthias Blankenhaus matthiasblankenh...@yahoo.com
 The problem is that the fallback does not work for me.  For instance, if I 
 specify on purpose a wrong root device with the NEW OS, e.g. root=/dev/sda3, 
 then the kernel panics and reboots properly after 5 sec.  However, grub then 
 attempts to boot the NEW OS all over again.  The same is true when I fully 
 boot 
 NEW OS with the right root device and then panic the kernel on purpose.
 Now, I have read somewhere that grub requires a default file to get
 the savedefault feature working.  However, I could neither find the 
 'savedefault' command nor the grub default file under /boot/grub or
 anywhere else.  One more thing, when I choose the boot title manually
 then grub seems to remember my last choice.  In other words, grub is
 preserving my last choice from a previous boot.

Not sure if you already read this:
http://www.gnu.org/software/grub/manual/html_node/Booting-fallback-systems.html#Booting-fallback-systems

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] how to create file system with less bad block??

2009-07-30 Thread John Doe
From: mcclnx mcc mcc...@yahoo.com.tw
 Thank you for answer.  The problem is database report corrupt block, but we 
 even don't know which disk  have that corrupt block since we use 15 disks 
 Array.

You can format with '-c' to check for badblocks while formating.
Or see 'man badblocks' (watch out)
Nothing in /var/log/messages?
If your disks are SMART, maybe try 'smartctl'

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Bacula Instalation - Dependencies problems

2009-07-24 Thread John Doe
From: Alejandro cdgr...@gmail.com
 The FSCHWARZ rpm work excellent!
 You use some GUI for make the admin of the Jobs?

I just used bacula monitor and console while building/testing my configuration 
files.
But the graphic console is very close to an xterm where you would run a text 
console...
The monitor is quite basic too.
And now that everything is automated and running, I don't use them anymore...
I receive daily emails with backups logs results.
There is BAT that is more advanced, but never tried it.
  http://wiki.bacula.org/doku.php?id=bat
I prefer to modify my configuration files manualy...
Only thing I would miss is an explorer like interface to recover files from the 
backups.
But never had to so far...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] rpm

2009-07-24 Thread John Doe
From: David Leon dleon741...@gmail.com
 On Fri, Jul 24, 2009 at 9:03 AM, luc...@lastdot.org wrote:
  Yep, add Dag's repo. Latest amavisd-new is there, with all the dependencies:
  http://dag.wieers.com/rpm/
 hi, thanks, but where should I add that repo and how can I use it?

If you go to the url, there is Installation and Configuration...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Need help on start samba

2009-07-23 Thread John Doe
From: Tran Van Hung tvhun...@yahoo.com.vn
Thank for reply.
But before I insalled samba by hand, as follow:
-download samba source (.tar.gz)
-unrar with tar command
-build with ./configure
-install with make
-Then I configure /etc/samba/smb.conf by vi.
-Then I create users with password.
Issue I met when start samba as I wrote before:
r...@maychu1 home]# /etc/rc.d/init.d/smb start

Are you sure 'make install' from samba sources does put an smb init script in 
/etc/rc.d/init.d/ by default?
Did you look at the 'packaging/RHEL/makerpms.sh' script in the samba archive?

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] autoconf version...

2009-07-23 Thread John Doe
Hi,

I just saw that autoconf 2.59 dates from 2003...
Do you know why would RedHat keep such an old version?
Compatibility problems?

Thx,
JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Limit RAM used by a perl script

2009-07-21 Thread John Doe

From: Sean Carolan scaro...@gmail.com
  First, install the perl module BSD::Resource
 
yum install perl-BSD-Resource
 
  Then use it in your program like:
 
#!/usr/bin/perl
 
use BSD::Resource;
setrlimit(RLIMIT_VMEM, 1_000_000, 1_000_000);
 
# rest of the program that is limited to 1MByte now
 
 Thanks, Paul.  I knew I'd find an answer if I posted my question here.

While having hard limits makes it safer, wouldn't it be better to control the 
memory usage of the script instead of setting limits that would trigger an out 
of memory...?

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Limit RAM used by a perl script

2009-07-21 Thread John Doe

From: Sean Carolan scaro...@gmail.com
  While having hard limits makes it safer, wouldn't it be better to control 
  the 
  memory usage of the script instead of setting limits that would trigger an 
  out 
  of memory...?
 How would you control the memory usage of the script if it's run by
 the root user?

By control I meant to design the script to use a specific amount of RAM, 
instead of letting it vampirise all available memory...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kickstart install using url location

2009-07-21 Thread John Doe

From: Carlos Santana neu...@gmail.com
 I know how to start ks installation.
 Initially I was booting from a CD drive and then typed in 'linux
 ks=http:///'.
 But how do I get to boot prompt now? Lets say my DVD iso is located on
 some remote machine. We point to this DVD in kickstart file. But, we
 are not booting from it.
 How do I get this boot prompt to start installation? Sorry for any confusion.

Normaly (never tried http install), it should be like:
  grub linux ks=http://.../ks.cfg [ method=http://.../ ]
And, in ks.cfg:
  url --url http://.../

From the doc 
(http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Installation_Guide/ch-kickstart2.html):
If you are performing a network-based (NFS, FTP, or HTTP) installation, you 
must make the installation tree available
An installation tree is a copy of the binary Red Hat Enterprise Linux CD-ROMs 
with the same directory structure.
Which would mean no ISO files...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Bacula Instalation - Dependencies problems

2009-07-20 Thread John Doe

From: Alejandro cdgr...@gmail.com
 I try to install bacula-client-3.0.1-3.el5.pp.x86_64.rpm but have
 problems with some Dependencies, please if anyone know how fix that
 I'll apreciate the info.


I personaly used the fschwarz rpms from 
http://sourceforge.net/projects/bacula/files/

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Cassandra and thrift...

2009-07-20 Thread John Doe

Hi,

anyone have any experience compiling/installing Cassandra and thrift on CentOS?

Thx,
JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] My server reboots every hour! Help please!

2009-07-15 Thread John Doe

From: Marko Vojinovic vvma...@gmail.com
 I should also note that resets are abrupt, the system doesn't seem to
 go through shutdown phase.
 Thanks for the suggestion, though!

Anything in the system logs (bios/ipmi)?
Some kind of watchdog?

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Conflicting perl packages?

2009-07-15 Thread John Doe

From: Marko Vojinovic vvma...@gmail.com
 The simple ordinary yum update of CentOS 5.3 spits a bunch of
 transaction check errors regarding packages
 perl-IO-Compress-Zlib-2.015-1.el5.rf.noarch and
 perl-IO-Compress-2.020-1.el5.rf.noarch which is supposed to replace
 perl-IO-Compress-Base-2.015-1.el5.rf.noarch:

They are apparently rebuilding many packages (and are still in the middle of 
the process...)
Until it is sorted out, you could:

  yum update --disablerepo=rpmforge

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Formatting print with awk and ORS

2009-07-07 Thread John Doe

From: Joseph L. Casale jcas...@activenetwerx.com
 I have a command I execute:
 awk 'BEGIN { ORS=  } { print \ $1 \ }' input_file
 which gives me exactly what I need, all field one's in quotes on one line
 each separated by one space. I now need to print a single quote around all
 of this, but the ORS flag is screwing me up, it's causing every attempt I
 try to repeat for every record.

awk -v q=' ' BEGIN { ORS= ; printf(%s, q) } { print \ $1 \ } END { 
printf(%s, q) } '
or
awk ' BEGIN { ORS= ; printf(\x27) } { print \ $1 \ } END { 
printf(\x27) } '

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Network Utilization

2009-07-07 Thread John Doe

From: Parsons, Scott spars...@gsihosting.com
 I'm attempting to create a script that will indicate the % utilization
 of a network interface. I need this to export a one shot output that can
 be called by nagios.
 I've tried the following tools but I was unable to find a way to output
 just the utilization, and just one time: bmon, iftop, ifstat, bwm,
 dstat, rrdtool, iptraf.

Made mine by reading /proc/net/dev and comparing with the values of the 
previous check saved in a tmp file...
basicaly: ( value - previousvalue ) / time

If you do, watch out for tricky values (each 3 lines are 3 consecutive nagios 
checks, and the middle lines bug):
No idea why they happen (maybe network driver bug?).

  # null value:
  # eth1:406480423 4248723190 000 0  0 0 
3936994849 1479449504000 0   0  0
  # eth1:0 3869683986 1271400 12714  0  29853042  
407203012 1509323306000 0   0  0
  # eth1:407977803 4248736776 000 0  0 0 
3956304636 1479465887000 0   0  0
  
  # false cycled value:
  # eth1:1616399669 4273106787 000 0  017 
1680717193 1514316105000 0   0  0
  # eth1:  68966782 1661804061 1321800 13218  0  30344226 
1618715737 1544705181   1700 0  17  0
  # eth1:1621560785 4273138758 000 0  017 
1735041823 1514359042000 0   0  0
  
  # Mega value (32bits=4294967296 max, 64bits=18446744073709551616 max???):
  # Did not find an easy way to handle 64 bits exceptions...
  # So check if bp is realistic ( 100Mb/s on eth1 and 1Gb/s on eth0).
  # eth0:154764669644981470614700  9300 0  0
  6 4113045092950 8164215117 000 0   0  0
  # eth0:16615907842663613929 81457712740  9300 0  0 
8164237729   17763115100 8165567515 1693700 0   16937  0
  # eth0:154765965186881471409070  9300 0  0
  6 4113088607337 8164294628 000 0   0  0

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Memory reporting...

2009-07-07 Thread John Doe

From: Peter Kjellstrom c...@nsc.liu.se
 On Monday 06 July 2009, John Doe wrote:
  When I do a free, I get:
   total   used   free sharedbuffers cached
  Mem:  18482800   18030668 452132  0 6830689426792
  -/+ buffers/cache:7920808   10561992
  But, when I do a ps, mysql is the only process that takes noticable memory;
  and it is far from 7.9GBs...
  USER   PID %CPU %MEMVSZ   RSS TTY  STAT START   TIME COMMAND
  mysql28346 36.0 15.6 3241196 2884692 ? Sl   Jul04 981:19  \_
  Once you removed the buffers and the cached memory from the total used
  memory... what is left? Looks like I have something (that is not
  buffers/cached) that takes more than 4GB... Could it be disk cache or is it
  included in the cached value?
 
 /proc/meminfo may give you a more detailed summary.

Sadly, not much more information in /proc/meminfo...
Same values as in free, since free reads it.
Basicaly, 7.9GB are apparently used, but the sum of the memory used by all the 
processes is around 3.5GB...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] ffmpeg and zoneminder install problems

2009-07-06 Thread John Doe

From: Gregory P. Ennis po...@pomec.net
 svn checkout -r 11879 svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
 cd ffmpeg/ 
 ./configure
 make 
 When I execute the make command I get the following that results in an Error 
 message.

If you use svn, it is always a good idea to do a 'make distclean' between the 
checkout and the configure, just in case...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Memory reporting...

2009-07-06 Thread John Doe

Hi,

I have a little question about memory usage...

When I do a free, I get:

 total   used   free sharedbuffers cached
Mem:  18482800   18030668 452132  0 6830689426792
-/+ buffers/cache:7920808   10561992

But, when I do a ps, mysql is the only process that takes noticable memory; and 
it is far from 7.9GBs...

USER   PID %CPU %MEMVSZ   RSS TTY  STAT START   TIME COMMAND
mysql28346 36.0 15.6 3241196 2884692 ? Sl   Jul04 981:19  \_ 
/usr/libexec/mysqld --basedir=/usr --datadir=/IOL/mysql --user=mysql 
--pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --port=3306 
--socket=/IOL/mysql/mysql.sock

Once you removed the buffers and the cached memory from the total used 
memory... what is left?
Looks like I have something (that is not buffers/cached) that takes more than 
4GB...
Could it be disk cache or is it included in the cached value?
Any idea?

Thx,
JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS and Redhat Directory Server

2009-07-02 Thread John Doe

From: Coert Waagmeester lgro...@waagmeester.co.za
 I have also just install centos directory server.
 Successful install, but to be quite honest I hav no idea where to go
 from here is there some howto somewhere that explains how to make
 workstations authenticate to the DS and such?

Maybe have a look at the documentation:
http://www.redhat.com/docs/manuals/dir-server/

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configure a local DNS caching nameserver: partial success

2009-07-02 Thread John Doe

From: Niki Kovacs cont...@kikinovak.net
 No, that's not it. I disabled the (internal) firewall just for testing's 
 sake, and still nothing. I can only use Bind on localhost (e. g. on the 
 machine where I installed it), but not from any other machine on the 
 network.

what does the following command output on the server?
 
netstat -nlp | grep named
What do you have in your other machines /etc/resolv.conf ?

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] lost CentOS repositories from yum

2009-07-02 Thread John Doe

From: Sagar Koirala sagar.koir...@gmail.com
 I was using yum, which was working very well. Then I decided to try
 yumex, and installed yumex, which again worked fine. But, after that,
 when I came back to use console yum, it started giving error messages.
 So, I removed yumex and tried, in vain. Then I removed yum, and
 installed it with rpmforge repository.
 It works fine, but I only have rpmforge repository. How can I add
 CentOS repositories like Addons, Extras, etc back to my yum?

Maybe reinstall yum from the rpm file from CentOS?
Or at least extract the /etc/yum.repos.d/CentOS-*.repo

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] php5 and sqlite

2009-06-30 Thread John Doe

From: Paul Bijnens paul.bijn...@xplanation.com
 Is there any reason (besides upstream does it) to compile
 php5 with --without-sqlite in CentOS5 ?

I think I read that PDO has become the default for PHP... no?

# rpm -ql php-pdo
/etc/php.d/pdo.ini
/etc/php.d/pdo_sqlite.ini
/usr/lib/php/modules/pdo.so
/usr/lib/php/modules/pdo_sqlite.so

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] filesize limitation in CentOS or exim?

2009-06-30 Thread John Doe

From: Helmut Drodofsky drodof...@internet-xs.de
 today I had a surprising situation. Exim stopped.
 Reducing the size of /var/log/exim/main.log
 has solved the Problem.
 I presume it is a message of CentOS, not
 from exim. Is this correct?

Do you have a 'LogFileMaxSize' in your configuration file...?
BTW, no logrotate?

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] libgio?

2009-06-26 Thread John Doe

From: Ron Blizzard rb4cen...@gmail.com
 I'm trying to run Celtx (a screenplay formatter) in CentOS 5.3 from
 the shell. If I run celtx-bin I get the following error:
 ./celtx-bin: error while loading shared libraries: libjemalloc.so:
 cannot open shared object file: No such file or directory
 If I run celtx I get
 ./celtx-bin: error while loading shared libraries: libgio-2.0.so.0:
 cannot open shared object file: No such file or directory
 I can't find either of these files in the repositories. I find
 libgioXXX for OpenSuse and Mandriva at PBone, but not for Red Hat. I'm
 guessing these files are part of a bigger library?

yum whatprovides libjemalloc.so
For libgio... You need glib 2.2 apparently.

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] suggestions for installing CentOS 5 via USB?

2009-06-19 Thread John Doe

From: Phil Schaffner philip.r.schaff...@nasa.gov
 John Doe wrote:
 ...
  Here's how I did my USB key (minus the kickstart part) but you need a linux
 (in a VM or from the live CD)...
  And you will have to change devices names!

 Cool!  Any problems with the bug mentioned in the release notes about
 /boot being written to a USB key, or does that only happen with
 diskboot.img?

 http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.3

 When using diskboot.img to install from a USB drive, anaconda tries to
 install GRUB on the USB drive rather than on the local HDD. Removing the
 USB drive after getting into the GUI (before the partitioning section)
 works around this problem.

 Would you be interested in doing a Wiki article on this, or alternately,
 would you approve if I used your material for one?

 I already took the liberty of posting the procedure as an answer to a
 related thread on the Forum, with credit of course:

 http://www.centos.org/modules/newbb/viewtopic.php?viewmode=flattopic_id=20641forum=37

Hum, my bad... I am myself using a kickstart file and I forgot I had to use the 
following line in it (and I use HP raid controlers):

 bootloader --driveorder=cciss/c0d0,sda --location=mbr

For the kickstart, I use the following:

 In syslinux/syslinux.cfg:
  append initrd=initrd.img ks=hd:sda2:/ks.cfg method=hd:sda2:/centos

 In /media/DATA/ks.cfg (in their respective sections):
  harddrive --partition=sda2 --dir=/centos
  ignoredisk --drives=sda
  bootloader --driveorder=cciss/c0d0,sda --location=mbr

And, to be honest, I should not really get credit for this; I found most of the 
info on the web... ^_^

And I also reported earlier that:
1. My server HP does not seem to want to boot on a write protected USB key.
2. Anaconda tries to fetch the ks.cfg too early...  If, once the detection is 
over (just 2-3 seconds later), I retry, it works.
3. There is an error message cannot mount read/write, will mount read-only (I 
like to write protect)

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script help

2009-06-18 Thread John Doe

From: chloe K chloekcy2...@yahoo.ca
 I have a file. list.txt (two columns)
  
 column1column2
 nameaddress
  
 I need to put in the letter file letter.txt eg:
  
 Dear: Chloe
 Address: CA
  
 Can I use this 
  
 for i `cat list.txt` | sed 's/Chloe/$i.1; /CA/$i.2/g' $i.letter.txt

For single words space separated:

  cat list.txt | while read LINE
do
  set $LINE
  printf Dear: %s\nAddress: %s\n $1 $2  $1.letter.txt
done

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Trouble (?) reformatting flash drive to include former U3 partition

2009-06-15 Thread John Doe

From: MHR mhullr...@gmail.com
 I just got a new SanDisk 8GB flash drive, and, as usual, it came with
 the U3 software (for Windoze) on a CD partition and considerably
 less than 8GB on the disk partition.  I put it into my WinXP portable
 and told U3 to delete itself, but I still can't get at the old U3 part
 of the drive.  I've tried WinXP's format command, disk management and
 CentOS's fdisk, and nothing will give me more than 7,872,512 bytes per
 cylinder, times 1019 cylinders yields 8,022,089,728 bytes.  Is that
 right, or should there be more?  fdisk also reports that the drive has
 8029 MB, or 8029470208 bytes, which is 7,380,480 bytes difference
 (until it gets allocated into the 8,022,089,728 bytes of the
 partition) - I'm thinking this is a standard formatting loss.

Maybe there is some reserved good sectors space in order to handle (take the 
place of) bad sectors?
I don't really know how bad-sectors handling works...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] how to set ntpd listen only 127.0.0.1 ?

2009-06-12 Thread John Doe

From: MontyRee chulm...@hotmail.com
 I would like to use ntpd for time sync not rdate or ntpdate.
 but after installation the ntpd, I found that listened at all interfaces like 
 below.
 udp0  0 192.168.111.2:123   0.0.0.0:* 
   11528/ntpd
 udp0  0 xxx.xxx.62.20:123   0.0.0.0:* 
   11528/ntpd
 udp0  0 127.0.0.1:123   0.0.0.0:*  nbsp; 
 11528/ntpd
 udp0  0 0.0.0.0:123 0.0.0.0:* 
   11528/ntpd
 Is there any way or option that only listen 127.0.0.1 for security reason?

Another option would be to firewall the unwanted ports...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Any problem of auto updating using yum?

2009-06-12 Thread John Doe

From: MontyRee chulm...@hotmail.com
 My systems are centos 4.x or 5.x(i386 and x86_64) and various 
 services(apache, mysql, java, sendmail... etc..).  
 and I would like to set auto update using yum.
 But some staffs didn't agree my auto update plan, 
 because some services can be effected by auto update.
 There were no side effects just yum updating until now, 
 and it seems impossible for me to check all packages whether side effects or 
 not before updates. 
 How about your opinions about this?
 Anyone who have experienced troubles by auto update?
 Is there any good way to solve this problem?

Maybe you have to watch out for special cases like new configuration files 
(with maybe new syntax) saved as .rpmnew or the original (your) configuration 
saved as .rpmsave; and also upgrade orders like install this package before 
the rest of the update...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] PAE or use 64-bit?

2009-06-09 Thread John Doe

From: Filipe Brandenburger filbran...@gmail.com
   Which would you recommend for a 4GB+ machine?
   A 32-bit install with PAE-enabled kernel or just use 64-bit?
  If you are not doing anything that needs a 64-bit address space, then
  32-bit w/PAE will work just fine.
 Yes, but I would recommend you to go with 64-bit OS anyways.
 Even though PAE might work reasonably well if you have 4GB or 6GB or
 8GB and with your current applications, 64-bit will keep working well
 when you need to upgrade your machine to 16GB or 32GB and run
 additional applications or newer versions that need to address more
 than 4GB per process.

I also read somewhere that enabling PAE would take some of the memory away from 
some components (PCI? Bus?)...
If you have 4GB, without PAE, you get 3.3GB.  With PAE, you get 4GB.
And it seemed to mean decreased performances.
Anyone can confirm this?

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Swap priorities with swapon (Is my swap drive working?)

2009-06-05 Thread John Doe

From: James Bensley jwbens...@gmail.com
  But probably someone will come up with a small c program which eats all
  available memory :)
 I would be interested  in such a program if anyone has one or a mega
 bash script that can achive the same?

Quick, dirty and unoptimized (and barely tested, might not work past 4GB)... ^_^

- - - - - -8- - - - - - - - - - - -8- - - - - - - - - - - -8- - - - - -
#include stdio.h
#include stdlib.h

int main(int argc, char *argv[]) {

FILE *fs;
int i;
long j;
int mem_total;
int mem_free;
int mem_buffered;
int mem_cached;
int mem_to_fill;
char *megabuff[1024];

fs = fopen(/proc/meminfo, r);
fscanf(fs, %*s %d %*s\n, mem_total);
fscanf(fs, %*s %d %*s\n, mem_free);
fscanf(fs, %*s %d %*s\n, mem_buffered);
fscanf(fs, %*s %d %*s\n, mem_cached);
fclose(fs);

mem_to_fill = (mem_free+mem_buffered+mem_cached+1024)*sizeof(char);
printf(Filling %dKB...\n, mem_to_fill);
for (i=0; i1024; i++) {
if ((megabuff[i] = malloc(mem_to_fill)) == NULL) {
fprintf(stderr, malloc error...);
} else {
for (j=0; jmem_to_fill; j++) {
megabuff[i][j] = '1';
}
}
}
for (i=0; i1024; i++) {
free(megabuff[i]);
}
}

- - - - - -8- - - - - - - - - - - -8- - - - - - - - - - - -8- - - - - -

Then swapoff /dev/..; swapon /dev/... to clean...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] System V Init Script

2009-06-03 Thread John Doe

From: James Bensley jwbens...@gmail.com
 I have pasted the code below from my restart clause but from what I can 
 tell, it is killing the app but not restarting it, I think because the 
 killing process is still in action so when it start the app again it just 
 gets killed straight away. If I enter /etc/init.d/my_app restart the app 
 is terminated but does not start again, entering /etc/init.d/my_app start 
 immediately after fires it up straight away so there is no problem there; 

You kill all *my_app* processes and your init script is called... 
my_app_...?  ^_^
Also, it is easier to create functions for start, stop, etc...
Then restart = start; stop
Have a look at other init scripts.

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Help setting up USB drive

2009-05-29 Thread John Doe

From: Robert Fitzpatrick li...@webtent.net
 I have my 640GB USB drive connected to a CentOS 5 server and using
 fdisk, it seems to show a partition of the correct size, /dev/sdd1, but
 after mounting, the drive shows only 244M size. Does the message
 received when running fdisk below mean I should reformat this drive, I
 can't seemed to figure out how to do that with fdisk. Can someone tell
 me how to reformat, if needed? The drive is empty, I formatted a while
 back on a Debian machine

To reformat:
  umount /dev/sdd1
  mkfs.ext3 /dev/sdd1  (use '-c' to check for bad blocks or/and '-m 0' to get 
the max space... see the manpage)

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] 'Missing end of line'

2009-05-28 Thread John Doe

From: Anne Wilson cannewil...@googlemail.com
 For a while I've been getting this in my daily reports:
 /etc/cron.daily/logrotate:
 error: /etc/logrotate.conf:26 missing end of line
 It appears to originate from my CentOS server (though since client root mail 
 goes there I can't be certain.  The headers don't suggest client origin, to 
 me).  I've checked the logrotate.conf script and it looks OK to the untrained 
 eye.  It ends with an empty line.  Any clue as to what I should be checking?  

If you modified it, check maybe if you don't miss a '}' somewhere.
If you did not, maybe try 'rpm -V logrotate' to see it if is the original.

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] {SOLVED} Re: OT: SMART warning on hard drive, same warning for 2 1 /2 years

2009-05-26 Thread John Doe

From: Lanny Marcus lmmailingli...@gmail.com
 Thanks to everyone who replied. As Mark (MHR) wrote, I too was
 skeptical of the SMART warnings from the BIOS and when I checked on
 the Compaq Support site, a couple of years ago, I was told the Compaq
 BIOS is very sensitive and there are a lot of false warnings. However,
 after checking the bad hard drive with smartctl yesterday, I am a
 believer in SMART warnings

From what I understand, there is a max number of errors allowed before the 
warnings appear.
This max number is arbitrary I guess.
In the past, HP bioses had this max number apparently set too low.
With firmware updates, the max was raised.
So, while you were warned too early, your disk finaly reached the real max.

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Auto-installing security updates?

2009-05-20 Thread John Doe

While I am very happy with CentOS on my servers and my office workstation, I am 
using Ubuntu on my home laptop...
The main point being: with Ubuntu, everything (wireless, graphic card, etc...) 
just worked straight away.
All the other distros I tried failed on one or more aspects.
And debian package management is quite good too.
And if you want long term support, you can install the LTS versions...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] yum update freeze...

2009-05-11 Thread John Doe

Hi,

my yum update freezed on the mkinitrd (second time it happens in 5.3):

Running Transaction
  Updating   : kernel-headers  [ 1/22] 
  Updating   : viewvc  [ 2/22] 
  Updating   : sos [ 3/22] 
  Installing : kernel-devel[ 4/22] 
  Installing : kernel  [ 5/22] 

S+   \_ /usr/bin/python /usr/bin/yum update
S+   \_ /bin/sh /var/tmp/rpm-tmp.78758 2
S+   \_ /bin/bash /sbin/new-kernel-pkg --package kernel --mkinitrd 
--depmod --install 2.6.18-128.1.10.el5
S+   \_ /bin/bash --norc /sbin/mkinitrd --allow-missing -f 
/boot/initrd-2.6.18-128.1.10.el5.img 2.6.18-128.1.10.el5
S+   \_ /bin/bash --norc /sbin/mkinitrd --allow-missing -f 
/boot/initrd-2.6.18-128.1.10.el5.img 2.6.18-128.1.10.el5
D+   \_ lvm.static lvs --ignorelockingfailure --noheadings 
-o vg_name /dev/md1

I tried to strace the dead process but it did not show anything...
I tried to kill it but failed.
I interrupted yum but the lvm.static is still there...
Any idea what could be happening?
And why does it call lvm...?  I don't use lvm, just software raid1.

Thx,
JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] yum update freeze... SOLVED

2009-05-11 Thread John Doe

From: John Doe jd...@yahoo.com
 my yum update freezed on the mkinitrd (second time it happens in 5.3):

I had an old usb device that did not disconnect properly...
It is not in mtab; but there is a /dev/sdg1 phantom device...
I removed the usb_storage module and it solved the problem.

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] tool for packet detection

2009-04-30 Thread John Doe

From: Agnello George agnello.dso...@gmail.com
 I have small query, all our server are centos based 5 and 5.2 . We are 
 looking 
 ofr a tool to that measure packet loss. we have servers in two IDC's bothin 
 the US  and we are trying  to download a 2gb file from the internet. Some 
 server are able to download the file at a higher  b/w rate in one IDC 
 ...while 
 servers at he the other  IDC download the same file at a lowe b/w rate . Is 
 ther any tool to measure packet losses. 
 Thanks a lot  !   

In the mean time, ifconfig shows you the values for errors/dropped/collisions...
You can also see them in /proc/net/dev

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kickstart problems...

2009-04-29 Thread John Doe

From: John Doe jd...@yahoo.com
 4. OT: fs corruption ont he USB keys...
I copy the iso file on the key (no error message), then compare it to the 
   original and some random differences appear.

I have corruption problems with both the i386 (3.7GB) and x86_64 (4.2GB) DVD 
iso files.
But I tried the CDROM iso files instead and I don't have any corruption (even 
though they use almost the same disk space)...
Looks like there is a big files problem.

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kickstart problems...

2009-04-28 Thread John Doe

From: Fabian Arrotin fabian.arro...@arrfab.net
 John Doe wrote:
  I am creating CentOS install usb keys and, apart from a few problems, it 
 mostly works...
  1. OT: My server HP does not seem to want to boot on it if I set the write 
 protection on.
  2. Anaconda tries to fetch the ks.cfg too early...  It detects sda, then 
 detects the 
 RAID adapter, then re-detects sda with a waiting for device to settle 
 before scanning.
 Anaconda tries to access the ks.cfg file in the middle of this waiting.
 If, once the detection is over (just 2-3 seconds later), I retry, it 
  works.
  3. Error message cannot mount read/write, will mount read-only (I like to 
 write protect)
  4. OT: fs corruption ont he USB keys...
 I copy the iso file on the key (no error message), then compare it to 
  the 
 original and 
 some random differences appear. I noticed in the logs:
 ext2_new_block: Allocating block in system zone - block = 65536
 ext2_free_blocks: bit already cleared for block 88678
 ext2_free_blocks: Freeing blocks not in datazone - block = 3003818537, 
 count = 1
  Any idea how to fix 2. and 3. ?
 Is there a particular reason why you don't/can't use pxe boot and 
 fetching the ks files over the network ?

I like to have everything on the key and not have to deal with network at setup 
time.
Do you imply that fetching the ks.cfg from usb is not supposed to work?

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Reset audio controller w/o rebooting?

2009-04-28 Thread John Doe

From: Barry Brimer li...@brimer.org
 I have similar problems in CentOS 5.  I disable and enable the flash plugin in
 firefox, and it seems to be corrected.  My problem may be slightly different,
 but this is how I 'fix' the problem.

Same here, flash locks out the audio...
mplayer gives me: Can't open audio device /dev/dsp: Device or resource busy
Closing my browser fixes it...
Maybe I should try with ALSA or ESD instead of autodetect which seems to choose 
OSS...?

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kickstart problems...

2009-04-28 Thread John Doe

From: John Doe jd...@yahoo.com
 4. OT: fs corruption ont he USB keys...
I copy the iso file on the key (no error message), then compare it to the 
   original and 
some random differences appear. I noticed in the logs:
ext2_new_block: Allocating block in system zone - block = 65536
ext2_free_blocks: bit already cleared for block 88678
ext2_free_blocks: Freeing blocks not in datazone - block = 3003818537, 
count = 1

About the corruption problems, I noticed:
kernel: attempt to access beyond end of device
kernel: sdg2: rw=0, want=27039680368, limit=15746760
kernel: attempt to access beyond end of device
kernel: sdg2: rw=0, want=7948148456, limit=15746760
kernel: attempt to access beyond end of device
kernel: sdg2: rw=0, want=7948148456, limit=15746760
kernel: attempt to access beyond end of device
kernel: sdg2: rw=0, want=10942330464, limit=15746760
kernel: attempt to access beyond end of device
kernel: sdg2: rw=0, want=10942330464, limit=15746760
etc...

The limit would look correct: 15746760*512=8062341120=8GB
The usb-storage seems to have a little problem with the keys geometry...
I am not even entirely filling the key; I fill it up to 60%
It happens with 2 different (but same model) keys.

# fdisk -l /dev/sdg

Disk /dev/sdg: 8086 MB, 8086618112 bytes
249 heads, 62 sectors/track, 1023 cylinders
Units = cylinders of 15438 * 512 = 7904256 bytes

   Device Boot  Start End  Blocks   Id  System
/dev/sdg1   *   1   3   231266  FAT16
/dev/sdg2   41023 7873380   83  Linux

Do USB keys need special geometries (not a boot problem)?
Or could it be the corruption problem that was reported on the list with the 
new kernel...?

Thx,
JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] kickstart problems...

2009-04-27 Thread John Doe

Hi,

I am creating CentOS install usb keys and, apart from a few problems, it mostly 
works...
1. OT: My server HP does not seem to want to boot on it if I set the write 
protection on.
2. Anaconda tries to fetch the ks.cfg too early...  It detects sda, then 
detects the 
   RAID adapter, then re-detects sda with a waiting for device to settle 
before scanning.
   Anaconda tries to access the ks.cfg file in the middle of this waiting.
   If, once the detection is over (just 2-3 seconds later), I retry, it works.
3. Error message cannot mount read/write, will mount read-only (I like to 
write protect)
4. OT: fs corruption ont he USB keys...
   I copy the iso file on the key (no error message), then compare it to the 
original and 
   some random differences appear. I noticed in the logs:
   ext2_new_block: Allocating block in system zone - block = 65536
   ext2_free_blocks: bit already cleared for block 88678
   ext2_free_blocks: Freeing blocks not in datazone - block = 3003818537, 
count = 1
Any idea how to fix 2. and 3. ?

Thx,
JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] AllowGroup no longer a Valid option for SSHD

2009-04-24 Thread John Doe

From: Clint Dilks cli...@scms.waikato.ac.nz
 Can anyone else confirm that AllowGroup is no longer an accepted 
 configuration option for openssh-server-4.3p2-29.el5.  And is this 
 intended or should I be submitting a Bug Report ?

Are you using sshd_config or ssh_config?
man sshd_config lists AllowGroups (plural)

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] failure to install python-tools

2009-04-21 Thread John Doe

From: James A. Peltier jpelt...@fas.sfu.ca
 Anyone else having trouble when installing python-tools?
 sudo yum -y install python-tools
 Password:
 Loaded plugins: fastestmirror, priorities
 Loading mirror speeds from cached hostfile
 adobe-linux 
 |  951 B 00:00
 extras 
 |  951 B 00:00
 base 
 | 1.1 kB 00:00
 updates 
 |  951 B 00:00
 addons 
 |  951 B 00:00
 3 packages excluded due to repository priority protections
 Setting up Install Process
 Parsing package install arguments
 Resolving Dependencies
 -- Running transaction check
 --- Package python-tools.x86_64 0:2.4.3-21.el5 set to be updated
 -- Processing Dependency: python = 2.4.3-21.el5 for package: python-tools
 -- Processing Dependency: tkinter = 2.4.3-21.el5 for package: 
 python-tools
 -- Running transaction check
 --- Package python-tools.x86_64 0:2.4.3-21.el5 set to be updated
 -- Processing Dependency: python = 2.4.3-21.el5 for package: python-tools
 --- Package tkinter.x86_64 0:2.4.3-21.el5 set to be updated
 -- Processing Dependency: python = 2.4.3-21.el5 for package: tkinter
 -- Processing Dependency: libTix8.4.so()(64bit) for package: tkinter
 -- Running transaction check
 --- Package python-tools.x86_64 0:2.4.3-21.el5 set to be updated
 -- Processing Dependency: python = 2.4.3-21.el5 for package: python-tools
 --- Package tkinter.x86_64 0:2.4.3-21.el5 set to be updated
 -- Processing Dependency: python = 2.4.3-21.el5 for package: tkinter
 --- Package tix.x86_64 1:8.4.0-11.fc6 set to be updated
 -- Finished Dependency Resolution
 python-tools-2.4.3-21.el5.x86_64 from base has depsolving problems
-- Missing Dependency: python = 2.4.3-21.el5 is needed by package 
 python-tools-2.4.3-21.el5.x86_64 (base)
 tkinter-2.4.3-21.el5.x86_64 from base has depsolving problems
-- Missing Dependency: python = 2.4.3-21.el5 is needed by package 
 tkinter-2.4.3-21.el5.x86_64 (base)
 Error: Missing Dependency: python = 2.4.3-21.el5 is needed by package 
 tkinter-2.4.3-21.el5.x86_64 (base)
 Error: Missing Dependency: python = 2.4.3-21.el5 is needed by package 
 python-tools-2.4.3-21.el5.x86_64 (base)
 jpeltier48: sudo yum -y update
 Loaded plugins: fastestmirror, priorities
 Loading mirror speeds from cached hostfile
 3 packages excluded due to repository priority protections
 Setting up Update Process
 No Packages marked for Update
 jpeltier49: sudo yum -y upgrade
 Loaded plugins: fastestmirror, priorities
 Loading mirror speeds from cached hostfile
 3 packages excluded due to repository priority protections
 Setting up Upgrade Process
 No Packages marked for Update


Works for me, but I am i386 with 5.3 updates...
Maybe try yum clean all or yum makecache
Is python (2.4.3-21.el5) installed?
If not, maybe try to install it first...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: Possible for Malware against Windows boxes to attack Firefox on Linux?

2009-04-17 Thread John Doe

From: MHR mhullr...@gmail.com
  Install the FireFox extension noscript and be very careful about what
  domains you authorize scripting from.
 Is there such a thing for Seamonkey, or is this not required?  (Or is
 this a check with Mozilla question?)

http://lmgtfy.com/?q=seamonkey+noscript+pluginl=1  ;P

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Using cdrecord on CentOS

2009-04-15 Thread John Doe

From: Niki Kovacs cont...@kikinovak.net
 Now I did that for data CDs, and it works very well. I thought, normally 
 this *should* also work for audio CDs, so I gave that a spin. But 
 everytime I try it, dd stops short and gives me an Input/output error 
 for /dev/hdc.

Couldn't it be the copy protection...?

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Using cdrecord on CentOS

2009-04-15 Thread John Doe

From: Niki Kovacs cont...@kikinovak.net
  Couldn't it be the copy protection...?
 In theory, dd should also take care of copying the copy protection, 
 isn't it?

I think I am confusing with something else.
The trick they used was to put errors.  It would still play with hifi players 
(error correction codes), but would fail on PCs...
I guess it is not the case since you can listen to them on your PC.

So ignore me...  ^_^

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] What is writing to my filesystem

2009-04-10 Thread John Doe

From: jcarriz...@crutchfield.com jcarriz...@crutchfield.com
 I have a CentOS 5.2 box that every few months runs out of drivespace on
 its root filesystem. Last time I manually searched and deleted some big
 files, but don't remember what they were or what wrote to them. The
 applications I'm aware of on the box don't write to /. 
 Is there a way to find the files that get written to the most, or grow
 the most over time? Doing a df gives me a snapshot, but it seems clunky
 to keep track of the diff on that output over time. I can then see what
 processes write to them. Any other ideas on how to investigate this are
 welcome.

Do you use logrotate?
Do you use logrotate's compression?

Maybe use some kind of snapshots, like:

#!/bin/bash
find /var -type f -printf %k %p\n  /tmp/usedspace.new
if [ -f /tmp/usedspace.old ]; then
  cat /tmp/usedspace.old | while read LINE
do
  set $LINE
  OLDSIZE=$1
  OLDFILE=$2
  NEWSIZE=`grep $OLDFILE\$ /tmp/usedspace.new | cut -d   -f1`
  if [ -n $NEWSIZE -a $OLDSIZE != $NEWSIZE ]; then
echo $OLDFILE: $OLDSIZE = $NEWSIZE
  fi
done
fi
mv -f /tmp/usedspace.new /tmp/usedspace.old

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] New Centos 5.3 gnome backgroup

2009-04-08 Thread John Doe

From: Scott Silva ssi...@sgvwater.com
  Someone did a great job on the new graphic, but it is just not for me...
  Same here.
  New graphic looks nice but, for me, the high contrast on the right side 
  makes 
 the separation between (light) windows and a (dark) desktop less clear...
No body complained when the graphics were in testing and posted on the list.

So a majority of desktop users must like it...
Anyway, desktops tastes vary a lot from people to people; you cannot please 
everybody.

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Problem with browser

2009-04-08 Thread John Doe

From: Tariq Ismail Dalvi tariqda...@gmail.com
 I am using CentOS 5.2 and facing a browsing problem I had complete
 system update of 71 applications recently and after the update
 completed my system can receive emails but cannot send and cannot
 browse get error domain not found, besides ftping is working fine web
 servers are working fine how can i fix this or roll back to my
 previous configuration of system.

Do you have a caching dns?
Did you check /etc/resolv.conf?

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] vsFTPd and hidden files - standards compliant?

2009-04-07 Thread John Doe

From: Andrew Hull l...@racc2000.com
 I recently received a complaint regarding the vsFTP server I'm running 
 on a CentOS 4.x box. The complaint was that it is improperly responding 
 to the LIST command - it is not returning hidden (period prefixed) files 
 in the directory listing.

Hum... not sure if it is or not rfc compliant but, as far as I can remember (14 
years ago), ls/dir on any ftp server would never show hidden files by 
default...
Also, the rfcs are apparently extended with new options as time passes...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] service hpiod and hpssd

2009-04-07 Thread John Doe

From: Jerry Geis ge...@pagestation.com
 on booting 5.3 I see these two services hpiod and hpssd starting.
 I dont need them and tried to do chkconfig hpiod off and
 and hpiod is not found.
 How do you turn these services off?

$ rpm -qf `locate hpiod`
hplip-1.6.7-4.1.el5.4

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] New Centos 5.3 gnome backgroup

2009-04-06 Thread John Doe

 Someone did a great job on the new graphic, but it is just not for me...

Same here.
New graphic looks nice but, for me, the high contrast on the right side makes 
the separation between (light) windows and a (dark) desktop less clear...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sorting a file

2009-04-03 Thread John Doe

From: Tom Brown t...@ng23.net
 I need to find out how many times an IP address appears in a file - the 
 IP is the first field in the access log string so what would be the best 
 way to sort this file and count how many times each IP address appears ?

grep ^IP  | wc -l

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sorting a file

2009-04-03 Thread John Doe

 From: Tom Brown 
  I need to find out how many times an IP address appears in a file - the 
  IP is the first field in the access log string so what would be the best 
  way to sort this file and count how many times each IP address appears ?
 grep ^IP  | wc -l

Oops, replied too quickly... missed the 'each IP'
go for Stephen solution  ^_^

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Torrent tracker for CentOS v5.3 working properly?

2009-04-01 Thread John Doe

 Thanks for the info. Checked the tracker in my torrent-client, and it's the
 same as yours. Seems I have a possible firewall-issue on my hands here.
 OTOH, it's weird, as the one torrent works fine. Strange...

Maybe this would help:
http://www.dessent.net/btfaq/#ports

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Where's v5.3 source RPMs?

2009-04-01 Thread John Doe

From: Steve Snyder swsny...@snydernet.net
It seems that the mirrors are now all sync'd with the binary RPMs, but 
 where are the source packages?

I think I read, a few posts ago, something about source rpms being delayed a 
bit to reduce the traffic...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Where's v5.3 source RPMs?

2009-04-01 Thread John Doe

From: David Hrbáč hrbac.c...@seznam.cz
 Ralph Angenendt napsal(a):
  Coming later. Please let the mirrors handle the load of people updating
  their machines first. When the first wave of updates have gone down, the
  SRPMS will be put onto the mirrors.
 Ralph,
 I don´t like this solution. When things go wrong I want to look at the
 source. And as for now there's no reference to look at.
 David Hrbáč

Why don't you just wait until the mirors are fully in sync (srpms included)?
Waiting for a few extra hours should not be that big of a deal...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] bash_logout

2009-04-01 Thread John Doe

From: Paul A ra...@meganet.net
 Hi, I was searching for the system wide bash_logout and couldn’t
 find any documentation on it.
 If I create a file ~/.bash_logout file it gets executed when
 the user logs out but when I create a system wide /etc/bash_logout it doesn’t
 work.
 Not what the issue is since I couldn’t find anything
 on that.

The bash man page does not mention any global logout file...

FILES
   /bin/bash
  The bash executable
   /etc/profile
  The systemwide initialization file, executed for login shells
   ~/.bash_profile
  The personal initialization file, executed for login shells
   ~/.bashrc
  The individual per-interactive-shell startup file
   ~/.bash_logout
  The  individual  login shell cleanup file, executed when a login
  shell exits
   ~/.inputrc
  Individual readline initialization file

You could modify the one in /etc/skels but it would only apply to new users, 
and can be changed by them later...
Or, you could chown/chmod the ~/.bash_logout and put '. ~/.bash_logout.user' in 
it...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Where's v5.3 source RPMs?

2009-04-01 Thread John Doe

From: Ralph Angenendt ra+cen...@br-online.de
 John Doe wrote:
  Why don't you just wait until the mirors are fully in sync (srpms included)?
  Waiting for a few extra hours should not be that big of a deal...
 
 Because it will be more than a few extra hours.

Like... 6 months?
My point was that some people have already been waiting for weeks/months for 
it...
So a few hours/days won't change much.

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] tar with -N option still picking up old files

2009-03-27 Thread John Doe

From: Akemi Yagi amy...@gmail.com
 On Thu, Mar 26, 2009 at 3:16 PM, Neil Aggarwal wrote:
  Hello:
 
  I tried this command to tar up a set of data files
  updated since yesterday (The data directory contains
  multiple files with varying dates):
 
  /bin/tar -z -c -N 2009-03-25 -f /tmp/test.tgz data
 
  When I look at the content of the test.tgz file,
  it looks like it copied the content of the entire
  directory, not just the newer files.
 
  I am on CentOS 5.
 
 Try --newer-mtime instead of -N.  In my case (CentOS-4 backup
 machine), the -N option did not work as it's supposed to.  Not sure
 about tar on CentOS-5 though.

I like the distinction in the man page...

   -N, --after-date DATE, --newer DATE
  only store files newer than DATE

   --newer-mtime DATE
  like --newer, but with a DATE

Translation: --newer-mtime DATE is like --newer DATE, but with a DATE...  ^_^

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] tar with -N option still picking up old files

2009-03-27 Thread John Doe

 From: Akemi Yagi 
  On Thu, Mar 26, 2009 at 3:16 PM, Neil Aggarwal wrote:
   Hello:
  
   I tried this command to tar up a set of data files
   updated since yesterday (The data directory contains
   multiple files with varying dates):
  
   /bin/tar -z -c -N 2009-03-25 -f /tmp/test.tgz data
  
   When I look at the content of the test.tgz file,
   it looks like it copied the content of the entire
   directory, not just the newer files.
  
   I am on CentOS 5.
  
  Try --newer-mtime instead of -N.  In my case (CentOS-4 backup
  machine), the -N option did not work as it's supposed to.  Not sure
  about tar on CentOS-5 though.

Forgot to add that I just tested -N, and it works for me (tar 1.15.1)...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Server Hang

2009-03-27 Thread John Doe

From: Care India care.india.supp...@gmail.com
 I see that Physical Memory keep increasing and at one point it reaches 96%. 
 Then my sever get hang and then I have to restart it.
 I have 4 GB RAM.
 What could be the reason ?

Try 'top' and press 'M' to see the processes using the most RAM.

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] PXE-Kernel crashes with RAMDISK: incomplete write ... after modifiying initrd.img

2009-03-26 Thread John Doe

Frank Thommen wrote:
  To modify the initrd.img, I took the original CentOS 5.2 image, unpacked 
  with cpio/gunzip and replaced modules/2.6.18-92.el5/x86_64/e1000e.ko 
  with a current version.  This driver module had been created on a 
  freshly installed CentOS 5.2 host with kernel 2.6.18-92.el5 and w/o any 
  updates.  After adding the driver, I re-archived and re-packed the image 
  and replaced the initrd.img on my tftp server.
   
  The new image is considerably bigger than the old one (12 MB vs. 5.7 MB) 
  which puzzles me, as the driver file itself is 2.8 MB (compared to the 
  old e1000e.ko with ca 170 KB) but the resulting modules.cgz is only 
  around 700 KB bigger than the original one.  All files have been 
  compressed with `gzip -9`.

Just wondering... can you safely strip modules like you would strip executables?

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mmonit - Permission denied errot

2009-03-24 Thread John Doe

From: Rajagopal Swaminathan raju.rajs...@gmail.com
 As per the documentation, I dutifully typed ./bin/mmonit
 and it is refusing to run. I am running this as root and SELinux is disabled.
 ...
 (Permission denied)
 ...
 What am I missing here?

Did you check the file and directory permissions?

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [OT] Network switches

2009-03-24 Thread John Doe

One thing to remember is that you usualy get what you paid for...
I found out the hard way when my boss pushed me to buy brand XYZ PowerC... 
switches because they were a half the price of other brands/models.
It said web-managed... and it really meant web (only) managed (not even SSL 
encrypted!).
No snmp, no ssh...  Just a dumb unencrypted webpage with a few stats.
Could not even grab the web page to parse it because you could get the stats 
for 1 port at a time through an html form!
No dhcp for its management IP so, if you reactivate the management access 
(disabled it for obvious reasons), it will use a default fixed IP that will of 
course conflict with another equipment...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] help needed with DNS server

2009-03-23 Thread John Doe

From: Rudi Ahlers rudiahl...@gmail.com
 I'm setting up a DNS server on CentOS 5.2, but can't get it to listen
 to the outside IP address for DNS queries. There's no firewall
 installed yet.
 
 Here's the BIND config options:
 
 options {
 /* make named use port 53 for the source of all queries, to allow
  * firewalls to block all ports except 53:
  */
 
  query-source port 53;
 
 // Put files that named is allowed to write in the data/ directory:
 directory /var/named; // the default
 dump-file data/cache_dump.db;
 statistics-file data/named_stats.txt;
/* memstatistics-file data/named_mem_stats.txt; */
 };
 
 Yet, it only listes on 127.0.0.1
 
 What am I missing?

I think, you need to tell him on which IP to listen to...
See 'listen-on' in named.conf man page.

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Bug with cron ?

2009-03-20 Thread John Doe

From: MOKRANI Rachid rachid.mokr...@ifp.fr
 Something is strange on my system. I have a simple shell script to run
 on many computers . When I run this script by hand, everything works
 fine on all workstations.
 But if I start this script via crontab vmplayer is never install with no
 errors.
 #/usr/bin/yum -e 0 -d 0 -y remove VMware-Player.x86_64
 #/usr/bin/yum -e 0 -d 0 -y install VMware-Player-2.5.1-126130.x86_64
 #/usr/bin/vmware-networks --stop
 #/usr/bin/vmware-networks --migrate-network-settings
 /vmware/virtualmachine
 #/usr/bin/vmware-networks --start
 #/sbin/chkconfig --level 345 vmware on

When you say I run this script by hand, do you mean run the script itself or 
each line of the script as you showed above?
Did you try to redirect stdout/stderr to files to see what is going on?

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Bug with cron ?

2009-03-20 Thread John Doe

From: MOKRANI Rachid rachid.mokr...@ifp.fr
 The following script works fine on all worksation when it's start manually or 
 if 
 I run it line by line manually.
 
 If I would like to run it on crontab, the following line
 /usr/bin/yum -y install VMware-Player-2.5.1-126130.x86_64 
 not install the new release of vmplayer with no errors.

Just tested the following:

  */5 * * * * yum -y install gnome-nettool  /tmp/crontest 21

and it worked fine...
Are you sure the script is executable by the crontab user?
Try the redirects like in my example to see what is going on

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] w command about user

2009-03-20 Thread John Doe

From: chloe K chloekcy2...@yahoo.ca
 I use w command to get user is 2 users but I only have connection one
 ls any process dead? But I check other centos machine is same
 How can I check it?
 [r...@host ~]# w
  7:22:26 up 20 days, 23:20,  2 users,  load average: 0.00, 0.00, 0.00
 USER TTY  FROM  LOGIN@   IDLE   JCPU   PCPU WHAT
 chloe   pts/0dsl-203-18-20-82. 7:220.00s  0.09s  0.09s sshd: chloe 
 [priv]

Maybe try: ps au | grep  bash

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] wireshark

2009-03-20 Thread John Doe

From: Jerry Geis ge...@pagestation.com
 I did a yum -y install wireshark and it was successful.
 After the is type wireshark and nothing.
 Is there a problem with this package or am I missing something.

rpm -ql wireshark | grep bin/

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] wireshark

2009-03-20 Thread John Doe

From: John Doe jd...@yahoo.com
 From: Jerry Geis 
  I did a yum -y install wireshark and it was successful.
  After the is type wireshark and nothing.
  Is there a problem with this package or am I missing something.
 rpm -ql wireshark | grep bin/

In fact, maybe you wanted the graphical interface (which has a 'wireshark' 
binary)...
yum install wireshark-gnome

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Streaming video with Centos 5.2...how to?

2009-03-17 Thread John Doe

From: Thiago Avelino thiagoavelinos...@gmail.com
 VLS = http://www.videolan.org/doc/streaming-howto/en/
 2009/3/17 Gilbert Sebenste :
  I am a noob to streaming video, and I have a file I'd like to stream (a
  .wmv file...sorry. ;-)  ). In any case, how can I do this on my website
  using Centos 5.2 and Apache 2.2.8, rather than making people download a
  20 MB video? Can someone point me to some URL's and some software?

There is also ffserver from ffmpeg.
Or convert the video to flv and put a flashplayer on your website...
A popular one is JW FLV Media Player.

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] date differs permanent some 3450 sec.

2009-03-13 Thread John Doe

From: Helmut Drodofsky drodof...@internet-xs.de
 the date jumps within 30 seconds to a wrong value. ntp
 service is stopped at the beginning.
 [r...@kerio ~]# ntpdate 0.centos.pool.ntp.org
 13 Mar 07:04:48 ntpdate[23003]: step time server
 131.234.137.24 offset -3450.678273 sec

Not sure what is going on but maybe try ntpdate with -B...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] wodim for CentOS?

2009-03-13 Thread John Doe

From: Marcelo M. Garcia marcelo.maia.gar...@googlemail.com
 Is the wodim package available for CentOS? I can only find cdrecord.

Maybe try the fedora rpm...
http://rpmfind.net/linux/rpm2html/search.php?query=wodim

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] rm user:group

2009-03-10 Thread John Doe

From: Matt lm7...@gmail.com
 I want to remove files but only if they are owned by a certain user and group.
 Basically I have this:
 find /var/spool/greylist -mmin +363 -exec rm -f {} \;
 I want to make sure it only deletes files owned by mail.  Basically no
 matter what weird characters are in the file names I want to make sure
 it does not delete anything outside of /var/spool/greylist.  I can add
 'sudo -u' to it but then my secure log gets filled with entries but
 perhaps thats the only way to do it.

Try -user and -group

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] hplip problems - configure: error: cannot find libjpeg support

2009-03-09 Thread John Doe

From: Anne Wilson cannewil...@googlemail.com
 Thanks, John and Robert.  I installed both, and sure enough 3.9.2 ran and 
 apparently completed, but when I tried to run hp-setup it said that 
 python-dbus is not installed.  My attempts with yum have not succeeded in 
 tracking this down, so do you know how/where I get  python-dbus?  Thanks

Try dbus-python maybe...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] hplip problems - configure: error: cannot find libjpeg support

2009-03-09 Thread John Doe

  there's 
  also:
rpm -qa dbus-python\*
  to check that something is installed.
 That simply returns
 dbus-python-0.70-7.el5

In case you did not try it already, have you tried hp-check?
Did you check 
http://hplipopensource.com/hplip-web/install/manual/distros/centos.html for 
dependencies?

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] LSI Logic MegaRAID 8480 Storage controller

2009-03-09 Thread John Doe

From: drew einhorn drew.einh...@gmail.com
 When I try to delete it, it refuses and says:
This is an OS drive.  The virtual drive cannot be deleted.
 Any ideas on how to get past this problem with the MegaRAID Storage Manager,
 or pointers the better documentation, and maybe even a tutorial for the 
 MegaCLI
 interface.

Hum, is it unmounted?
If it was, maybe try to remove any partitions on it...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] problems with acl permissions changing ownership

2009-03-06 Thread John Doe

From: gerhardus.geldenh...@gta-travel.com 
gerhardus.geldenh...@gta-travel.com
 I then have a script that is run as the deployer user to checkout config
 files from svn and copies it to /etc/httpd directory in the following
 way:
 cd /tmp/versioned-config;
 cp -Rfp --backup --suffix=.$(date +%F_%T) apache/etc/ /
 
 However when I do that the ownership of the config files changes to
 deployer.deployer and it looses the special permissions...

I don't think that would be possible/secure...
That would mean that the user 'deployer' could create files owned by someone 
else...
Maybe try with something like the group sticky bit...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] hplip problems - configure: error: cannot find libjpeg support

2009-03-06 Thread John Doe

From: Anne Wilson cannewil...@googlemail.com
 I'm trying to get hplip-2.7.12 installed, and I'm reasonably sure that I had 
 it installed on this box before my problems last month.  Anyway, it will not 
 build at the moment.  It stops the Configure with configure: error: cannot 
 find libjpeg support.  However,
 warning: Missing REQUIRED dependency: libusb
 Any ideas?

Maybe you need libjpeg-devel and libusb-devel?

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] TIME_WAITs...

2009-03-02 Thread John Doe

  If I make 1 rapid connections/selects/deconnections to mysql on this 
  server, I get like 1 TW after around 3000, another TW around 6000 and 
  another TW 
  around 9000...  That makes 3 TWs only.  And they last 60 seconds...
 In your testing is the source IP the same for all with just different 
 source port?  Or are you varying your source IP as well?  I don't know 
 what spoofing smarts are in the kernel to detect SYN/ACK attacks. 

The source was the same on both servers (the one with thousands of TWs and the 
one with 3 TWs).

 Are you running Shorewall or any similar tool that will detect SYN/ACK 
 attacks and might be seeing this 'test' as an attack to limit?

No shorewall and no iptables rules.

  When I googled for it, many people were pointing to the tcp_fin_timeout 
  value 
 ...  Is it really related to TWs?
 Well, yes.  How long do you let a TW sit around waiting for a proper FIN 
 or even a RST?  Read the TCP RFC as to why there is a TW in the state 
 machine.  Boy has it been years since I cracked that one open...

I read about the connection handshake but I do not really see why setting the 
FIN_WAIT timeout would also set the TIME_WAIT timeout to the same value...  And 
I tried to set it at 30s and TWs did still last 60s.

Thx,
JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] TIME_WAITs...

2009-03-02 Thread John Doe

 I spent a bunch of time researching TIME_WAIT on linux and didn't
 find much useful information. There's a couple kernel parameters
 to change the settings though the only docs for them that I could
 find say don't touch them unless you REALLY know what your doing

Only things I found are the hardcoded values in include/net/tcp.h:

  #define TCP_TIMEWAIT_LEN (60*HZ) /* how long to wait to destroy TIME-WAIT
  * state, about 60 seconds */
  #define TCP_FIN_TIMEOUT TCP_TIMEWAIT_LEN
 /* BSD style FIN_WAIT2 deadlock breaker.
  * It used to be 3min, new value is 60sec,
  * to combine FIN-WAIT-2 timeout with
  * TIME-WAIT timer.
  */

Our issue is on the LAN side: front servers connecting to the dbs.
So I wonder if 60s is not too long for the delayed packets problem, when the 
sources and the targets are one gigabit switch away...

 The app that runs on that box is very high volume, so we get a large
 number of TIME_WAITs, during performance testing on a dual proc quad
 core we can get up to 63,000 of them.

Hum... I think I just understood why I cap around 14,000 in my tests...
cat /proc/sys/net/ipv4/ip_local_port_range 
32768   61000
(61000-32768)/2 = 14116
Could that be it?

 So IMO don't worry about time waits unless your seriously in the
 10s of thousands, at which point you may want to think about
 optimizing the traffic flow to your systems like we did with
 our load balancers.

We already use LVS+keepalived and it seems to work fine so far (except when I 
tested 1.1.16 ^_^).

Thx,
JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] cups hp-toolbox

2009-03-02 Thread John Doe

Roger Wells roger.k.we...@saic.com
 I installed a printer (HP LaserJet 4350n) via CUPS Web Interface. 
 Following this when I run hp-toolbox a dialog claiming that No 
 Installed HP Devices Found is displayed.
 This is true even when I am the root user.
 This worked as expected on RHEL4 on the same computer (Thinkpad X31) 
 with the same printer.

Maybe hp tool, is expecting CUPS 1.1.x instead of 1.2.x...?
Quite a few changes in the What's New for 1.2.

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] cups hp-toolbox

2009-03-02 Thread John Doe

  I installed a printer (HP LaserJet 4350n) via CUPS Web Interface. 
  Following this when I run hp-toolbox a dialog claiming that No 
  Installed HP Devices Found is displayed.
  This is true even when I am the root user.
  This worked as expected on RHEL4 on the same computer (Thinkpad X31) 
  with the same printer.
 
  Maybe hp tool, is expecting CUPS 1.1.x instead of 1.2.x...?
  Quite a few changes in the What's New for 1.2.

 I guess I would be a little surprised to expect  a regression like that.
 After all both CUPS and hp-toolbox are installed in CentOS 5.2 right out 
 of the box.
 I also have an HP C6180 and I think that getting past this is necessary 
 before its scanner
 will be recognized. At least the scanner is not recognized yet by the 
 CentOS Gnome Scanner Tool
 roger

Oh, it is a base package, my bad... I thought it was an external hp tool.
Maybe check 
http://hplipopensource.com/hplip-web/models/laserjet/hp_laserjet_4350.html

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] TIME_WAITs...

2009-02-27 Thread John Doe

Hi,

I was asked to check some TIME_WAITs problems (my boss thinks there should 
almost never be any) and I bumped into something strange...
All of our servers have apparently normal (in my opinion) 60s TIME_WAITs (even 
if it strangely caps around 14000 in my tests)...
But one of them behaves differently (and my boss thinks it is the normal 
behavior).
If I make 1 rapid connections/selects/deconnections to mysql on this 
server, I get like 1 TW after around 3000, another TW around 6000 and another 
TW around 9000...  That makes 3 TWs only.  And they last 60 seconds...
I am told this server was not really setup differently (no custom kernel).
All servers are CentOS 5.2, kernels 2.6.18-92.1.[22|10].el5.
I compared the values in sysctl.conf and /proc/sys/net/ipv4/* and nothing 
different.

So, am I correct in thinking that seeing thousands TWs when there was a burst 
of thousands connections is normal?
Any idea why so few TWs on this server?  Any conf file I should check?

# cat /proc/sys/net/ipv4/tcp_fin_timeout
60
# cat /proc/sys/net/ipv4/tcp_max_tw_buckets
18
# cat /proc/sys/net/ipv4/tcp_tw_recycle
0
# cat /proc/sys/net/ipv4/tcp_tw_reuse
0

When I googled for it, many people were pointing to the tcp_fin_timeout value 
...  Is it really related to TWs?

Thx,
JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Easiest way to get samba up and working for Windows users?

2009-02-27 Thread John Doe

From: Noob Centos Admin centos.ad...@gmail.com
 8. tail -f samba logs but nothing happens, it's like samba never see
 the incoming request. Note that it doesn't log anything with smbclient
 -L either.

Did you try to raise the log level (log level = 3)?

 I'm almost certain now that samba coder snuck in a devious randomizer
 that requires every single installation to only work after an random
 sequence of actions is taken. :(

But I feel your pain...  I cannot count how many days I lost on Samba+Windows 
issues...
Last one (not sure yet) was on Windows side: apparently, the nvidia service 
preventing profiles to be saved on logout...
It is a 2007 issue and apparently it still exists!

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] how can enable in mutltpath?

2009-02-27 Thread John Doe

From: Kai Schaetzl mailli...@conactive.com
 What is a google?

http://lmgtfy.com/?q=googlel=1

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] nightly rsync has started to throw errors

2009-02-27 Thread John Doe

From: Ray Leventhal cen...@swhi.net
 rsync: mkstemp
 /media/bkup320G/cprcvs/c/Projects/WindowApps/DLL/HMRControlDLL/.CMDSettingsDialog.cpp,v.I5QnaM
 failed: Read-only file system (30)
 rsync: failed to set times on
 /media/bkup320G/cprcvs/c/Projects/WindowApps/DLL/PSIControlDLL:
 Read-only file system (30)

Hum... since it works for other files
Maybe a write protected directory on the backup disk that prevents rsync to 
create a temp file, change the date or delete a file...
Login as the rsync user and try to:
  touch 
/media/bkup320G/cprcvs/c/Projects/WindowApps/DLL/HMRControlDLL/rsync.test
Then try to delete it...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Need to test serial port connection

2009-02-26 Thread John Doe

From: Anne Wilson cannewil...@googlemail.com
 I recently bought a new UPS, and I'm attempting to use nut to  monitor it.  
 Following setup instructions everything seemed to go well until it came to 
 testing the connection, which failed.
 There is just one serial connector on the computer, so I set it to 
 monitor /dev/ttyS0.   Either that is wrong, or communication is failing.  
 I've been told to try minicom to monitor it, but I'm not familiar with 
 minicom (or any similar app), so again, I may be wrong in the way I'm trying 
 to use that.  I was told that unconnecting the device, then re-connecting it 
 should give me a raft of output to the terminal - I saw nothing.
 Could someone please give me idiot-level instructions on how to tell whether 
 I'm connecting to the correct port, or whatever other information I need?

Maybe have a look at the setserial command, if you need to set/get serial 
parameters...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Keepalive...

2009-02-25 Thread John Doe

I went a bit further...

lvs1# service keepalived stop
lvs2# service keepalived stop
lvs1# service network restart
lvs2# service network restart

Clean start

lvs1# service keepalived start

Feb 25 15:03:18 lvs1 Keepalived: Starting Keepalived v1.1.16 (02/17,2009) 
Feb 25 15:03:18 lvs1 Keepalived: Starting Healthcheck child process, pid=9511
Feb 25 15:03:18 lvs1 Keepalived_healthcheckers: Using MII-BMSR NIC polling 
thread...
Feb 25 15:03:18 lvs1 Keepalived_healthcheckers: Netlink reflector reports IP 
192.168.28.226 added
Feb 25 15:03:18 lvs1 Keepalived_healthcheckers: Netlink reflector reports IP 
10.0.0.1 added
Feb 25 15:03:18 lvs1 Keepalived_healthcheckers: Registering Kernel netlink 
reflector
Feb 25 15:03:18 lvs1 Keepalived_healthcheckers: Registering Kernel netlink 
command channel
Feb 25 15:03:18 lvs1 Keepalived: Starting VRRP child process, pid=9512
Feb 25 15:03:18 lvs1 Keepalived_vrrp: Using MII-BMSR NIC polling thread...
Feb 25 15:03:18 lvs1 Keepalived_vrrp: Netlink reflector reports IP 
192.168.28.226 added
Feb 25 15:03:18 lvs1 Keepalived_vrrp: Netlink reflector reports IP 10.0.0.1 
added
Feb 25 15:03:18 lvs1 Keepalived_vrrp: Registering Kernel netlink reflector
Feb 25 15:03:18 lvs1 Keepalived_vrrp: Registering Kernel netlink command channel
Feb 25 15:03:18 lvs1 Keepalived_vrrp: Registering gratutious ARP shared channel
Feb 25 15:03:18 lvs1 Keepalived_healthcheckers: Opening file 
'/etc/keepalived/keepalived.conf'. 
Feb 25 15:03:18 lvs1 Keepalived_healthcheckers: Configuration is using : 13235 
Bytes
Feb 25 15:03:18 lvs1 Keepalived_healthcheckers: Activating healtchecker for 
service [10.0.0.11:80]
Feb 25 15:03:18 lvs1 Keepalived_healthcheckers: Activating healtchecker for 
service [10.0.0.12:80]
Feb 25 15:03:18 lvs1 Keepalived_vrrp: Opening file 
'/etc/keepalived/keepalived.conf'. 
Feb 25 15:03:18 lvs1 Keepalived_vrrp: Configuration is using : 34062 Bytes
Feb 25 15:03:18 lvs1 Keepalived_vrrp: VRRP sockpool: [ifindex(2), proto(112), 
fd(10,11)]

No VIP and no checks on the web servers...

lvs2# service keepalived start

Feb 25 15:05:23 lvs2 Keepalived: Starting Keepalived v1.1.16 (02/17,2009) 
Feb 25 15:05:23 lvs2 Keepalived_healthcheckers: Using MII-BMSR NIC polling 
thread...
Feb 25 15:05:23 lvs2 Keepalived: Starting Healthcheck child process, pid=8718
Feb 25 15:05:23 lvs2 Keepalived_vrrp: Using MII-BMSR NIC polling thread...
Feb 25 15:05:23 lvs2 Keepalived: Starting VRRP child process, pid=8719
Feb 25 15:05:23 lvs2 Keepalived_healthcheckers: Netlink reflector reports IP 
192.168.28.227 added
Feb 25 15:05:23 lvs2 Keepalived_healthcheckers: Netlink reflector reports IP 
10.0.0.2 added
Feb 25 15:05:23 lvs2 Keepalived_healthcheckers: Registering Kernel netlink 
reflector
Feb 25 15:05:23 lvs2 Keepalived_healthcheckers: Registering Kernel netlink 
command channel
Feb 25 15:05:23 lvs2 Keepalived_vrrp: Netlink reflector reports IP 
192.168.28.227 added
Feb 25 15:05:23 lvs2 Keepalived_vrrp: Netlink reflector reports IP 10.0.0.2 
added
Feb 25 15:05:23 lvs2 Keepalived_vrrp: Registering Kernel netlink reflector
Feb 25 15:05:23 lvs2 Keepalived_vrrp: Registering Kernel netlink command channel
Feb 25 15:05:23 lvs2 Keepalived_vrrp: Registering gratutious ARP shared channel
Feb 25 15:05:23 lvs2 Keepalived_healthcheckers: Opening file 
'/etc/keepalived/keepalived.conf'. 
Feb 25 15:05:23 lvs2 Keepalived_healthcheckers: Configuration is using : 13233 
Bytes
Feb 25 15:05:23 lvs2 Keepalived_healthcheckers: Activating healtchecker for 
service [10.0.0.11:80]
Feb 25 15:05:23 lvs2 Keepalived_healthcheckers: Activating healtchecker for 
service [10.0.0.12:80]
Feb 25 15:05:23 lvs2 Keepalived_vrrp: Opening file 
'/etc/keepalived/keepalived.conf'. 
Feb 25 15:05:23 lvs2 Keepalived_vrrp: Configuration is using : 34060 Bytes
Feb 25 15:05:23 lvs2 Keepalived_vrrp: VRRP_Instance(VI_1) Entering BACKUP STATE
Feb 25 15:05:23 lvs2 Keepalived_vrrp: VRRP sockpool: [ifindex(2), proto(112), 
fd(10,11)]

No VIP and only one check on the web servers...

lvs1# service keepalived stop

Feb 25 15:07:30 lvs1 Keepalived: Terminating on signal
Feb 25 15:07:30 lvs1 Keepalived: Stopping Keepalived v1.1.16 (02/17,2009) 
Feb 25 15:07:30 lvs1 Keepalived_vrrp: Terminating VRRP child process on signal
Feb 25 15:07:30 lvs1 Keepalived_healthcheckers: Terminating Healthchecker child 
process on signal

And nothing else (lvs2 does not become MASTER)...

lvs1# service keepalived start

Nothing much...

lvs2# service keepalived stop
lvs2# service keepalived start

Nothing and no checks on the web servers...

lvs1# service keepalived stop
lvs1# service keepalived start

Nothing and no checks on the web servers...

lvs1# service keepalived stop
lvs1# service keepalived start

Nothing and only one check on the web servers...
Always stuck on VRRP sockpool

By the way, a restart or a stop+restart too fast too often leads to a failed 
start with daemon is already running

lvs1# service keepalived restart

Nothing and no checks on the web servers...

lvs1# 

Re: [CentOS] Keepalive...

2009-02-25 Thread John Doe

I changed my apparently faulty nic, but it does not change anything...

I can reproduce this:

I bring down keepalived on lvs1.
Keepalived on lvs2 says it switched to MASTER but does nothing.
2 possibilities:
- If no VIP, as soon as I manualy add the VIP, everything is unlocked and he 
forward the requests...
- If there is a VIP, a ifdown+ifup of the interface linked to the web servers 
will unlock keepalived.
I bring up keepalived on lvs1, and it does not setup the VIP.
On lvs2, it says: removing protocol VIPs, but the VIP is still there.
A ifdown+ifup on lvs2 of the interface linked to the web servers will unlock 
keepalived on lvs1...
And, from times to times, it will work as expected...

One thing I really do not understand is why restarting the nic linked to the 
webservers will unlock the vrrp on the other nic...

The only thing that almost never work is the service checks...
After one check, or a few at best, they just disapear...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Keepalive...

2009-02-24 Thread John Doe

 Test setup:

   main switch (192.168.16.0/20)
 |
 eth0: 192.168.28.[226|227]
 VIP=192.168.16.123
  2 lvs/keepalived servers
 eth1: 10.0.0.[1|2]
 |
 test switch (10.0.0.0/8)
 |
   10.0.0.[11|12]
 VIP=192.168.16.123
 test servers (real servers)
192.168.16.[228|229]
 |
back to main switch

Hi again,

I stopped the servers for the week-end...  Restarted them on monday and... it 
did not work anymore.
Tried 1.1.15 as suggested, same.
So, I installed the keepalived-1.1.16-1.el5.hrb rpm David kindly built.
And, not really better.
My config more or less work... More 'less' than 'more' sadly...
I have many random problems and weird behaviors, that fix themselves after a 
few restarts/reboots, without changing anything in my conf.  And they will be 
back at the next restart...

Once, it is the vrrp stuff that do not seem to work.
I say seem because, even if tcpdump does not show any vrrp packets (it does 
other times), sometimes the backup catches the master that was brought down and 
switches to master state. And, at other times, both detects nothing at all...  
A few restarts and it works again until next failure.  And at other times, I 
can see the packets...

There were times when both would be master...

Another time, keepalive does not seem to check the webservers as regularly as 
other times.
I say again seem because, while the accesslog of my webserver does not display 
any recent entry from keepalive (hash) checks, keepalive still detects that one 
web server was brought down and that it temporarly removes it from its list...  
And I see nothing in keepalived logs about this...  Except once in a while.
By example, right now lvs1 is master, and I see only lvs2 checks in my web logs.
But if I bring down web1, lvs1 catches it and removes it until I bring it back 
up...

Another time, the arp resolution on my client for the VIP is incomplete.  
Fixed after a few restarts.
Many times, the master gets stuck on VRRP sockpool.

Each time there is a problem, I checked and both my web servers are accessible 
from the 2 lvs servers and from outside through the exit IPs 
(192.168.16.[228|229]).

Also, when I use service restart, it will fail once out of 3 times with 
Keepalived: daemon is already running...

Am I the only one having all these unstabilities?

Thx,
JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] listing files with spaces, using wildcard

2009-02-20 Thread John Doe

From: bruce bedoug...@earthlink.net
 goat a bunch of files in different dirs.. the files might have spaces
 1foo_ aa_bb_cc.dog
 2foo_aa__cc.dog
 3foo_aa_bb _ccc.dog
 4foo_aa_bb_cc.dog
 5foo_aa_bb_cc.dog
 6foo_aa_bb_cc.dog
 i'm trying to figure out how i can do a complete list of all files with
 *foo*dog
 so i get the files with spaces and underlines...
 i thought simply doing somehting like
 ls '*foo_*.dog' and surrounding the filename with single quotes would
 work.. but it doesn't.
 thoughts/pointers/etc...

If you quote, it disables the completion...

$ echo *foo_*.dog
2foo_aa__cc.dog 4foo_aa_bb_cc.dog 5foo_aa_bb_cc.dog 6foo_aa_bb_cc.dog

$ echo '*foo_*.dog'
*foo_*.dog

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Keepalive...

2009-02-20 Thread John Doe

Hi,

I've been trying to setup keepalive (vrrp) with LVS in direct routing on Centos 
5 and I am stuck...
Installed ipvsadm from the repo (had to touch /etc/sysconfig/ipvsadm because it 
complained it was missing)
Compiled keepalived-1.1.16.tar.gz

Test setup:

 main switch (192.168.16.0/20)
 |
 eth0: 192.168.28.[226|227]
   VIP=192.168.16.123
2 lvs/keepalived servers
   eth1: 10.0.0.[1|2]
 |
test switch (10.0.0.0/8)
 |
 10.0.0.[11|12]
VIP=192.168.16.123

test servers (real servers)
192.168.16.[228|229]
 |
 
back to main switch

But let's focus on the 2 lvs servers...

keepalived.conf:

global_defs {
   notification_email {
 r...@localhost
   }
   notification_email_from keepali...@lvs1.iper
   smtp_server 127.0.0.1
   smtp_connect_timeout 30
   router_id LVS_MASTER  ### BACKUP on the backup ###
}

vrrp_instance VI_1 {
state MASTER  ### BACKUP on the backup ###
interface eth0
lvs_sync_daemon_interface eth1
virtual_router_id 51
priority 100 ### 99 on the backup ###
advert_int 1
smtp_alert
virtual_ipaddress {
192.168.16.123
}
}

virtual_server 192.168.16.123 80 {
delay_loop 6
lb_algo rr
lb_kind DR
persistence_timeout 50
protocol TCP
real_server 10.0.0.11 80 {
weight 1
}
real_server 10.0.0.12 80 {
weight 1
}
sorry_server 127.0.0.1 80
}

/var/log/messages:

Feb 20 15:01:09 lvs1 Keepalived: Starting Keepalived v1.1.16 (02/19,2009) 
Feb 20 15:01:09 lvs1 Keepalived_vrrp: Using MII-BMSR NIC polling thread...
Feb 20 15:01:09 lvs1 Keepalived_vrrp: Registering Kernel netlink reflector
Feb 20 15:01:09 lvs1 Keepalived_vrrp: Registering Kernel netlink command channel
Feb 20 15:01:09 lvs1 Keepalived_vrrp: Registering gratutious ARP shared channel
Feb 20 15:01:09 lvs1 Keepalived: Starting VRRP child process, pid=19385
Feb 20 15:01:09 lvs1 Keepalived_vrrp: Opening file 
'/etc/keepalived/keepalived.conf'. 
Feb 20 15:01:09 lvs1 Keepalived_vrrp: Configuration is using : 35092 Bytes
Feb 20 15:01:09 lvs1 Keepalived_vrrp: VRRP sockpool: [ifindex(2), proto(112), 
fd(9,10)]

And that's it... no VIP showing up... no error message...
Looking at the (outdated) log example from the keepalived doc, I seem to miss 
all the parsing of the configuration.
A bit like if it was stuck in the vrrp child...

On the backup, I get these extra:
Feb 20 15:01:18 lvs2 Keepalived_vrrp: VRRP_Instance(VI_1) Entering BACKUP STATE
Feb 20 15:01:18 lvs2 Keepalived_vrrp: VRRP sockpool: [ifindex(2), proto(112), 
fd(9,10)]
Feb 20 15:01:18 lvs2 Keepalived_vrrp: Remote SMTP server [127.0.0.1:25] 
connected.
Feb 20 15:01:18 lvs2 Keepalived_vrrp: SMTP alert successfully sent.

ps auxfw:

root 19384  0.0  0.0   4796   624 ?Ss   15:01   0:00 keepalived -D
root 19385  0.0  0.1   4864  1048 ?S15:01   0:00  \_ keepalived 
-D

lvs1, no VIP:

1: lo: LOOPBACK,UP,LOWER_UP mtu 16436 qdisc noqueue 
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host 
   valid_lft forever preferred_lft forever
2: eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:04:23:9e:f3:74 brd ff:ff:ff:ff:ff:ff
inet 192.168.28.226/20 brd 192.168.31.255 scope global eth0
inet6 fe80::204:23ff:fe9e:f374/64 scope link 
   valid_lft forever preferred_lft forever
3: eth1: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc pfifo_fast qlen 100
link/ether 00:04:23:9e:f3:75 brd ff:ff:ff:ff:ff:ff
inet 10.0.0.1/8 brd 10.255.255.255 scope global eth1
inet6 fe80::204:23ff:fe9e:f375/64 scope link 
   valid_lft forever preferred_lft forever
4: sit0: NOARP mtu 1480 qdisc noop 
link/sit 0.0.0.0 brd 0.0.0.0

lvs2, no VIP:

1: lo: LOOPBACK,UP,LOWER_UP mtu 16436 qdisc noqueue 
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host 
   valid_lft forever preferred_lft forever
2: eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:04:23:b2:65:02 brd ff:ff:ff:ff:ff:ff
inet 192.168.28.227/20 brd 192.168.31.255 scope global eth0
inet6 fe80::204:23ff:feb2:6502/64 scope link 
   valid_lft forever preferred_lft forever
3: eth1: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc pfifo_fast qlen 100
link/ether 00:04:23:b2:65:03 brd ff:ff:ff:ff:ff:ff
inet 10.0.0.2/8 brd 10.255.255.255 scope global eth1
inet6 fe80::204:23ff:feb2:6503/64 scope link 
   valid_lft forever preferred_lft forever
4: sit0: NOARP mtu 1480 qdisc noop 
link/sit 0.0.0.0 brd 0.0.0.0

ipvsadm 

Re: [CentOS] Keepalive...

2009-02-20 Thread John Doe

 vrrp_instance VI_1 {
 state MASTER  ### BACKUP on the backup ###
 interface eth0
 lvs_sync_daemon_interface eth1
 virtual_router_id 51
 priority 100 ### 99 on the backup ###
 advert_int 1
 smtp_alert
 virtual_ipaddress {
 192.168.16.123
 }
 }

Suddenly, I went a bit further...
I saw a different (from the outdated doc) config on the web and tried it 
succesfully:

 virtual_ipaddress {
 192.168.16.123/32 brd 192.168.31.255 scope global
 }

And get these extra bits:

Feb 20 16:19:56 lvs1 Keepalived_vrrp: VRRP_Instance(VI_1) Transition to MASTER 
STATE
Feb 20 16:19:57 lvs1 Keepalived_vrrp: VRRP_Instance(VI_1) Entering MASTER STATE
Feb 20 16:19:57 lvs1 Keepalived_vrrp: VRRP_Instance(VI_1) setting protocol VIPs.
Feb 20 16:19:57 lvs1 Keepalived_vrrp: VRRP_Instance(VI_1) Sending gratuitous 
ARPs on eth0 for 192.168.16.123
Feb 20 16:19:57 lvs1 Keepalived_vrrp: Remote SMTP server [127.0.0.1:25] 
connected.
Feb 20 16:19:57 lvs1 Keepalived_vrrp: SMTP alert successfully sent.

2: eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:04:23:9e:f3:74 brd ff:ff:ff:ff:ff:ff
inet 192.168.28.226/20 brd 192.168.31.255 scope global eth0
inet 192.168.16.123/32 brd 192.168.31.255 scope global eth0
inet6 fe80::204:23ff:fe9e:f374/64 scope link 
   valid_lft forever preferred_lft forever

But not sure both lvs are talking vrrp to each other; tcpdump does not 
intercept anything...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Keepalive...

2009-02-20 Thread John Doe

From: Tim Verhoeven tim.verhoeven...@gmail.com
 Install keepalived from rpmforge instead of compiling your own.
 Because mostlikely your build of keepalived is without LVS support.
 (Check the output of the ./configure command to verify).
 
 I've always used the rpmforge package and it works for me.
 
 Regards,
 Tim
 
 P.S. : Dag, your keepalived package is a bit outdated. Could you update it ?

Bingo!
I did not see that it was not finding the kernel headers...

../configure

checking for kernel version... 0.0.0
configure: WARNING: Cannot determine Linux Kernel version.


I created a linux symlink and it worked out.
Tcpdump reports the VRRP mcasts.
And I can browse my web server through my VIP
Thx guys!
Now, gonna test the failover and the sorry server...

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] USB Memory Key not recognized

2009-02-19 Thread John Doe

From: James B. Byrne byrn...@harte-lyne.ca
 I have a USB meory key (Kingston) that I formally used with a
 CentOS-5.2 (32bit) system.  When I plug it into a connector slot the
 light on the key comes on but there are no entries created in /media
 and no entries made to the /var/log/messages file.

Maybe not enough power...
Can you try another USB slot?
Do you have a powered USB hub to try with it?

JD


  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


<    5   6   7   8   9   10   11   >