Re: [CentOS] 11TB ext4 filesystem - filesystem alternatives?

2012-09-28 Thread James A. Peltier
- Original Message -
| Hello,
| 
| One day our servers farm rebooted unexpectedly (power fail happened)
| and on centos 6.3 with up2date kernel we lost few hundred files
| (which
| probably was opened for reading, NOT writing) on XFS.
| 
| Unexpected power lost follow to situation when some files get a zero
| size.

This is not uncommon with a file system like XFS, where the file system makes 
EXTENSIVE use of file system caching and memory and internal semantics that 
will make your head spin.  Fact of the matter is, that in spite of this 
"possibility" of loss, XFS is by far the best file system for large volumes at 
the moment and especially during initialization time.  You *can* use EXT4 with 
you can speed this up if you use the -E lazy_itable_init=1 -O 
dir_index,extent,flex_bg,uninit_bg options.

-- 
James A. Peltier
Manager, IT Services - Research Computing Group
Simon Fraser University - Burnaby Campus
Phone   : 778-782-6573
Fax : 778-782-3045
E-Mail  : jpelt...@sfu.ca
Website : http://www.sfu.ca/itservices
  http://blogs.sfu.ca/people/jpeltier

Success is to be measured not so much by the position that one has reached
in life but as by the obstacles they have overcome. - Booker T. Washington
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] 11TB ext4 filesystem - filesystem alternatives?

2012-09-28 Thread James A. Peltier


- Original Message -
| Hi All.
| 
| I have a CentOS server:
| 
| CentOS 5.6 x86_64
| 2.6.18-238.12.1.el5.centos.plus
| e4fsprogs-1.41.12-2.el5.x86_64
| 
| which has a 11TB ext4 filesystem. I have problems with running fsck
| on it
| and would like to change the filesystem because I do not like the
| possibility of running long fsck on it, it's a production machine.
| Also I
| have some problems with running fsck (not enough RAM, problem with
| scratch_files option) and if the filesystem will need intervention I
|  will
| be in a problematic situation.
| 
| Which other mature and stable filesystem can you recommend for such
| large
| storage?
| 
| Best regards,
| Rafal Radecki.
| ___
| CentOS mailing list
| CentOS@centos.org
| http://lists.centos.org/mailman/listinfo/centos
| 

As someone who is working with 15-30TB volumes, use XFS, but be sure you have a 
lot of memory. 48GB at least and more if you have directories with 10s of 
thousands of files in them.

-- 
James A. Peltier
Manager, IT Services - Research Computing Group
Simon Fraser University - Burnaby Campus
Phone   : 778-782-6573
Fax : 778-782-3045
E-Mail  : jpelt...@sfu.ca
Website : http://www.sfu.ca/itservices
  http://blogs.sfu.ca/people/jpeltier

Success is to be measured not so much by the position that one has reached
in life but as by the obstacles they have overcome. - Booker T. Washington
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] kernel 2.6.32-279.9.1.el6.x86_64 does not build from the source rpm's

2012-09-28 Thread Akemi Yagi
On Thu, Sep 27, 2012 at 3:03 PM, Seth Bardash
 wrote:
> kernel 2.6.32-279.9.1.el6.x86_64 does not build from the source rpm's
> using the UNmodified config file and following the directions explicitly.
> Previous kernels build fine from the same directions. A little help from
> the developers would be greatly appreciated.
>
> while building I get this output:
>
> c1: warnings being treated as errors

Are you building this on CentOS 6? If not, what is the version of gcc?

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


Re: [CentOS] Apache : Listen on ports other than 80

2012-09-28 Thread adekunleadekoya
Ok, wld google later in the day. Am off my pc but using my mobile now which 
gives only email access. Thanks for the new insight. Really, I am new to linux 
and just using centos to learn about linux. I appreciate the kind and timely 
support offered by this mailing list.
Sent from my BlackBerry wireless device from MTN

-Original Message-
From: m.r...@5-cent.us
Sender: centos-boun...@centos.org
Date: Fri, 28 Sep 2012 16:54:17 
To: CentOS mailing list
Reply-To: CentOS mailing list 
Subject: Re: [CentOS] Apache : Listen on ports other than 80

adekunleadek...@gmail.com wrote:
> What is 'selinux ?' and selinux policy ? Are there commands I need to
> access these ? I wld b glad to know this.

ARRRGHGHHGHGHG

Have you ever considered google as a tool?
Say, google on selinux?



   mark
> --Original Message--
> From: John R Pierce
> Sender: centos-boun...@centos.org
> To: centos@centos.org
> ReplyTo: CentOS mailing list
> Subject: Re: [CentOS] Apache : Listen on ports other than 80
> Sent: Sep 28, 2012 9:50 PM
>
> On 09/28/12 1:47 PM, adekunleadek...@gmail.com wrote:
>> I v run d netstat and no result(i.e no process is listening on port
>> 1010). Also I telnet 127.0.0.1 1010 just 2 confirm that no process is
>> using the port. I can't figure out why the port(and any other except 80)
>> would not work!
>
> selinux ?
>
> try setting it to 'permissive' if its in 'enforcing', and see if it
> works.  if so, you'll need to adjust the selinux policy to allow apache
> to listen on more ports.
>
> --
> john r pierceN 37, W 122
> santa cruz ca mid-left coast
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
> Sent from my BlackBerry wireless device from MTN
> ___
> 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 mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Apache : Listen on ports other than 80

