[CentOS-docs] http://www.centos.org/docs

2012-04-04 Thread Paul (Crunch)
Hi,
Why does http://www.centos.org/docs not  point to say this for example:

http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/index.html

The latter is more comprehensive. The links that 
http://www.centos.org/docs  contains all have upstream labels on the 
reading material, so I'm guessing the trademark boundries are not being 
crossed.

Regards,

Paul (Crunch)
___
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs


[CentOS-announce] CEBA-2012:0452 CentOS 6 db4 FASTTRACK Update

2012-04-04 Thread Johnny Hughes

CentOS Errata and Bugfix Advisory 2012:0452 

Upstream details at : https://rhn.redhat.com/errata/RHBA-2012-0452.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( sha256sum Filename ) 


i386:
0a466556f5dd693a22fe8b60a17f36ee520a86709a2bb8f9890892a744b5f744  
db4-4.7.25-17.el6.i686.rpm
f3ea647e99d9c6025aa9d52c0ea5a8fe6c87882983f96da7962ddae77f7fcd39  
db4-cxx-4.7.25-17.el6.i686.rpm
1955922d352baef7a5762ff5120f19848156d8326435e0558b724aba665e8635  
db4-devel-4.7.25-17.el6.i686.rpm
492f272e50760b050e493689b6f646322985a29afa090ff678ba557f1936ab4a  
db4-devel-static-4.7.25-17.el6.i686.rpm
ddfff0ab683e1a8404c51187728eb2a8216b1e00f8a3874091976780df778387  
db4-java-4.7.25-17.el6.i686.rpm
8a0a58dcbdf25de16c3f02a0c0344de1483543b64e9201bef0aca3aa0f6a392b  
db4-tcl-4.7.25-17.el6.i686.rpm
cb92d90ac31fe066b5f7727244711c5312601b2c8bbb7eb813d88a9cf1bb9de9  
db4-utils-4.7.25-17.el6.i686.rpm

x86_64:
0a466556f5dd693a22fe8b60a17f36ee520a86709a2bb8f9890892a744b5f744  
db4-4.7.25-17.el6.i686.rpm
1af69a9921742f41f57d09f03d2076174e28f9020b32fa6a18dc662fc7c77f2e  
db4-4.7.25-17.el6.x86_64.rpm
f3ea647e99d9c6025aa9d52c0ea5a8fe6c87882983f96da7962ddae77f7fcd39  
db4-cxx-4.7.25-17.el6.i686.rpm
bade71631c61e4bc9ffe1f8c30060a3cbc4fcd1c453365fd223220d5d4c20868  
db4-cxx-4.7.25-17.el6.x86_64.rpm
1955922d352baef7a5762ff5120f19848156d8326435e0558b724aba665e8635  
db4-devel-4.7.25-17.el6.i686.rpm
f6b7ae526caa8b0b771205d5ab6094accbc4cd32318a2a56330f83f2de5f0cb8  
db4-devel-4.7.25-17.el6.x86_64.rpm
6651c2c68167b81b2848173c0a8fa13636a2e2e2fda085304e2d7d426816ae16  
db4-devel-static-4.7.25-17.el6.x86_64.rpm
284f11258cc2a4ed52ea0eeb4fbbf914fdc06316d9e744545fe7af2bf4cb  
db4-java-4.7.25-17.el6.x86_64.rpm
471ce4382d34803462cc69a930d3bb0c8e06c35faaa5ae36b2796bd1ee96667e  
db4-tcl-4.7.25-17.el6.x86_64.rpm
1eb0fc38dfbfb019fecc3ab35e3f1e2e4fe38e4eb6a107a3e643bdefbbeb2cea  
db4-utils-4.7.25-17.el6.x86_64.rpm

Source:
4d7e1cfb9d369a22052f4f1d519b28a2ce6c54eee67ce243a530b038f4b4b887  
db4-4.7.25-17.el6.src.rpm



-- 
Johnny Hughes
CentOS Project { http://www.centos.org/ }
irc: hughesjr, #cen...@irc.freenode.net

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


Re: [CentOS-es] Resumen de CentOS-es, Vol 64, Envío 2

2012-04-04 Thread Osmany Oconnor

Salu2s
O§many Oconnor



El 03/04/12 12:00, centos-es-requ...@centos.org escribió:
 Envíe los mensajes para la lista CentOS-es a
   centos-es@centos.org

 Para subscribirse o anular su subscripción a través de la WEB
   http://lists.centos.org/mailman/listinfo/centos-es

 O por correo electrónico, enviando un mensaje con el texto help en
 el asunto (subject) o en el cuerpo a:
   centos-es-requ...@centos.org

 Puede contactar con el responsable de la lista escribiendo a:
   centos-es-ow...@centos.org

 Si responde a algún contenido de este mensaje, por favor, edite la
 linea del asunto (subject) para que el texto sea mas especifico que:
 Re: Contents of CentOS-es digest Además, por favor, incluya en
 la respuesta sólo aquellas partes del mensaje a las que está
 respondiendo.


 Asuntos del día:

 1. Re: configuracion de dns (Ignacio Ordeñana)
 2. Re: configuracion de dns (Aland Laines)
 3. Re: configuracion de dns (Normando Hall)
 4. Re: configuracion de dns (Edg@r Rodolfo)
 5. [OT] Software de diseño e impresion de tarjeta de
identificacion (ID Cards) (Aland Laines)


 --

 Message: 1
 Date: Mon, 2 Apr 2012 10:27:05 -0600
 From: Ignacio Ordeñanaifor1...@gmail.com
 Subject: Re: [CentOS-es] configuracion de dns
 To: centos-es@centos.org
 Message-ID:
   CAN2ky+q+B_0-MkyLcZdOij2Z6G-UNN1tKFPXZtefZxBV=vn...@mail.gmail.com
 Content-Type: text/plain; charset=iso-8859-1

 hola al ejecutar un chequeo de la zona con el siguinte comando:
 named-checkzone dominio.com.zone /var/named/chroot/var/named me
 muestra el siguiente error:

esto te muestra un error de archivo invalido, debes dirigirlo al archivo 
de la zona, estaría en esa misma ruta agregando /data/midominio.com 
ahora si verás un informe de estado de zona correcta
 dns_master_load: var/named/chroot/var/named:1 isc_lex_gottoken()
 failed: invalid file esto lo da repetidas veces hasta que le doy ctrl
 + c se detiene

 adjunto el ejemplo que segui,el sistema operativo es centos 5.7

 saludos

 El día 2 de abril de 2012 08:03, César CRUZ ARRUNATEGUI
 cc...@mail.ipd.gob.pe  escribió:
 www.howtoforge.org


 César D. Cruz Arrunátegui


 - Mensaje original -
 De: Ignacio Ordeñanaifor1...@gmail.com
 Para: centos-es@centos.org
 Enviados: Domingo, 1 de Abril 2012 13:52:00
 Asunto: [CentOS-es] configuracion de dns

 hola

 alguien tiene la configuracion completa para configurar un servidor
 dns pero en centos 5.7 ya que las configuraciones que se muestran en
 alcance libre o linux para todos no funcionan en esta version de
 centos

 saludos
 ___
 CentOS-es mailing list
 CentOS-es@centos.org
 http://lists.centos.org/mailman/listinfo/centos-es
 ___
 CentOS-es mailing list
 CentOS-es@centos.org
 http://lists.centos.org/mailman/listinfo/centos-es
  próxima parte 
 $TTL 86400
 @ IN SOA dns1.tuDominio.com.com. admin.tuDominio.com. (
 2008061001; Numero de Serie
 28800; Tiempo de Refresco
 7200; Tiempo de Reintentos
 604800; Expiracion
 86400; Tiempo Total de Vida
 )
 @ IN NS dns1
 @ IN MX 10 correo
 @ IN A 192.168.1.10
 dns1 IN A 192.168.1.10
 correo IN A 192.168.1.11

 --

 Message: 2
 Date: Mon, 2 Apr 2012 11:28:50 -0500
 From: Aland Lainesaland.lai...@gmail.com
 Subject: Re: [CentOS-es] configuracion de dns
 To: centos-es@centos.org
 Message-ID:
   cabk_u6qen6v49ufvei5dv62cjdaiooovpiwgeco+jbcomio...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1

 El 2 de abril de 2012 01:56, Edg@r Rodolfoedgarr...@gmail.com  escribió:

 El 01/04/12, Ignacio Ordeñanaifor1...@gmail.com  escribió:
 al configurar el dns y todo estar ok,al utilizar el comando host
 dominio.com mas el ip muestra el siguiente mensaje connection time
 out trying next origin de igual manera al utilizar los comandos dig
 @ip dominio.com
 En ese mismo instante mira en /var/log/messages usa tail: tail
 /var/log/messages, ahí te motrara que esta pasando dónde podría estar
 el error...

 También no te olvides de poner en /etc/resolv.conf search, domain y
 maneserver


 Aqui arriba se le fue el dedo a nuestro amigo es: nameserver (en ves de
 maneserver)}

 Saludos,

 Aland Laines Calonge
 Tecnico en Informatica
 Lima - Perú


 --

 Message: 3
 Date: Mon, 02 Apr 2012 16:31:40 -0300
 From: Normando Hallnh...@unixlan.com.ar
 Subject: Re: [CentOS-es] configuracion de dns
 To: centos-es@centos.org
 Message-ID:4f79fe9c.9020...@unixlan.com.ar
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed

 Instala djbdns y olvídate de los problemas con bind. Es muy fácil de
 instalar y usar.

 Normando

 El 01/04/2012 03:52 p.m., Ignacio Ordeñana escribió:
 hola

 alguien tiene la configuracion completa para configurar un servidor
 dns pero en centos 5.7 ya que las configuraciones que se muestran en
 alcance libre o 

[CentOS-es] Donde descargar la version Centos 5.6

2012-04-04 Thread fernando naviabola�os

Buenas noches a todos  espero se encuentren bien,quisiera me colaboran 
indiandome donde puedo descargar la version Centos 5.6,pues desde la pagina de 
Centos no he podido no encuentro el link y en otros portales de internet 
tampoco.Les agradezco me ayuden con esto pues soy un usuario nuevo de Linux y 
quiero instalar y configurar esta distribucion.
  
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


Re: [CentOS-es] Donde descargar la version Centos 5.6

