Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Noob Centos Admin
Hi,

> > since initially it seems like the high load may be due to I/O wait
> Maybe this will help you to identify the IO loading process:
>
>  http://dag.wieers.com/blog/red-hat-backported-io-accounting-to-rhel5

Thanks for the suggestion, I did install dstat earlier while trying to
figure things out on my own. However, I think my kernel being the
older version does not support the latest feature the website was
pointing out. Given that it's a live server not within physical touch,
I'm a little wary of doing kernel updates that might just kill it :D

I'll try other methods first and see if they help, if not, I'll
probably have to bite the bullet and do it over a weekend where I get
more time to repair any inadvertent damage.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Noob Centos Admin
 Hi,

> You should also try out "atop" instead of just using top.  The major
> advantage is that it gives you more information about the disk and
> network utilization.

Thanks for the tip, I tried it and if the red lines are any
indication, it seems that atop thinks my disks (md raid 1) are the
problem being busy over 60~70% of the time. However that is sort of
expected since most of the expected activity on the server is
smtp/pop3.

Unfortunately, I did not know about atop previously and don't have a
baseline to compare against :(
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Noob Centos Admin
Hi,


> Dstat could at least tell you if your problem is CPU or I/O.

This was the result of running the following command which I obtained
from reading up about two weeks ago when I started trying to
investigate the abnormal server behaviour.

dstat -c --top-cpu -d --top-bio --top-latency
usr sys idl wai hiq siq|  cpu process   | read  writ| latency process
  4   1  93   2   0   0|mysqld   0.0|  80k   82k|khelper 8
 42  46   0  12   0   0|httpd 12| 648k0 |ksoftirqd/0   111
 26  37  12  26   0   0|httpd1.5| 520k   11M|ksoftirqd/175
 23  49   8  19   0   0|exim 1.0| 652k   16k|ksoftirqd/044
 26  44   3  28   0   0|exim 1.0| 652k 1296k|ksoftirqd/044
 32  41   4  23   0   0|exim 1.5| 620k   16k|ksoftirqd/050
 28  52   3  16   0   0|exim 1.5| 700k0 |ksoftirqd/147
 21  41  11  28   0   0|exim 1.0| 556k   11M|ksoftirqd/079
 27  46   3  24   0   0|exim 1.5| 684k   16k|ksoftirqd/140
 29  45   2  24   0   0|exim 1.0| 672k  944k|ksoftirqd/025
 28  33   3  37   0   0|httpd 14| 852k 5992k|ksoftirqd/139
 36  39   2  23   0   0|httpd5.0|1024k0 |ksoftirqd/084


> Even better, run
>
> vmstat 2 10
>
> Look at the first two columns.  What column have higher numbers?  If r,
> you're CPU-bound.  If b, you're I/O bound.

procs ---memory-- ---swap-- -io --system--
-cpu--
 r  b   swpd   free   buff  cache   si   sobibo   in   cs us sy id wa st
 8  1   3092 131460 100692 83366800402110  4  1 92  2  0
 9  1   3092 130708 100700 83501600   578   206  577 1420 32 50  3 15  0
 7  1   3092 128324 100716 83614800   546  2866  594 1465 31 44  7 18  0
 4  1   3092 126860 100724 83726800   540   256  596 1505 28 43  6 23  0
 7  2   3092 125600 100740 83856400   620   234  661 1442 30 41  2 26  0
 5  1   3092 124028 100756 83975200   570  2692  635 1430 24 45  6 25  0
 6  0   3092 122040 100784 84096400   584  1464  682 1434 27 44  2 28  0
 6  1   3092 120588 100792 84223200   602   278  624 1562 32 46  2 20  0
 2  3   3092 120556 100840 84306400   440  2908  603 1299 22 35  6 37  0
 3  1   3092 119832 100876 84408800   430  1104  605 1348 23 36  1 40  0

According to this, am I correct to conclude that I'm CPU bound and the
system is busy doing some unknown processing?

> Did you check if you have a defect disk or a rebuilding array?  That
> could be the cause.

I usually run a "cat /proc/mdstat" whenever I log into the server to
check my MD raid status. So far the array appears ok. There are no
disk warning when I run "dmesg". smartctl also reports no error logged
and passed for both disks, although no self test was ran. Would I be
safe to conclude that the disks are OK and not part of the problem?

Thanks again to everybody for the suggestions and help so far.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Chan Chung Hang Christopher

>> Look at the first two columns.  What column have higher numbers?  If r,
>> you're CPU-bound.  If b, you're I/O bound.
> 
> procs ---memory-- ---swap-- -io --system--
> -cpu--
>  r  b   swpd   free   buff  cache   si   sobibo   in   cs us sy id wa 
> st
>  8  1   3092 131460 100692 83366800402110  4  1 92  2 
>  0
>  9  1   3092 130708 100700 83501600   578   206  577 1420 32 50  3 15 
>  0
>  7  1   3092 128324 100716 83614800   546  2866  594 1465 31 44  7 18 
>  0
>  4  1   3092 126860 100724 83726800   540   256  596 1505 28 43  6 23 
>  0
>  7  2   3092 125600 100740 83856400   620   234  661 1442 30 41  2 26 
>  0
>  5  1   3092 124028 100756 83975200   570  2692  635 1430 24 45  6 25 
>  0
>  6  0   3092 122040 100784 84096400   584  1464  682 1434 27 44  2 28 
>  0
>  6  1   3092 120588 100792 84223200   602   278  624 1562 32 46  2 20 
>  0
>  2  3   3092 120556 100840 84306400   440  2908  603 1299 22 35  6 37 
>  0
>  3  1   3092 119832 100876 84408800   430  1104  605 1348 23 36  1 40 
>  0
> 
> According to this, am I correct to conclude that I'm CPU bound and the
> system is busy doing some unknown processing?

Yes, these figures indicate that you are fairly close to being cpu bound.

What kind of filtering are you doing? If you have any connection 
tracking/state related rules set, you will need to be using a fair 
amount of cpu.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Christoph Maser
Am Donnerstag, den 31.12.2009, 12:34 +0100 schrieb Chan Chung Hang
Christopher:
> >> Look at the first two columns.  What column have higher numbers?  If r,
> >> you're CPU-bound.  If b, you're I/O bound.
> >
> > procs ---memory-- ---swap-- -io --system--
> > -cpu--
> >  r  b   swpd   free   buff  cache   si   sobibo   in   cs us sy id 
> > wa st
> >  8  1   3092 131460 100692 83366800402110  4  1 92  
> > 2  0
> >  9  1   3092 130708 100700 83501600   578   206  577 1420 32 50  3 
> > 15  0
> >  7  1   3092 128324 100716 83614800   546  2866  594 1465 31 44  7 
> > 18  0
> >  4  1   3092 126860 100724 83726800   540   256  596 1505 28 43  6 
> > 23  0
> >  7  2   3092 125600 100740 83856400   620   234  661 1442 30 41  2 
> > 26  0
> >  5  1   3092 124028 100756 83975200   570  2692  635 1430 24 45  6 
> > 25  0
> >  6  0   3092 122040 100784 84096400   584  1464  682 1434 27 44  2 
> > 28  0
> >  6  1   3092 120588 100792 84223200   602   278  624 1562 32 46  2 
> > 20  0
> >  2  3   3092 120556 100840 84306400   440  2908  603 1299 22 35  6 
> > 37  0
> >  3  1   3092 119832 100876 84408800   430  1104  605 1348 23 36  1 
> > 40  0
> >
> > According to this, am I correct to conclude that I'm CPU bound and the
> > system is busy doing some unknown processing?
>
> Yes, these figures indicate that you are fairly close to being cpu bound.


Really? 20-30% user and ~40% sys/wait look more like I/O to mee.

Chris


financial.com AG

Munich head office/Hauptsitz München: Maria-Probst-Str. 19 | 80939 München | 
Germany
Frankfurt branch office/Niederlassung Frankfurt: Messeturm | 
Friedrich-Ebert-Anlage 49 | 60327 Frankfurt | Germany
Management board/Vorstand: Dr. Steffen Boehnert | Dr. Alexis Eisenhofer | Dr. 
Yann Samson | Matthias Wiederwach
Supervisory board/Aufsichtsrat: Dr. Dr. Ernst zur Linden (chairman/Vorsitzender)
Register court/Handelsregister: Munich – HRB 128 972 | Sales tax ID 
number/St.Nr.: DE205 370 553
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Chan Chung Hang Christopher
Christoph Maser wrote:
> Am Donnerstag, den 31.12.2009, 12:34 +0100 schrieb Chan Chung Hang
> Christopher:
 Look at the first two columns.  What column have higher numbers?  If r,
 you're CPU-bound.  If b, you're I/O bound.
>>> procs ---memory-- ---swap-- -io --system--
>>> -cpu--
>>>  r  b   swpd   free   buff  cache   si   sobibo   in   cs us sy id 
>>> wa st
>>>  8  1   3092 131460 100692 83366800402110  4  1 92  
>>> 2  0
>>>  9  1   3092 130708 100700 83501600   578   206  577 1420 32 50  3 
>>> 15  0
>>>  7  1   3092 128324 100716 83614800   546  2866  594 1465 31 44  7 
>>> 18  0
>>>  4  1   3092 126860 100724 83726800   540   256  596 1505 28 43  6 
>>> 23  0
>>>  7  2   3092 125600 100740 83856400   620   234  661 1442 30 41  2 
>>> 26  0
>>>  5  1   3092 124028 100756 83975200   570  2692  635 1430 24 45  6 
>>> 25  0
>>>  6  0   3092 122040 100784 84096400   584  1464  682 1434 27 44  2 
>>> 28  0
>>>  6  1   3092 120588 100792 84223200   602   278  624 1562 32 46  2 
>>> 20  0
>>>  2  3   3092 120556 100840 84306400   440  2908  603 1299 22 35  6 
>>> 37  0
>>>  3  1   3092 119832 100876 84408800   430  1104  605 1348 23 36  1 
>>> 40  0
>>>
>>> According to this, am I correct to conclude that I'm CPU bound and the
>>> system is busy doing some unknown processing?
>> Yes, these figures indicate that you are fairly close to being cpu bound.
> 
> 
> Really? 20-30% user and ~40% sys/wait look more like I/O to mee.
> 

user accounts for processing done by processes while sys accounts for 
processing done by the kernel (like netfilter) and idle tells you what 
is left. idle numbers are below 10 and near 0, that would be what I'd 
call nearly cpu bound. If he has high idle scores and high wa scores, 
then he'd be completely i/o bound.

The last line there, he got a idle score of 1 while wa was 40 which 
indicates that even though if there is some i/o waiting, it is not 
starving the cpus.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Noob Centos Admin
Hi,

> Yes, these figures indicate that you are fairly close to being cpu bound.
>
> What kind of filtering are you doing? If you have any connection
> tracking/state related rules set, you will need to be using a fair
> amount of cpu.

Initially, when the load start going up, I had thought the APF
filtering rules were the problem since the Indian fellow is still
hammering away at the server even now. However, I've since taken the
risk of turning off APF and rely on static iptables rules, which adds
up to less than one screenful on SSH.

I also thought it might had to do with exim/spamassassin but making a
few changes to reduce the number of emails that goes to spamd doesn't
seem to be helping much.

In fact as you can see from the stats, load has gone up even further
since. I've been averaging 10+ for the whole working day. At the
moment it's between 6 to 10 when it should be at 0.3 from past months
of logs.

This is despite the fact most of my clients should be out celebrating
New Year's Eve. From weeks of logs, the Indian spammer is also a very
punctual fellow who should have knock off work about 17 minutes ago.
So there shouldn't be any heavy 'known' activities on the server at
this point.

So I'm quite stumped as to what's chewing up the CPU cycles. I am also
starting to worry if the server's been compromised and is now doing
something I don't want it to be.

I'm probably going to shutdown the mail/httpd services after midnight
when the impact is the least and see how the server reacts for a
couple of minutes with everything else cut off.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] stock openjdk vs. epel