2012-09-28 Thread m . roth
adekunleadek...@gmail.com wrote:
> What is 'selinux ?' and selinux policy ? Are there commands I need to
> access these ? I wld b glad to know this.

ARRRGHGHHGHGHG

Have you ever considered google as a tool?
Say, google on selinux?



   mark
> --Original Message--
> From: John R Pierce
> Sender: centos-boun...@centos.org
> To: centos@centos.org
> ReplyTo: CentOS mailing list
> Subject: Re: [CentOS] Apache : Listen on ports other than 80
> Sent: Sep 28, 2012 9:50 PM
>
> On 09/28/12 1:47 PM, adekunleadek...@gmail.com wrote:
>> I v run d netstat and no result(i.e no process is listening on port
>> 1010). Also I telnet 127.0.0.1 1010 just 2 confirm that no process is
>> using the port. I can't figure out why the port(and any other except 80)
>> would not work!
>
> selinux ?
>
> try setting it to 'permissive' if its in 'enforcing', and see if it
> works.  if so, you'll need to adjust the selinux policy to allow apache
> to listen on more ports.
>
> --
> john r pierceN 37, W 122
> santa cruz ca mid-left coast
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
> Sent from my BlackBerry wireless device from MTN
> ___
> 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] Apache : Listen on ports other than 80

2012-09-28 Thread adekunleadekoya
What is 'selinux ?' and selinux policy ? Are there commands I need to access 
these ? I wld b glad to know this.
--Original Message--
From: John R Pierce
Sender: centos-boun...@centos.org
To: centos@centos.org
ReplyTo: CentOS mailing list
Subject: Re: [CentOS] Apache : Listen on ports other than 80
Sent: Sep 28, 2012 9:50 PM

On 09/28/12 1:47 PM, adekunleadek...@gmail.com wrote:
> I v run d netstat and no result(i.e no process is listening on port 1010). 
> Also I telnet 127.0.0.1 1010 just 2 confirm that no process is using the 
> port. I can't figure out why the port(and any other except 80) would not work!

selinux ?

try setting it to 'permissive' if its in 'enforcing', and see if it 
works.  if so, you'll need to adjust the selinux policy to allow apache 
to listen on more ports.

-- 
john r pierceN 37, W 122
santa cruz ca mid-left coast

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


Sent from my BlackBerry wireless device from MTN
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Apache : Listen on ports other than 80

2012-09-28 Thread adekunleadekoya
I am running as a root user. I am very much aware that a non-privileged user 
can't access some functions. But again, I am running centos from my oracle 
virtualbox. I hope the virtual machine is not a factor? 
--Original Message--
From: lists-centos
To: adekunleadek...@gmail.com
Subject: Re: [CentOS] Apache : Listen on ports other than 80
Sent: Sep 28, 2012 9:45 PM



 Original Message 
> Date: Friday, September 28, 2012 01:41:46 PM -0700
> From: John R Pierce 
> To: centos@centos.org
> Subject: Re: [CentOS] Apache : Listen on ports other than 80
>
> On 09/28/12 1:30 PM, adekunleadek...@gmail.com wrote:
>> I saw this error msg : 'permission denied:make_sock : could not
>> bind to address 0.0.0.0:1010. No listening sockets
>> available,shutting down' .
> 
> is another process listening on 1010 ?
> 
>  netstat -an |grep :1010
> 
> look for lines with LISTEN on the end ...

or, are you trying to start apache from a non-privileged user? ports
through 1024 are reserved and only root can bind processes to them.

   - Richard




Sent from my BlackBerry wireless device from MTN
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Apache : Listen on ports other than 80

2012-09-28 Thread John R Pierce
On 09/28/12 1:47 PM, adekunleadek...@gmail.com wrote:
> I v run d netstat and no result(i.e no process is listening on port 1010). 
> Also I telnet 127.0.0.1 1010 just 2 confirm that no process is using the 
> port. I can't figure out why the port(and any other except 80) would not work!

selinux ?

try setting it to 'permissive' if its in 'enforcing', and see if it 
works.  if so, you'll need to adjust the selinux policy to allow apache 
to listen on more ports.

-- 
john r pierceN 37, W 122
santa cruz ca mid-left coast

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


Re: [CentOS] Apache : Listen on ports other than 80

2012-09-28 Thread adekunleadekoya
I v run d netstat and no result(i.e no process is listening on port 1010). Also 
I telnet 127.0.0.1 1010 just 2 confirm that no process is using the port. I 
can't figure out why the port(and any other except 80) would not work!
--Original Message--
From: John R Pierce
Sender: centos-boun...@centos.org
To: centos@centos.org
ReplyTo: CentOS mailing list
Subject: Re: [CentOS] Apache : Listen on ports other than 80
Sent: Sep 28, 2012 9:41 PM

On 09/28/12 1:30 PM, adekunleadek...@gmail.com wrote:
> I saw this error msg : 'permission denied:make_sock : could not bind to 
> address 0.0.0.0:1010.
> No listening sockets available,shutting down' .

is another process listening on 1010 ?

 netstat -an |grep :1010

look for lines with LISTEN on the end ...





-- 
john r pierceN 37, W 122
santa cruz ca mid-left coast

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


Sent from my BlackBerry wireless device from MTN
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Apache : Listen on ports other than 80

2012-09-28 Thread John R Pierce
On 09/28/12 1:30 PM, adekunleadek...@gmail.com wrote:
> I saw this error msg : 'permission denied:make_sock : could not bind to 
> address 0.0.0.0:1010.
> No listening sockets available,shutting down' .