2012-04-04 Thread Ernesto Pérez Estévez
On 04/04/2012 08:53 PM, fernando naviabola�os wrote:

 Buenas noches a todos  espero se encuentren bien,quisiera me
 colaboran indiandome donde puedo descargar la version Centos 5.6,pues
 desde la pagina de Centos no he podido no encuentro el link y en
 otros portales de internet tampoco.Les agradezco me ayuden con esto
 pues soy un usuario nuevo de Linux y quiero instalar y configurar
 esta distribucion.  ___

bueno, perfecto que uses centos-5, te fijas que solamente digo centos-5? 
no hablo de lo que va después del punto ahora.

ahora sí, hablaré del numerito detrás del punto, para qué 5.6 si ya está 
la 5.8? La 5.8 es el mismo centos-5punto6 pero con importantísimas 
actualizaciones. Nada más que eso.

puedes bajarle de http://mirror.centos.org

si por alguna injustificable razón, aún deseas precisamente el 
desactualizado centos-5.6, dale, ve aqui http://vault.centos.org
saludos
epe



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


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


[CentOS] Block outgoing connections for certaing uids (root, apache, nobody)

2012-04-04 Thread Alexander Farber
Good morning

With iptables in CentOS 5 and 6 Linux - how can you please
prevent processes running as root, apache or nobody
from initiating outgoing connections?

On CentOS 5 Linux I've tried putting these lines into /etc/sysconfig/iptables:

-A OUTPUT -m owner --uid-owner root -j DROP
-A OUTPUT -m owner --uid-owner apache -j DROP
-A OUTPUT -m owner --uid-owner nobody -j DROP

but unfortunately get the error:

# sudo service iptables restart
iptables: Flushing firewall rules: [  OK  ]
iptables: Setting chains to policy ACCEPT: filter  [  OK  ]
iptables: Unloading modules:   [  OK  ]
iptables: Applying firewall rules: iptables-restore v1.4.7: owner: Bad
value for --uid-owner option: apache
Error occurred at line: 27
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
   [FAILED]

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


Re: [CentOS] Block outgoing connections for certaing uids (root, apache, nobody)

2012-04-04 Thread Tony Mountifield
In article caadeywhp3mjspc-mo7aewzsxsq9phibpho2iu3bo8i0ttji...@mail.gmail.com,
Alexander Farber alexander.far...@gmail.com wrote:
 Good morning
 
 With iptables in CentOS 5 and 6 Linux - how can you please
 prevent processes running as root, apache or nobody
 from initiating outgoing connections?
 
 On CentOS 5 Linux I've tried putting these lines into /etc/sysconfig/iptables:
 
 -A OUTPUT -m owner --uid-owner root -j DROP
 -A OUTPUT -m owner --uid-owner apache -j DROP
 -A OUTPUT -m owner --uid-owner nobody -j DROP
 
 but unfortunately get the error:
 
 # sudo service iptables restart
 iptables: Flushing firewall rules: [  OK  ]
 iptables: Setting chains to policy ACCEPT: filter  [  OK  ]
 iptables: Unloading modules:   [  OK  ]
 iptables: Applying firewall rules: iptables-restore v1.4.7: owner: Bad
 value for --uid-owner option: apache
 Error occurred at line: 27
 Try `iptables-restore -h' or 'iptables-restore --help' for more information.
[FAILED]

Perhaps it doesn't do a username lookup and only understands numeric userids?
Try:

-A OUTPUT -m owner --uid-owner 0 -j DROP
-A OUTPUT -m owner --uid-owner 48 -j DROP
-A OUTPUT -m owner --uid-owner 99 -j DROP

(I think those values are standard on CentOS)

Bear in mind that preventing root connections would stop you doing any
kind of updating using yum, unless you have a previous rule allowing http.

Cheers
Tony
-- 
Tony Mountifield
Work: t...@softins.co.uk - http://www.softins.co.uk
Play: t...@mountifield.org - http://tony.mountifield.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 6.2 + areca raid + xfs problems

2012-04-04 Thread Crunch
On 04/03/2012 05:58 PM, Tony Schreiner wrote:
 Two weeks ago I (clean-)installed CentOS 6.2 on a server which had been 
 running 5.7.

 There is a 16 disk = ~11 TB data volume running on an Areca ARC-1280 raid 
 card with LVM + xfs filesystem on it. The included arcmsr driver module is 
 loaded.

 At first it seemed ok, but with in a few hours I started getting I/O error 
 message on directory listings, and then a bit later when I did a vgdisplay 
 command there was garbage in that.

The file system data are being corrupted. This can only happen either 
through human intervention or hardware failure; assuming that the 
original installation was okay. This is a safe assumption to make 
considering you've reinstalled and it now seems to be okay.


 I then ran the volume check on the RAID card bios, it flagged 3 errors. When 
 I restarted the system, things were ok, but then the problem reappeared.
 I ran another volume check and no errors were flagged (I should note, the 
 check takes about 9 hours). but upon restarting, the file system was ok, but 
 then went bad again.

Presumably the card bios runs checks only on the firmware and/or the 
hardware; say disks and the card itself. The reported errors therefore 
point to those components.


 Another symptom was that the cli64 raid management utility, which I got from 
 the Areca site would just hang.
I would guess the utility is a piece of client code that queries the 
firmware. Assuming nothing is wrong with the client code, this implies 
some form of defect occurring in the firmware. Could be unresponsive 
hardware or corrupt firmware code.


 After a couple of days of this, I decided I could not afford to have this 
 system unavailable, and I reinstalled CentOS 5.8. Everything has been fine 
 since.
The firmware and file system may well have corrected the errors on your 
first pass. But then for the corruption to happen again without any 
detected errors sounds inconsistent. There's something missing here. 
Maybe the card corrected the errors itself the second time leaving 
corruption behind.

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


Re: [CentOS] CentOS 6.2 + areca raid + xfs problems

2012-04-04 Thread Karanbir Singh
On 04/03/2012 09:58 PM, Tony Schreiner wrote:
 Two weeks ago I (clean-)installed CentOS 6.2 on a server which had been 
 running 5.7.
 

there have been a few issues reported on SuperMicro kit running some
specific configs and Areca interfaces. I've been in touch with the guys
at Areca and are looking into what the issues might be. I would
recommend you join the bug report and contribute there; the more test
cases we can address at once the better it is.

I cant get to :80 at the moment, so cant give you a bug number, should
be fairly easy to find.


-- 
Karanbir Singh
+44-207-0999389 | http://www.karan.org/ | twitter.com/kbsingh
ICQ: 2522219| Yahoo IM: z00dax  | Gtalk: z00dax
GnuPG Key : http://www.karan.org/publickey.asc
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Installing CentOS 6.2 *TO* a USB drive, not installing from USB.

2012-04-04 Thread Emmanuel Noobadmin
I'm trying to setup a very small system intended for doing
monitoring/logging. It's done on an Intel Atoms in a small box and the
idea was to simply run it off a pair of USB flash drives in software
RAID 1.

Now the problem is that while the 6.2 DVD installer could go through
the entire install process, grub will load then just stop at the
prompt. The system will work if I use a SATA hard disk so motherboard
compatibility is not an issue.

Attempting the various methods to re-install grub (via rescue mode) or
using the grub prompt to setup the disk does not work either. grub
just does not seem to be able to find the USB drives. e.g. commands
like root (hd0,0) just says device not found. This is despite grub
having just loaded from it and despite that grub-install in rescue
mode does not report any error.

Same problem even if I just go with one USB drive in a plain vanilla ext3 setup.

It seems that some sites are saying that EL variants just don't seem
to be adaptable to installing and running off USB drives. Is this
really the case and that I should be looking at using another
distribution or am I just missing some crucial steps in the process?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Installing CentOS 6.2 *TO* a USB drive, not installing from USB.

2012-04-04 Thread Karanbir Singh
On 04/04/2012 11:46 AM, Emmanuel Noobadmin wrote:
 just does not seem to be able to find the USB drives. e.g. commands
 like root (hd0,0) just says device not found. This is despite grub

hd0,0 represents the bios device id, are you sure thats what your bios
thinks the usb disk is at ?

-- 
Karanbir Singh
+44-207-0999389 | http://www.karan.org/ | twitter.com/kbsingh
ICQ: 2522219| Yahoo IM: z00dax  | Gtalk: z00dax
GnuPG Key : http://www.karan.org/publickey.asc
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] SSL plugin not enabled - CentOS 6.2

2012-04-04 Thread Prabhpal S. Mavi
Greetings Dear All,

i am having difficulty o understand of the following log on CentOS_6.2
x86_64.
i tried google it, but could not get any result at all. is anyone has come
across  solve it?

any help or suggestion would be highly appreciated

Log: in /var/log/messages
Apr  4 10:23:15 jet qpidd[2265]: 2012-04-04 10:23:15 notice SSL plugin not
enabled, you must set --ssl-cert-db to enable it.


Thanks / Regards
Prabhpal S. Mavi



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


Re: [CentOS] SSL plugin not enabled - CentOS 6.2

2012-04-04 Thread Patrick Lists
On 04/04/2012 02:27 PM, Prabhpal S. Mavi wrote:
[snip]
 Log: in /var/log/messages
 Apr  4 10:23:15 jet qpidd[2265]: 2012-04-04 10:23:15 notice SSL plugin not
 enabled, you must set --ssl-cert-db to enable it.

yum search qpid gives you a hint what qpid is. I'm not familiar with it 
but the message seems to suggest you need to configure SSL certificates 
in qpid's configuration to enable secure SSL communication between qpid 
and its clients (of whatever they are called in the AMQP world).

If you don't use qpid then I guess you could remove it.

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


Re: [CentOS] SSL plugin not enabled - CentOS 6.2

2012-04-04 Thread Mehdi Maache
Le 04/04/2012 14:27, Prabhpal S. Mavi a écrit :
 Greetings Dear All,

 i am having difficulty o understand of the following log on CentOS_6.2
 x86_64.
 i tried google it, but could not get any result at all. is anyone has come
 across  solve it?

 any help or suggestion would be highly appreciated

 Log: in /var/log/messages
 Apr  4 10:23:15 jet qpidd[2265]: 2012-04-04 10:23:15 notice SSL plugin not
 enabled, you must set --ssl-cert-db to enable it.


 Thanks / Regards
 Prabhpal S. Mavi



 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
I google it with qpidd ssl and i found this :
http://rajith.2rlabs.com/2010/03/01/apache-qpid-securing-connections-with-ssl/

I think you need to install qpidd-ssl and configure a certificat to use 
with.

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


Re: [CentOS] SSL plugin not enabled - CentOS 6.2 - Solved !

2012-04-04 Thread Prabhpal S. Mavi
Dear Patrick  Medhi,

Thank you for your response  suggestions that enabled me to figure out
that i am not using QPID.

/sbin/chkconfig qpidd off  - Fixed the problem.

mistakenly, i was actually reading it as gpid (GPID)rather than qpid.
After your response, i realized my read error. That was the reason i did
not get result from google.

Well Done Guys. !

Thanks / Regards

 Le 04/04/2012 14:27, Prabhpal S. Mavi a écrit :
 Greetings Dear All,

 i am having difficulty o understand of the following log on CentOS_6.2
 x86_64.
 i tried google it, but could not get any result at all. is anyone has
 come
 across  solve it?

 any help or suggestion would be highly appreciated

 Log: in /var/log/messages
 Apr  4 10:23:15 jet qpidd[2265]: 2012-04-04 10:23:15 notice SSL plugin
 not
 enabled, you must set --ssl-cert-db to enable it.


 Thanks / Regards
 Prabhpal S. Mavi



 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
 I google it with qpidd ssl and i found this :
 http://rajith.2rlabs.com/2010/03/01/apache-qpid-securing-connections-with-ssl/

 I think you need to install qpidd-ssl and configure a certificat to use
 with.

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



Thanks / Regards
Prabhpal S. Mavi



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


Re: [CentOS] Block outgoing connections for certaing uids (root, apache, nobody)

2012-04-04 Thread Tris Hoar

On 04/04/2012 10:21, Tony Mountifield wrote:
 In 
 articlecaadeywhp3mjspc-mo7aewzsxsq9phibpho2iu3bo8i0ttji...@mail.gmail.com,
 Alexander Farberalexander.far...@gmail.com  wrote:
 Good morning

 With iptables in CentOS 5 and 6 Linux - how can you please
 prevent processes running as root, apache or nobody
 from initiating outgoing connections?

 On CentOS 5 Linux I've tried putting these lines into 
 /etc/sysconfig/iptables:

 -A OUTPUT -m owner --uid-owner root -j DROP
 -A OUTPUT -m owner --uid-owner apache -j DROP
 -A OUTPUT -m owner --uid-owner nobody -j DROP

 but unfortunately get the error:

 # sudo service iptables restart
 iptables: Flushing firewall rules: [  OK  ]
 iptables: Setting chains to policy ACCEPT: filter  [  OK  ]
 iptables: Unloading modules:   [  OK  ]
 iptables: Applying firewall rules: iptables-restore v1.4.7: owner: Bad
 value for --uid-owner option: apache
 Error occurred at line: 27
 Try `iptables-restore -h' or 'iptables-restore --help' for more information.
 [FAILED]

 Perhaps it doesn't do a username lookup and only understands numeric userids?
 Try:

 -A OUTPUT -m owner --uid-owner 0 -j DROP
 -A OUTPUT -m owner --uid-owner 48 -j DROP
 -A OUTPUT -m owner --uid-owner 99 -j DROP

 (I think those values are standard on CentOS)

 Bear in mind that preventing root connections would stop you doing any
 kind of updating using yum, unless you have a previous rule allowing http.

 Cheers
 Tony

