Re: [CentOS] weird load values

2007-12-06 Thread J. Potter
As mentioned before, IO could give such strange results. I suggest launching dstat with logging to a file, and analyzing the file afterwards. Thanks, much appreciated! This has yielded some interesting data, which I'll attempt to include a few seconds before and after one of these events

Re: [CentOS] Clustering MySQL

2007-12-11 Thread J. Potter
... But I saw a presentation at the Boston MySQL Meetup.com group about how to do master-master in mysql 5. We're about to implement this in the next few weeks. ... I've run into issues with crash recovery in master-master mode: - master A is at position X - master B, replicating from A,

Re: [CentOS] Clustering MySQL

2007-12-11 Thread J. Potter
- master A is at position X - master B, replicating from A, gets to position X - master A syncs to its filesystem that it's at position X - master A receives some inserts, and is now at position Y - master B, replicating from A, gets to position Y - master A crashes before the position ge

Re: [CentOS] Clustering MySQL

2007-12-12 Thread J Potter
After all the discussions regarding MySQL-style clustering (multi- master etc), what about a "classic" HA cluster for MySQL? Since the OP mentioned high availability, wouldn't the simplest solution be failover clustering (ie. single master with failover, shared storage, fenced nodes etc) v

[CentOS] RPM for perl-svn-notify?

2008-02-06 Thread J. Potter
Hi List, Is it possible to get an rpm built and added into the plus or dag repos for the perl module svn-notify? (Note: not the same as svn- notify-mirror.) I know it's been brought up before that perl's internal CPAN build/ install can cause serious conflicts with the rpm-based approach;

Re: [CentOS] RPM for perl-svn-notify?

2008-02-06 Thread J. Potter
... If I can't find an RPM for a Perl module on one of the third- party repositories, I usually use cpanflute2 to build an RPM, then install that. That way RPM knows all about the module and can handle it appropriately. ... Thanks, Jay! Mostly there. For some reason, the rpm file is outpu

Re: [CentOS] RPM for perl-svn-notify?

2008-02-07 Thread J. Potter
Thanks, Jay! That did it. For the record, here is what is needed to instal SVN-Notify on CentOS 5: yum -y install perl-RPM-Specfile perl-IO-Zlib rpm-build perl-rpm- build-perl perl-Module-Build perl-HTML-Parser wget 'http://search.cpan.org/CPAN/authors/id/D/DW/DWHEELER/SVN-Notify-2.66.

[CentOS] limit number of per-vhost or per-user cgi processes?

2008-02-14 Thread J. Potter
Hi List, Is there a way to limit the number of cgi processes Apache's suExec will fork for a given vhost or given user? (either solution is fine) suExec doesn't honor the /etc/security/limits.conf nproc value. mod_throttle seems to be dead; and I can't figure out if selinux might be abl

[CentOS] Is there a fix for the "sqlite cache needs updating" error?

2008-02-19 Thread J. Potter
I've been seeing the below message from yum whenever the repo has an update (CentOS 5): /etc/cron.daily/yum.cron: ** Message: sqlite cache needs updating, reading in metadata Googling a bit, it looks like others have seen this happen as well. The solutions, when I've found them, have b

Re: [CentOS] Is there a fix for the "sqlite cache needs updating" error?

2008-02-19 Thread J. Potter
** Message: sqlite cache needs updating, reading in metadata ... Is there a general solution to this? Or should we just sit tight for redhat bug #429689 to be fixed (5.2?). this is not really a bug ... it is just verbose output that causes an e-mail to be sent. It seems to be the default,

[CentOS] Newer MySQL in centos-plus?

2008-03-10 Thread J. Potter
Hi List, I'm noticing that the CentOS-plus repo for 4.6 has MySQL 5.0.54 in it, but the CentOS 5.1 repo does not have a newer rpm, leaving the "newest" easily-available version as the vendor-provided mysql 5.0.22. Is there a reason for this? We're wanting to try a newer MySQL under Cent

[CentOS] how does one remove bond1?

2007-10-20 Thread J. Potter
Hi List, We're using bonding to create bond0 with 2 NICs, and noticing that CentOS 5 2.6.18-8.1.14.el5 (and presumably older) creates bond1 as well. I'd like to remove bond1 from the system, so that our monitoring scripts don't pick it up, except for those machines that actually do have

Re: [CentOS] how does one remove bond1?

2007-10-22 Thread J. Potter
So... how does one remove bond1? Shouldn't this do the trick? rm /etc/sysconfig/network-scripts/ifcfg-bond1 One would hope... but that file doesn't exist. In fact, there is no file under /etc that contains the letters "bond1", nor any file under /etc that contains the contents "bond1".