is another process listening on 1010 ?

 netstat -an |grep :1010

look for lines with LISTEN on the end ...





-- 
john r pierceN 37, W 122
santa cruz ca mid-left coast

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


Re: [CentOS] 11TB ext4 filesystem - filesystem alternatives?

2012-09-28 Thread Keith Keller
On 2012-09-28, Ilyas --  wrote:
>
> One day our servers farm rebooted unexpectedly (power fail happened)
> and on centos 6.3 with up2date kernel we lost few hundred files (which
> probably was opened for reading, NOT writing) on XFS.
>
> Unexpected power lost follow to situation when some files get a zero size.

No filesystem can fully protect against power failures--that's not its
job.  That's why higher-end RAID controllers have battery backups, and
why important servers should be on a UPS.  If you are really paranoid,
you can probably tweak the kernel (e.g., using sysctl) to flush disk
writes more frequently, but then you might drag down performance with
it.

IOW, it's nice to have fsck, but it's better to take steps to avoid
needing it.

That being said, through a series of unfortunate events, I've lost power
on some of my larger XFS filesystems, and in those rare events I have not
seen or heard about any files lost.  So I strongly suspect other factors
in your data loss--if XFS was involved, there were probably also other
issues involved as well.

--keith

-- 
kkel...@wombat.san-francisco.ca.us


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


Re: [CentOS] Apache : Listen on ports other than 80

2012-09-28 Thread adekunleadekoya
I saw this error msg : 'permission denied:make_sock : could not bind to address 
0.0.0.0:1010.
No listening sockets available,shutting down' . 
--Original Message--
From: lists-centos
To: adekunleadek...@gmail.com
Subject: Re: [CentOS] Apache : Listen on ports other than 80
Sent: Sep 28, 2012 8:26 PM


> -Original Message-
> From: adekunleadek...@gmail.com
> Date: Fri, 28 Sep 2012 18:49:33 
> To: 
> Reply-To: adekunleadek...@gmail.com
> Subject: Apache : Listen on ports other than 80
> 
> Hi,
> I just install centos 6.3 on my oracle virtualbox. I tried 2
> configure apache 2 listen on port say 1010 but after adding a
> 'Listen 1010' to the httpd.conf file and then try 2 restart d
> httpd service, I found that d service failed to start. If I remove
> the 'Listen 1010' line then d httpd service restarts successfully.
> What do I need to do so I could instruct d web server to use other
> ports (besides 80) ?
> 
> Are there default settings in centos that are causing this prob ?
> I have done same experiment successfully wit apache on windows. I
> need to setup virtualhost with my apache on centos. I need help
> now. Pls help!
> 
> Regards
> 
> Kunle 

Start by looking in the apache error log. I think you'll get hints
there on what the problem is.


   - Richard




Sent from my BlackBerry wireless device from MTN
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] hi

2012-09-28 Thread John R Pierce
On 09/28/12 12:21 PM, m.r...@5-cent.us wrote:
> Hello how are u, im having a little problem. i use the webmin to install
> >automatly postfix, in the other server works, but in this now says.

ask the webmin folks, webmin is not part of CentOS.





-- 
john r pierceN 37, W 122
santa cruz ca mid-left coast

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


Re: [CentOS] 11TB ext4 filesystem - filesystem alternatives?

2012-09-28 Thread John R Pierce
On 09/28/12 12:09 PM, Ilyas -- wrote:
> Hello,
>
> One day our servers farm rebooted unexpectedly (power fail happened)
> and on centos 6.3 with up2date kernel we lost few hundred files (which
> probably was opened for reading, NOT writing) on XFS.
>
> Unexpected power lost follow to situation when some files get a zero size.

what sort of physical storage?   are you sure it is write-safe ? 
write-back caches without battery backup are often a cause of data loss.



-- 
john r pierceN 37, W 122
santa cruz ca mid-left coast

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


Re: [CentOS] Apache : Listen on ports other than 80

2012-09-28 Thread Leon Fauster
Am 28.09.2012 um 21:06 schrieb adekunleadek...@gmail.com:
> 
> I just install centos 6.3 on my oracle virtualbox. I tried 2 configure
> apache 2 listen on port say 1010 but after adding a 'Listen 1010' to
> the httpd.conf file and then try 2 restart d httpd service, I found
> that d service failed to start. If I remove the 'Listen 1010' line
> then d httpd service restarts successfully. What do I need to do so
> I could instruct d web server to use other ports (besides 80) ?
> 
> Are there default settings in centos that are causing this prob ? I
> have done same experiment successfully wit apache on windows. I need 
> to setup virtualhost with my apache on centos. I need help now. Pls help!


check the  directive (and NameVirtualHost *:PORT).

--
LF
 

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


Re: [CentOS] hi

2012-09-28 Thread m . roth
Andrei Rolando León Salas wrote:
> Hello how are u, im having a little problem. i use the webmin to install
> automatly postfix, in the other server works, but in this now says.
>
> Error while checking current Postfix configuration. Please manually fix
> Postfix configuration.
>
> postfix: fatal: file /etc/postfix/main.cf: parameter mail_owner:
> unknown user name value: postfix
>
> Manually edit the Postfix configuration
> file.
>
> i dont know what to do, can u help me please

You need to learn something about what you're doing.