This would also stop the server being able to use DNS, and would likely 
break other things. I'd be wary of stopping root talking out of the network.

Tris

*
This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity 
to whom they are addressed. If you have received this email 
in error please notify postmas...@bgfl.org

The views expressed within this email are those of the 
individual, and not necessarily those of the organisation
*

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


Re: [CentOS] Block outgoing connections for certaing uids (root, apache, nobody)

2012-04-04 Thread Lamar Owen
On Wednesday, April 04, 2012 05:13:11 AM Alexander Farber wrote:
 Good morning
 
 With iptables in CentOS 5 and 6 Linux - how can you please
 prevent processes running as root, apache or nobody
 from initiating outgoing connections?

This sounds more like something an SELinux rule could do better, and on a 
per-process basis.

Now, I don't have such a rule or policy file written, but I think for this 
purpose SELinux is the right tool to try to use.  You might have to go from the 
rather lenient 'targeted' policy to the rather difficult to use 'strict' policy 
to make it happen, though.

Dan Walsh is on here, and he's the expert, so maybe he'll weigh in.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] centos 5 and 802.1x on wire

2012-04-04 Thread Lamar Owen
On Tuesday, April 03, 2012 03:48:27 AM John R Pierce wrote:
 ethernet has no concept of authentication inherent in it.  

See packetfence and 802.1x used together with the appropriate ethernet switch.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 6.2 + areca raid + xfs problems

2012-04-04 Thread Tony Schreiner

On Apr 4, 2012, at 6:35 AM, Karanbir Singh wrote:

 On 04/03/2012 09:58 PM, Tony Schreiner wrote:
 Two weeks ago I (clean-)installed CentOS 6.2 on a server which had been 
 running 5.7.
 
 
 there have been a few issues reported on SuperMicro kit running some
 specific configs and Areca interfaces. I've been in touch with the guys
 at Areca and are looking into what the issues might be. I would
 recommend you join the bug report and contribute there; the more test
 cases we can address at once the better it is.
 
 I cant get to :80 at the moment, so cant give you a bug number, should
 be fairly easy to find.
 
 
 -- 
 Karanbir Singh
 +44-207-0999389 | http://www.karan.org/ | twitter.com/kbsingh
 ICQ: 2522219| Yahoo IM: z00dax  | Gtalk: z00dax
 GnuPG Key : http://www.karan.org/publickey.asc
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


Thanks, will do.
Tony Schreiner
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 6.2 + areca raid + xfs problems

2012-04-04 Thread Tony Schreiner
replying at the end

On Apr 4, 2012, at 5:26 AM, Crunch wrote:

 On 04/03/2012 05:58 PM, Tony Schreiner wrote:
 Two weeks ago I (clean-)installed CentOS 6.2 on a server which had been 
 running 5.7.
 
 There is a 16 disk = ~11 TB data volume running on an Areca ARC-1280 raid 
 card with LVM + xfs filesystem on it. The included arcmsr driver module is 
 loaded.
 
 At first it seemed ok, but with in a few hours I started getting I/O error 
 message on directory listings, and then a bit later when I did a vgdisplay 
 command there was garbage in that.
 
 The file system data are being corrupted. This can only happen either 
 through human intervention or hardware failure; assuming that the 
 original installation was okay. This is a safe assumption to make 
 considering you've reinstalled and it now seems to be okay.
 
 
 I then ran the volume check on the RAID card bios, it flagged 3 errors. When 
 I restarted the system, things were ok, but then the problem reappeared.
 I ran another volume check and no errors were flagged (I should note, the 
 check takes about 9 hours). but upon restarting, the file system was ok, but 
 then went bad again.
 
 Presumably the card bios runs checks only on the firmware and/or the 
 hardware; say disks and the card itself. The reported errors therefore 
 point to those components.
 
 
 Another symptom was that the cli64 raid management utility, which I got from 
 the Areca site would just hang.
 I would guess the utility is a piece of client code that queries the 
 firmware. Assuming nothing is wrong with the client code, this implies 
 some form of defect occurring in the firmware. Could be unresponsive 
 hardware or corrupt firmware code.
 
 
 After a couple of days of this, I decided I could not afford to have this 
 system unavailable, and I reinstalled CentOS 5.8. Everything has been fine 
 since.
 The firmware and file system may well have corrected the errors on your 
 first pass. But then for the corruption to happen again without any 
 detected errors sounds inconsistent. There's something missing here. 
 Maybe the card corrected the errors itself the second time leaving 
 corruption behind.
 
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

i'm not sure what you're saying can be entirely true. What I failed to mention 
in the original post, is that I did not recreate the problematic data volume 
during either install; it was preserved both for the upgrade and the downgrade. 
It doesn't appear that there is any filesystem corruption independent of the 
raid software, xfs_check doesn't discover any.

I'm willing to believe that the raid firmware is problematic, but it seems to 
be an issue with version 6 but not version 5.

I'm in the process of reporting to the BugTracker. As KB mentioned, there is an 
existing id 5517.

Tony Schreiner

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


[CentOS] CentOS-announce Digest, Vol 86, Issue 3

2012-04-04 Thread centos-announce-request
Send CentOS-announce mailing list submissions to
centos-annou...@centos.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.centos.org/mailman/listinfo/centos-announce
or, via email, send a message with subject or body 'help' to
centos-announce-requ...@centos.org

You can reach the person managing the list at
centos-announce-ow...@centos.org

When replying, please edit your Subject line so it is more specific
than Re: Contents of CentOS-announce digest...


Today's Topics:

   1. CEBA-2012:0444  CentOS 6 cpio FASTTRACK Update (Johnny Hughes)
   2. CEBA-2012:0448 CentOS 6 system-config-printer FASTTRACK
  Update (Johnny Hughes)
   3. CEBA-2012:0443  CentOS 6 make FASTTRACK Update (Johnny Hughes)
   4. CEBA-2012:0449  CentOS 6 man FASTTRACK Update (Johnny Hughes)
   5. CEBA-2012:0450 CentOS 6 kdeartwork FASTTRACK  Update
  (Johnny Hughes)
   6. CEBA-2012:0447 CentOS 6 portreserve FASTTRACK Update
  (Johnny Hughes)
   7. CEBA-2012:0446  CentOS 6 SDL FASTTRACK Update (Johnny Hughes)
   8. CEBA-2012:0442  CentOS 6 lsof FASTTRACK Update (Johnny Hughes)
   9. CEBA-2012:0445  CentOS 6 pcre FASTTRACK Update (Johnny Hughes)
  10. CESA-2012:0451 Important CentOS 5 rpm Update (Johnny Hughes)
  11. CESA-2012:0451 Important CentOS 6 rpm Update (Johnny Hughes)


--

Message: 1
Date: Tue, 3 Apr 2012 16:07:24 +
From: Johnny Hughes joh...@centos.org
Subject: [CentOS-announce] CEBA-2012:0444  CentOS 6 cpio FASTTRACK
Update
To: centos-annou...@centos.org
Message-ID: 20120403160724.ga24...@chakra.karan.org
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Bugfix Advisory 2012:0444 