Re: [CentOS] how does one remove bond1?

2007-10-22 Thread J. Potter
Remove the max_bonds=2 from /etc/modprobe.conf Yup, doing that removed the mystery "bond1" under /proc/net/bonding - thanks! best, Jeff ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] weird load values

2007-12-05 Thread J. Potter
Hi List, I'm stumped by this: load average: 10.65, 594.71, 526.58 We're monitoring load every ~3 minutes. It'll be fine (i.e. something like load average: 2.14, 1.27, 1.03), and then in a single sample, jump to something like the above. This seems to happen once a week or so on a

[CentOS] count of active tcp sockets?

2008-04-16 Thread J Potter
Hi List, Is there an easy way to get a count of the number of active socket connections, or even better, number of socket connections in the time_wait state? (Something lightweight... under /proc/sys/net/ipv4/? I'd like to avoid the impact of listing out all the connections a-la netstat.

Re: [CentOS] count of active tcp sockets?

2008-04-16 Thread J Potter
netstat -an|grep TIME_WAIT|wc ? I need to avoid anything that lists out all the connections -- the above would take too long if there are tens of thousands of connections. I'm hoping there's a proc entry that has a summary count of the current number of connections? -Jeff ___

[CentOS] CentOS 5.2 - /usr/sbin/httpd: double free or corruption (!prev) error

2008-07-11 Thread J Potter
Hi List, We've been seeing the following error on a CentOS 5.2 x86_64 / 2.6.18-92.1.6.el5 install (from /var/log/httpd/error): *** glibc detected *** /usr/sbin/httpd: double free or corruption (! prev): 0x2ad8ebed2d80 *** [Thu Jul 10 19:12:19 2008] [notice] child pid 5261 exit signal

Re: [CentOS] Virtual NICs (aliases like eth0:1) won't come up after reboot

2008-11-14 Thread J Potter
I found under CentOS 4 a few years ago that the OS would only bring up virtual interfaces starting with 0:0 and increasing sequentially -- if there was a gap, it would stop at that gap point. I.e.: Good: eth0, eth0:0, eth0:1, eth0:2... Bad: eth0, eth0:0, eth0:2 (system woul

Re: [CentOS] squid HA failover?

2009-02-06 Thread J Potter
Assuming server A with IP M, server B with IP N, and DNS entry X currently pointing at IP M: 1) Add heartbeat on servers A and B, with heartbeat managing a new IP address O (this is your virtual IP -- nothing to do with VRRP, that's for your routers to failover your gateway). 2) If you want

Re: [CentOS] squid HA failover?

2009-02-06 Thread J Potter
> Yes, I normally want one server handling the full load to maximize the > cache hits. But the other one should be up and running. So, active/standby. Easier config. Squid won't even be aware that heartbeat is running; just keep it running on both servers all the time. See my install notes at

Re: [CentOS] Problems with mysql multi-master after update.

2009-02-10 Thread J Potter
For what it's worth, I haven't seen this on any systems I manage when going from 5.0.22->5.0.45, which include permutations of master-slave and master-master. Is there anything useful in /var/log/mysqld.log? > after I updated from mysql-5.0.22 CentOS 5.0 to mysqld-5.0.45 in > CentOS > 5.2

Re: [CentOS] clustering and load balancing Apache

2009-02-11 Thread J Potter
Look at pound: http://www.apsis.ch/pound/ If you are concerned about traffic volume, you might consider running squid as a transparent proxy in front of pound. I.e.: request -> squid -> pound -> apache Where squid will return the response for everything marked as cacheable and still fresh;

[CentOS] general protection rip?

2009-03-06 Thread J Potter
Hi List, On one of our CentOS 5 (x64_86) servers, identical to a number of other systems, I'm seeing some processes / services failing to run, along with the following error in /var/log/messages: Mar 2 23:25:07 someHostname kernel: wrapper-linux-x[24448] general protection rip:805

Re: [CentOS] [OT] Network switches

2009-03-26 Thread J Potter
> look at HP Procurves. That is what I use. > You can get 2524's quite cheap on ebay. We used these for years, and they were great, and super cheap on EBay. HP support was fantastic as well. The 26xx series allows for "light" layer 3 routing; you may want to snag the 2626 or 2650 instead of t

Re: [CentOS] Two sets of Heartbeat HTTPD clusters on same subnet

2009-04-02 Thread J Potter
> I have successfully configure two machines to use heartbeat to cluster > httpd. The two nodes are called etk-1 and etk-2. I am trying to > configure another two machines to act as a separate cluster (on the > same IP subnet). These two nodes are called radu-1 and radu-2. We successfully do this