For one, how did webmin install postfix? If from a tarball, then there's a
bunch of stuff to do. If, on the other hand, you'd done it the *right*
way, with a yum install, the scripts in the package would have created the
user and group postfix.

mark

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


[CentOS] hi

2012-09-28 Thread Andrei Rolando León Salas
Hello how are u, im having a little problem. i use the webmin to install
automatly postfix, in the other server works, but in this now says.

Error while checking current Postfix configuration. Please manually fix
Postfix configuration.

postfix: fatal: file /etc/postfix/main.cf: parameter mail_owner:
unknown user name value: postfix

Manually edit the Postfix configuration
file.

i dont know what to do, can u help me please
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] 11TB ext4 filesystem - filesystem alternatives?

2012-09-28 Thread Ilyas --
Hello,

One day our servers farm rebooted unexpectedly (power fail happened)
and on centos 6.3 with up2date kernel we lost few hundred files (which
probably was opened for reading, NOT writing) on XFS.

Unexpected power lost follow to situation when some files get a zero size.

On Fri, Sep 28, 2012 at 2:34 AM, SilverTip257  wrote:
> Current CentOS 6 is 2.6.32, not 2.6.36
>
> In that XFS Youtube video, Dave Chinner says upstream 3.0 kernel or
> RHEL 6.2 [at 45:20 of the video].
>
> Other sources [0] [1] agree.
>
> [0] http://lwn.net/Articles/476616/
> [1] http://jira.funtoo.org/browse/FL-38
>
> ---~~.~~---
> Mike
> //  SilverTip257  //
>
>
> On Thu, Sep 27, 2012 at 8:46 AM, SilverTip257  wrote:
>> Definitely shoot for CentOS 6.3 ...
>>
>> XFS with a kernel _more recent_ than 2.6.36 (currently shipped with
>> CentOS6) has more improvements to the XFS code.  Youtube video on XFS
>> [0] - I believe the kernel version noted is 2.6.39 (watch the video!)
>> [2].
>>
>> And there's also a Youtube video on BTRFS [1] that was linked
>> to/shared by Fernando.
>>
>> [0] http://lists.centos.org/pipermail/centos/2012-August/128119.html
>> [1] http://lists.centos.org/pipermail/centos/2012-August/128110.html
>> [2] http://lwn.net/Articles/438671/
>>
>> ---~~.~~---
>> Mike
>> //  SilverTip257  //
>>
>>
>> On Thu, Sep 27, 2012 at 5:08 AM, John R Pierce  wrote:
>>> On 09/27/12 1:52 AM, Nux! wrote:
 Never had to deal with such a large filesystem, yet, but I'd try XFS on
 it.
>>>
>>> XFS is fairly memory intensive.11TB file systems tend to mean
>>> millions and millions of files.
>>>
>>> frankly, I wouldn't run this on CentOS 5.6, I would upgrade to CentOS
>>> 6.latest and then I would use XFS   support for EXT4 and XFS is
>>> rather sketchy with the old kernel in 5.x (and why aren't you at 5.8 or
>>> whatever is current in the 5 series anyways?!?)
>>>
>>>
>>>
>>>
>>>
>>> --
>>> john r pierceN 37, W 122
>>> santa cruz ca mid-left coast
>>>
>>> ___
>>> 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



-- 
GPG Key ID: 6EC5EB27
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Apache : Listen on ports other than 80

2012-09-28 Thread adekunleadekoya

Sent from my BlackBerry wireless device from MTN

-Original Message-
From: adekunleadek...@gmail.com
Date: Fri, 28 Sep 2012 18:49:33 
To: 
Reply-To: adekunleadek...@gmail.com
Subject: Apache : Listen on ports other than 80

Hi,
I just install centos 6.3 on my oracle virtualbox. I tried 2 configure apache 2 
listen on port say 1010 but after adding a 'Listen 1010' to the httpd.conf file 
and then try 2 restart d httpd service, I found that d service failed to start. 
If I remove the 'Listen 1010' line then d httpd service restarts successfully. 
What do I need to do so I could instruct d web server to use other ports 
(besides 80) ?

Are there default settings in centos that are causing this prob ? I have done 
same experiment successfully wit apache on windows. I need to setup virtualhost 
with my apache on centos. I need help now. Pls help!

Regards

Kunle 
Sent from my BlackBerry wireless device from MTN
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] OT: forwarding SNMP traps

2012-09-28 Thread James Pifer
Can anyone here give me a hand with forwarding snmp traps? I'm looking at 
Zenoss and I 
want to see how it handles snmp traps. We currently have snmp traps getting 
sent to two 
servers. One of them is basically ignoring the traps, but I can't just change 
the ip address (to 
give to Zenoss) because of other things the host is doing.

So instead I'd like to simply forward the snmp traps to the new zenoss system. 
I've tried a 
couple different forwarding programs, like jredirect and a python script I 
found while 
searching. I use jredirect to forward some other things, but I'm guessing it 
doesn't like udp.

I've also tried figuring out snmptrapd and snmpd without any success at all. 

Last, I tried simply using iptables with something like:
# iptables -t nat -A PREROUTING -i eth0 -p udp -m udp --dport 162 -j DNAT 
--to-destination 
192.168.1.3:162
# iptables -A INPUT -i eth0 -p udp -m udp --dport 162 -j ACCEPT

But that doesn't seem to work either. 

I can see running wireshark on both systems that the old server is receiving 
traps, but they 
are never getting forwarded to the zenoss system. 