Upstream details at : https://rhn.redhat.com/errata/RHBA-2012-0444.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( sha256sum Filename ) 


i386:
8214d069d6fee5943503205414775ecdfe1e6c8249336beed4c1c72643b68b8a  
cpio-2.10-10.el6.i686.rpm

x86_64:
7fb95781c7985952e9b64f625bca977b53f6772aa6d6bc04abf9c52e16f70197  
cpio-2.10-10.el6.x86_64.rpm

Source:
d05ee0c6b40012e59b38f7433f68cd8d2cd18698e285a777bea38a598c9b009c  
cpio-2.10-10.el6.src.rpm



-- 
Johnny Hughes
CentOS Project { http://www.centos.org/ }
irc: hughesjr, #cen...@irc.freenode.net



--

Message: 2
Date: Tue, 3 Apr 2012 16:07:39 +
From: Johnny Hughes joh...@centos.org
Subject: [CentOS-announce] CEBA-2012:0448 CentOS 6
system-config-printer   FASTTRACK Update
To: centos-annou...@centos.org
Message-ID: 20120403160739.ga24...@chakra.karan.org
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Bugfix Advisory 2012:0448 

Upstream details at : https://rhn.redhat.com/errata/RHBA-2012-0448.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( sha256sum Filename ) 


i386:
37ba95cfcdc57bf33b855060b56f8dbd5eb4814916d3941d7ec12cfdbc7348c7  
system-config-printer-1.1.16-23.el6.i686.rpm
56dbf244bb3b5b16d3e0233ee59718ad6dfabef4c0a95b2f70cc7554bcbd5a7f  
system-config-printer-libs-1.1.16-23.el6.i686.rpm
0ca8c229c62432380c72cbc8d9497658dccbd9a11f325d9ff846b5d28c81be37  
system-config-printer-udev-1.1.16-23.el6.i686.rpm

x86_64:
c3f90cb97694040aaf71a0dccc9d94c16dcfc1f9a2c180553d795aaf9e912af7  
system-config-printer-1.1.16-23.el6.x86_64.rpm
978dedf438cb94279957bd3eb4b5b437256cdd47b800200558ab89f26b41b766  
system-config-printer-libs-1.1.16-23.el6.x86_64.rpm
29d2f249bf425150b79cda6bf83ffa2883e0ce6030ff718ddd7904d9f576  
system-config-printer-udev-1.1.16-23.el6.x86_64.rpm

Source:
60be687f44a35d215bb80308afd3b76aeecc5f77794075720e93561323ae8c40  
system-config-printer-1.1.16-23.el6.src.rpm



-- 
Johnny Hughes
CentOS Project { http://www.centos.org/ }
irc: hughesjr, #cen...@irc.freenode.net



--

Message: 3
Date: Tue, 3 Apr 2012 16:07:50 +
From: Johnny Hughes joh...@centos.org
Subject: [CentOS-announce] CEBA-2012:0443  CentOS 6 make FASTTRACK
Update
To: centos-annou...@centos.org
Message-ID: 20120403160750.ga24...@chakra.karan.org
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Bugfix Advisory 2012:0443 

Upstream details at : https://rhn.redhat.com/errata/RHBA-2012-0443.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( sha256sum Filename ) 


i386:
d7e90e0b37964d8757fae155419f6c1c386849730f9e4a07fe51b8a125b554d1  
make-3.81-20.el6.i686.rpm

x86_64:
0cf99ea29e8d190d97acfa8a4e6dceb6bc4f8fff220b818a98739659925272e0  
make-3.81-20.el6.x86_64.rpm

Source:
feadd48e351f3e770b7ed6dfca6e290db6ebeab2d99c729415c034b13f369aa1  
make-3.81-20.el6.src.rpm



-- 
Johnny Hughes
CentOS Project { http://www.centos.org/ }
irc: hughesjr, #cen...@irc.freenode.net



--

Message: 4
Date: Tue, 3 Apr 2012 16:08:01 +
From: Johnny Hughes joh...@centos.org
Subject: [CentOS-announce] 

Re: [CentOS] Centos6 iptables startup vs. restart?

2012-04-04 Thread Nataraj
On 04/03/2012 05:25 AM, Les Mikesell wrote:
 On Tue, Apr 3, 2012 at 5:54 AM, Dennis Jacobfeuerborn
 denni...@conversis.de wrote:
 The iptables redirect works fine once the commands are loaded.  My
 problem is just that the boot-time startup isn't loading the saved
 state from /etc/sysconfig/iptables, but a subsequent 'service iptables
 restart' does - and it is something new in 6.x.

 Did you make sure that the service is active and that the iptables service
 is actually startet on bootup?

 Try chkconfig --list iptables to see if it is active and chkconfig
 iptables on to activate it.

 Yes, it does start, but the initial rules don't include the port
 redirection in the nat table.

I still think it's a timing problem.  Have you checked to see that the
proper NAT module is loaded in the kernel at the time when the iptables
rules are loaded?  At least for diagnostic purposes I would try adding a
delay in the startup.  You might even find that adding an lsmod into the
startup sequence (for diagnostic purposes) there would fix the problem. 
I have not had a chance to look at the scripts that do this in CentOS 6.

Nataraj

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


[CentOS] Centos 5.6 Kernel Panics

2012-04-04 Thread Jonathan Alstead
Hello,

Recently our dell sc1425 server has been locking up with kernel freezes 
and required a hard reboot on each occasion. I've looked on the centos 
forums with limited success - each problem seems slightly different 
(some failure on high load, some not). Our kernel is 2.6.18-274.17.1.el5 
and /var/log/messages show the following errors:

Apr  3 12:41:25 sp2 kernel: INFO: task mysqld:15345 blocked for more 
than 120 seconds.
Apr  3 12:41:25 sp2 kernel: echo 0  
/proc/sys/kernel/hung_task_timeout_secs disables this message.
Apr  3 12:41:25 sp2 kernel: mysqldD 0CEB  2524 15345  32083 
 15346 15167 (NOTLB)
Apr  3 12:41:25 sp2 kernel:c50c7f54 0082 bf379c08 0ceb 
ca9b1648 f43c6c5c  0001
Apr  3 12:41:25 sp2 kernel:d9d18000 bf384f01 0ceb b2f9 
0001 d9d1810c c2013ac4 edc5de40
Apr  3 12:41:25 sp2 kernel:08515c98 c6cb37b8 c2014464 c200cc80 
0020   
Apr  3 12:41:25 sp2 kernel: Call Trace:
Apr  3 12:41:25 sp2 kernel:  [c0622f16] 
rwsem_down_write_failed+0x126/0x141
Apr  3 12:41:25 sp2 kernel:  [c0439989] .text.lock.rwsem+0x2b/0x3a
Apr  3 12:41:25 sp2 kernel:  [c046aa6a] sys_mprotect+0xbd/0x1eb 

Apr  3 12:41:25 sp2 kernel:  [c0404f4b] syscall_call+0x7/0xb 

Apr  3 12:41:25 sp2 kernel:  ===
Apr  3 12:41:25 sp2 kernel: INFO: task clamd:15721 blocked for more than 
120 seconds.
Apr  3 12:41:26 sp2 kernel: echo 0  
/proc/sys/kernel/hung_task_timeout_secs disables this message.
Apr  3 12:41:26 sp2 kernel: clamd D 0D49  2528 15721  1 
 16416 15449 (NOTLB)
Apr  3 12:41:26 sp2 kernel:e848cf74 0086 8f107b57 0d49 
30ea2005 e848cf44 c08259d0 0007
Apr  3 12:41:26 sp2 kernel:e8c6aaa0 8f117848 0d49 fcf1 
 e8c6abac c200cc80 f4f5f3c0
Apr  3 12:41:26 sp2 kernel:c041f863 0184 c200d620 c2013ac4 
0020  d887f0a8 f766f0c0
Apr  3 12:41:26 sp2 kernel: Call Trace:
Apr  3 12:41:26 sp2 kernel:  [c041f863] default_wake_function+0x0/0xc
Apr  3 12:41:26 sp2 kernel:  [c048e994] destroy_inode+0x38/0x47
Apr  3 12:41:26 sp2 kernel:  [c0622f16] 
rwsem_down_write_failed+0x126/0x141
Apr  3 12:41:26 sp2 kernel:  [c0439989] .text.lock.rwsem+0x2b/0x3a
Apr  3 12:41:26 sp2 kernel:  [c046a32b] sys_munmap+0x24/0x41 

Apr  3 12:41:26 sp2 kernel:  [c0404f4b] syscall_call+0x7/0xb

Any advice would be appreciated.

regards,

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


[CentOS] question on DHCP

2012-04-04 Thread Jerry Geis
If a machine with centos 6.2 is set for DHCP and it looses power and the 
switch
looses power for a long time. lets say a day. so the switch really goes 
off even with batter backup.

Now power comes on, the machine asks for a DHCP address before the 
switch is read
as its not back up yet. there is no response and the machine does not 
get an address.
Finally the switch comes back up , the machine has already posted that it
Network got an error as there was no DHCP server.

Does the machine ever ask again or do I have to manually do a server 
network restart
or reboot the machine again.

It seems to never ask again.

jerry

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


Re: [CentOS] Centos 5.6 Kernel Panics

2012-04-04 Thread Nataraj
On 04/04/2012 09:16 AM, Jonathan Alstead wrote:
 Hello,

 Recently our dell sc1425 server has been locking up with kernel freezes 
 and required a hard reboot on each occasion. I've looked on the centos 
 forums with limited success - each problem seems slightly different 
 (some failure on high load, some not). Our kernel is 2.6.18-274.17.1.el5 
 and /var/log/messages show the following errors:

 Apr  3 12:41:25 sp2 kernel: INFO: task mysqld:15345 blocked for more 
 than 120 seconds.
 Apr  3 12:41:25 sp2 kernel: echo 0  
 /proc/sys/kernel/hung_task_timeout_secs disables this message.
 Apr  3 12:41:25 sp2 kernel: mysqldD 0CEB  2524 15345  32083 
  15346 15167 (NOTLB)
 Apr  3 12:41:25 sp2 kernel:c50c7f54 0082 bf379c08 0ceb 
 ca9b1648 f43c6c5c  0001
 Apr  3 12:41:25 sp2 kernel:d9d18000 bf384f01 0ceb b2f9 
 0001 d9d1810c c2013ac4 edc5de40
 Apr  3 12:41:25 sp2 kernel:08515c98 c6cb37b8 c2014464 c200cc80 
 0020   
 Apr  3 12:41:25 sp2 kernel: Call Trace:
 Apr  3 12:41:25 sp2 kernel:  [c0622f16] 
 rwsem_down_write_failed+0x126/0x141
 Apr  3 12:41:25 sp2 kernel:  [c0439989] .text.lock.rwsem+0x2b/0x3a
 Apr  3 12:41:25 sp2 kernel:  [c046aa6a] sys_mprotect+0xbd/0x1eb 

 Apr  3 12:41:25 sp2 kernel:  [c0404f4b] syscall_call+0x7/0xb 

 Apr  3 12:41:25 sp2 kernel:  ===
 Apr  3 12:41:25 sp2 kernel: INFO: task clamd:15721 blocked for more than 
 120 seconds.
 Apr  3 12:41:26 sp2 kernel: echo 0  
 /proc/sys/kernel/hung_task_timeout_secs disables this message.
 Apr  3 12:41:26 sp2 kernel: clamd D 0D49  2528 15721  1 
  16416 15449 (NOTLB)
 Apr  3 12:41:26 sp2 kernel:e848cf74 0086 8f107b57 0d49 
 30ea2005 e848cf44 c08259d0 0007
 Apr  3 12:41:26 sp2 kernel:e8c6aaa0 8f117848 0d49 fcf1 
  e8c6abac c200cc80 f4f5f3c0
 Apr  3 12:41:26 sp2 kernel:c041f863 0184 c200d620 c2013ac4 
 0020  d887f0a8 f766f0c0
 Apr  3 12:41:26 sp2 kernel: Call Trace:
 Apr  3 12:41:26 sp2 kernel:  [c041f863] default_wake_function+0x0/0xc
 Apr  3 12:41:26 sp2 kernel:  [c048e994] destroy_inode+0x38/0x47
 Apr  3 12:41:26 sp2 kernel:  [c0622f16] 
 rwsem_down_write_failed+0x126/0x141
 Apr  3 12:41:26 sp2 kernel:  [c0439989] .text.lock.rwsem+0x2b/0x3a
 Apr  3 12:41:26 sp2 kernel:  [c046a32b] sys_munmap+0x24/0x41 

 Apr  3 12:41:26 sp2 kernel:  [c0404f4b] syscall_call+0x7/0xb


It sounds like some kind of IO or memory problem.  I would probably
start by running MEMTEST and the basic diagnostic tests provided by
DELL, which if you don't have installed on your disk can be downloaded
in the form of  a CentOS based openmange liveCD from somewhere on the
dell site.  It could also be a disk problem, but from the output you
provide I think I would look for memory or IO bus problems first and
then look for disk problems if you don't find anything with the first
two.  It almost looks like a memory controller problem.

Nataraj

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


Re: [CentOS] Installing CentOS 6.2 *TO* a USB drive, not installing from USB.

2012-04-04 Thread Emmanuel Noobadmin
On 4/4/12, Karanbir Singh mail-li...@karan.org wrote:
 On 04/04/2012 11:46 AM, Emmanuel Noobadmin wrote:
 just does not seem to be able to find the USB drives. e.g. commands
 like root (hd0,0) just says device not found. This is despite grub

 hd0,0 represents the bios device id, are you sure thats what your bios
 thinks the usb disk is at ?

I can't be sure which is part of the problem. Because when I read the
grub documentation, it said that hitting tab at the prompt after
typing the command will produce a list of possible devices/drives.
However, in my case, nothing happens which seemingly implies grub
could not find any device.

I also did try manually doing (hd0,1), (hd1,0) but none of it seemed
to be a findable device. For what it's worth, the installer did see
them as sda and sdb. I also disabled the onboard SATA controller
during my attempts in order to eliminate it from showing up as a
possible device, since grub doc says the (hdx,x) number usually
matches the order in which the devices were discovered.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] question on DHCP

2012-04-04 Thread Nataraj
On 04/04/2012 09:18 AM, Jerry Geis wrote:
 If a machine with centos 6.2 is set for DHCP and it looses power and the 
 switch
 looses power for a long time. lets say a day. so the switch really goes 
 off even with batter backup.

 Now power comes on, the machine asks for a DHCP address before the 
 switch is read
 as its not back up yet. there is no response and the machine does not 
 get an address.
 Finally the switch comes back up , the machine has already posted that it
 Network got an error as there was no DHCP server.

 Does the machine ever ask again or do I have to manually do a server 
 network restart
 or reboot the machine again.

 It seems to never ask again.

 jerry

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
There is a timeout and a retry parameter in the dhcp client
configuration file (whatever it is called in CentOS 6).  On the
non-CentOS system where I am sending the email from it is
/etc/dhcp3/dhclient.conf (but probably different in CentOS 6).  Look for
a man page for dhclient.conf.  My CentOS 6 machine is turned off right now.

Nataraj

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


Re: [CentOS] Block outgoing connections for certaing uids (root, apache, nobody)

2012-04-04 Thread Alexander Farber
Yep, I've locked out myself out of the dedicated server today.

The numeric uids work, thank you.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Centos 5.6 Kernel Panics

2012-04-04 Thread Nataraj
On 04/04/2012 09:31 AM, Nataraj wrote:
 On 04/04/2012 09:16 AM, Jonathan Alstead wrote:
 Hello,

 Recently our dell sc1425 server has been locking up with kernel freezes 
 and required a hard reboot on each occasion. I've looked on the centos 
 forums with limited success - each problem seems slightly different 
 (some failure on high load, some not). Our kernel is 2.6.18-274.17.1.el5 
 and /var/log/messages show the following errors:

 Apr  3 12:41:25 sp2 kernel: INFO: task mysqld:15345 blocked for more 
 than 120 seconds.
 Apr  3 12:41:25 sp2 kernel: echo 0  
 /proc/sys/kernel/hung_task_timeout_secs disables this message.
 Apr  3 12:41:25 sp2 kernel: mysqldD 0CEB  2524 15345  32083 
  15346 15167 (NOTLB)
 Apr  3 12:41:25 sp2 kernel:c50c7f54 0082 bf379c08 0ceb 
 ca9b1648 f43c6c5c  0001
 Apr  3 12:41:25 sp2 kernel:d9d18000 bf384f01 0ceb b2f9 
 0001 d9d1810c c2013ac4 edc5de40
 Apr  3 12:41:25 sp2 kernel:08515c98 c6cb37b8 c2014464 c200cc80 
 0020   
 Apr  3 12:41:25 sp2 kernel: Call Trace:
 Apr  3 12:41:25 sp2 kernel:  [c0622f16] 
 rwsem_down_write_failed+0x126/0x141
 Apr  3 12:41:25 sp2 kernel:  [c0439989] .text.lock.rwsem+0x2b/0x3a
 Apr  3 12:41:25 sp2 kernel:  [c046aa6a] sys_mprotect+0xbd/0x1eb 

 Apr  3 12:41:25 sp2 kernel:  [c0404f4b] syscall_call+0x7/0xb 

 Apr  3 12:41:25 sp2 kernel:  ===
 Apr  3 12:41:25 sp2 kernel: INFO: task clamd:15721 blocked for more than 
 120 seconds.
 Apr  3 12:41:26 sp2 kernel: echo 0  
 /proc/sys/kernel/hung_task_timeout_secs disables this message.
 Apr  3 12:41:26 sp2 kernel: clamd D 0D49  2528 15721  1 
  16416 15449 (NOTLB)
 Apr  3 12:41:26 sp2 kernel:e848cf74 0086 8f107b57 0d49 
 30ea2005 e848cf44 c08259d0 0007
 Apr  3 12:41:26 sp2 kernel:e8c6aaa0 8f117848 0d49 fcf1 
  e8c6abac c200cc80 f4f5f3c0
 Apr  3 12:41:26 sp2 kernel:c041f863 0184 c200d620 c2013ac4 
 0020  d887f0a8 f766f0c0
 Apr  3 12:41:26 sp2 kernel: Call Trace:
 Apr  3 12:41:26 sp2 kernel:  [c041f863] default_wake_function+0x0/0xc
 Apr  3 12:41:26 sp2 kernel:  [c048e994] destroy_inode+0x38/0x47
 Apr  3 12:41:26 sp2 kernel:  [c0622f16] 
 rwsem_down_write_failed+0x126/0x141
 Apr  3 12:41:26 sp2 kernel:  [c0439989] .text.lock.rwsem+0x2b/0x3a
 Apr  3 12:41:26 sp2 kernel:  [c046a32b] sys_munmap+0x24/0x41 

 Apr  3 12:41:26 sp2 kernel:  [c0404f4b] syscall_call+0x7/0xb

 It sounds like some kind of IO or memory problem.  I would probably
 start by running MEMTEST and the basic diagnostic tests provided by
 DELL, which if you don't have installed on your disk can be downloaded
 in the form of  a CentOS based openmange liveCD from somewhere on the
 dell site.  It could also be a disk problem, but from the output you
 provide I think I would look for memory or IO bus problems first and
 then look for disk problems if you don't find anything with the first
 two.  It almost looks like a memory controller problem.

 Nataraj


If for any reason you think the problem started after a kernel upgrade,
then try booting with the previous version of the kernel.

Nataraj

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


[CentOS] 3.2 kernel with C5? Or ndiswrapper?

2012-04-04 Thread Stephen Harris
I know, I know... don't use the non-standard kernels unless you have to...

BUT: I have a D-Link N150 USB card.

Bus 001 Device 004: ID 0846:9030 NetGear, Inc. WNA1100 Wireless-N 150 [Atheros 
AR9271]

This isn't supported in C5, but it is supported in newer kernels (ath9k_htc).

So let's try NDISwrapper:

  # rpm -i kmod\-ndiswrapper\-1.56\-1.el5.elrepo.i686.rpm 
ndiswrapper\-utils\-1.56\-1.el5.elrepo.i386.rpm
  warning: kmod-ndiswrapper-1.56-1.el5.elrepo.i686.rpm: Header V3 DSA 
signature: NOKEY, key ID baadae52
  Working. This may take some time ...
  Done.
  # cd WLAN/
  # ls
  athuw.sys*  netathuw.cat*  netathuw.inf*
  # ndiswrapper -i netathuw.inf
  installing netathuw ...
  forcing parameter MapRegisters from 256 to 64
  forcing parameter MapRegisters from 256 to 64
  [repeated multiple times]
  # ndiswrapper -l
  netathuw : driver installed
  device (0846:9030) present
  # modprobe ndiswrapper
  # dmesg | tail -5
  ndiswrapper: driver netathuw (,09/30/2010,7.7.0.98) loaded
  wlan0: ethernet device c4:3d:c7:bc:ea:89 using NDIS driver: netathuw, 
version: 0x70007, NDIS version: 0x501, vendor: 'NDIS Network Adapter', 
0846:9030.F.conf
  wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; 
AES/CCMP with WPA, WPA2, WPA2PSK
  usbcore: registered new driver ndiswrapper
  ADDRCONF(NETDEV_UP): wlan0: link is not ready
  # ifconfig wlan0
  wlan0 Link encap:Ethernet  HWaddr C4:3D:C7:BC:EA:89
UP BROADCAST MULTICAST  MTU:1500  Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

  # /sbin/iwlist wlan0 scan | grep ESSID.*sweh
  ESSID:sweh

So far, so good!

BUT...
  # iwconfig wlan0 nickname fred
  # iwconfig wlan0 essid sweh
  # iwconfig wlan0
  wlan0 IEEE 802.11g  ESSID:off/any  Nickname:fred
Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated
Bit Rate=150 Mb/s
Encryption key:off
Power Management:off
Link Quality:0  Signal level:0  Noise level:0
Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Hmm, ESSID isn't being set.  If I try to configure wpa_supplicant
then it never associates properly.

So I'm not totally convinced ndiswrapper is working for me.

So I figured... dammit; let's try a generic kernel.  Not good, but...

I compile 3.2.9, install the modules and then try an boot...  and
it fails to find my root disk and panics.  I can see from the boot
messages that the kernel is seeing them, but it's failing to mount and
switchroot.

(of course I can't get useful information 'cos you can't do anything
useful after a panic!)

Looking at the initrd, it seems to have all the right drivers and
modules, and the init script _looks_ correct... but it's just not
working.

Has anyone else tried to get 3.2.9 to work with C5.8?

Or has anyone any advice for getting ndiswrapper to work for me (or 
other ways of running the N150 card)?

Thanks!

-- 

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


Re: [CentOS] 3.2 kernel with C5? Or ndiswrapper?

2012-04-04 Thread Akemi Yagi
On Wed, Apr 4, 2012 at 9:51 AM, Stephen Harris li...@spuddy.org wrote:
 I know, I know... don't use the non-standard kernels unless you have to...

 BUT: I have a D-Link N150 USB card.
(snip)

 Has anyone else tried to get 3.2.9 to work with C5.8?

Alan Bartlett of ELRepo built a 3.0.x kernel for EL5.

http://elrepo.org/people/ajb/devel/kernel-ml/el5/

and is asking people to test. Please note that this is strictly for
*testing* purposes. It may or may not boot, but you can certainly give
it a try and see if your hardware works.

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


Re: [CentOS] Installing CentOS 6.2 *TO* a USB drive, not installing from USB.

2012-04-04 Thread Lamar Owen
On Wednesday, April 04, 2012 12:38:03 PM Emmanuel Noobadmin wrote:
 I also did try manually doing (hd0,1), (hd1,0) but none of it seemed
 to be a findable device. For what it's worth, the installer did see
 them as sda and sdb. 

The grub order and names and the linux kernel/udev order and names should not 
be assumed to have any correlation of any kind, since they are discovered 
differently.

If you can boot a USB live media on this box, you could bring up a grub shell 
and see how grub sees the disks from that (at a root prompt, type 'grub' and 
you'll be greeted with the grub shell, and then you can do detection or 
whatever from that).  This also works in the rescue environment given by the 
install media; you do want to do a 'chroot /mnt/sysimage' in that shell before 
entering the grub shell, though.

It is completely BIOS dependent as to how the devices show up to grub.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] 3.2 kernel with C5? Or ndiswrapper?

2012-04-04 Thread Carlos Daniel Ruvalcaba Valenzuela
 I compile 3.2.9, install the modules and then try an boot...  and
 it fails to find my root disk and panics.  I can see from the boot
 messages that the kernel is seeing them, but it's failing to mount and
 switchroot.

Seems to me that your kernel build configuration does not include the
FS module, for example, if your root FS is ext4 or xfs you should
select it as compiled into kernel not as a module, that should ease a
lot of pain.

Also the problem with compiling a new kernel is that the vanilla
configuration may not work for you and configuring kernel options can
be pretty daunting at first and even with each new version new stuff
keeps piling in.

If you are going the kernel route I suggest to check if you can get
the centos kernel config, check if the centos kernel has config
build-in, if it does you should have a file in /proc/config.gz which
should help you bootstrap the new kernel with the correct options.

Regards,
Carlos Ruvalcaba
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] 3.2 kernel with C5? Or ndiswrapper?