2009-12-31 Thread Mathieu Baudier
> Still no java browser plugin for Centos?  I've been reading the web
> all night on this, getting angry.  I can't find any explanation about
> why EPEL did have a working browser plugin, but then Centos introduced
> versions of those same packages that had the plugin removed.  Not to
> mention the fact that Centos keeps the older version (b09) of
> java-1.6.0, and yet yum seems to think it is a newer version.

Java support is indeed problematic as I pointed out in a recent thread
on this list (subject "Recent Java OpenJDK RPMs").
Don't get me wrong, I appreciate that RHEL supports specific certified
Java apps, but as soon as one wants to do more (e.g. developing Java
apps using recent Eclipse versions, see [1]...), it becomes
problematic.

Regarding your issue, currently my approach is to build the latest
version locally using the IcedTea build harness:
http://icedtea.classpath.org/wiki/RhelBuildInstructions

There is still a problem with the Java plugin on x86_64 though (see
[2], not happening on i386) and I build the other plugin using the
following configure command (to be adapted with your number of CPUs):

export JAVA_HOME=/usr/lib/jvm/java-1.6.0
./configure --with-openjdk --with-parallel-jobs=4 --enable-npplugin
export JAVA_HOME=
make

However see comments #7 and following of [1] for possible problems
with this plugin. It works ok for me for what I need (but very
slowly).

There was not much reaction on [2]. I strongly suspect that this is an
issue with how the x86_64 version of xulrunner is compiled (because of
the -fPIC error message). I haven't digged further yet, since the
other plugin satisfies my need.