Anyone here know how to do it? Any assistance is appreciated. 

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


[CentOS] netcat issue: no UDP transmission

2012-09-28 Thread Boris Epstein
Hello listamtes,

Here's is a curious issue: netcat (nc) seems to not do UDP for me, even
though TCP works flawlessly. Not even on the local host.

Here's the "server session" I am running:

cat test.dd | nc -l -u -n -k -v 2456

(test.dd is just a large file with random data)

Here's the client:

nc -v -u 127.0.0.1 2456 | dd of=/dev/null
^C0+0 records in
0+0 records out
0 bytes (0 B) copied, 219.944 s, 0.0 kB/s

Here's what netstat reports:

netstat -a -n | grep 2456
udp0  0 0.0.0.0:24560.0.0.0:*

udp0  0 127.0.0.1:52394 127.0.0.1:2456
 ESTABLISHED
unix  3  [ ] STREAM CONNECTED 12456

So the connection is established - but no data appears to be getting
transferred.

This behaviour seems to be the same on CentOS 6 and LinuxMint. Any idea
what may be going on?

Thanks.

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


Re: [CentOS] Prelink failure

2012-09-28 Thread Dennis Jacobfeuerborn
On 09/28/2012 07:30 PM, Hugh E Cruickshank wrote:
> From: Lars Hecking Sent: September 28, 2012 05:30
>>
>>  I have a number of CentOS6 machines, and on one of them, the 
>> daily prelink
>>  cron job aborts. Any ideas what to look for?
> 
> Hi Lars:
> 
> I can not tell you much about prelink however we recently encountered
> a similar problem. Check the /var/log/prelink/prelink.log file for
> more details on what caused the abort.
> 
> We were not able to resolve our issue and decided to disable prelink
> (there seems to be much differing opinions as to whether or not prelink
> is still required). If you decide to disable prelink then Dag Wieers
> has instructions on his web site on how to do this:
> 
>   http://dag.wieers.com/howto/compatibility/
> 
> So far we have not noticed any significant performance issues as a
> result of this change.

Prelink is useful on desktop systems where it improves the startup
performance of applications. On a server you don't really care if apache,
mysql, etc. take 50ms longer to start.

Regards,
  Dennis

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


Re: [CentOS] Prelink failure

2012-09-28 Thread Hugh E Cruickshank
From: Lars Hecking Sent: September 28, 2012 05:30
> 
>  I have a number of CentOS6 machines, and on one of them, the 
> daily prelink
>  cron job aborts. Any ideas what to look for?

Hi Lars:

I can not tell you much about prelink however we recently encountered
a similar problem. Check the /var/log/prelink/prelink.log file for
more details on what caused the abort.

We were not able to resolve our issue and decided to disable prelink
(there seems to be much differing opinions as to whether or not prelink
is still required). If you decide to disable prelink then Dag Wieers
has instructions on his web site on how to do this:

  http://dag.wieers.com/howto/compatibility/

So far we have not noticed any significant performance issues as a
result of this change.

HTH

Regards, Hugh

-- 
Hugh E Cruickshank, Forward Software, www.forward-software.com

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


Re: [CentOS] centos6 - failsafe terminal on login screen

2012-09-28 Thread James Pearson
fred smith wrote:
> On Thu, Sep 27, 2012 at 05:36:19PM -1000, Miranda Hawarden-Ogata wrote:
> 
>>I have some clients that run centos6 and I need to have users be able to 
>>access the "failsafe terminal" from the login screen. The old options (from 
>>4/5) for choosing your session aren't present. I've googled a bit on this 
>>but don't seem to be using a good search string as most of the hits have 
>>nothing to do with this and the rest aren't helpful.
>>
>>So, just wondering if anyone knows what I need to do to "turn on" session 
>>choosing from the login screen, and how to include the failsafe terminal.
> 
> 
> so, if I understand correctly, you want to be able to choosoe "Gnome",
> "XFCE", etc., etc. from the login screen, right?
> 
> the feature is there, but it doesn't show up until you've chosen a username
> either from the list displayed, or entered one manually. so, enter a user
> ID and then choose, before completing the password.

If you install xorg-x11-xinit-session you get a option once you've 
entered a username that will run your ~/.xsession or ~/.Xclients files 
(if they exist)

You can use the file it installs 
(/usr/share/xsessions/xinit-compat.desktop) as a template to create your 
own 'desktop' file that will start what you like - I have a 
/usr/share/xsessions/failsafe.desktop file that just starts xterm

James Pearson

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


Re: [CentOS] High memory needs [SOLVED]

2012-09-28 Thread Jérémie Dubois-Lacoste
> did you test something like this?
>
> ls -al /usr/lib/locale/locale-archive
> lrwxrwxrwx 1 root root 9 Sep  3 12:35 /usr/lib/locale/locale-archive -> 
> /dev/null

Didn't test it. I thought that at least the languages set to be used
must be accessible.

Jeremie

>
> --
> LF
>
>
> ___
> 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] High memory needs [SOLVED]

2012-09-28 Thread Leon Fauster
Am 28.09.2012 um 16:10 schrieb Jérémie Dubois-Lacoste:
> The solution that worked for us is a post-install fix that consists of
> removing all languages that we don't use.  We checked with "locale"
> which languages are used on the system. Then we remove all the others:
> $ localedef --list-archive | grep -v -e "en_US" -e "de_DE" -e "en_GB"
> | xargs localedef --delete-from-archive
> $ mv /usr/lib/locale/locale-archive /usr/lib/locale/locale-archive.tmpl
> $ build-locale-archive
> After this, the size of the locale-archive file is ~4MB, and running a
> single Bash instance does not show "107MB" for SGE anymore :-) Et voilà!