2012-04-04 Thread Stephen Harris
On Wed, Apr 04, 2012 at 10:07:38AM -0700, Carlos Daniel Ruvalcaba Valenzuela 
wrote:
  I compile 3.2.9, install the modules and then try an boot... ?and
  it fails to find my root disk and panics. ?I can see from the boot
  messages that the kernel is seeing them, but it's failing to mount and
  switchroot.
 
 Seems to me that your kernel build configuration does not include the
 FS module, for example, if your root FS is ext4 or xfs you should

Yeah, I thogught that it's ext3 and ext3.ko is in the tree
  # grep ext3 init
  echo Loading ext3.ko module
  insmod /lib/ext3.ko
  mkrootdev -t ext3 -o defaults,ro /dev/sda3
  # ls -l lib/ext3.ko
  -rw--- 1 root root 219560 Apr  3 16:08 lib/ext3.ko
  #

 Also the problem with compiling a new kernel is that the vanilla
 configuration may not work for you and configuring kernel options can
 be pretty daunting at first and even with each new version new stuff
 keeps piling in.

I took the existing config (from /boot/config...) and then ran
  make oldconfig  /dev/null

(which may not have been optimal, but it seemed to work :-))

-- 

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


Re: [CentOS] 3.2 kernel with C5? Or ndiswrapper?