/usr/bin/ld:
/usr/lib64/xulrunner-sdk-1.9/sdk/lib/libxpcomglue_s.a(nsThreadUtils.o):
relocation R_X86_64_PC32 against `nsIThreadManager::COMTypeInfo::kIID' can
not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status

Anyhow, I definitely need a recent OpenJDK RPM to go in production.
That's why I posted the previous thread ("Recent Java OpenJDK RPMs"):
I know that this won't be an easy task to do it myself, so I'm first
trying to identify similar efforts.

I did not know that there had been an EPEL packaged OpenJdk.
Would you be kind enough to point me to the SRPM you found?

I'll keep the list posted on my progress.
Comments and ideas more than welcome!

Cheers,

Mathieu

[1] http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=401
[2] http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=405
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] stock openjdk vs. epel

2009-12-31 Thread m . roth
>> Still no java browser plugin for Centos?  I've been reading the web
>> all night on this, getting angry.  I can't find any explanation about
>> why EPEL did have a working browser plugin, but then Centos introduced
>> versions of those same packages that had the plugin removed.  Not to
>> mention the fact that Centos keeps the older version (b09) of
>> java-1.6.0, and yet yum seems to think it is a newer version.
>
> Java support is indeed problematic as I pointed out in a recent thread
> on this list (subject "Recent Java OpenJDK RPMs").

> Regarding your issue, currently my approach is to build the latest
> version locally using the IcedTea build harness:
> http://icedtea.classpath.org/wiki/RhelBuildInstructions

I agree with the original poster. Not having the java plugin is fine on
servers, but for users here who *do* use it as a desktop, my choices are
to either not update openjdk or install Sun's Java, which makes openjdk
pointless.

   mark

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


Re: [CentOS] stock openjdk vs. epel

2009-12-31 Thread Mathieu Baudier
> I agree with the original poster. Not having the java plugin is fine on
> servers, but for users here who *do* use it as a desktop, my choices are
> to either not update openjdk or install Sun's Java,

Indeed, installing Sun JDK is an alternative.
I already tried it with the following procedure:

sudo yum erase *gcj*
sudo yum erase *openjdk*
sudo sh jdk-6u17-linux-x64-rpm.bin

But then I had to:
sudo ln -s /usr/java/default/jre/lib/amd64/libnpjp2.so
/usr/lib64/mozilla/plugins/libnpjp2.so
in order to get the browser plugin to work (thanks to [1])

Did you face a similar issue?
Or did I do something wrong?

> which makes openjdk
> pointless.

Our policy is to use exclusively FLOSS software that we can possibly
rebuild, and are free to redistribute etc.
Especially for Java which is our main platform.
That's the point of OpenJdk for us. Unfortunately, as I put
previously, the provided implementation has blocking issues, even on
the server/headless side.

I do believe that with Java now GPL, Linux+Java can be a great platform.
But there are years of parallel development paths and, if I can put it
that way, mutual distrust, that need to be overcome.
So it is still a bit painful (but much much better than a few years ago!).

I have the feeling that Red Hat is supporting Java on the long term,
e.g. with their ownership of JBoss, and their contributions to
OpenJdk/IcedTea (for example the very interesting work of Gary Benson
on alternative architectures such as PPC, see [2]).

So I'm very excited to see how Java support will look like on RHEL/CentOS 6...

[1] 
http://blog.taragana.com/index.php/archive/how-to-install-enable-java-plugin-applets-in-firefox-on-centos-5/
[2] http://gbenson.net/
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Chan Chung Hang Christopher
Noob Centos Admin wrote:
> Hi,
> 
>> Yes, these figures indicate that you are fairly close to being cpu bound.
>>
>> What kind of filtering are you doing? If you have any connection
>> tracking/state related rules set, you will need to be using a fair
>> amount of cpu.
> 
> Initially, when the load start going up, I had thought the APF
> filtering rules were the problem since the Indian fellow is still
> hammering away at the server even now. However, I've since taken the
> risk of turning off APF and rely on static iptables rules, which adds
> up to less than one screenful on SSH.

I do not know about now but I had to unload the modules in question. 
Just clearing the rules was not enough to ensure that the netfilter 
connection tracking modules were not using any cpu at all.

> 
> I also thought it might had to do with exim/spamassassin but making a
> few changes to reduce the number of emails that goes to spamd doesn't
> seem to be helping much.
> 
> In fact as you can see from the stats, load has gone up even further
> since. I've been averaging 10+ for the whole working day. At the
> moment it's between 6 to 10 when it should be at 0.3 from past months
> of logs.
> 
> This is despite the fact most of my clients should be out celebrating
> New Year's Eve. From weeks of logs, the Indian spammer is also a very
> punctual fellow who should have knock off work about 17 minutes ago.
> So there shouldn't be any heavy 'known' activities on the server at
> this point.

/me shrugs. When I was the mta admin at Outblaze Ltd. (messaging 
business now owned by IBM and called Lotus Live) spammers always ensured 
I got called. All they do is just press the big red button (aka start 
the script/system) and then go and play while I would have to deal with 
whatever was started. I remember only one occasion when the spams were 
launched but neutralized very soon because they were pushing a website 
and I found a sample real early and so the anti spam system could just 
dump the spams and knock out accounts being used to send the crap.

> 
> So I'm quite stumped as to what's chewing up the CPU cycles. I am also
> starting to worry if the server's been compromised and is now doing
> something I don't want it to be.
> 
> I'm probably going to shutdown the mail/httpd services after midnight
> when the impact is the least and see how the server reacts for a
> couple of minutes with everything else cut off.

First, try rmmod'ing the netfilter modules after you have cleared away 
the state related rules to make sure that you are only using static 
rules in netfilter...unless you have done that already..
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Lost mdadm.conf

2009-12-31 Thread Luciano Rocha
On Thu, Dec 31, 2009 at 11:39:25AM -0400, robert mena wrote:
> Hi,
> 
> I lost my mdadm.conf (and /proc/mdadm shows nothing useful) and I'd like to
> mount the filesystem again.  So I've booted using rescue but I was wondering
> if I can do a command like this safely (i.e without losing the data
> previously stored).
> 
> mdadm -C /dev/md0 --level=raid0 --raid-devices=2 /dev/sda1 /dev/sdb1
> 
> Where of course the raid devices and the /dev/x are the correct ones

I've collected an howto somewhere from the 'net:

$ cat docs/sysadm/mdadm_recovery.txt

## define possible devices with arrays
echo 'DEVICE /dev/hd[a-l]* /dev/sd[a-l]*' > mdadm.conf

## scan
mdadm --examine --scan --config=mdadm.conf >> mdadm.conf

## review configuration, copy to /etc
cp mdadm.conf /etc/

## create devices
MAKEDEV md || { for ((i=0; i <= 31; i++)); do mknod /dev/md$i b 9 $i;
done; }

## start arrays
mdadm --assemble --scan

Best of luck,

-- 
lfr
0/0


pgpJmb6PiMVvk.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Lost mdadm.conf

2009-12-31 Thread robert mena
Hi,

I lost my mdadm.conf (and /proc/mdadm shows nothing useful) and I'd like to
mount the filesystem again.  So I've booted using rescue but I was wondering
if I can do a command like this safely (i.e without losing the data
previously stored).

mdadm -C /dev/md0 --level=raid0 --raid-devices=2 /dev/sda1 /dev/sdb1

Where of course the raid devices and the /dev/x are the correct ones
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Lost mdadm.conf

2009-12-31 Thread Joseph L. Casale
>I've collected an howto somewhere from the 'net:
>
>$ cat docs/sysadm/mdadm_recovery.txt
>
>## define possible devices with arrays
>echo 'DEVICE /dev/hd[a-l]* /dev/sd[a-l]*' > mdadm.conf
>
>## scan
>mdadm --examine --scan --config=mdadm.conf >> mdadm.conf
>
>## review configuration, copy to /etc
>cp mdadm.conf /etc/
>
>## create devices
>MAKEDEV md || { for ((i=0; i <= 31; i++)); do mknod /dev/md$i b 9 $i; done; }
>
>## start arrays
>mdadm --assemble --scan

That's a fairly limited script and out of date, I've never used mknod...

Simply:
# mdadm --detail --scan --verbose
And look it over, then:
# mdadm --detail --scan --verbose > /etc/mdadm.conf

And worry about mountpoints etc now...
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Lost mdadm.conf

2009-12-31 Thread robert mena
Hi,

it worked (kind of). Thanks.

I was able to recreate (the all appear in /proc/mdstat) and in the rescue
I've mounted the /boot which maps to /dev/md0. But I can't mount any other
partition.

they all complain with the same error

mount: Mounting /dev/mdX on /tmp/mountpoint failed: no such file or
directory


Any ideas?


On Thu, Dec 31, 2009 at 11:42 AM, Luciano Rocha wrote:

> On Thu, Dec 31, 2009 at 11:39:25AM -0400, robert mena wrote:
> > Hi,
> >
> > I lost my mdadm.conf (and /proc/mdadm shows nothing useful) and I'd like
> to
> > mount the filesystem again.  So I've booted using rescue but I was
> wondering
> > if I can do a command like this safely (i.e without losing the data
> > previously stored).
> >
> > mdadm -C /dev/md0 --level=raid0 --raid-devices=2 /dev/sda1 /dev/sdb1
> >
> > Where of course the raid devices and the /dev/x are the correct ones
>
> I've collected an howto somewhere from the 'net:
>
> $ cat docs/sysadm/mdadm_recovery.txt
>
> ## define possible devices with arrays
> echo 'DEVICE /dev/hd[a-l]* /dev/sd[a-l]*' > mdadm.conf
>
> ## scan
> mdadm --examine --scan --config=mdadm.conf >> mdadm.conf
>
> ## review configuration, copy to /etc
> cp mdadm.conf /etc/
>
> ## create devices
> MAKEDEV md || { for ((i=0; i <= 31; i++)); do mknod /dev/md$i b 9 $i;
> done; }
>
> ## start arrays
> mdadm --assemble --scan
>
> Best of luck,
>
> --
> lfr
> 0/0
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Lost mdadm.conf

2009-12-31 Thread James Bensley
2009/12/31 Luciano Rocha :
> On Thu, Dec 31, 2009 at 11:39:25AM -0400, robert mena wrote:
>> Hi,
>>
>> I lost my mdadm.conf (and /proc/mdadm shows nothing useful) and I'd like to
>> mount the filesystem again.  So I've booted using rescue but I was wondering
>> if I can do a command like this safely (i.e without losing the data
>> previously stored).
>>
>> mdadm -C /dev/md0 --level=raid0 --raid-devices=2 /dev/sda1 /dev/sdb1
>>
>> Where of course the raid devices and the /dev/x are the correct ones
>

I can't say this with 100% certainty but I would of thought that it
would been fine. I've lost my mdadm.conf (reinstalled OS) with a
separate 4 disk RAID 5 array and re-assembled the array and carried on
as if nothing had happened.

Use "sudo mdadm -E --scan" do get a list of discovered RAID devices
like this example:

ARRAY /dev/md0 level=raid0 num-devices=2 UUID=fde94900:3f3f3bf6

Pop the results in your mdadm.conf and that should sort you out after
a reboot (I think). Also try something like "sudo mdadm --assemble
/dev/md1
/dev/sdb1 /dev/sdc1" to assemble the RAID manually.

-- 
Regards,
James ;)

Pablo Picasso  - "Computers are useless. They can only give you
answers." - http://www.brainyquote.com/quotes/authors/p/pablo_picasso.html
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Lost mdadm.conf

2009-12-31 Thread James Bensley
Now you've got your array working give us a fuller picture, how many
hard drives have you got, in what configuration, how many arrays, how
many partitions, what file systems, output of "mount" command, fstab
details etc etc

-- 
Regards,
James ;)

Jonathan Swift  - "May you live every day of your life." -
http://www.brainyquote.com/quotes/authors/j/jonathan_swift.html
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] upgrade adivce

2009-12-31 Thread JohnS

On Wed, 2009-12-30 at 17:23 -0800, Corey Chandler wrote:
> William Warren wrote:
> > I have a new client that is running a fedora 4 system.  Can i upgrade 
> > that box to centos 5 with a reasonable expectation of success or should 
> > i just back it up and do it from scratch?  Also will the samba version 
> > in centos 5 natively support windows 7 clients?
> >
> > Links to tips and tricks are appreciated..:)
> >
> > Sincerely,
> > William Warren
> >   
> 
> That's so far from "supported" that I wouldn't even know WHERE to begin...

How about Dit Dit Dot Dot

> -- Corey / KB1JWQ
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos

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


Re: [CentOS] Lost mdadm.conf

2009-12-31 Thread Luciano Rocha
On Thu, Dec 31, 2009 at 12:24:23PM -0400, robert mena wrote:
> Hi,
> 
> it worked (kind of). Thanks.
> 
> I was able to recreate (the all appear in /proc/mdstat) and in the rescue
> I've mounted the /boot which maps to /dev/md0. But I can't mount any other
> partition.
> 
> they all complain with the same error
> 
> mount: Mounting /dev/mdX on /tmp/mountpoint failed: no such file or
> directory

Silly question: does /dev/md0 and /tmp/mountpoint exist?

-- 
lfr
0/0


pgpRdP8UYX9mV.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] VirtualBox and CentOS

2009-12-31 Thread JohnS

On Wed, 2009-12-30 at 20:32 -0500, fred smith wrote:
> On Wed, Dec 09, 2009 at 04:13:04PM +, Lars Hecking wrote:
> > 
> > > I tried everything in that post as well, and nothing worked for me. 
> > > Finally I found the process I laid out and it worked.
> > > 
> > > The link to it is here which is an old ticket:
> > > 
> > > 
> >  
> >  I've tested it and it works! Presumably, it might have worked in some of
> >  my previous attempts, but I only now figured out that I need to manually
> >  attach the device via device menu or USB icon. Not exactly plug and play,
> >  but workable.
> > 
> >  The mount command itself is sufficient here, no need to stop vboxdrv (or
> >  vboxnet, which doesn't exist), or chmod g+rw /dev/vboxdrv.
> > 
> >  Thanks, Max!
> 
> A late addition to this thread:
> 
> I just got an external USB drive and wanted to access it from my XP
> guest. I couldn't figure it out, but I did remember seeing this thread.
> 
> i did the steps in the first posting (or at least the first one I still
> have) and it worked. then I went to look at the virtualbox forum post
> whose URL is above. I see it has us commenting out the /proc/usb things
> in rc.sysinit. I've done that, but I assume I need to reboot to see the
> result (and I don't reboot unless forced to), but I also wonder what
> else I'm breaking by commenting out those lines. Anybody got any ideas
> on that?
---
Um, IF it still want work after one of those methods do rpm -q gparted
and if your using it you will have to remove it or rename the gparted
UDEV entry. gparted prevent automounting USB Devices.

John

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


Re: [CentOS] Lost mdadm.conf

2009-12-31 Thread Luciano Rocha
On Thu, Dec 31, 2009 at 04:23:52PM +, Joseph L. Casale wrote:
> 
> That's a fairly limited script and out of date, I've never used mknod...

Not all rescue environments have MAKEDEV or have it in $PATH, so this
should always work. ;)

-- 
lfr
0/0


pgpVfPn6gbK7v.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Lost mdadm.conf

2009-12-31 Thread robert mena
Hi,

Yes.

I have from /devmd0 to /dev/md6 (for some reason it skipped md3).

I do not have the fstab at hand but
/
/boot
and /tmp

each map to a different mdX.   I've been able to mount the /boot but no
other.

One thing, besides the /boot all the other are ext4.  Could it be a problem
with the rescue does not supporting this filesystem type.

On Thu, Dec 31, 2009 at 12:32 PM, Luciano Rocha wrote:

> On Thu, Dec 31, 2009 at 12:24:23PM -0400, robert mena wrote:
> > Hi,
> >
> > it worked (kind of). Thanks.
> >
> > I was able to recreate (the all appear in /proc/mdstat) and in the rescue
> > I've mounted the /boot which maps to /dev/md0. But I can't mount any
> other
> > partition.
> >
> > they all complain with the same error
> >
> > mount: Mounting /dev/mdX on /tmp/mountpoint failed: no such file or
> > directory
>
> Silly question: does /dev/md0 and /tmp/mountpoint exist?
>
> --
> lfr
> 0/0
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Lost mdadm.conf

2009-12-31 Thread Luciano Rocha
On Thu, Dec 31, 2009 at 12:38:51PM -0400, robert mena wrote:
> Hi,
> 
> Yes.
> 
> I have from /devmd0 to /dev/md6 (for some reason it skipped md3).
> 
> I do not have the fstab at hand but
> /
> /boot
> and /tmp
> 
> each map to a different mdX.   I've been able to mount the /boot but no
> other.
> 
> One thing, besides the /boot all the other are ext4.  Could it be a problem
> with the rescue does not supporting this filesystem type.

Yes, it could. Can you send us the output of dmesg?

-- 
lfr
0/0


pgpTEK8G65Da9.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Lost mdadm.conf

2009-12-31 Thread Joseph L. Casale
>Not all rescue environments have MAKEDEV or have it in $PATH, so this should 
>always work. ;)

Really, on my hp's as well? I don't have any /dev/hdx or /dev/sdx on the ones 
with software raid...

Nothing is easier than simply:
# mdadm --detail --scan --verbose > /etc/mdadm.conf

And that actually *does* work in all environments...
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Lost mdadm.conf

2009-12-31 Thread robert mena
Dmesg shows (for example when I tried to mount /dev/md2)

 ext4-fs: md2 : not marked OK to use with test code

On Thu, Dec 31, 2009 at 12:40 PM, Luciano Rocha wrote:

> On Thu, Dec 31, 2009 at 12:38:51PM -0400, robert mena wrote:
> > Hi,
> >
> > Yes.
> >
> > I have from /devmd0 to /dev/md6 (for some reason it skipped md3).
> >
> > I do not have the fstab at hand but
> > /
> > /boot
> > and /tmp
> >
> > each map to a different mdX.   I've been able to mount the /boot but no
> > other.
> >
> > One thing, besides the /boot all the other are ext4.  Could it be a
> problem
> > with the rescue does not supporting this filesystem type.
>
> Yes, it could. Can you send us the output of dmesg?
>
> --
> lfr
> 0/0
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [OT] CAT5 IP-capable rackmount KVM units?

2009-12-31 Thread Brian Mathis
On Wed, Dec 30, 2009 at 10:28 PM, Thomas Harold  wrote:
> Rather off-topic, but I'm looking for IP-based KVMs (~16 ports) that can
> handle both PS/2 and USB hookups on the server side.  All of the answers
> over at Slashdot are a few years out of date and it looks like prices on
> KVM head units have dropped a bit over the years.
>
> Some of the older units only worked with Windows, Internet Explorer and
> ActiveX.  Others like the ATEN KH1516i supposedly use Java and are far
> better from a cross-platform point of view.
>
> I'm on the fence about the CAT5 cables over the more traditional style,
> it seems like the CAT5 cable system would give a lot more flexibility in
> dealing with USB vs PS/2 servers (or even serial only?).  The bigger
> advantage with the CAT5 stuff seems to be fewer length limitations and
> less space used in the rack for the head unit.
>
> I'm guessing that the CAT5 adapters are going to be proprietary?


I'm using an Avocent DSR1020 and it works just fine.  The admin
console is web-based and works with Firefox, and the remote console
app is java based.  I've only used it on Windows, but I think any
system with a java install would support it.

The way it works is that you buy the main console box, and then you
buy dongles for each server that you need to control.  Dongles can be
VGA/PS2, VGA/USB, or VGA/Sun.  They probably have other too.  They all
plug into a CAT5 cable on the back of the dongle and then into the
main console unit.  The dongles are proprietary, and there's no way
you're going to get around that with any vendor.

I can't speak to CAT5 as far as length is concerned, as I'm only using
it within the space of 1 rack, but I can say it's far easier to deal
with CAT5 cables in a rack than the traditional type (very long fat
VGA cables with additional PS2/USB cables glued on).  They fit into
cable management more easily, and with a rack full of servers you save
a lot of space with thinner cables.

Overall using CAT5 is a lot easier, just don't make the mistake of
thinking that it's ethernet.  CAT5 just provides the wires, the
signaling is proprietary and would probably fry an ethernet port if
you plugged one in.  I suggest using different color cables
specifically for the KVM connections.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Lost mdadm.conf

2009-12-31 Thread James Bensley
-- Forwarded message --
From: robert mena 
Date: 2009/12/31
Subject: Re: [CentOS] Lost mdadm.conf
To: CentOS mailing list 

each map to a different mdX.   I've been able to mount the /boot but no other.
---

So have you got one RAID0 which is partitioned into /boot, /tmp, / .etc etc?

If /boot is mounting then try booting the machine normally?

-- 
Regards,
James ;)

Samuel Goldwyn  - "I don't think anyone should write their
autobiography until after they're dead." -
http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [OT] CAT5 IP-capable rackmount KVM units?

2009-12-31 Thread Daniel Bird
Thomas Harold wrote:
> Rather off-topic, but I'm looking for IP-based KVMs (~16 ports) that can 
> handle both PS/2 and USB hookups on the server side. 
I've been using the AdderView CatX series of IP KVM's for quite a while.
They are very good.
http://www.adder.com/uk/catx-kvm-switches.aspx

Remote connection is via a VNC client (java based from the CatX device
or a local install) and host connection is made via "Computer access
modules"
http://www.adder.com/uk/products/cam_ComputerAccessModule.aspx?sid=

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


Re: [CentOS] Lost mdadm.conf

2009-12-31 Thread Les Mikesell
James Bensley wrote:
> 2009/12/31 Luciano Rocha :
>> On Thu, Dec 31, 2009 at 11:39:25AM -0400, robert mena wrote:
>>> Hi,
>>>
>>> I lost my mdadm.conf (and /proc/mdadm shows nothing useful) and I'd like to
>>> mount the filesystem again.  So I've booted using rescue but I was wondering
>>> if I can do a command like this safely (i.e without losing the data
>>> previously stored).
>>>
>>> mdadm -C /dev/md0 --level=raid0 --raid-devices=2 /dev/sda1 /dev/sdb1
>>>
>>> Where of course the raid devices and the /dev/x are the correct ones
> 
> I can't say this with 100% certainty but I would of thought that it
> would been fine. I've lost my mdadm.conf (reinstalled OS) with a
> separate 4 disk RAID 5 array and re-assembled the array and carried on
> as if nothing had happened.

Yes, I thought mdadm.conf wasn't really necessary these days and if the 
partitions are type FD (autodetect) the md devices are assembled before you'd 
be 
able to read /etc anyway.  If your partitions aren't set to autodetect, you 
might be able to change that, reboot, and come up working.

> Use "sudo mdadm -E --scan" do get a list of discovered RAID devices
> like this example:
> 
> ARRAY /dev/md0 level=raid0 num-devices=2 UUID=fde94900:3f3f3bf6
> 
> Pop the results in your mdadm.conf and that should sort you out after
> a reboot (I think). Also try something like "sudo mdadm --assemble
> /dev/md1
> /dev/sdb1 /dev/sdc1" to assemble the RAID manually.

'cat /proc/mdstat' should show the status of the md devices and the partitons 
that are working so far.

-- 
   Les Mikesell
lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [OT] CAT5 IP-capable rackmount KVM units?

2009-12-31 Thread Miguel Medalha

> Overall using CAT5 is a lot easier, just don't make the mistake of
> thinking that it's ethernet.  CAT5 just provides the wires, the
> signaling is proprietary and would probably fry an ethernet port if
> you plugged one in.  I suggest using different color cables
> specifically for the KVM connections.
>

That may be true for the solution you know but certainly it is not true 
for many solutions out there. Look for "KVM over IP".

As a quick example, see this page:

http://www.lindy-usa.com/kvm/extenders-listed-by-features/kvm-over-ip/

You can even control equipment over the Internet.


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


Re: [CentOS] Lost mdadm.conf

2009-12-31 Thread robert mena
i've tried with no luck
 the problem is that a back rsync probably caused this.


On Thu, Dec 31, 2009 at 1:04 PM, James Bensley  wrote:

> -- Forwarded message --
> From: robert mena 
> Date: 2009/12/31
> Subject: Re: [CentOS] Lost mdadm.conf
> To: CentOS mailing list 
>
> each map to a different mdX.   I've been able to mount the /boot but no
> other.
> ---
>
> So have you got one RAID0 which is partitioned into /boot, /tmp, / .etc
> etc?
>
> If /boot is mounting then try booting the machine normally?
>
> --
> Regards,
> James ;)
>
> Samuel Goldwyn  - "I don't think anyone should write their
> autobiography until after they're dead." -
> http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [OT] CAT5 IP-capable rackmount KVM units?

2009-12-31 Thread Drew
> That may be true for the solution you know but certainly it is not true
> for many solutions out there. Look for "KVM over IP".
>
> As a quick example, see this page:
>
> http://www.lindy-usa.com/kvm/extenders-listed-by-features/kvm-over-ip/

Miguel,

What you're referring to is accessing the KVM box itself via IP, which
the Aten does allow. What Aten *also* does is use CAT5 cable to link
the KVM switch to various adapters which plug into the server(s). It's
the signalling on those lines that Brian was referring to, not
remotely accessing the KVM itself.


-- 
Drew

"Nothing in life is to be feared. It is only to be understood."
--Marie Curie
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Noob Centos Admin
Hi,

> I do not know about now but I had to unload the modules in question.
> Just clearing the rules was not enough to ensure that the netfilter
> connection tracking modules were not using any cpu at all.

Thanks for pointing this out. Being a noob admin as my pseudonym
states, I'd assumed stopping apf and restarting iptables was
sufficient. I'll have to look up unloading module later.

> /me shrugs. When I was the mta admin at Outblaze Ltd. (messaging
> business now owned by IBM and called Lotus Live) spammers always ensured
> I got called. All they do is just press the big red button (aka start
> the script/system) and then go and play while I would have to deal with
> whatever was started.

Based on the almost precise timing of around 9:30 to 5:30 India time,
I'm inclined to think in my case it wasn't so much a spammer pressing
a red button but a compromised machine in an office starting up when
the user gets into office and knocks off on time at 5:30 :D

> I remember only one occasion when the spams were
> launched but neutralized very soon because they were pushing a website
> and I found a sample real early and so the anti spam system could just
> dump the spams and knock out accounts being used to send the crap.

Could I ask how do I knock out the accounts sending the crap if they
are not within my systems?

> First, try rmmod'ing the netfilter modules after you have cleared away
> the state related rules to make sure that you are only using static
> rules in netfilter...unless you have done that already..

I think I'm only using static rules because after I restart iptables,
I would then do a service iptables status to check my rules were in,
and that list was very short compared to when APF was active.

The good news is, I think I've fixed the big problem after doing my
shutdown tests and returned to the original problem.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [OT] CAT5 IP-capable rackmount KVM units?

2009-12-31 Thread Miguel Medalha

> What you're referring to is accessing the KVM box itself via IP, which
> the Aten does allow. What Aten *also* does is use CAT5 cable to link
> the KVM switch to various adapters which plug into the server(s). It's
> the signalling on those lines that Brian was referring to, not
> remotely accessing the KVM itself.
>
>

Ok! Sometimes we jump to conclusions without reading carefuly. Sorry!
Thank you for the explanation.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Aide questions

2009-12-31 Thread Steve Campbell
I've got aide aide-0.13.1-4.el5 running on a server, and aide 
aide-0.13.1-2.0.4.el5 running on a similar server. There appears to have 
been a change in the way base directories are being monitored in the two 
versions. Both servers are running logical volumes, but it seems to not 
matter as I'm running aide on a server without logical volumes and the 
problem still shows up. Now the problem

On the server with the newer aide, it reports MTime and CTime changes in 
some of the base directories such as:

Directory: /root
  Mtime: 2009-12-18 09:14:02  , 2009-12-24 12:20:53
  Ctime: 2009-12-18 09:14:02  , 2009-12-24 12:20:53


Directory: /usr/bin
  Mtime: 2009-12-18 00:04:20  , 2009-12-31 00:05:08
  Ctime: 2009-12-18 00:04:20  , 2009-12-31 00:05:08

The older version of aide doesn't do this. Both aide.conf files are identical. 
I've tried entries in the conf file like the following to avoid this, but it 
seems I shouldn't have to do this:

/usr/bin$ DIR

where I've redefined DIR to not include "m" and "c". I still get reports of 
files below /usr/bin, but this avoids the changes to the directory itself 
everyday.

Does anyone have a clue how to avoid this any other way, and maybe if aide is 
doing this differently now (and why)? It's not a big deal, but I'm kinda 
believing I'm not doing it the right way.

Thanks

steve campbell


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


Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Noob Centos Admin
I initiated services shutdown as previously planned and once the
external services like exim, dovecot, httpd, crond (because it kept
restarting these services), the problem child stood out like a sore
thumb.

There was two exim instances that didn't go away despite service exim
stop. Once I killed these two PID, the load average started dropping
rapidly. After a minute or so, the server went back to a happy 0.2~0.3
load and disk activity became almost negligible.

I think these, orphaned? zombied?, exim instances were related to a
mail loop problem I discovered earlier today where one of my client on
holiday had a full mailbox and keep bouncing mails from a contact
whose site was suspended. Although I terminated that loop, it seemed
that exim had gotten those two instances stuck in limbo sucking up
processing power and hitting the disk somewhere unknown since they
weren't showing up in my exim logs.

After observing a while, I brought the services back and once exim got
started, my load went back to 2.x ~ 3.x. Unfortunately while I was
typing this email, I realize it didn't stop there. I'm up to 4.x ~ 5.x
load level by now.

So the application that is the cause of the load is definitely exim,
more specifically I think it's spam assassin because now that the mail
logs entries are slow, I can read the spamd details and mails are
taking between 3 to 8 seconds to be checked.

Thanks again to everybody who had offer suggestions and advice and do
have a Happy New Year :)


On 1/1/10, Noob Centos Admin  wrote:
> Hi,
>
>> I do not know about now but I had to unload the modules in question.
>> Just clearing the rules was not enough to ensure that the netfilter
>> connection tracking modules were not using any cpu at all.
>
> Thanks for pointing this out. Being a noob admin as my pseudonym
> states, I'd assumed stopping apf and restarting iptables was
> sufficient. I'll have to look up unloading module later.
>
>> /me shrugs. When I was the mta admin at Outblaze Ltd. (messaging
>> business now owned by IBM and called Lotus Live) spammers always ensured
>> I got called. All they do is just press the big red button (aka start
>> the script/system) and then go and play while I would have to deal with
>> whatever was started.
>
> Based on the almost precise timing of around 9:30 to 5:30 India time,
> I'm inclined to think in my case it wasn't so much a spammer pressing
> a red button but a compromised machine in an office starting up when
> the user gets into office and knocks off on time at 5:30 :D
>
>> I remember only one occasion when the spams were
>> launched but neutralized very soon because they were pushing a website
>> and I found a sample real early and so the anti spam system could just
>> dump the spams and knock out accounts being used to send the crap.
>
> Could I ask how do I knock out the accounts sending the crap if they
> are not within my systems?
>
>> First, try rmmod'ing the netfilter modules after you have cleared away
>> the state related rules to make sure that you are only using static
>> rules in netfilter...unless you have done that already..
>
> I think I'm only using static rules because after I restart iptables,
> I would then do a service iptables status to check my rules were in,
> and that list was very short compared to when APF was active.
>
> The good news is, I think I've fixed the big problem after doing my
> shutdown tests and returned to the original problem.
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] stock openjdk vs. epel

2009-12-31 Thread Paul Johnson
On Thu, Dec 31, 2009 at 8:14 AM,   wrote:
>>> Still no java browser plugin for Centos?  I've been reading the web
>>> all night on this, getting angry.  I can't find any explanation about
>>> why EPEL did have a working browser plugin, but then Centos introduced
>>> versions of those same packages that had the plugin removed.  Not to
>>> mention the fact that Centos keeps the older version (b09) of
>>> java-1.6.0, and yet yum seems to think it is a newer version.

> I agree with the original poster. Not having the java plugin is fine on
> servers, but for users here who *do* use it as a desktop, my choices are
> to either not update openjdk or install Sun's Java, which makes openjdk
> pointless.
>
>       mark
>

As luck would have it, I have copies of the java-1.6.0 b12 EPEL RPMS
that were offered before Centos added java-1.6.0 b09 as an "upgrade"
on my home page.

The SRPM is here

http://pj.freefaculty.org/Centos/5/i386/epel-source/packages

And the RPMS EPEL had offered are here

http://pj.freefaculty.org/Centos/5/i386/epel/packages

The RedHat/Centos version b09 is heavily patched for some security
things and also to disable the plugin (why??).  The Epel version is
b12, newer, but not so security patched.


-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [OT] CAT5 IP-capable rackmount KVM units?

2009-12-31 Thread John R Pierce
Thomas Harold wrote:
> Rather off-topic, but I'm looking for IP-based KVMs (~16 ports) that can 
> handle both PS/2 and USB hookups on the server side.  All of the answers 
> over at Slashdot are a few years out of date and it looks like prices on 
> KVM head units have dropped a bit over the years.
>   


my suggestion?   get servers with an integrated TCP KVM, like Dell's 
DRAC, or HP's iLO (for which you need to spend $150 or so extra to 
enable 'advanced iLO'), and be done with it.   not only KVM but virtual 
CD/DVD for installing, troubleshooting.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Noob Centos Admin
Just an concluding update to anybody who might be interested :)

My apologies for blaming spamassassin in the earlier email. It was
taking so long because of the real problem.

Apparently the odd exim processes that was related to the mail loop
problem I nipped was still the culprit. I had overlooked the fact that
by the time I caught onto the mail loop issue, there were actually
hundreds if not thousands of bounced and rebounced messages in the
queue already. Attempting to deliver these messages queued before I
terminated the mail loop was what those exim processes were trying to
do.

This would had been ok if not for the other problem. The user
apparently went on 2 week vacation since 15th and thought it was a
good idea to enlarge his mailbox before doing so. So there was this
2.5GB mailbox choked full of both valid & rebounced mails, plus the
queue of more rebounced mails. So every time exim attempted to add the
queued mails to the user's account, the quota system rejected it. The
cpu load was probably due to this never ending ping pong match between
exim and the quota.

Yeah, I can't help but feel this must be such a noob mistake allowing
that to develop without realizing it.

Now that I've purged the queue of those bounced messages and other
housekeeping for that user, server load has finally gone back to the
expected sub 1.0 levels so I can finally go and enjoy my holiday :)



On 1/1/10, Noob Centos Admin  wrote:
> I initiated services shutdown as previously planned and once the
> external services like exim, dovecot, httpd, crond (because it kept
> restarting these services), the problem child stood out like a sore
> thumb.
>
> There was two exim instances that didn't go away despite service exim
> stop. Once I killed these two PID, the load average started dropping
> rapidly. After a minute or so, the server went back to a happy 0.2~0.3
> load and disk activity became almost negligible.
>
> I think these, orphaned? zombied?, exim instances were related to a
> mail loop problem I discovered earlier today where one of my client on
> holiday had a full mailbox and keep bouncing mails from a contact
> whose site was suspended. Although I terminated that loop, it seemed
> that exim had gotten those two instances stuck in limbo sucking up
> processing power and hitting the disk somewhere unknown since they
> weren't showing up in my exim logs.
>
> After observing a while, I brought the services back and once exim got
> started, my load went back to 2.x ~ 3.x. Unfortunately while I was
> typing this email, I realize it didn't stop there. I'm up to 4.x ~ 5.x
> load level by now.
>
> So the application that is the cause of the load is definitely exim,
> more specifically I think it's spam assassin because now that the mail
> logs entries are slow, I can read the spamd details and mails are
> taking between 3 to 8 seconds to be checked.
>
> Thanks again to everybody who had offer suggestions and advice and do
> have a Happy New Year :)
>
>
> On 1/1/10, Noob Centos Admin  wrote:
>> Hi,
>>
>>> I do not know about now but I had to unload the modules in question.
>>> Just clearing the rules was not enough to ensure that the netfilter
>>> connection tracking modules were not using any cpu at all.
>>
>> Thanks for pointing this out. Being a noob admin as my pseudonym
>> states, I'd assumed stopping apf and restarting iptables was
>> sufficient. I'll have to look up unloading module later.
>>
>>> /me shrugs. When I was the mta admin at Outblaze Ltd. (messaging
>>> business now owned by IBM and called Lotus Live) spammers always ensured
>>> I got called. All they do is just press the big red button (aka start
>>> the script/system) and then go and play while I would have to deal with
>>> whatever was started.
>>
>> Based on the almost precise timing of around 9:30 to 5:30 India time,
>> I'm inclined to think in my case it wasn't so much a spammer pressing
>> a red button but a compromised machine in an office starting up when
>> the user gets into office and knocks off on time at 5:30 :D
>>
>>> I remember only one occasion when the spams were
>>> launched but neutralized very soon because they were pushing a website
>>> and I found a sample real early and so the anti spam system could just
>>> dump the spams and knock out accounts being used to send the crap.
>>
>> Could I ask how do I knock out the accounts sending the crap if they
>> are not within my systems?
>>
>>> First, try rmmod'ing the netfilter modules after you have cleared away
>>> the state related rules to make sure that you are only using static
>>> rules in netfilter...unless you have done that already..
>>
>> I think I'm only using static rules because after I restart iptables,
>> I would then do a service iptables status to check my rules were in,
>> and that list was very short compared to when APF was active.
>>
>> The good news is, I think I've fixed the big problem after doing my
>> shutdown tests and returned to the original problem.
>>
>

Re: [CentOS] [OT] CAT5 IP-capable rackmount KVM units?

2009-12-31 Thread Brian Mathis
On Thu, Dec 31, 2009 at 3:11 PM, John R Pierce  wrote:
> Thomas Harold wrote:
>> Rather off-topic, but I'm looking for IP-based KVMs (~16 ports) that can
>> handle both PS/2 and USB hookups on the server side.  All of the answers
>> over at Slashdot are a few years out of date and it looks like prices on
>> KVM head units have dropped a bit over the years.
>>
>
> my suggestion?   get servers with an integrated TCP KVM, like Dell's
> DRAC, or HP's iLO (for which you need to spend $150 or so extra to
> enable 'advanced iLO'), and be done with it.   not only KVM but virtual
> CD/DVD for installing, troubleshooting.

Yup, that's the best way, but for older servers it's hard to add them,
so a remote KVM and a remote power switch is sometimes the best you
can do.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Lost mdadm.conf

2009-12-31 Thread robert mena
the problem was with the rescue image. i've booted from a new disk with a
regular Os install and managed to mount the raid partitions.

On Thu, Dec 31, 2009 at 12:43 PM, robert mena  wrote:

> Dmesg shows (for example when I tried to mount /dev/md2)
>
>  ext4-fs: md2 : not marked OK to use with test code
>
> On Thu, Dec 31, 2009 at 12:40 PM, Luciano Rocha wrote:
>
>> On Thu, Dec 31, 2009 at 12:38:51PM -0400, robert mena wrote:
>> > Hi,
>> >
>> > Yes.
>> >
>> > I have from /devmd0 to /dev/md6 (for some reason it skipped md3).
>> >
>> > I do not have the fstab at hand but
>> > /
>> > /boot
>> > and /tmp
>> >
>> > each map to a different mdX.   I've been able to mount the /boot but no
>> > other.
>> >
>> > One thing, besides the /boot all the other are ext4.  Could it be a
>> problem
>> > with the rescue does not supporting this filesystem type.
>>
>> Yes, it could. Can you send us the output of dmesg?
>>
>> --
>> lfr
>> 0/0
>>
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> http://lists.centos.org/mailman/listinfo/centos
>>
>>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] stock openjdk vs. epel

2009-12-31 Thread R P Herrold
On Thu, 31 Dec 2009, Mathieu Baudier wrote:

> I do believe that with Java now GPL, Linux+Java can be a great platform.
> But there are years of parallel development paths and, if I can put it
> that way, mutual distrust, that need to be overcome.
> So it is still a bit painful (but much much better than a few years ago!).

A partial Java implementation, mostly GPLv2 -- see the 
""CLASSPATH" EXCEPTION TO THE GPL" in the License file; 
lacking in a FOSS conformance testing suite needed to 
permit reproduceable testing of the result

It's not there yet; Sun's future is up in the air, and given 
the pushback on the Innodb (prior Oracle acquisition, left to 
largely rot since) backend / MySQL 'merger hold' concerns by 
the EU's anti-trust review organ, it remains to be seen if 
this will turn out well.

See also this post:
http://jeremy.zawodny.com/blog/archives/011481.html
by a rather prominent former Yahooian/MySQL maven

Ellison trotting the penguins out on the stage and being 
tossed a softball question by the then-most prominent MSFT 
covering analyst at Goldman Sachs, showed him as 'gaming' 
Linux.  Have you seen a lot of good and community oriented 
support of OEL 2 out there since ORCL started using some 
un-modified CentOS images in their SRPM rebuild efforts?

my $0.02

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


Re: [CentOS] [OT] CAT5 IP-capable rackmount KVM units?

2009-12-31 Thread Benjamin Donnachie
2009/12/31 Brian Mathis :
> I'm using an Avocent DSR1020 and it works just fine.

I'm quite happy with Avocent kit, but haven't tried it from non-IE browsers yet.

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


Re: [CentOS] Find reason for heavy load

2009-12-31 Thread Ugo Bellavance
On 2009-12-31 15:13, Noob Centos Admin wrote:
> Just an concluding update to anybody who might be interested :)
>
> My apologies for blaming spamassassin in the earlier email. It was
> taking so long because of the real problem.
>
> Apparently the odd exim processes that was related to the mail loop
> problem I nipped was still the culprit. I had overlooked the fact that
> by the time I caught onto the mail loop issue, there were actually
> hundreds if not thousands of bounced and rebounced messages in the
> queue already. Attempting to deliver these messages queued before I
> terminated the mail loop was what those exim processes were trying to
> do.
>
> This would had been ok if not for the other problem. The user
> apparently went on 2 week vacation since 15th and thought it was a
> good idea to enlarge his mailbox before doing so. So there was this
> 2.5GB mailbox choked full of both valid&  rebounced mails, plus the
> queue of more rebounced mails. So every time exim attempted to add the
> queued mails to the user's account, the quota system rejected it. The
> cpu load was probably due to this never ending ping pong match between
> exim and the quota.
>
> Yeah, I can't help but feel this must be such a noob mistake allowing
> that to develop without realizing it.
>
> Now that I've purged the queue of those bounced messages and other
> housekeeping for that user, server load has finally gone back to the
> expected sub 1.0 levels so I can finally go and enjoy my holiday :)
>
>
>
> On 1/1/10, Noob Centos Admin  wrote:
>> I initiated services shutdown as previously planned and once the
>> external services like exim, dovecot, httpd, crond (because it kept
>> restarting these services), the problem child stood out like a sore
>> thumb.
>>
>> There was two exim instances that didn't go away despite service exim
>> stop. Once I killed these two PID, the load average started dropping
>> rapidly. After a minute or so, the server went back to a happy 0.2~0.3
>> load and disk activity became almost negligible.
>>
>> I think these, orphaned? zombied?, exim instances were related to a
>> mail loop problem I discovered earlier today where one of my client on
>> holiday had a full mailbox and keep bouncing mails from a contact
>> whose site was suspended. Although I terminated that loop, it seemed
>> that exim had gotten those two instances stuck in limbo sucking up
>> processing power and hitting the disk somewhere unknown since they
>> weren't showing up in my exim logs.
>>
>> After observing a while, I brought the services back and once exim got
>> started, my load went back to 2.x ~ 3.x. Unfortunately while I was
>> typing this email, I realize it didn't stop there. I'm up to 4.x ~ 5.x
>> load level by now.
>>
>> So the application that is the cause of the load is definitely exim,
>> more specifically I think it's spam assassin because now that the mail
>> logs entries are slow, I can read the spamd details and mails are
>> taking between 3 to 8 seconds to be checked.
>>
>> Thanks again to everybody who had offer suggestions and advice and do
>> have a Happy New Year :)
>>
>>
>> On 1/1/10, Noob Centos Admin  wrote:
>>> Hi,
>>>
 I do not know about now but I had to unload the modules in question.
 Just clearing the rules was not enough to ensure that the netfilter
 connection tracking modules were not using any cpu at all.
>>>
>>> Thanks for pointing this out. Being a noob admin as my pseudonym
>>> states, I'd assumed stopping apf and restarting iptables was
>>> sufficient. I'll have to look up unloading module later.
>>>
 /me shrugs. When I was the mta admin at Outblaze Ltd. (messaging
 business now owned by IBM and called Lotus Live) spammers always ensured
 I got called. All they do is just press the big red button (aka start
 the script/system) and then go and play while I would have to deal with
 whatever was started.
>>>
>>> Based on the almost precise timing of around 9:30 to 5:30 India time,
>>> I'm inclined to think in my case it wasn't so much a spammer pressing
>>> a red button but a compromised machine in an office starting up when
>>> the user gets into office and knocks off on time at 5:30 :D
>>>
 I remember only one occasion when the spams were
 launched but neutralized very soon because they were pushing a website
 and I found a sample real early and so the anti spam system could just
 dump the spams and knock out accounts being used to send the crap.
>>>
>>> Could I ask how do I knock out the accounts sending the crap if they
>>> are not within my systems?
>>>
 First, try rmmod'ing the netfilter modules after you have cleared away
 the state related rules to make sure that you are only using static
 rules in netfilter...unless you have done that already..
>>>
>>> I think I'm only using static rules because after I restart iptables,
>>> I would then do a service iptables status to check my rules were in,
>>> and that list was very short c

Re: [CentOS] stock openjdk vs. epel

2009-12-31 Thread Les Mikesell
Mathieu Baudier wrote:
>
> I do believe that with Java now GPL, Linux+Java can be a great platform.
> But there are years of parallel development paths and, if I can put it
> that way, mutual distrust, that need to be overcome.
> So it is still a bit painful (but much much better than a few years ago!).
> 
> I have the feeling that Red Hat is supporting Java on the long term,
> e.g. with their ownership of JBoss, and their contributions to
> OpenJdk/IcedTea (for example the very interesting work of Gary Benson
> on alternative architectures such as PPC, see [2]).

Given that it could have been trivial to include Sun Java ages ago, or at least 
not intentionally break the jpackage installation methods, I think Red Hat has 
done more damage to java than any other company and don't see that turning 
around even if they try at this late date.

-- 
   Les Mikesell
lesmikes...@gmail.com

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


Re: [CentOS] stock openjdk vs. epel

2009-12-31 Thread John R Pierce
Les Mikesell wrote:
> Given that it could have been trivial to include Sun Java ages ago, or at 
> least 
> not intentionally break the jpackage installation methods, I think Red Hat 
> has 
> done more damage to java than any other company and don't see that turning 
> around even if they try at this late date.
>   

no, it wasn't trivial due to primarily licensing reasons.  
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] DRBD error : Invalid module format

2009-12-31 Thread robert mena
Hi,

I am trying to use drbd in my centos 5.4 but I keep getting errors.

When I try modprobe -v drbd I receive

insmod /lib/modules/2.6.18-164.el5PAE/extra/drbd/drbd.ko
FATAL: Error inserting drbd
(/lib/modules/2.6.18-164.el5PAE/extra/drbd/drbd.ko): Invalid module format.

The current (running) kernel is 2.6.18-164.el5PAE

kmod-drbd-8.0.16-5.el5_3
drbd-8.0.16-5.el5.centos

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


Re: [CentOS] DRBD error : Invalid module format

2009-12-31 Thread Akemi Yagi
On Thu, Dec 31, 2009 at 1:45 PM, robert mena  wrote:
> Hi,
> I am trying to use drbd in my centos 5.4 but I keep getting errors.
> When I try modprobe -v drbd I receive
> insmod /lib/modules/2.6.18-164.el5PAE/extra/drbd/drbd.ko
> FATAL: Error inserting drbd
> (/lib/modules/2.6.18-164.el5PAE/extra/drbd/drbd.ko): Invalid module format.
> The current (running) kernel is 2.6.18-164.el5PAE
> kmod-drbd-8.0.16-5.el5_3
> drbd-8.0.16-5.el5.centos
> Any tips?

You are running a PAE kernel. So, you need kmod-drbd-PAE, not kmod-drbd.

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


[CentOS] trying to get lm_sensorts to work

2009-12-31 Thread Jerry Geis
hi all,

I am trying to get lm_sensors to work.

did the yum install lm_sensors
service lm_sensors start

sensor -s
and it says no sensors found.

did lsmod | grep it87 and
it87   57061  0
hwmon_vid  35905  1 it87
hwmon  36553  1 it87
i2c_isa39105  1 it87
i2c_core   56129  5 it87,i2c_isa,i2c_dev,i2c_ec,i2c_piix4

Seems like modules are loaded
Is the some final trick to getting it to work?  centos 5, 
2.6.18-164.9.1.el5 #1 SMP Tue Dec 15 20:57:57 EST 2009 x86_64 x86_64 
x86_64 GNU/Linux

Thanks,

jerry



lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] RS780 Host Bridge 
Alternate
00:01.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge 
(int gfx)
00:0a.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge 
(PCIE port 5)
00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 SATA 
Controller [AHCI mode]
00:12.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 
Controller
00:12.1 USB Controller: ATI Technologies Inc SB700 USB OHCI1 Controller
00:12.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:13.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 
Controller
00:13.1 USB Controller: ATI Technologies Inc SB700 USB OHCI1 Controller
00:13.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 3c)
00:14.1 IDE interface: ATI Technologies Inc SB700/SB800 IDE Controller
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
00:14.3 ISA bridge: ATI Technologies Inc SB700/SB800 LPC host controller
00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge
00:14.5 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI2 
Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, 
Athlon64, Sempron] HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, 
Athlon64, Sempron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, 
Athlon64, Sempron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, 
Athlon64, Sempron] Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, 
Athlon64, Sempron] Link Control
01:05.0 VGA compatible controller: ATI Technologies Inc Unknown device 9710
01:05.1 Audio device: ATI Technologies Inc Unknown device 970f
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
03:06.0 Ethernet controller: Digium, Inc. Wildcard TDM800P 8-port analog 
card (rev 11)
03:0e.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 
IEEE-1394a-2000 Controller (PHY/Link)
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] trying to get lm_sensorts to work

2009-12-31 Thread Akemi Yagi
On Thu, Dec 31, 2009 at 2:04 PM, Jerry Geis  wrote:
> hi all,
>
> I am trying to get lm_sensors to work.
>
> did the yum install lm_sensors
> service lm_sensors start
>
> sensor -s
> and it says no sensors found.
>
> did lsmod | grep it87 and
> it87                   57061  0

You may want to read this forum thread:

https://www.centos.org/modules/newbb/viewtopic.php?viewmode=flat&topic_id=24010&forum=38

and give the packages from ELRepo a try.

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


[CentOS] restoring using rysnc

2009-12-31 Thread robert mena
Hi,

My backup server (B) has a /backup/home and I'd like to restore
/backup/home/userX to /home/userX in my server A

I am trying to do with in the server where I want to restore.

rsync -e ssh -avzp -R --exclude "*.journal"
backup_server:/backup/home/userX/ /home/userX

But it is creating a /home/userX/backup/home/userX

What am I doing wrong?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] restoring using rysnc

2009-12-31 Thread Joseph L. Casale
>Hi,
>
>My backup server (B) has a /backup/home and I'd like to restore 
>/backup/home/userX to /home/userX in my server A
>
>I am trying to do with in the server where I want to restore.
>
>rsync -e ssh -avzp -R --exclude "*.journal" backup_server:/backup/home/userX/ 
>/home/userX
>
>But it is creating a /home/userX/backup/home/userX
>
>What am I doing wrong?

Trailing slashes & `-R`... Rather than repeat what smarter folk wrote better 
than I,
type man rsync, then `/trailing` and give it a look. Then catch the relative 
part
for -R.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] questions on debuginfo.centos.org

2009-12-31 Thread Ryan J M
Recently I add a debuginfo repo into my /etc/yum.repos.d/

[debuggery]
name=CentOS-$releasever - DebugInfo
baseurl=http://debuginfo.centos.org/$releasever/$basearch/
priority=1


then yum update and list shows

kdiff3.i3860.9.92-14.el5   epel
kding.i386 0.4.3-1.el5.rf  rpmforge
kdirstat.i386  2.5.2-2.el5.rf  rpmforge
kdnssd-avahi.i386  0.1.3-0.1.20060713svn.fc6   base
kdnssd-avahi-debuginfo.i3860.1.3-0.1.20060713svn.el5.centos
   debuggery
kdnssd-avahi-devel.i3860.1.3-0.1.20060713svn.fc6   base
kernel-PAE.i6862.6.18-164.9.1.el5  updates
kernel-PAE-debuginfo.i686  2.6.18-92.1.6.el5.centos.plus
   debuggery
kernel-PAE-devel.i686  2.6.18-164.9.1.el5  updates
kernel-debug.i686  2.6.18-164.9.1.el5  updates
kernel-debug-debuginfo.i6862.6.18-92.1.6.el5   debuggery
kernel-debug-devel.i6862.6.18-164.9.1.el5  updates
kernel-debuginfo.i686  2.6.18-92.1.6.el5.centos.plus
   debuggery
kernel-debuginfo-common.i686   2.6.18-92.1.6.el5.centos.plus
   debuggery
kernel-doc.noarch  2.6.18-164.9.1.el5  updates
kernel-xen.i6862.6.18-164.9.1.el5  updates
kernel-xen-debuginfo.i686  2.6.18-92.1.6.el5.centos.plus
   debuggery
kernel-xen-devel.i686  2.6.18-164.9.1.el5  updates
kerneloops.i3860.11-1.el5.rf   rpmforge
kexec-tools.i386   1.102pre-77.el5.3   updates
kexec-tools-debuginfo.i386 1.102pre-21.el5 debuggery
keychain.noarch2.6.8-1.el5.rf  rpmforge


I notice that the kernel debuginfo version mismatch with my currenting
running kernel, then I go to the
site http://debuginfo.centos.org/5/i386/  , and there do exist the
following ones :

[   ] kernel-debuginfo-2.6.18-128.el5.centos.plus.i686.rpm
  01-Apr-2009 13:57  175M
[   ] kernel-debuginfo-2.6.18-164.2.1.el5.i686.rpm
  30-Sep-2009 20:17  166M
[   ] kernel-debuginfo-2.6.18-164.6.1.el5.centos.plus.i686.rpm
  04-Nov-2009 17:24  186M
[   ] kernel-debuginfo-2.6.18-164.6.1.el5.i686.rpm
  04-Nov-2009 01:43  166M
[   ] kernel-debuginfo-2.6.18-164.9.1.el5.centos.plus.i686.rpm
  16-Dec-2009 19:28  186M
[   ] kernel-debuginfo-2.6.18-164.9.1.el5.i686.rpm
  16-Dec-2009 05:27  166M
[   ] kernel-debuginfo-2.6.18-164.el5.i686.rpm
  03-Sep-2009 10:54  166M



Here comes my `uname -a`

Linux xas 2.6.18-164.9.1.el5 #1 SMP Tue Dec 15 21:04:57 EST 2009 i686
i686 i386 GNU/Linux

and my yum install log

r...@xas~ > yum install kernel-debuginfo\*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * epel: ftp.kddilabs.jp
 * rpmforge: ftp-stud.fht-esslingen.de
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package kernel-debuginfo.i686 0:2.6.18-92.1.6.el5.centos.plus set
to be updated
---> Package kernel-debuginfo-common.i686
0:2.6.18-92.1.6.el5.centos.plus set to be updated
--> Finished Dependency Resolution

Dependencies Resolved


 Package  Arch  VersionRepository  Size

Installing:
 kernel-debuginfo i686  2.6.18-92.1.6.el5.centos.plus  debuggery  165 M
 kernel-debuginfo-common  i686  2.6.18-92.1.6.el5.centos.plus  debuggery   29 M

Transaction Summary

Install  2 Package(s)
Update   0 Package(s)
Remove   0 Package(s)

Total download size: 194 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): kernel-debuginfo-common-2.6.18-92.1.6.el5.centos. |  29 MB 03:35
(2/2): kernel-debuginf (35%) 23% [==- ] 147 kB/s |  40 MB 14:36 ETA






So, Is it the problem of debuginfo.centos.org/5/repodata or I missed anything?

Thanks and HAPPY NEW YEAR!

-- 
FIXME if it is wrong.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] yum centos repo dependency hell for matlab loaddap

2009-12-31 Thread Ryan J M
maybe you can try the old version of loaddap, it depends on libdap
3.6.2, according to their descriptions. Or compile the new libdap
3.9.3 by your own.



Matlab Structs Tool 3.5.2 (28 April 2006)
Binaries

 Win32
Win32 package
 Mac OS/X
OS/X 10.4(Tiger) package
Intel Mac
 Linux
 ix386/ix86_64/Fedora Core 4 .
 Linux
 i386/RedHat Enterprise3 .

Required packages

The Matlab structs tool requires the libdap library, version 3.6.2.


On Thu, Dec 31, 2009 at 3:26 PM, Dave  wrote:
> I've got matlab installed:
>                                                                   < M
> A T L A B (R) >
>                                                         Copyright
> 1984-2009 The MathWorks, Inc.
>                                                       Version
> 7.8.0.347 (R2009a) 64-bit (glnxa64)
>
> February 12, 2009
>
> I want to install loaddap. I downloaded an rpm from
> http://opendap.org/download/ml-structs.html.
>
> # yum --nogpgcheck localinstall loaddap-3.6.1-1.x86_64.rpm
> Loaded plugins: fastestmirror, priorities, security
> Setting up Local Package Process[snip]
> --> Processing Dependency: libmex.so()(64bit) for package: loaddap
> --> Processing Dependency: libmx.so()(64bit) for package: loaddap
> --> Finished Dependency Resolution
> loaddap-3.6.1-1.x86_64 from loaddap-3.6.1-1.x86_64.rpm has depsolving problems
>  --> Missing Dependency: libmex.so()(64bit) is needed by package
> loaddap-3.6.1-1.x86_64 (loaddap-3.6.1-1.x86_64.rpm)
> loaddap-3.6.1-1.x86_64 from loaddap-3.6.1-1.x86_64.rpm has depsolving problems
>  --> Missing Dependency: libdapclient.so.3()(64bit) is needed by
> package loaddap-3.6.1-1.x86_64 (loaddap-3.6.1-1.x86_64.rpm)
> loaddap-3.6.1-1.x86_64 from loaddap-3.6.1-1.x86_64.rpm has depsolving problems
>  --> Missing Dependency: libdap.so.9()(64bit) is needed by package
> loaddap-3.6.1-1.x86_64 (loaddap-3.6.1-1.x86_64.rpm)
> loaddap-3.6.1-1.x86_64 from loaddap-3.6.1-1.x86_64.rpm has depsolving problems
>  --> Missing Dependency: libmat.so()(64bit) is needed by package
> loaddap-3.6.1-1.x86_64 (loaddap-3.6.1-1.x86_64.rpm)
> loaddap-3.6.1-1.x86_64 from loaddap-3.6.1-1.x86_64.rpm has depsolving problems
>  --> Missing Dependency: libmx.so()(64bit) is needed by package
> loaddap-3.6.1-1.x86_64 (loaddap-3.6.1-1.x86_64.rpm)
> loaddap-3.6.1-1.x86_64 from loaddap-3.6.1-1.x86_64.rpm has depsolving problems
>  --> Missing Dependency: libdap >= 3.8.0 is needed by package
> loaddap-3.6.1-1.x86_64 (loaddap-3.6.1-1.x86_64.rpm)
> Error: Missing Dependency: libdapclient.so.3()(64bit) is needed by
> package loaddap-3.6.1-1.x86_64 (loaddap-3.6.1-1.x86_64.rpm)
> Error: Missing Dependency: libmx.so()(64bit) is needed by package
> loaddap-3.6.1-1.x86_64 (loaddap-3.6.1-1.x86_64.rpm)
> Error: Missing Dependency: libdap >= 3.8.0 is needed by package
> loaddap-3.6.1-1.x86_64 (loaddap-3.6.1-1.x86_64.rpm)
> Error: Missing Dependency: libdap.so.9()(64bit) is needed by package
> loaddap-3.6.1-1.x86_64 (loaddap-3.6.1-1.x86_64.rpm)
> Error: Missing Dependency: libmat.so()(64bit) is needed by package
> loaddap-3.6.1-1.x86_64 (loaddap-3.6.1-1.x86_64.rpm)
> Error: Missing Dependency: libmex.so()(64bit) is needed by package
> loaddap-3.6.1-1.x86_64 (loaddap-3.6.1-1.x86_64.rpm)
>
> Apparently my libdap is too old:
> # rpm -q libdap
> libdap-3.7.8-1.el5.1
>
> And it is current with the centos repos,
> # yum update libdap
> Loaded plugins: fastestmirror, priorities, security
> [snip]
> No Packages marked for Update
>
> so I need a good rev source rpm
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
FIXME if it is wrong.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Lost mdadm.conf

2009-12-31 Thread Luciano Rocha
On Thu, Dec 31, 2009 at 04:40:56PM +, Joseph L. Casale wrote:
> >Not all rescue environments have MAKEDEV or have it in $PATH, so this should 
> >always work. ;)
> 
> Really, on my hp's as well? I don't have any /dev/hdx or /dev/sdx on the ones 
> with software raid...
> 
> Nothing is easier than simply:
> # mdadm --detail --scan --verbose > /etc/mdadm.conf
> 
> And that actually *does* work in all environments...

Does that create the /dev/md* devices? I mean, a *scan* shouldn't change
the filesystem, should it? That's the problem that line tries to fix:
that there's no mdX device in /dev...


-- 
lfr
0/0


pgpQHePtbYx0M.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] trying to get lm_sensorts to work

2009-12-31 Thread Ned Slider
On 12/31/2009 10:41 PM, Akemi Yagi wrote:
> On Thu, Dec 31, 2009 at 2:04 PM, Jerry Geis  wrote:
>> hi all,
>>
>> I am trying to get lm_sensors to work.
>>
>> did the yum install lm_sensors
>> service lm_sensors start
>>
>> sensor -s
>> and it says no sensors found.
>>
>> did lsmod | grep it87 and
>> it87   57061  0

Did you run sensors-detect, and if so, which variant of it87 did it detect?

>
> You may want to read this forum thread:
>
> https://www.centos.org/modules/newbb/viewtopic.php?viewmode=flat&topic_id=24010&forum=38
>
> and give the packages from ELRepo a try.
>
> Akemi

Indeed. The standard it87 driver in 5.4 only supports IT8705F and 
IT8712F. I backported additional support for IT8716F, IT8718F, IT8720F 
and IT8726F Super I/O chips into the it87 module in ELRepo (kmod-it87), 
which will also automatically update lm_sensors as a dependency from the 
same repo.

I reported this upstream over 18 months ago and it's now scheduled to be 
fixed in 5.5, maybe.

https://bugzilla.redhat.com/show_bug.cgi?id=446061
https://bugzilla.redhat.com/show_bug.cgi?id=448223

In the meantime, the ELRepo package has the latest updated driver for 
this hardware.

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


[CentOS] missing module dir?

2009-12-31 Thread Michael Klinosky
I'm teaching myself about ethernet cards, and found a TLDP page. I have 
CentOS 5.3.

In this section:http://tldp.org/HOWTO/Ethernet-HOWTO-2.html#ss2.4
in the 'Driver as module' subsection, regarding PCI cards, it states 
that there should be a directory   "/lib/modules/`uname -r`/net"

[myko...@sr1220 ~]$ uname -r
2.6.18-128.1.16.el5
[myko...@sr1220 2.6.18-128.1.16.el5]$ pwd
/lib/modules/2.6.18-128.1.16.el5
[myko...@sr1220 2.6.18-128.1.16.el5]$ ls
build   modules.alias   modules.ieee1394map  modules.ofmap 
modules.symbols  updates
extra   modules.ccwmap  modules.inputmap modules.pcimap 
modules.usbmap   weak-updates
kernel  modules.dep modules.isapnpmapmodules.seriomap  source

There's no 'net' directory. I am guessing that the NIC drivers are 
modules (and not compiled into the kernel) - am I wrong? Or, where are 
the modules?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] missing module dir?

2009-12-31 Thread Akemi Yagi
On Thu, Dec 31, 2009 at 6:58 PM, Michael Klinosky  wrote:
> I'm teaching myself about ethernet cards, and found a TLDP page. I have
> CentOS 5.3.
>
> In this section:    http://tldp.org/HOWTO/Ethernet-HOWTO-2.html#ss2.4
> in the 'Driver as module' subsection, regarding PCI cards, it states
> that there should be a directory   "/lib/modules/`uname -r`/net"
>
> There's no 'net' directory. I am guessing that the NIC drivers are
> modules (and not compiled into the kernel) - am I wrong? Or, where are
> the modules?

Look in /lib/modules/`uname -r`/kernel/drivers/net/ for network kernel modules.

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