thank you for this explanation 

did you test something like this?

ls -al /usr/lib/locale/locale-archive 
lrwxrwxrwx 1 root root 9 Sep  3 12:35 /usr/lib/locale/locale-archive -> 
/dev/null

--
LF


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


Re: [CentOS] load balancer recommendation

2012-09-28 Thread Brian Mathis
On Fri, Sep 28, 2012 at 10:45 AM, Boris Epstein  wrote:
> Hello all,
>
> If I were looking for a load balancer to run on a Linux - specifically,
> CentOS - machine - what would you recommend?
>
> Thanks.
> Boris.


You need to be more specific about your requirements.  There are basic
IP-based load balancers such as Piranha, and more advanced layer 7
balancers such as HAproxy.  They all have benefits and drawbacks, so
without any further requirements, your question cannot be meaningfully
answered.

What kind of traffic are you balancing?  If HTTP, then do you also
need HTTPS support?  What about session affinity?  What kind of
backend application are you using, and will it support balancing as
well?


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


Re: [CentOS] load balancer recommendation

2012-09-28 Thread m . roth
Alexander Dalloz wrote:
> Am 28.09.2012 16:45, schrieb Boris Epstein:
>> Hello all,
>>
>> If I were looking for a load balancer to run on a Linux - specifically,
>> CentOS - machine - what would you recommend?
>
> https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Load_Balancer_Administration/s1-lvs-block-diagram-VSA.html
>
>
> Alexander
>

And webseal, part of IBM's Tivoli, is NOT something you want to use.

  mark

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


Re: [CentOS] load balancer recommendation

2012-09-28 Thread Alexander Dalloz
Am 28.09.2012 16:45, schrieb Boris Epstein:
> Hello all,
> 
> If I were looking for a load balancer to run on a Linux - specifically,
> CentOS - machine - what would you recommend?

https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Load_Balancer_Administration/s1-lvs-block-diagram-VSA.html

> Thanks.
> 
> Boris.

Alexander


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


[CentOS] load balancer recommendation

2012-09-28 Thread Boris Epstein
Hello all,

If I were looking for a load balancer to run on a Linux - specifically,
CentOS - machine - what would you recommend?

Thanks.

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


Re: [CentOS] High memory needs [SOLVED]

2012-09-28 Thread Jérémie Dubois-Lacoste
I finally found a solution to our problem. I think some people running
like us a combination CentOS 64 bits\Sun Grid Engine,
could encounter the same situation.
Here is a detailed explanation, hope it can be useful to someone!

The file /usr/lib/locale/locale-archive is a memory-mapped file used
by glibc (the gnu C library).  This file contains the languages used
over the system (for instance, man pages). This memory-mapping allows
to read in the file as if it were in memory, avoiding system calls
used to perform disk-read operations, therefore it allows much faster
access. Memory-mapped files (as well as shared libraries) are counted
as part of the virtual memory of processes (see "top" command, "VIRT"
field). Therefore, the part of the locale-archive file mapped to
memory adds up to the virtual memory of every processes that makes use
of glibc (basically everything), while this is actually only once in
memory. In other words, for every processes, the virtual memory
overestimates the real memory of the process by, at least, the part of
the locale-archive file which is memory-mapped.

Apparently, on 32bits distros, and on most 64bits distros, only a part
of the locale-archive file is mmapped: for instance on CentOS 32 bits:
 $ pmap $$
 b7689000   2048K r  /usr/lib/locale/locale-archive
Only 2MB of the file are mmapped, while the file is actually ~54MB.
Some distros only install a small subsets of languages, for instance
on my Ubuntu 12.04, this file is only ~3MB.

I still don't get the reason, but CentOS x86_64 6.2 (and 6.3) mmappes
the *entire* file:
 $ pmap $$
 7f217fae4000  96836K r  /usr/lib/locale/locale-archive
Consequence: every processes that use glibc is overestimated by ~100MB
(according to the virtual memory).

That, alone, is not a problem at all. It is known that the virtual
memory is a bad estimation of the actual memory used, the fact that it
is largely overestimated does not matter much in most cases.

The problem, however, is that if you deal with a computing cluster
that uses Sun Grid Engine (we have version 6.2u5) it uses this value
to check whether jobs exceed their memory limit or not. The
consequence is a false impression that jobs require a huge amount of
memory, SGE being miss-leaded, and thus killing them.

A solution could be to restrict the number of languages when
installing glibc-common (which provides the locale-archive file), to
have a smaller locale-archive file.  This should be possible with:
 $ echo "%_install_langs ::" >> /etc/rpm/macros.lang
 $ rpm -e glibc-common --nodeps
 $ rm /usr/lib/locale/locale-archive
 $ rpm -i 
I don't know why but we couldn't have glibc-common (2.12-1.80) taking
it into account, though. All languages were always installed.  I read
somewhere that it is done on purpose, not sure...

The solution that worked for us is a post-install fix that consists of
removing all languages that we don't use.  We checked with "locale"
which languages are used on the system. Then we remove all the others:
 $ localedef --list-archive | grep -v -e "en_US" -e "de_DE" -e "en_GB"