2012-04-04 Thread Stephen Harris
On Wed, Apr 04, 2012 at 10:03:00AM -0700, Akemi Yagi wrote:
 On Wed, Apr 4, 2012 at 9:51 AM, Stephen Harris li...@spuddy.org wrote:

  Has anyone else tried to get 3.2.9 to work with C5.8?
 
 Alan Bartlett of ELRepo built a 3.0.x kernel for EL5.
 
 http://elrepo.org/people/ajb/devel/kernel-ml/el5/

Thanks, I'll give that a try!

-- 

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


Re: [CentOS] 3.2 kernel with C5? Or ndiswrapper?

2012-04-04 Thread Akemi Yagi
On Wed, Apr 4, 2012 at 10:11 AM, Stephen Harris li...@spuddy.org wrote:
 On Wed, Apr 04, 2012 at 10:07:38AM -0700, Carlos Daniel Ruvalcaba Valenzuela 
 wrote:

 Also the problem with compiling a new kernel is that the vanilla
 configuration may not work for you and configuring kernel options can
 be pretty daunting at first and even with each new version new stuff
 keeps piling in.

 I took the existing config (from /boot/config...) and then ran
  make oldconfig  /dev/null

 (which may not have been optimal, but it seemed to work :-))

It may build fine but that kernel would not boot. :-) Details here:

http://blog.toracat.org/2010/03/want-a-custom-kernel-on-centos-noo-really/

Anyway, elaborating configs is not an easy task. So, if you need
something that works for CentOS-5/6, stealing one from kernel-ml will
be the way to go (thanks, Alan). :-P

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


Re: [CentOS] 3.2 kernel with C5? Or ndiswrapper?

2012-04-04 Thread Stephen Harris
On Wed, Apr 04, 2012 at 01:14:13PM -0400, Stephen Harris wrote:
 On Wed, Apr 04, 2012 at 10:03:00AM -0700, Akemi Yagi wrote:
  On Wed, Apr 4, 2012 at 9:51 AM, Stephen Harris li...@spuddy.org wrote:
 
   Has anyone else tried to get 3.2.9 to work with C5.8?
  
  Alan Bartlett of ELRepo built a 3.0.x kernel for EL5.
  
  http://elrepo.org/people/ajb/devel/kernel-ml/el5/
 
 Thanks, I'll give that a try!

Hmm, has trouble with my external USB disk.  It doesn't detect it
properly at boot and udevd throws up a lot of errors like

   wait_for_sysfs: waiting for 
'/sys/devices/pci:00/:00:1d.7/usb1/1-8/1-8:1.0/host4/ioerr_cnt' failed

But if I unplug it then plug it back in then it's detected.  Which makes it
hard for booting!

However...  doesn't look like this USB stick is supported in this kernel
(no ath9k_htc module?)

  % grep 0846 modules.alias  | grep 9030
  %

The 3.2.9 kernel says
 % grep 0846 modules.alias  | grep 9030
 alias usb:v0846p9030d*dc*dsc*dp*ic*isc*ip* ath9k_htc

Good try, though!

-- 

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


Re: [CentOS] 3.2 kernel with C5? Or ndiswrapper?

2012-04-04 Thread Stephen Harris
On Wed, Apr 04, 2012 at 10:26:32AM -0700, Akemi Yagi wrote:
 On Wed, Apr 4, 2012 at 10:11 AM, Stephen Harris li...@spuddy.org wrote:

  I took the existing config (from /boot/config...) and then ran
  ?make oldconfig  /dev/null
 
  (which may not have been optimal, but it seemed to work :-))
 
 It may build fine but that kernel would not boot. :-) Details here:
 
 http://blog.toracat.org/2010/03/want-a-custom-kernel-on-centos-noo-really/

Ah, CONFIG_SYSFS_DEPRECATED_V2=y rings a bell!  Let's try that :-)

 Anyway, elaborating configs is not an easy task. So, if you need
 something that works for CentOS-5/6, stealing one from kernel-ml will
 be the way to go (thanks, Alan). :-P

Unfortunately, the 3.0.22-rc1 doesn't seem to have the driver I need :-(

-- 

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


Re: [CentOS] 3.2 kernel with C5? Or ndiswrapper?