| xargs localedef --delete-from-archive
 $ mv /usr/lib/locale/locale-archive /usr/lib/locale/locale-archive.tmpl
 $ build-locale-archive
After this, the size of the locale-archive file is ~4MB, and running a
single Bash instance does not show "107MB" for SGE anymore :-) Et voilà!


   Jérémie


2012/9/27 Les Mikesell :
> On Thu, Sep 27, 2012 at 10:46 AM, Gordon Messmer  wrote:
>>
>>> I understand it may not be very precise, however I still don't
>>> understant the difference compared to other x64 ditributions,
>>> under CentOS the value is 7 times higher!
>
> This might explain it:
> https://bugzilla.redhat.com/show_bug.cgi?id=156477
> The mmapped local-archive contains all languages even though only the
> ones you use are accessed from it.  Other distros split them and the
> installers only install what you want.
>
>> 64 bit system:
>> 7f8ae84b7000 102580K r  /usr/lib/locale/locale-archive
>>
>> 32 bit:
>> b7689000   2048K r  /usr/lib/locale/locale-archive
>
> That's an interesting difference on its own, since the underlying
> files are about 95M and 54M respectively.  Does the 32 bit kernel use
> some tricks to sparsely map files where the 64 bit one does it
> directly with page tables?
>
> --
>   Les Mikesell
>  lesmikes...@gmail.com
> ___
> 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] Prelink failure

2012-09-28 Thread Lars Hecking

 I have a number of CentOS6 machines, and on one of them, the daily prelink
 cron job aborts. Any ideas what to look for?

/etc/cron.daily/prelink:

/etc/cron.daily/prelink: line 47:  9381 Aborted (core dumped) 
/usr/sbin/prelink -av $PRELINK_OPTS >> /var/log/prelink/prelink.log 2>&1

 I'm unfamiliar with prelink, so I'm not sure what to look for in the logs.
 Grepping out recurring entries like "Could not find one of the dependencies",
 "^Prelinking", "^Linking", "undefined non-weak symbols", "Could not prelink",
 the interesting stuff remaining is

/usr/sbin/prelink: /opt/lgtonmc/bin/libcommonssl2.so is not present in any 
config file directories, nor was specified on command line
/usr/sbin/prelink: /usr/pgsql-9.1/lib/libpq.so.5.4 is not present in any config 
file directories, nor was specified on command line
/usr/sbin/prelink: /usr/bin/emacs-23.1: COPY relocations don't point into .bss 
or .sbss section
/usr/sbin/prelink: /usr/bin/emacs-23.1-nox: COPY relocations don't point into 
.bss or .sbss section
Prelink failed with return value 134

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


Re: [CentOS] centos6 - failsafe terminal on login screen

2012-09-28 Thread fred smith
On Thu, Sep 27, 2012 at 05:36:19PM -1000, Miranda Hawarden-Ogata wrote:
> I have some clients that run centos6 and I need to have users be able to 
> access the "failsafe terminal" from the login screen. The old options (from 
> 4/5) for choosing your session aren't present. I've googled a bit on this 
> but don't seem to be using a good search string as most of the hits have 
> nothing to do with this and the rest aren't helpful.
> 
> So, just wondering if anyone knows what I need to do to "turn on" session 
> choosing from the login screen, and how to include the failsafe terminal.

so, if I understand correctly, you want to be able to choosoe "Gnome",
"XFCE", etc., etc. from the login screen, right?

the feature is there, but it doesn't show up until you've chosen a username
either from the list displayed, or entered one manually. so, enter a user
ID and then choose, before completing the password.

-- 
 Fred Smith -- fre...@fcshome.stoneham.ma.us -
  "And he will be called Wonderful Counselor, Mighty God, Everlasting Father,
  Prince of Peace. Of the increase of his government there will be no end. He 
 will reign on David's throne and over his kingdom, establishing and upholding
  it with justice and righteousness from that time on and forever."
--- Isaiah 9:7 (niv) --
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Routing issue

2012-09-28 Thread Steve Clark
On 09/27/2012 09:47 PM, Manish Kathuria wrote:
> On Thu, Sep 27, 2012 at 8:55 PM, Steve Clark  wrote:
>> On 09/27/2012 11:01 AM, Manish Kathuria wrote:
>>
>> On Thu, Sep 27, 2012 at 7:04 PM, Steve Clark  wrote:
>>
>> On 09/26/2012 11:57 PM, Manish Kathuria wrote:
>>
>> On Thu, Sep 27, 2012 at 7:46 AM, Gordon Messmer  wrote:
>>
>> On 09/26/2012 09:15 AM, Steve Clark wrote:
>>
>> The routes-x.y-z.diff is a unified patch containing different parts
>> which include support for Dead Gateway Detection as well.  However,
>> since that is limited to the first hop, it is preferable to have a
>> userspace script as you are doing. I also use a script to check the
>> accessibility of a remote popular site from each of the ISPs and based
>> upon the response the links are treated alive or dead and the default
>> gateway is changed. However, the routing problem as described by you
>> will only be solved after applying this patch (routes-x.y-z.diff).
>>
>> As for marking the incoming packets to ensure that they go out from
>> the same interface they came from, you could do something like the
>> following:
>>
>> Using iptables mark the incoming traffic from external interfaces
>>
>> /sbin/iptables -t mangle -A PREROUTING -j CONNMARK --restore-mark
>> /sbin/iptables -t mangle -A OUTPUT -j CONNMARK --restore-mark
>> /sbin/iptables -t mangle -A PREROUTING -i eth1 -j MARK  --set-mark 1
>> /sbin/iptables -t mangle -A PREROUTING -i eth1 -j CONNMARK --save-mark
>> /sbin/iptables -t mangle -A PREROUTING -i eth2 -j MARK  --set-mark 2
>> /sbin/iptables -t mangle -A PREROUTING -i eth2 -j CONNMARK --save-mark
>>
>> Add the following rules to your existing ones for policy routing
>>
>> /sbin/ip rule add fwmark 1 table T1
>> /sbin/ip rule add fwmark 2 table T2
>>
>> Hi Manish,
>>
>> Thanks for the info. The one question I have is about
>> /sbin/iptables -t mangle -A OUTPUT -j CONNMARK --restore-mark
>>
>> I thought the OUTPUT chain was only for packets originating locally. I am
>> only concerned
>> with clients behind my Linux router, do I still need this?
> Yes you are right but in case if you have any services running on the
> linux router itself (for example sshd) and  accessible from the
> internet, it would help.
>
>
Hi Manish,