2012-04-04 Thread Akemi Yagi
On Wed, Apr 4, 2012 at 9:51 AM, Stephen Harris li...@spuddy.org wrote:
 I know, I know... don't use the non-standard kernels unless you have to...

 BUT: I have a D-Link N150 USB card.

 Bus 001 Device 004: ID 0846:9030 NetGear, Inc. WNA1100 Wireless-N 150 
 [Atheros AR9271]

OK, we are back here. Your device seems to be supported by ELRepo's
kmod-compat-wireless. Details are here:

http://elrepoproject.blogspot.com/2012/03/one-size-fits-all-compat-wireless-fits.html

So, give it a try. :)

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


Re: [CentOS] Centos 5.6 Kernel Panics

2012-04-04 Thread Paul (Crunch)
On 04/04/2012 12:31 PM, Nataraj wrote:
 On 04/04/2012 09:16 AM, Jonathan Alstead wrote:
 Hello,

 Recently our dell sc1425 server has been locking up with kernel freezes
 and required a hard reboot on each occasion. I've looked on the centos
 forums with limited success - each problem seems slightly different
 (some failure on high load, some not). Our kernel is 2.6.18-274.17.1.el5
 and /var/log/messages show the following errors:

 Apr  3 12:41:25 sp2 kernel: INFO: task mysqld:15345 blocked for more
 than 120 seconds.
 Apr  3 12:41:25 sp2 kernel: echo 0
 /proc/sys/kernel/hung_task_timeout_secs disables this message.
 Apr  3 12:41:25 sp2 kernel: mysqldD 0CEB  2524 15345  32083
   15346 15167 (NOTLB)
 Apr  3 12:41:25 sp2 kernel:c50c7f54 0082 bf379c08 0ceb
 ca9b1648 f43c6c5c  0001
 Apr  3 12:41:25 sp2 kernel:d9d18000 bf384f01 0ceb b2f9
 0001 d9d1810c c2013ac4 edc5de40
 Apr  3 12:41:25 sp2 kernel:08515c98 c6cb37b8 c2014464 c200cc80
 0020   
 Apr  3 12:41:25 sp2 kernel: Call Trace:
 Apr  3 12:41:25 sp2 kernel:  [c0622f16]
 rwsem_down_write_failed+0x126/0x141
 Apr  3 12:41:25 sp2 kernel:  [c0439989] .text.lock.rwsem+0x2b/0x3a
 Apr  3 12:41:25 sp2 kernel:  [c046aa6a] sys_mprotect+0xbd/0x1eb

 Apr  3 12:41:25 sp2 kernel:  [c0404f4b] syscall_call+0x7/0xb

 Apr  3 12:41:25 sp2 kernel:  ===
 Apr  3 12:41:25 sp2 kernel: INFO: task clamd:15721 blocked for more than
 120 seconds.
 Apr  3 12:41:26 sp2 kernel: echo 0
 /proc/sys/kernel/hung_task_timeout_secs disables this message.
 Apr  3 12:41:26 sp2 kernel: clamd D 0D49  2528 15721  1
   16416 15449 (NOTLB)
 Apr  3 12:41:26 sp2 kernel:e848cf74 0086 8f107b57 0d49
 30ea2005 e848cf44 c08259d0 0007
 Apr  3 12:41:26 sp2 kernel:e8c6aaa0 8f117848 0d49 fcf1
  e8c6abac c200cc80 f4f5f3c0
 Apr  3 12:41:26 sp2 kernel:c041f863 0184 c200d620 c2013ac4
 0020  d887f0a8 f766f0c0
 Apr  3 12:41:26 sp2 kernel: Call Trace:
 Apr  3 12:41:26 sp2 kernel:  [c041f863] default_wake_function+0x0/0xc
 Apr  3 12:41:26 sp2 kernel:  [c048e994] destroy_inode+0x38/0x47
 Apr  3 12:41:26 sp2 kernel:  [c0622f16]
 rwsem_down_write_failed+0x126/0x141
 Apr  3 12:41:26 sp2 kernel:  [c0439989] .text.lock.rwsem+0x2b/0x3a
 Apr  3 12:41:26 sp2 kernel:  [c046a32b] sys_munmap+0x24/0x41

 Apr  3 12:41:26 sp2 kernel:  [c0404f4b] syscall_call+0x7/0xb

 It sounds like some kind of IO or memory problem.  I would probably
 start by running MEMTEST and the basic diagnostic tests provided by
 DELL, which if you don't have installed on your disk can be downloaded
 in the form of  a CentOS based openmange liveCD from somewhere on the
 dell site.  It could also be a disk problem, but from the output you
 provide I think I would look for memory or IO bus problems first and
 then look for disk problems if you don't find anything with the first
 two.  It almost looks like a memory controller problem.

 Nataraj

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
I'm inclined to agree with Nataraj. A memory test first and foremost. 
Check for any corruption on the file system. Chances are rare, but the 
on disk kernel could be damaged by data corruption. Unfortunately, I 
don't know of a practical way of testing the buses  and possibly even 
then CPU aside  from swapping hardware out.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] 3.2 kernel with C5? Or ndiswrapper?

2012-04-04 Thread Stephen Harris
On Wed, Apr 04, 2012 at 11:06:04AM -0700, Akemi Yagi wrote:

 kmod-compat-wireless. Details are here:
 
 http://elrepoproject.blogspot.com/2012/03/one-size-fits-all-compat-wireless-fits.html
 
 So, give it a try. :)

Yeah, I'd found that in my googling, but that says el6; I'm on el5 for
historical reasons (hysterical raisins?)

-- 

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


Re: [CentOS] 3.2 kernel with C5? Or ndiswrapper?

2012-04-04 Thread Akemi Yagi
On Wed, Apr 4, 2012 at 11:11 AM, Stephen Harris li...@spuddy.org wrote:
 On Wed, Apr 04, 2012 at 11:06:04AM -0700, Akemi Yagi wrote:

 kmod-compat-wireless. Details are here:

 http://elrepoproject.blogspot.com/2012/03/one-size-fits-all-compat-wireless-fits.html

 So, give it a try. :)

 Yeah, I'd found that in my googling, but that says el6; I'm on el5 for
 historical reasons (hysterical raisins?)

Sorry, you're right. It is only for el6. There is a *slim* chance that
it can be built for el5. But that would be a lot of work even if it
works. :-(

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


Re: [CentOS] Centos 5.6 Kernel Panics

2012-04-04 Thread m . roth
Paul (Crunch) wrote:
 On 04/04/2012 12:31 PM, Nataraj wrote:
 On 04/04/2012 09:16 AM, Jonathan Alstead wrote:
 Hello,

 Recently our dell sc1425 server has been locking up with kernel freezes
 and required a hard reboot on each occasion. I've looked on the centos
 forums with limited success - each problem seems slightly different
 (some failure on high load, some not). Our kernel is
 2.6.18-274.17.1.el5
 and /var/log/messages show the following errors:

 Apr  3 12:41:25 sp2 kernel: INFO: task mysqld:15345 blocked for more
 than 120 seconds.
snip
 Apr  3 12:41:25 sp2 kernel: Call Trace:
 Apr  3 12:41:25 sp2 kernel:  [c0622f16]
 rwsem_down_write_failed+0x126/0x141
 Apr  3 12:41:25 sp2 kernel:  [c0439989] .text.lock.rwsem+0x2b/0x3a
 Apr  3 12:41:25 sp2 kernel:  [c046aa6a] sys_mprotect+0xbd/0x1eb

 Apr  3 12:41:25 sp2 kernel:  [c0404f4b] syscall_call+0x7/0xb

 Apr  3 12:41:25 sp2 kernel:  ===
 Apr  3 12:41:25 sp2 kernel: INFO: task clamd:15721 blocked for more
 than
 120 seconds.
snip
 Apr  3 12:41:26 sp2 kernel: Call Trace:
 Apr  3 12:41:26 sp2 kernel:  [c041f863] default_wake_function+0x0/0xc
 Apr  3 12:41:26 sp2 kernel:  [c048e994] destroy_inode+0x38/0x47
 Apr  3 12:41:26 sp2 kernel:  [c0622f16]
 rwsem_down_write_failed+0x126/0x141
 Apr  3 12:41:26 sp2 kernel:  [c0439989] .text.lock.rwsem+0x2b/0x3a
 Apr  3 12:41:26 sp2 kernel:  [c046a32b] sys_munmap+0x24/0x41

 Apr  3 12:41:26 sp2 kernel:  [c0404f4b] syscall_call+0x7/0xb
snip
Looking at the stack traces, and that two completely separate processes
are being blocked at the same time, I have to suggest another possibility:
the drive that /var is on may be having problems... and if it can't be
written to, then it can't log errors, either.

mark

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


Re: [CentOS] question on DHCP

2012-04-04 Thread Paul (Crunch)
On 04/04/2012 12:18 PM, Jerry Geis wrote:
 If a machine with centos 6.2 is set for DHCP and it looses power and the
 switch
 looses power for a long time. lets say a day. so the switch really goes
 off even with batter backup.

 Now power comes on, the machine asks for a DHCP address before the
 switch is read
 as its not back up yet. there is no response and the machine does not
 get an address.
 Finally the switch comes back up , the machine has already posted that it
 Network got an error as there was no DHCP server.

 Does the machine ever ask again or do I have to manually do a server
 network restart
 or reboot the machine again.

 It seems to never ask again.

 jerry

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

I think what you are looking for can be found with:   $man dhclient.conf

There is a retry option that specifically sets the delay between 
successive dhcp client broadcasts when a dhcp server can't be found.

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


Re: [CentOS] 3.2 kernel with C5? Or ndiswrapper?

2012-04-04 Thread Warren Young
On 4/4/2012 10:51 AM, Stephen Harris wrote:

 I compile 3.2.9, install the modules and then try an boot...  and
 it fails to find my root disk and panics.

By install the modules, do you mean you rebuilt the initrd?  If not, 
try that.  A missing or mismatched initrd could explain your inability 
to boot the new kernel.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] virtio or IDE on SBS 2011 (or any domain controller)

2012-04-04 Thread Jacob Hydeman
CentOS 6.2, using latest KVM drivers for Windows guests. Using LVM for
storage, software raid 10, RAW with write cache disabled in the virt
manager.