The above rules appear to be for clients coming into the router from external. 
They
don't solve the problem for clients inside the router going out thru the load 
balanced
interfaces.

I have done much googling and testing without much luck. At this point in time 
I would
be satisfied with just being able to have a client inside the router do FTP 
over just one
of the outbound interfaces without any load balancing for FTP. I have this 
working but only
for active mode FTP by using the following:

/sbin/iptables -t mangle -A PREROUTING -p tcp --dport 20:21 -j MARK --set-mark 1

But it doesn't work for passive because you don't know what ports are going to 
be used.


Regards,

-- 
Stephen Clark
*NetWolves*
Director of Technology
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.cl...@netwolves.com
http://www.netwolves.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Changes to inodes discovered by aide

2012-09-28 Thread Tony Molloy
On Friday 28 September 2012 03:03:31 Jobst Schmalenbach wrote:
> Hi.
> 
> On one of my servers aide just reported inode changes to a large
>  bunch of files in a variety of directories, e.g. /usr/bin,
>  /usr/sbin etc. This machine sits behind a couple of firewalls and
>  it would be hard to get to.
> 
> The day before I updated "clam*" and updated the aide database
>  right after that:
> 
>   -rw---  1 root root 7407412 Sep 26 10:58 aide.db.gz
> 
> 
> The problem was that the changes were made when no-one was in the
>  office, here are a few:
> 
>Directory: /usr/sbin
>  Mtime: 2012-09-26 10:55:15  , 2012-09-27
>  06:36:42 Ctime: 2012-09-26 10:55:15  , 2012-09-27
>  06:36:42 File: /usr/sbin/wpa_supplicant
>  Ctime: 2012-09-07 06:39:44  , 2012-09-27
>  06:36:40 Inode: 2490595  , 2490536 MD5
>   : IVNJESmXwIG9XY0MowL3CA== , DUQMpFMsKqlZgjOmJIp3OQ==
>  RMD160   : 4xuWhqqliTLM5Jx6zAvQ9f1PY1c= ,
>  AlSPQGiVe+/T8YdHDSIypI904kA= SHA256   :
>  OaUWNIGUS9AhXEjV3p8Cg4TeIEjuQ/tu ,
>  z1c9XCKVyjDzDuN7t32B+sbj6nil90TK File: /usr/sbin/clamav-milter
>  Size : 202453   , 206637
>  Ctime: 2012-09-26 10:55:15  , 2012-09-27
>  06:36:37 Inode: 2490507  , 2490625 MD5
>   : HoONWy9q+qbRzHtlTeR6Wg== , klWTxNFmL8MEAQmIPwvHxg==
>  RMD160   : lfa72Vrh6Q2DWjf+UIxREAK4V1Y= ,
>  MPbEoKH/ws3aWA+sBuycRvU9DP0= SHA256   :
>  aFRvKcA999IPRFJ2qByu8aKB6QmHpW5i ,
>  u0oTtBkHjchhlY8AIejOfKPoJRencpmK
> 
> 
> Yum does not report anything (last 4 lines os yum.log)
> 
>Sep 21 10:40:11 Installed: ghostscript-fonts-5.50-13.1.1.noarch
>Sep 26 10:55:14 Updated: clamav-0.97.6-1.el5.rf.x86_64
>Sep 26 10:55:15 Updated: clamd-0.97.6-1.el5.rf.x86_64
>Sep 26 10:55:15 Updated: clamav-milter-0.97.6-1.el5.rf.x86_64
> 
> I ran (a fresh install) of rkhunter, did not find a thing ...
> 
> Is it possible that a change to one file sets of a domino effect of
>  indode changes?
> 
> 
> thanks
> Jobst
> 

Just a thought. I run tripwire, planning to switch to aide, and 
occasionally see the same. Lots of changes reported reported in /bin 
type directories. In my case it's caused by a run of prelink updating 
lots of files in /bin.

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


Re: [CentOS] rpm archives

2012-09-28 Thread Keith Keller
On 2012-09-28, Kaushal Shriyan  wrote:
>
> Is there a way to retrieve old rpm binaries from archives.

http://vault.centos.org/


-- 
kkel...@wombat.san-francisco.ca.us


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


[CentOS] rpm archives

2012-09-28 Thread Kaushal Shriyan
Hi

Is there a way to retrieve old rpm binaries from archives.

Regards

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