When using virtio drivers for disk drives Windows Server complains about
write caching being enabled. I can't disable it either. Using IDE prevents
this from being happening, however the performance sucks. All searches
related to fixing the write cache issue results in it being a controller
setting, bios setting or manufacturer flaw. Since this is all  software
raid, LVM and Red Hat's virtio drivers it doesn't apply (or at least is
fixable by others methods).

My concern is data integrity over performance, but I'd like to know what
others are doing.

My fallback plan is to use IDE for the OS and virtio for the Data drive,
moving Exchange and the folder redirects to the data drive (or even a
different server install attached to the domain), but I'd appreciate others
experiences before I resign to dealing with this limitation.

Thanks,

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


Re: [CentOS] 3.2 kernel with C5? Or ndiswrapper?

2012-04-04 Thread Stephen Harris
On Wed, Apr 04, 2012 at 01:42:39PM -0400, Stephen Harris wrote:
 On Wed, Apr 04, 2012 at 10:26:32AM -0700, Akemi Yagi wrote:
  http://blog.toracat.org/2010/03/want-a-custom-kernel-on-centos-noo-really/
 
 Ah, CONFIG_SYSFS_DEPRECATED_V2=y rings a bell!  Let's try that :-)

Bingo!

% uname -sr
Linux 3.2.9

(hidd failed to start, but I don't use bluetooth; I should just remove it!)

This kernel also has trouble with the external USB disk.

But

  % ifconfig wlan0
  wlan0 Link encap:Ethernet  HWaddr C4:3D:C7:BC:EA:89  
inet addr:192.168.1.32  Bcast:192.168.1.255  Mask:255.255.255.0

Woo!

Thanks...

-- 

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


Re: [CentOS] 3.2 kernel with C5? Or ndiswrapper?

2012-04-04 Thread Johnny Hughes
On 04/04/2012 11:51 AM, Stephen Harris wrote:
 I know, I know... don't use the non-standard kernels unless you have to...

 BUT: I have a D-Link N150 USB card.

 Bus 001 Device 004: ID 0846:9030 NetGear, Inc. WNA1100 Wireless-N 150 
 [Atheros AR9271]

 This isn't supported in C5, but it is supported in newer kernels (ath9k_htc).

 So let's try NDISwrapper:

   # rpm -i kmod\-ndiswrapper\-1.56\-1.el5.elrepo.i686.rpm 
 ndiswrapper\-utils\-1.56\-1.el5.elrepo.i386.rpm
   warning: kmod-ndiswrapper-1.56-1.el5.elrepo.i686.rpm: Header V3 DSA 
 signature: NOKEY, key ID baadae52
   Working. This may take some time ...
   Done.
   # cd WLAN/
   # ls
   athuw.sys*  netathuw.cat*  netathuw.inf*
   # ndiswrapper -i netathuw.inf
   installing netathuw ...
   forcing parameter MapRegisters from 256 to 64
   forcing parameter MapRegisters from 256 to 64
   [repeated multiple times]
   # ndiswrapper -l
   netathuw : driver installed
   device (0846:9030) present
   # modprobe ndiswrapper
   # dmesg | tail -5
   ndiswrapper: driver netathuw (,09/30/2010,7.7.0.98) loaded
   wlan0: ethernet device c4:3d:c7:bc:ea:89 using NDIS driver: netathuw, 
 version: 0x70007, NDIS version: 0x501, vendor: 'NDIS Network Adapter', 
 0846:9030.F.conf
   wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; 
 AES/CCMP with WPA, WPA2, WPA2PSK
   usbcore: registered new driver ndiswrapper
   ADDRCONF(NETDEV_UP): wlan0: link is not ready
   # ifconfig wlan0
   wlan0 Link encap:Ethernet  HWaddr C4:3D:C7:BC:EA:89
 UP BROADCAST MULTICAST  MTU:1500  Metric:1
 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:1000
 RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

   # /sbin/iwlist wlan0 scan | grep ESSID.*sweh
   ESSID:sweh

 So far, so good!

 BUT...
   # iwconfig wlan0 nickname fred
   # iwconfig wlan0 essid sweh
   # iwconfig wlan0
   wlan0 IEEE 802.11g  ESSID:off/any  Nickname:fred
 Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated
 Bit Rate=150 Mb/s
 Encryption key:off
 Power Management:off
 Link Quality:0  Signal level:0  Noise level:0
 Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
 Tx excessive retries:0  Invalid misc:0   Missed beacon:0

 Hmm, ESSID isn't being set.  If I try to configure wpa_supplicant
 then it never associates properly.

 So I'm not totally convinced ndiswrapper is working for me.

 So I figured... dammit; let's try a generic kernel.  Not good, but...

 I compile 3.2.9, install the modules and then try an boot...  and
 it fails to find my root disk and panics.  I can see from the boot
 messages that the kernel is seeing them, but it's failing to mount and
 switchroot.

 (of course I can't get useful information 'cos you can't do anything
 useful after a panic!)

 Looking at the initrd, it seems to have all the right drivers and
 modules, and the init script _looks_ correct... but it's just not
 working.

 Has anyone else tried to get 3.2.9 to work with C5.8?

 Or has anyone any advice for getting ndiswrapper to work for me (or 
 other ways of running the N150 card)?


You might try the uek2 kernel (rebuilt from the oracle sources) for el5
from the testing repo too:

http://dev.centos.org/centos/5/

That is based on a 3.1.x kernel, though it is versioned as 2.6.39-*





signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] 3.2 kernel with C5? Or ndiswrapper?

2012-04-04 Thread Stephen Harris
On Wed, Apr 04, 2012 at 04:16:29PM -0500, Johnny Hughes wrote:
 On 04/04/2012 11:51 AM, Stephen Harris wrote:

  Bus 001 Device 004: ID 0846:9030 NetGear, Inc. WNA1100 Wireless-N 150 
  [Atheros AR9271]

 You might try the uek2 kernel (rebuilt from the oracle sources) for el5
 from the testing repo too:
 
 http://dev.centos.org/centos/5/
 
 That is based on a 3.1.x kernel, though it is versioned as 2.6.39-*

Hmm.  

  $ mkdir X
  $ cd X
  $ rpm2cpio  ../kernel-uek-2.6.39-100.5.1.el5uek.i686.rpm | cpio -id
  146014 blocks
  $ depmod -b . 2.6.39-100.5.1.el5uek
  $ grep 0846 lib/modules/2.6.39\-100.5.1.el5uek/modules.alias | grep 9030
  $

Nope, doesn't have the drivers :-(

Thanks for the idea, though!

-- 

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


[CentOS] dns cache rbl lists?

2012-04-04 Thread Bob Hoffman
No idea where else to ask this and get a real qualified answer but here.
Not exactly pure centos questionbut...

I am adding blacklists to my postfix smtpd settings.
I have the inkling that after the first lookup for a domain or ip that 
my dns caches the result and I no longer bother the RBL or RHSBL list 
owners anymore in that instance.

Is that correct? I hate to waste their resources if it is not.

thanks,
bob


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


[CentOS] 32/64-bit Library Sharing and Placement

2012-04-04 Thread Brian McGrew


Good evening...

I'm rebuilding much of the gnu toolchain for some development testing I'm 
working.  GMP, MPC, MPFR, PPL, as well as many others.  I need to be able to 
have both 32 and 64 bit versions of these libraries avilable on the system, in 
more or less the same path (/toolchain/lib, /toolchain/lib64).  

Generically speaking, is there an easy way to build both 32 and 64 bit versions 
a the same time???  Or, more specifically, what is the best way to get both 
versions built???

CentOS 6.2 on a Dell 1900 with Xeon 5130 CPU's.

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


Re: [CentOS] 32/64-bit Library Sharing and Placement

2012-04-04 Thread Brian McGrew

I'm rebuilding much of the gnu toolchain for some development testing I'm 
working.  GMP, MPC, MPFR, PPL, as well as many others.  I need to be able to 
have both 32 and 64 bit versions of these libraries avilable on the system, in 
more or less the same path (/toolchain/lib, /toolchain/lib64).  
 
Generically speaking, is there an easy way to build both 32 and 64 bit versions 
a the same time???  Or, more specifically, what is the best way to get both 
versions built???
 
CentOS 6.2 on a Dell 1900 with Xeon 5130 CPU's.

After a few more hours of digging, I believe what I'm wanting is multilib???

Is there a way to get a 32 and 64 bit build (multilib?) in one pass?  If not, 
what is the easiest way to do this?

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


Re: [CentOS] dns cache rbl lists?

2012-04-04 Thread Nataraj
On 04/04/2012 08:48 PM, Bob Hoffman wrote:
 No idea where else to ask this and get a real qualified answer but here.
 Not exactly pure centos questionbut...

 I am adding blacklists to my postfix smtpd settings.
 I have the inkling that after the first lookup for a domain or ip that 
 my dns caches the result and I no longer bother the RBL or RHSBL list 
 owners anymore in that instance.

 Is that correct? I hate to waste their resources if it is not.

 thanks,
 bob


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

Not exactly.  It is whatever TTL they return, though generally short for
two reasons, they and you probably want it so that they can quickly
remove entries from the blacklist once issues have been resolved.

They want to know how often you query the blacklist, because they want
to charge a fee if you are a large site with high volume queries.  I
guess they need to fund their service somehow.


Nataraj

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


Re: [CentOS] dns cache rbl lists?

2012-04-04 Thread Bob Hoffman
On 4/5/2012 12:52 AM, Nataraj wrote:
 On 04/04/2012 08:48 PM, Bob Hoffman wrote:
 No idea where else to ask this and get a real qualified answer but here.
 Not exactly pure centos questionbut...

 I am adding blacklists to my postfix smtpd settings.
 I have the inkling that after the first lookup for a domain or ip that
 my dns caches the result and I no longer bother the RBL or RHSBL list
 owners anymore in that instance.

 Is that correct? I hate to waste their resources if it is not.

 thanks,
 bob


 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
 Not exactly.  It is whatever TTL they return, though generally short for
 two reasons, they and you probably want it so that they can quickly
 remove entries from the blacklist once issues have been resolved.

 They want to know how often you query the blacklist, because they want
 to charge a fee if you are a large site with high volume queries.  I
 guess they need to fund their service somehow.


 Nataraj

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


yea, I am already sending donations..well worth it.
they 100,000 or more queries and then you can have access to the lists 
to download..though that ranges from 250 to 1000 a year, for each 
oneyikes.
Still, well worth it if you have the cash and have a lot of users.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos