[CentOS-announce] CEBA-2012:0718 CentOS 5 doxygen FASTTRACK Update

2012-06-11 Thread Johnny Hughes

CentOS Errata and Bugfix Advisory 2012:0718

Upstream details at : http://rhn.redhat.com/errata/RHBA-2012-0718.html

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

i386:
72c425f77c5c39f7acf6e022521cc85b76c394784e93f04188e0681251e6c592  
doxygen-1.4.7-2.i386.rpm
97ea811c40a83bf5c7f30efe5394769206c61deb045b41477e0f0f3d96762a42  
doxygen-doxywizard-1.4.7-2.i386.rpm

x86_64:
24a17887e906d68425a6870f8170e6d2355fbc94e143c24df886cb81ca61  
doxygen-1.4.7-2.x86_64.rpm
4793a72c194fb9b3e8886d6f52e44f1b4428177740f06a8523f6ffc4c70894ad  
doxygen-doxywizard-1.4.7-2.x86_64.rpm

Source:
4e8fd530bab7d5d119fdb81b9cb61303ee66bf5961220a7c4d6b86afbb7028c2  
doxygen-1.4.7-2.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


[CentOS-announce] MirrorList.centos.org is now available on ipv6

2012-06-11 Thread Karanbir Singh
Hi Everyone,

It gives me great pleasure to announce that mirrorlist.centos.org is now
available on ipv6; in addition to the existing ipv4 functionality.

This is a full featured service, using geoip on the server end to hand
out local-to-user IPv6 mirrors. Every url handed out is verified at
regular intervals and only the freshest ones used.

Our IPv6 mirror network is presently just under 150 hosts spread over 32
different countries - with a large bias towards the USA and Western
Europe. We would love to bring on more machines to get better coverage
around the world. In the 30 minutes since we turned it on, we are
serving just over 8 requests per second over ipv6. So while its not
huge, its a significant number and one that we imagine will only grow.

I would like to thank Anssi Johansson ( http://twitter.com/avij ),
member of the CentOS QA team and resident IPv6 champion, for his efforts
in pushing for this service. Then helping build it and test it.

Note that we do not have DNS on ipv6, so we still rely on the user end
hosts having an upstream dual stacke dns resolver enroute to
ns*.centos.org - we will try and fix this in the near future.

If you have any feedback, or run into issues, please come find us on irc
at #centos-de...@irc.freenode.net or open an issue report at
http://bugs.centos.org/

Enjoy the v6 goodness,

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


[CentOS-virt] 100% load on core after physically removing USB storage from host

2012-06-11 Thread Emmanuel Noobadmin
I encountered a problem after removing a USB flash drive using virtual
machine manager, I
notice that the core assigned to the VM guest goes up to 100% load.
Within the guest itself, there is no significant activity.

This also prompted me to look at the other physical machine from which
I used the USB flash drive to transfer files. And it was also
exhibiting the same problem.

Installed versions are
qemu-kvm-0.12.1.2-2.209.el6_2.5.x86_64
on CentOS 6.2, 2.6.32-220.17.1.el6.x86_64 (Intel C204 PCH)

There are no error messages in the log files and things seem to be
working except for the fully loaded core.

After some testing, the only steps needed are
1. VMM add physical host usb device - select storage to guest
2. VMM remove hardware
3. Physically remove the USB storage from the host, thread/core
assigned to guest goes 100%

Repeating the same steps without restarting the guest causes cpu
utilization to drop back to normal for about a second or so before
going back up again.

Problem goes away if I restart the guest. There don't seem to be anything
related on RHEL bugtrack except one related to hotplug/unplugging a
USB controller more
than 1000 times.

Is this is a bug or there is actually something else I am supposed to
do before removing a physical device from a guest?

Also is there anyway I get the core/thread back to normal without
restarting the guest?
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-es] block ssh brute force attacks script

2012-06-11 Thread Ing CIP. Alejandro Celi

Como mencione, hay bastantes opciones, depende cual es el nivel de quien
lo instala. Para mi, esta es la forma mas sencilla de poder hacerlo

Saludos,

-- 
Ing CIP. Alejandro Celi Mariátegui 
a...@linux.org.pe
http://cipher.pe/web/servicios.html


El sáb, 09-06-2012 a las 01:30 +0200, Salvador Guzman - Salman PSL
escribió:

 Hombre, para eso tienes el Fail2Ban que te controla eso y muchos mas 
 servicios en los que puedas 
 recibir un ataque de ese tipo, pop, ftp, smtp etc. etc. etc ...
 
 
 - Mensaje original - 
 De: Ing CIP. Alejandro Celi Mariátegui a...@linux.org.pe
 Para: centos-es@centos.org
 Enviado: viernes, 08 de junio de 2012 23:10
 Asunto: [CentOS-es] block ssh brute force attacks script
 
 
 
 Se que quizas será repetitivo, pero me parece que podria ayudar a muchos
 en lo que se refiere a seguridad de servidores Linux
 
 Este script nos ayudo bastante en lo que se refiere a evitar ataques de
 SSH por fuerza bruta (ssh brute force attacks)
 
 http://cipher.pe/web/nuestra-experiencia/44-block-ssh-brute-force-attacks-script.html
 
 10 errores de passwords erroneos y baneados. Esta probado en CentOS 6.X
 
 Saludos,
 
 


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


[CentOS-es] VT-x

2012-06-11 Thread Javier Basisty
Buenas tardes Lista!

Queria consultarles si alguien sabe si existe alguna forma de activar la 
virtualizacion por hardware desde el OS sin necesidad de usar la 
interfaz de la BIOS de la maquina?
Resulta que tengo una notebook BGH con procesador Intel T2080 que segun 
las especificaciones de Intel este soporta VT-x pero cuando ingreso a la 
BIOS para habilitarlo, no existe en ningun lugar, quiza tendre que 
actualizarla pero antes de llegar a eso queria saber si hay alguna 
posibilidad desde el OS.

Bueno, saludos y gracias.

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


Re: [CentOS-es] block ssh brute force attacks script

2012-06-11 Thread Roberto Alvarado
Yo en lo particular prefiero csf y lfd , y tiene soporte ipv6 sin problemas


On 6/9/12 1:28 AM, Jesus del Valle wrote:
 Hola. Además de lo dicho arriba, creo que fail2ban no funciona con
 IPv6 y necesita un patch, pero no estoy seguro. Saludos,
 Jesus
 ___
 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


Re: [CentOS-es] VT-x

2012-06-11 Thread Javier
Alguna otra sugerencia?
El 11/06/2012 14:07, Federico Don federico.do...@gmail.com escribió:

 Desde el sistema operativo tienes que poder ver los flags vmx o svm, si
 estos aparecen no debes habilitar nada en la bios, si no es asi, es xq no
 tiene habilitado el soporte de VT-x
 Para poder visualizar esto utiliza este comando:
 *
 *
 *grep flags /proc/cpuinfo*
 *
 *
 *
 *

 El 11 de junio de 2012 13:42, Javier Basisty javier.basi...@gmail.com
 escribió:

  Buenas tardes Lista!
 
  Queria consultarles si alguien sabe si existe alguna forma de activar la
  virtualizacion por hardware desde el OS sin necesidad de usar la
  interfaz de la BIOS de la maquina?
  Resulta que tengo una notebook BGH con procesador Intel T2080 que segun
  las especificaciones de Intel este soporta VT-x pero cuando ingreso a la
  BIOS para habilitarlo, no existe en ningun lugar, quiza tendre que
  actualizarla pero antes de llegar a eso queria saber si hay alguna
  posibilidad desde el OS.
 
  Bueno, saludos y gracias.
 
  Javier Basisty
  ___
  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-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


Re: [CentOS-es] VT-x

2012-06-11 Thread Ernesto Pérez Estévez
On 06/11/2012 11:42 AM, Javier Basisty wrote:
 Buenas tardes Lista!

 Queria consultarles si alguien sabe si existe alguna forma de activar la
 virtualizacion por hardware desde el OS sin necesidad de usar la
 interfaz de la BIOS de la maquina?
 Resulta que tengo una notebook BGH con procesador Intel T2080 que segun
 las especificaciones de Intel este soporta VT-x pero cuando ingreso a la
 BIOS para habilitarlo, no existe en ningun lugar, quiza tendre que
 actualizarla pero antes de llegar a eso queria saber si hay alguna
 posibilidad desde el OS.
si verdaderamente no aparece en el bios es que no hace falta activarle 
esta opción.

puedes verificar que tengas virtualización mirando en :

egrep vmx|svm /proc/cpuinfo

te debe aparecer una de esas dos opciones


 Bueno, saludos y gracias.

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




-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


[CentOS-es] Fwd: block ssh brute force attacks script

2012-06-11 Thread Eddy Olivo
muy buen aporte Alejandro, para los que no estamos iniciando en Linux y
puntualmente CentOS.

gracias y un saludo

-- Forwarded message --
From: Roberto Alvarado ralvar...@gtdbox.com
Date: 2012/6/11
Subject: Re: [CentOS-es] block ssh brute force attacks script
To: centos-es@centos.org


Yo en lo particular prefiero csf y lfd , y tiene soporte ipv6 sin problemas


On 6/9/12 1:28 AM, Jesus del Valle wrote:
 Hola. Además de lo dicho arriba, creo que fail2ban no funciona con
 IPv6 y necesita un patch, pero no estoy seguro. Saludos,
 Jesus
 ___
 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



-- 
Saludos,

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


Re: [CentOS] Centos 6 - Networking: Some Queries -- GURUS HELP PL

2012-06-11 Thread Sanjay Arora
On Sat, Jun 9, 2012 at 6:59 AM, Gordon Messmer
 If you want to use NAT and keep your guests in a segregated network,
 that is exactly how the default install behaves.  You don't have to do
 any network-specific configuration.

But that segregated network does not have access to the Internetor
am I wrong?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] system date using ntp client is drifting

2012-06-11 Thread John Doe
From: Arun Khan knu...@gmail.com

 On Tue, Jun 5, 2012 at 1:57 AM, Nate Duehr denverpi...@me.com wrote:
  After getting the clock in sync, hwclock --systohc to push it 
 into the CMOS clock.
 
 +1
 
 On a PC Engines ALIX board (no battery backup for CMOS) that I am
 using as an WiFi AP, I have had to resort to a similar trick.  Once at
 boot up and then every 20 mins from the system crontab.

/etc/sysconfig/ntpd:
  # Set to 'yes' to sync hw clock after successful ntpdate
  SYNC_HWCLOCK=yes

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


[CentOS] centos 6.2 xfs + nfs space allocation

2012-06-11 Thread Stephan van Hienen
Centos 6.2 system with xfs filesystem.
I'm sharing this filesystem using nfs.

When I create a 10 gigabyte test file from a nfs client system :

dd if=/dev/zero of=10Gtest bs=1M count=1
1+0 records in
1+0 records out
1048576 bytes (10 GB) copied, 74.827 s, 140 MB/s

Output from 'ls -al ; du' during this test :

-rw-r--r-- 1 root root 429170688 Jun  8 10:13 10Gtest
654456  10Gtest

-rw-r--r-- 1 root root 1756831744 Jun  8 10:13 10Gtest
2230720 10Gtest

-rw-r--r--   1 root root 2492145664 Jun  8 10:11 10Gtest
4348288 10Gtest

-rw-r--r--   1 root root 4686782464 Jun  8 10:11 10Gtest
8542592 10Gtest

-rw-r--r-- 1 root root 1048576 Jun  8 10:12 10Gtest
1694355210Gtest

The file is using almost double the size ?
Even after a few days the file is showing the same disk usage.
Only umounting and remounting the filesystem fixes the problem.
When I do the same test on an ext4 filesystem no issues. (same 
server/client)

Same issue on 2 centos 6.2 servers.
I also tried to reproduce the issue on an rhel 5.8 system with xfs, but 
here the disk usage is ok.
(I don't have a rhel6 systems with the xfs addon subscription)

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


[CentOS] iptables: hitcount

2012-06-11 Thread Helmut Drodofsky
Hello,

up to CentOS 5.3 it was possible, to control new ip connections by 
recent, seconds and hitcount

-A INPUT -m state --state NEW -m recent --set -p tcp --dport 80
-A INPUT -m state --state NEW -m recent --update --seconds 60 --hitcount 
1000 -p tcp --dport 80 -j LOG --log-prefix FW DROP IP Flood: 
-A INPUT -p tcp -m tcp --dport 80 -m state --state NEW -m recent 
--update --seconds 60 --hitcount 1000 -j DROP
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT

so that
- short time high new connections rate for the web server where 
accepted, but not over a longer time.

E.g. CentOS 5.8 or CentOS 6.2 accept only

-A INPUT -m state --state NEW -m recent --set -p tcp --dport 80
-A INPUT -m state --state NEW -m recent --update --seconds 1 --hitcount 
15 -p tcp --dport 80 -j LOG --log-prefix FW DROP IP Flood: 
-A INPUT -p tcp -m tcp --dport 80 -m state --state NEW -m recent 
--update --seconds 1 --hitcount 15 -j DROP
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT

So a complex web page with many small icons e.g. webmail pages initiate 
the log in line 2 and drop in line 3 .

hitcount does not accept values of 25 or above:

[root@server ~]# iptables -A INPUT -m state --state NEW -m recent --set 
-p tcp --dport 80
[root@server~]# iptables -A INPUT -m state --state NEW -m recent 
--update --seconds 1 --hitcount 25 -p tcp --dport 80 -j LOG --log-prefix 
FW DROP IP Flood: 
iptables: Unknown error 4294967295


what can i do to protect the web server? Is there any any configuration 
parameter to increase the values for hitcount?

Best regards Helmut Drodofsky

-- 
Viele Grüße
Helmut Drodofsky

Internet XS Service GmbH
Heßbrühlstraße 15
70565 Stuttgart

Geschäftsführung
Dr.-Ing. Roswitha Hahn-Drodofsky
HRB 21091 Stuttgart
USt.ID: DE190582774
Tel. 0711 781941 0
Fax: 0711 781941 79
Mail: i...@internet-xs.de
www.internet-xs.de



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


[CentOS] Error dovecot restart

2012-06-11 Thread Muhammad A. Fatahna
Dear all,

i have a problem when install dovecot on CentOS 5, below my configuration

[root@mail home]# vim /etc/dovecot-sql.conf
driver = mysql
connect = host = localhost dbname=postfix user=mail password=password
default_pass_scheme = PLAIN
password_query = SELECT password FROM mailbox WHERE username = '%u'

[root@mail home]# vim /etc/dovecot.conf
log_path = /var/log/dovecot.log
auth_username_format = %Lu

passdb sql {
args = /etc/dovecot-sql.conf
}

userdb static {
args = uid=501 gid=501 home=/home/vmail/%d/%n
}

[root@mail home]# service dovecot restart
Stopping Dovecot Imap: [FAILED]
Starting Dovecot Imap: Error: Can't write to log directory /var/log:
Permission denied
Fatal: Invalid configuration in /etc/dovecot.conf
   [FAILED]

i have try searching but i don't see step fix it,

-- 
http://mafatahna.web.id
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Centos 6 - Networking: Some Queries -- GURUS HELP PL

2012-06-11 Thread Ross Cavanagh
On Mon, Jun 11, 2012 at 4:45 PM, Sanjay Arora sanjay.k.ar...@gmail.comwrote:

 On Sat, Jun 9, 2012 at 6:59 AM, Gordon Messmer
  If you want to use NAT and keep your guests in a segregated network,
  that is exactly how the default install behaves.  You don't have to do
  any network-specific configuration.

 But that segregated network does not have access to the Internetor
 am I wrong?

 I'm just jumping in and may not have read everything, but having the NAT
option will still allow Internet access to the guest if the host is setup
to allow this (which is the default on most virtual hosts as far as I'm
aware). But you may find it harder to access the NAT guest if you're trying
to access it from another system on the same network as the host system.

You can always setup multiple NIC's on the guest.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Centos 6 - Networking: Some Queries -- GURUS HELP PL

2012-06-11 Thread Sanjay Arora
On Mon, Jun 11, 2012 at 3:42 PM, Ross Cavanagh ross@gmail.com wrote:

 I'm just jumping in and may not have read everything, but having the NAT
 option will still allow Internet access to the guest if the host is setup
 to allow this (which is the default on most virtual hosts as far as I'm
 aware). But you may find it harder to access the NAT guest if you're trying
 to access it from another system on the same network as the host system.

 You can always setup multiple NIC's on the guest.

Now I wonder why I did not think of so simple an idea! Simply put in a
multi-port NIC card,

Another questions...I put in another network port  I end up with 3
NICs  3 bridges...One providing Internet access, One providing
routing to virtual hosts and one providing route to ltsp network.

Now, traffic among these three networks will be routed automatically
or do I have to put in some code to enable traffic between these three
networks  internet access to the virtual host  ltsp network?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Error dovecot restart

2012-06-11 Thread Muhammad A. Fatahna
 man touch
 man chmod
 man chown

file has ready, chmod use 755 and chown use vmail, this below :

[root@mail ~]# ls -la /etc/dovecot*
-rwxr-xr-x 1 vmail vmail 42989 Jun 11 17:08 /etc/dovecot.conf
-rwxr-xr-x 1 vmail vmail   181 Jun 11 15:27 /etc/dovecot-sql.conf
[root@mail ~]#

[root@mail ~]# ls -la /var/log/dovecot.log
-rwxr-xr-x 1 vmail vmail 1180 Jun 11 16:42 /var/log/dovecot.log
[root@mail ~]#

there is something wrong on my configuration

-- 
http://mafatahna.web.id
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Centos 6 - Networking: Some Queries -- GURUS HELP PL

2012-06-11 Thread Ross Cavanagh

 On Mon, Jun 11, 2012 at 3:42 PM, Ross Cavanagh ross@gmail.com wrote:

  I'm just jumping in and may not have read everything, but having the NAT
  option will still allow Internet access to the guest if the host is setup
  to allow this (which is the default on most virtual hosts as far as I'm
  aware). But you may find it harder to access the NAT guest if you're
 trying
  to access it from another system on the same network as the host system.
 
  You can always setup multiple NIC's on the guest.

 Now I wonder why I did not think of so simple an idea! Simply put in a
 multi-port NIC card,

 Another questions...I put in another network port  I end up with 3
 NICs  3 bridges...One providing Internet access, One providing
 routing to virtual hosts and one providing route to ltsp network.

 Now, traffic among these three networks will be routed automatically
 or do I have to put in some code to enable traffic between these three
 networks  internet access to the virtual host  ltsp network?

 It shouldn't be a problem, because if it's different networks, the system
will send them accordingly (as far as I'm aware). If it does come to any
issues with the networks, you can always setup static routes if required.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Centos 6 - Networking: Some Queries -- GURUS HELP PL

2012-06-11 Thread Sanjay Arora
On Mon, Jun 11, 2012 at 4:00 PM, Ross Cavanagh ross@gmail.com wrote:
 Now, traffic among these three networks will be routed automatically
 or do I have to put in some code to enable traffic between these three
 networks  internet access to the virtual host  ltsp network?

 It shouldn't be a problem, because if it's different networks, the system
 will send them accordingly (as far as I'm aware). If it does come to any
 issues with the networks, you can always setup static routes if required.

Thanks. I guess this problem is solved with a workaround. Good enuff for me!
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Update issue - tar package problem?

2012-06-11 Thread Tom Brown
Hi

Trying to apply all available updates to CentOS 5 and the following is observed

# yum update
Loaded plugins: downloadonly, fastestmirror, rhnplugin
Loading mirror speeds from cached hostfile
Setting up Update Process
Resolving Dependencies
-- Running transaction check

snip

-- Running transaction check
--- Package unixODBC-libs.i386 0:2.2.11-10.el5 set to be updated
--- Package unixODBC-libs.x86_64 0:2.2.11-10.el5 set to be updated
-- Processing Dependency: /bin/tar for package: redhat-lsb
-- Processing Dependency: /bin/tar for package: redhat-lsb
-- Finished Dependency Resolution
redhat-lsb-4.0-2.1.4.el5.x86_64 from installed has depsolving problems
  -- Missing Dependency: /bin/tar is needed by package
redhat-lsb-4.0-2.1.4.el5.x86_64 (installed)
redhat-lsb-4.0-2.1.4.el5.i386 from installed has depsolving problems
  -- Missing Dependency: /bin/tar is needed by package
redhat-lsb-4.0-2.1.4.el5.i386 (installed)
-- Running transaction check
--- Package kernel-xen.x86_64 0:2.6.18-194.32.1.el5 set to be erased
--- Package kernel-xen-devel.x86_64 0:2.6.18-194.32.1.el5 set to be erased
-- Processing Dependency: /bin/tar for package: redhat-lsb
-- Processing Dependency: /bin/tar for package: redhat-lsb
-- Finished Dependency Resolution
redhat-lsb-4.0-2.1.4.el5.x86_64 from installed has depsolving problems
  -- Missing Dependency: /bin/tar is needed by package
redhat-lsb-4.0-2.1.4.el5.x86_64 (installed)
redhat-lsb-4.0-2.1.4.el5.i386 from installed has depsolving problems
  -- Missing Dependency: /bin/tar is needed by package
redhat-lsb-4.0-2.1.4.el5.i386 (installed)
Error: Missing Dependency: /bin/tar is needed by package
redhat-lsb-4.0-2.1.4.el5.i386 (installed)
Error: Missing Dependency: /bin/tar is needed by package
redhat-lsb-4.0-2.1.4.el5.x86_64 (installed)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest

so trying to just update tar

# yum update tar
Loaded plugins: downloadonly, fastestmirror, rhnplugin
Loading mirror speeds from cached hostfile
Setting up Update Process
Resolving Dependencies
-- Running transaction check
--- Package tar.x86_64 2:1.15.1-32.el5_8 set to be updated
-- Processing Dependency: /bin/tar for package: redhat-lsb
-- Processing Dependency: /bin/tar for package: redhat-lsb
-- Finished Dependency Resolution
redhat-lsb-4.0-2.1.4.el5.x86_64 from installed has depsolving problems
  -- Missing Dependency: /bin/tar is needed by package
redhat-lsb-4.0-2.1.4.el5.x86_64 (installed)
redhat-lsb-4.0-2.1.4.el5.i386 from installed has depsolving problems
  -- Missing Dependency: /bin/tar is needed by package
redhat-lsb-4.0-2.1.4.el5.i386 (installed)
Error: Missing Dependency: /bin/tar is needed by package
redhat-lsb-4.0-2.1.4.el5.i386 (installed)
Error: Missing Dependency: /bin/tar is needed by package
redhat-lsb-4.0-2.1.4.el5.x86_64 (installed)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest

but interestingly if i yum locainstall the tar package and then yum
update it all works fine - seems very odd and possibly a broken yum
package as rpm works OK ?

anyone seen this?

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


Re: [CentOS] centos 6.2 xfs + nfs space allocation

2012-06-11 Thread Svavar Örn Eysteinsson
What kernel are you using ?
Are you using inode64 mount option on the Cents server itself for XFS ?

What OS was the NFS client running ? 32bit ?

Just asking, as there seems to be problem with xfs on kernel 2.6.27 when 
using inode64 mount options regarding
32bit nfs









Stephan van Hienen wrote:
 Centos 6.2 system with xfs filesystem.
 I'm sharing this filesystem using nfs.

 When I create a 10 gigabyte test file from a nfs client system :

 dd if=/dev/zero of=10Gtest bs=1M count=1
 1+0 records in
 1+0 records out
 1048576 bytes (10 GB) copied, 74.827 s, 140 MB/s

 Output from 'ls -al ; du' during this test :

 -rw-r--r-- 1 root root 429170688 Jun  8 10:13 10Gtest
 654456  10Gtest

 -rw-r--r-- 1 root root 1756831744 Jun  8 10:13 10Gtest
 2230720 10Gtest

 -rw-r--r--   1 root root 2492145664 Jun  8 10:11 10Gtest
 4348288 10Gtest

 -rw-r--r--   1 root root 4686782464 Jun  8 10:11 10Gtest
 8542592 10Gtest

 -rw-r--r-- 1 root root 1048576 Jun  8 10:12 10Gtest
 1694355210Gtest

 The file is using almost double the size ?
 Even after a few days the file is showing the same disk usage.
 Only umounting and remounting the filesystem fixes the problem.
 When I do the same test on an ext4 filesystem no issues. (same
 server/client)

 Same issue on 2 centos 6.2 servers.
 I also tried to reproduce the issue on an rhel 5.8 system with xfs, but
 here the disk usage is ok.
 (I don't have a rhel6 systems with the xfs addon subscription)

 Stephan
 ___
 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] centos 6.2 xfs + nfs space allocation

2012-06-11 Thread Stephan van Hienen

On Mon, 11 Jun 2012, Svavar Örn Eysteinsson wrote:


What kernel are you using ?

Latest centos 6.2 kernel:
2.6.32-220.17.1.el6.x86_64


Are you using inode64 mount option on the Cents server itself for XFS ?

fstab for this filesystem :

/dev/mapper/VolGroup01-LogVol00 /raid   xfs defaults1 2

/etc/exports for this filesystem :

/raid   192.168.178.5(rw,no_root_squash)

and on the client system /etc/fstab :

server:/raid  /raid   nfs  
soft,rsize=32768,wsize=32768,vers=3



What OS was the NFS client running ? 32bit ?

Also centos 6.2 x64 with kernel 2.6.32-220.17.1.el6.x86_64.

I also have this problem with a nfs client running 2.6.18-7.4-dm8000 
(dreambox satelite receiver)

And Centos 5.8 x64 with kernel 2.6.18-308.8.1.el5

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


Re: [CentOS] Update issue - tar package problem?

2012-06-11 Thread Johnny Hughes
On 06/11/2012 06:21 AM, Tom Brown wrote:
 Hi

 Trying to apply all available updates to CentOS 5 and the following is 
 observed

 # yum update
 Loaded plugins: downloadonly, fastestmirror, rhnplugin
 Loading mirror speeds from cached hostfile
 Setting up Update Process
 Resolving Dependencies
 -- Running transaction check

 snip

 -- Running transaction check
 --- Package unixODBC-libs.i386 0:2.2.11-10.el5 set to be updated
 --- Package unixODBC-libs.x86_64 0:2.2.11-10.el5 set to be updated
 -- Processing Dependency: /bin/tar for package: redhat-lsb
 -- Processing Dependency: /bin/tar for package: redhat-lsb
 -- Finished Dependency Resolution
 redhat-lsb-4.0-2.1.4.el5.x86_64 from installed has depsolving problems
   -- Missing Dependency: /bin/tar is needed by package
 redhat-lsb-4.0-2.1.4.el5.x86_64 (installed)
 redhat-lsb-4.0-2.1.4.el5.i386 from installed has depsolving problems
   -- Missing Dependency: /bin/tar is needed by package
 redhat-lsb-4.0-2.1.4.el5.i386 (installed)
 -- Running transaction check
 --- Package kernel-xen.x86_64 0:2.6.18-194.32.1.el5 set to be erased
 --- Package kernel-xen-devel.x86_64 0:2.6.18-194.32.1.el5 set to be erased
 -- Processing Dependency: /bin/tar for package: redhat-lsb
 -- Processing Dependency: /bin/tar for package: redhat-lsb
 -- Finished Dependency Resolution
 redhat-lsb-4.0-2.1.4.el5.x86_64 from installed has depsolving problems
   -- Missing Dependency: /bin/tar is needed by package
 redhat-lsb-4.0-2.1.4.el5.x86_64 (installed)
 redhat-lsb-4.0-2.1.4.el5.i386 from installed has depsolving problems
   -- Missing Dependency: /bin/tar is needed by package
 redhat-lsb-4.0-2.1.4.el5.i386 (installed)
 Error: Missing Dependency: /bin/tar is needed by package
 redhat-lsb-4.0-2.1.4.el5.i386 (installed)
 Error: Missing Dependency: /bin/tar is needed by package
 redhat-lsb-4.0-2.1.4.el5.x86_64 (installed)
  You could try using --skip-broken to work around the problem
  You could try running: package-cleanup --problems
 package-cleanup --dupes
 rpm -Va --nofiles --nodigest

 so trying to just update tar

 # yum update tar
 Loaded plugins: downloadonly, fastestmirror, rhnplugin
 Loading mirror speeds from cached hostfile
 Setting up Update Process
 Resolving Dependencies
 -- Running transaction check
 --- Package tar.x86_64 2:1.15.1-32.el5_8 set to be updated
 -- Processing Dependency: /bin/tar for package: redhat-lsb
 -- Processing Dependency: /bin/tar for package: redhat-lsb
 -- Finished Dependency Resolution
 redhat-lsb-4.0-2.1.4.el5.x86_64 from installed has depsolving problems
   -- Missing Dependency: /bin/tar is needed by package
 redhat-lsb-4.0-2.1.4.el5.x86_64 (installed)
 redhat-lsb-4.0-2.1.4.el5.i386 from installed has depsolving problems
   -- Missing Dependency: /bin/tar is needed by package
 redhat-lsb-4.0-2.1.4.el5.i386 (installed)
 Error: Missing Dependency: /bin/tar is needed by package
 redhat-lsb-4.0-2.1.4.el5.i386 (installed)
 Error: Missing Dependency: /bin/tar is needed by package
 redhat-lsb-4.0-2.1.4.el5.x86_64 (installed)
  You could try using --skip-broken to work around the problem
  You could try running: package-cleanup --problems
 package-cleanup --dupes
 rpm -Va --nofiles --nodigest

 but interestingly if i yum locainstall the tar package and then yum
 update it all works fine - seems very odd and possibly a broken yum
 package as rpm works OK ?

 anyone seen this?

The issue seems to be that the package tar was somehow removed from your
system.

When you tried to update, the system saw that the package tar was
removed from the system and that it was required by the already
installed package redhat-lsb.

This means that somehow, someone removed the package tar without regard
for its dependencies ... creating several packages that had unmet
dependency for tar in the rpm database.

When adding packages, Yum can do two things ... install or update ...
and it does each differently.

When you update (even an individual package), yum is going to verify
all the dependencies are met as well as to update the package.  In this
case it was confused about the missing dependency that was somehow
created by a forced removal.

When you do an install (or localinstall), yum only tries to meet the
dependencies for single package being installed, not all the
dependencies for the entire rpm database plus the package being updated
... so it did not see that the already installed redhat-lsb package does
not have  all its dependencies met. 

After tar is installed, all dependencies are met for redhat-lsb, so an
update works fine.

The problem all along is that someone did a force removal of tar (at
least from the rpm database) with a --nodeps switch, thus creating a
system with missing dependencies.

The lesson is ... don't force remove packages manually unless you plan
to repair the situation manually as well.




signature.asc
Description: OpenPGP digital signature

Re: [CentOS] Update issue - tar package problem?

2012-06-11 Thread Tom Brown
 The issue seems to be that the package tar was somehow removed from your
 system.

 When you tried to update, the system saw that the package tar was
 removed from the system and that it was required by the already
 installed package redhat-lsb.

 This means that somehow, someone removed the package tar without regard
 for its dependencies ... creating several packages that had unmet
 dependency for tar in the rpm database.

 When adding packages, Yum can do two things ... install or update ...
 and it does each differently.

 When you update (even an individual package), yum is going to verify
 all the dependencies are met as well as to update the package.  In this
 case it was confused about the missing dependency that was somehow
 created by a forced removal.

 When you do an install (or localinstall), yum only tries to meet the
 dependencies for single package being installed, not all the
 dependencies for the entire rpm database plus the package being updated
 ... so it did not see that the already installed redhat-lsb package does
 not have  all its dependencies met.

 After tar is installed, all dependencies are met for redhat-lsb, so an
 update works fine.

 The problem all along is that someone did a force removal of tar (at
 least from the rpm database) with a --nodeps switch, thus creating a
 system with missing dependencies.

 The lesson is ... don't force remove packages manually unless you plan
 to repair the situation manually as well.

thanks for the response - tar has definately not been removed!

# rpm -q tar
tar-1.15.1-30.el5

# yum info tar
Loaded plugins: downloadonly, fastestmirror, rhnplugin
Loading mirror speeds from cached hostfile
Installed Packages
Name   : tar
Arch   : x86_64
Epoch  : 2
Version: 1.15.1
Release: 30.el5
Size   : 1.6 M
Repo   : installed
Summary: A GNU file archiving program.
URL: http://www.gnu.org/software/tar/
License: GPL
Description: The GNU tar program saves many files together in one
archive and can
   : restore individual files (or all of the files) from that
archive. Tar
   : can also be used to add supplemental files to an archive
and to update
   : or list files in the archive. Tar includes multivolume support,
   : automatic archive compression/decompression, the ability to perform
   : remote archives, and the ability to perform incremental and full
   : backups.
   :
   : If you want to use tar for remote backups, you also need to install
   : the rmt package.

Available Packages
Name   : tar
Arch   : x86_64
Epoch  : 2
Version: 1.15.1
Release: 32.el5_8
Size   : 748 k
Repo   : centos-5-x86_64-01062012
Summary: A GNU file archiving program
License: GPL
Description: The GNU tar program saves many files together in one
archive and can
   : restore individual files (or all of the files) from that
archive. Tar
   : can also be used to add supplemental files to an archive
and to update
   : or list files in the archive. Tar includes multivolume support,
   : automatic archive compression/decompression, the ability to perform
   : remote archives, and the ability to perform incremental and full
   : backups.
   :
   : If you want to use tar for remote backups, you also need to install
   : the rmt package.

i know it seems like yum thinks its not there, but it is, This happens
on multiple systems also.

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


Re: [CentOS] Error dovecot restart

2012-06-11 Thread Helmut Drodofsky
I think there are not enough write permissions.

I have build a directory:
/var/log/dovecot
with user and group permissions for the dovecot user: drwxr-xr-x

and the log file:
/var/log/dovecot/dovecot.log
with user and group permissions for the dovecot user: -rw-r--r--

Viele Grüße
Helmut Drodofsky

Internet XS Service GmbH
Heßbrühlstraße 15
70565 Stuttgart

Geschäftsführung
Dr.-Ing. Roswitha Hahn-Drodofsky
HRB 21091 Stuttgart
USt.ID: DE190582774
Tel. 0711 781941 0
Fax: 0711 781941 79
Mail: i...@internet-xs.de
www.internet-xs.de



Am 11.06.2012 12:25, schrieb Muhammad A. Fatahna:
 man touch
 man chmod
 man chown
 file has ready, chmod use 755 and chown use vmail, this below :

 [root@mail ~]# ls -la /etc/dovecot*
 -rwxr-xr-x 1 vmail vmail 42989 Jun 11 17:08 /etc/dovecot.conf
 -rwxr-xr-x 1 vmail vmail   181 Jun 11 15:27 /etc/dovecot-sql.conf
 [root@mail ~]#

 [root@mail ~]# ls -la /var/log/dovecot.log
 -rwxr-xr-x 1 vmail vmail 1180 Jun 11 16:42 /var/log/dovecot.log
 [root@mail ~]#

 there is something wrong on my configuration


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


Re: [CentOS] Update issue - tar package problem?

2012-06-11 Thread Johnny Hughes
On 06/11/2012 07:17 AM, Tom Brown wrote:
 The issue seems to be that the package tar was somehow removed from your
 system.

 When you tried to update, the system saw that the package tar was
 removed from the system and that it was required by the already
 installed package redhat-lsb.

 This means that somehow, someone removed the package tar without regard
 for its dependencies ... creating several packages that had unmet
 dependency for tar in the rpm database.

 When adding packages, Yum can do two things ... install or update ...
 and it does each differently.

 When you update (even an individual package), yum is going to verify
 all the dependencies are met as well as to update the package.  In this
 case it was confused about the missing dependency that was somehow
 created by a forced removal.

 When you do an install (or localinstall), yum only tries to meet the
 dependencies for single package being installed, not all the
 dependencies for the entire rpm database plus the package being updated
 ... so it did not see that the already installed redhat-lsb package does
 not have  all its dependencies met.

 After tar is installed, all dependencies are met for redhat-lsb, so an
 update works fine.

 The problem all along is that someone did a force removal of tar (at
 least from the rpm database) with a --nodeps switch, thus creating a
 system with missing dependencies.

 The lesson is ... don't force remove packages manually unless you plan
 to repair the situation manually as well.
 thanks for the response - tar has definately not been removed!

 # rpm -q tar
 tar-1.15.1-30.el5

 # yum info tar
 Loaded plugins: downloadonly, fastestmirror, rhnplugin
 Loading mirror speeds from cached hostfile
 Installed Packages
 Name   : tar
 Arch   : x86_64
 Epoch  : 2
 Version: 1.15.1
 Release: 30.el5
 Size   : 1.6 M
 Repo   : installed
 Summary: A GNU file archiving program.
 URL: http://www.gnu.org/software/tar/
 License: GPL
 Description: The GNU tar program saves many files together in one
 archive and can
: restore individual files (or all of the files) from that
 archive. Tar
: can also be used to add supplemental files to an archive
 and to update
: or list files in the archive. Tar includes multivolume support,
: automatic archive compression/decompression, the ability to 
 perform
: remote archives, and the ability to perform incremental and full
: backups.
:
: If you want to use tar for remote backups, you also need to 
 install
: the rmt package.

 Available Packages
 Name   : tar
 Arch   : x86_64
 Epoch  : 2
 Version: 1.15.1
 Release: 32.el5_8
 Size   : 748 k
 Repo   : centos-5-x86_64-01062012
 Summary: A GNU file archiving program
 License: GPL
 Description: The GNU tar program saves many files together in one
 archive and can
: restore individual files (or all of the files) from that
 archive. Tar
: can also be used to add supplemental files to an archive
 and to update
: or list files in the archive. Tar includes multivolume support,
: automatic archive compression/decompression, the ability to 
 perform
: remote archives, and the ability to perform incremental and full
: backups.
:
: If you want to use tar for remote backups, you also need to 
 install
: the rmt package.

 i know it seems like yum thinks its not there, but it is, This happens
 on multiple systems also.

Somehow it is NOT in the rpm database ... that is why yum thinks it is
not there.

This could also happen accidentally with multilib installs (it looks
like you do have this possible issue).

When a system is installed in c5, the default behavior is that both i386
and x86_64 packages are installed.  It looks like you have removed the
i386 packages as a rpm -q tar shows only one package (I do this too ...
I think it is a good idea).  There is a potential problem though ...
both versions of tar (the i386 and x86_64 versions) provide /bin/tar ...
when removing the i386 version, sometimes the database will remove
/bin/tar from the list of installed packages even though the x86_64
version is still installed.

This can lead to the same kind of issue that you had ... and it is
possible to get it silently.  So, I will add a .rpmmacros entry to root
so that rpm -qa also shows E-V-R.arch, remove all i[3,4,5,6]86
packages, then I make an entry to exclude multilib like this in yum.conf:

multilib_policy=best

Then I reinstall all x86_64 packages that had i386 packages removed (I
create a list before I remove them).

So, if you are doing rpm -e tar.i386 (I suspect you are since there is
only one currently installed) ... that might also be the source of the
problem.

This is no longer a problem in CentOS-6 as anaconda does not install
i386 packages on 

Re: [CentOS] Update issue - tar package problem?

2012-06-11 Thread Tom Brown
 Somehow it is NOT in the rpm database ... that is why yum thinks it is
 not there.

 This could also happen accidentally with multilib installs (it looks
 like you do have this possible issue).

 When a system is installed in c5, the default behavior is that both i386
 and x86_64 packages are installed.  It looks like you have removed the
 i386 packages as a rpm -q tar shows only one package (I do this too ...
 I think it is a good idea).  There is a potential problem though ...
 both versions of tar (the i386 and x86_64 versions) provide /bin/tar ...
 when removing the i386 version, sometimes the database will remove
 /bin/tar from the list of installed packages even though the x86_64
 version is still installed.

 This can lead to the same kind of issue that you had ... and it is
 possible to get it silently.  So, I will add a .rpmmacros entry to root
 so that rpm -qa also shows E-V-R.arch, remove all i[3,4,5,6]86
 packages, then I make an entry to exclude multilib like this in yum.conf:

 multilib_policy=best

 Then I reinstall all x86_64 packages that had i386 packages removed (I
 create a list before I remove them).

 So, if you are doing rpm -e tar.i386 (I suspect you are since there is
 only one currently installed) ... that might also be the source of the
 problem.

 This is no longer a problem in CentOS-6 as anaconda does not install
 i386 packages on x86_64 installs by default ... but they are installed
 by default on CentOS-5.

from memory i have not deliberately removed the i386 package, but you
are right it is not there, however rpm does seem to know about
/bin/tar

# rpm -ql tar
/bin/gtar
/bin/tar
snip

although i agree its something rpm db related as reinstalling tar via
rpm rather than yum solves the problem, however i dont see how this
situation has arisen.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Update issue - tar package problem?

2012-06-11 Thread Tom Brown
 from memory i have not deliberately removed the i386 package, but you
 are right it is not there, however rpm does seem to know about
 /bin/tar

 # rpm -ql tar
 /bin/gtar
 /bin/tar
 snip

 although i agree its something rpm db related as reinstalling tar via
 rpm rather than yum solves the problem, however i dont see how this
 situation has arisen.

rebuilding the rpmdb did not help - installing the i386 package using
rpm 'fixed' it but its still very strange
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] system date using ntp client is drifting

2012-06-11 Thread Arun Khan
On Mon, Jun 11, 2012 at 2:49 PM, John Doe jd...@yahoo.com wrote:
 From: Arun Khan knu...@gmail.com

 On Tue, Jun 5, 2012 at 1:57 AM, Nate Duehr denverpi...@me.com wrote:
  After getting the clock in sync, hwclock --systohc to push it
 into the CMOS clock.

 +1

 On a PC Engines ALIX board (no battery backup for CMOS) that I am
 using as an WiFi AP, I have had to resort to a similar trick.  Once at
 boot up and then every 20 mins from the system crontab.

 /etc/sysconfig/ntpd:
   # Set to 'yes' to sync hw clock after successful ntpdate
   SYNC_HWCLOCK=yes

Thanks; will try out in the ALIX box.

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


Re: [CentOS] Error dovecot restart

2012-06-11 Thread Shiv. Nath
On 6/11/12 10:05 AM, Muhammad A. Fatahna wrote:
 Dear all,

 i have a problem when install dovecot on CentOS 5, below my configuration

 [root@mail home]# vim /etc/dovecot-sql.conf
 driver = mysql
 connect = host = localhost dbname=postfix user=mail password=password
 default_pass_scheme = PLAIN
 password_query = SELECT password FROM mailbox WHERE username = '%u'

 [root@mail home]# vim /etc/dovecot.conf
 log_path = /var/log/dovecot.log
 auth_username_format = %Lu

 passdb sql {
 args = /etc/dovecot-sql.conf
 }

 userdb static {
 args = uid=501 gid=501 home=/home/vmail/%d/%n
 }

 [root@mail home]# service dovecot restart
 Stopping Dovecot Imap: [FAILED]
 Starting Dovecot Imap: Error: Can't write to log directory /var/log:
 Permission denied
 Fatal: Invalid configuration in /etc/dovecot.conf
 [FAILED]

 i have try searching but i don't see step fix it,

Hi, it seems that you want to read user  pass info from the MySQL DBMS.
Problem 1 seems to be permission issue, since it cannot write.
Problem 2 is misconfiguration related mysql with dovecot. SEE RED TEXT
because it is working, i have the following in /etc/dovecot.conf and 
/etc/dovecot-sql.conf, that concern to authentication. Either you have 
not provided the full information or cross check your configuration. 
configuration is missing that i feel.


* /etc/dovecot.conf*
 passdb sql {
  args = etc/dovecot-sql.conf
}

 userdb sql {
  args = /etc/dovecot-sql.conf
 }

*## Authentication processes*

auth_username_chars = 
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
auth default {
mechanisms = plain login

passdb sql {
 args = /usr/local/etc/dovecot-sql.conf
   }

userdb sql {
 args = /usr/local/etc/dovecot-sql.conf
}
*

 /etc/dovecot-sql.conf*

driver = mysql
connect = host=localhost dbname=postfix user=postfix password=your_pass_word
default_pass_scheme = MD5
password_query = SELECT password FROM mailbox WHERE username = '%u'
*user_query *= SELECT maildir, 125 AS uid, 125 AS gid, 
CONCAT('*:messages=1:bytes=', quota) AS quota_rule FROM mailbox 
WHERE username = '%u' AND active = '1'




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


Re: [CentOS] Update issue - tar package problem?

2012-06-11 Thread m . roth
Johnny Hughes wrote:
snip
 When adding packages, Yum can do two things ... install or update ...
 and it does each differently.

snip of much-appreciated explanation of how yum
install/update/localinstall works

 The problem all along is that someone did a force removal of tar (at
 least from the rpm database) with a --nodeps switch, thus creating a
 system with missing dependencies.
snip
Johnny, here's a question: what's the yum d/b - /var/lib/yum/yumdb, and
how's it different than the rpm d/b?

   mark

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


Re: [CentOS] iptables: hitcount

2012-06-11 Thread Leonard den Ottolander
Hello Helmut,

On Mon, 2012-06-11 at 11:54 +0200, Helmut Drodofsky wrote:
 up to CentOS 5.3 it was possible, to control new ip connections by 
 recent, seconds and hitcount
 
 -A INPUT -m state --state NEW -m recent --set -p tcp --dport 80
 -A INPUT -m state --state NEW -m recent --update --seconds 60
 --hitcount 
 1000 -p tcp --dport 80 -j LOG --log-prefix FW DROP IP Flood: 
 -A INPUT -p tcp -m tcp --dport 80 -m state --state NEW -m recent 
 --update --seconds 60 --hitcount 1000 -j DROP
 -A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT

 hitcount does not accept values of 25 or above:

20* on CentOS-5 afaict.

 [root@server ~]# iptables -A INPUT -m state --state NEW -m recent --set 
 -p tcp --dport 80
 [root@server~]# iptables -A INPUT -m state --state NEW -m recent 
 --update --seconds 1 --hitcount 25 -p tcp --dport 80 -j LOG --log-prefix 
 FW DROP IP Flood: 
 iptables: Unknown error 4294967295

I suggest you take this upstream. Apparently there are quite a few
issues between the various kernel and iptables verions and also the
different architectures.

https://bugzilla.redhat.com/show_bug.cgi?id=639026 seems to be the issue
you are experiencing.

(Note that 4294967295 = 2^32-1 and 18446744073709551615 = 2^64-1, which
makes me believe the reporter of the above bug runs on x86_64 and you're
probably running a 32 bit system. These things should be mentioned when
you report bugs as well as the CentOS and package versions you are
conducting your tests on/with.)

Try to google for
site:bugzilla.redhat.com iptables: Unknown error 4294967295
and
site:bugzilla.redhat.com iptables: Unknown error 18446744073709551615
for more related bugzilla entries.

Regards,
Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research


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


Re: [CentOS] Update issue - tar package problem?

2012-06-11 Thread Leonard den Ottolander
Hello Tom,

On Mon, 2012-06-11 at 14:23 +0100, Tom Brown wrote:
 from memory i have not deliberately removed the i386 package, but you
 are right it is not there, however rpm does seem to know about
 /bin/tar
 
 # rpm -ql tar
 /bin/gtar
 /bin/tar
 snip
 
 although i agree its something rpm db related as reinstalling tar via
 rpm rather than yum solves the problem, however i dont see how this
 situation has arisen.

rm /bin/tar will remove the binary but not update the rpmdb.

rpm -V {package}
to verify the package installation.

Regards,
Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research


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


Re: [CentOS] Update issue - tar package problem?

2012-06-11 Thread Tom Brown
 rm /bin/tar will remove the binary but not update the rpmdb.

 rpm -V {package}
 to verify the package installation.

well yes - but tar is not removed, that is the point, its something to
do with rpm thinking its not there when in fact it is
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] centos 6.2 xfs + nfs space allocation

2012-06-11 Thread James Pearson
Stephan van Hienen wrote:

 The file is using almost double the size ?
 Even after a few days the file is showing the same disk usage.
 Only umounting and remounting the filesystem fixes the problem.
 When I do the same test on an ext4 filesystem no issues. (same 
 server/client)

What does:

  /usr/sbin/xfs_bmap -pl 10Gtest

output (when run on the server)?

You can also 'recover' the lost space by running (as root on the server):

  /usr/sbin/xfs_fsr 10Gtest

James Pearson

P.S. you can also see the allocated size of a file using the -s option to ls
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] centos 6.2 xfs + nfs space allocation

2012-06-11 Thread Stephan van Hienen
On Mon, 11 Jun 2012, James Pearson wrote:
 What does:

  /usr/sbin/xfs_bmap -pl 10Gtest

 output (when run on the server)?

10Gtest:
 0: [0..808319]: 261386472..262194791 808320 blocks
 1: [808320..1357951]: 273699584..274249215 549632 blocks
 2: [1357952..2406527]: 307386624..308435199 1048576 blocks
 3: [2406528..2631927]: 308443904..308669303 225400 blocks
 4: [2631928..4728959]: 1279691136..1281788167 2097032 blocks
 5: [4728960..7704575]: 5285370624..5288346239 2975616 blocks
 6: [7704576..8928511]: 5333860864..5335084799 1223936 blocks
 7: [8928512..11709047]: 5219053184..5221833719 2780536 blocks
 8: [11709048..14365431]: 3943770240..3946426623 2656384 blocks
 9: [14365432..16899703]: 4437210880..4439745151 2534272 blocks
 10: [16899704..17327103]: 4449971968..4450399367 427400 blocks
 11: [17327104..18992639]: 3578345984..3580011519 1665536 blocks
 12: [18992640..20356767]: 4200870752..4202234879 1364128 blocks
 13: [20356768..2047]: 4833581696..4833704927 123232 blocks


 You can also 'recover' the lost space by running (as root on the server):

  /usr/sbin/xfs_fsr 10Gtest

doesn't help :

]# xfs_fsr 10Gtest
]# du -hs
17G .

I'm also running xfs_fsr /dev/VolGroup01/LogVol00 weekly, which doesn't 
help.

 P.S. you can also see the allocated size of a file using the -s option to ls

Thanks, this shows the same info as du.


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


Re: [CentOS] Update issue - tar package problem?

2012-06-11 Thread Leonard den Ottolander
Hello Tom,

On Mon, 2012-06-11 at 15:48 +0100, Tom Brown wrote:
 well yes - but tar is not removed, that is the point,

I guess I'll have to take your word for it as there is nothing in what
you mention that verifies this statement. rpm -ql tar will not verify
that any files are actually there, just that they got installed at some
point.

Did you verify /bin/tar was actually there before you did the yum
localinstall? Perhaps a colleague playing a prank on you? Or an
accidental removal while using mc without confirmation on delete
enabled?

Since both x86_64 packages *and* i386 packages seem to be
missing /bin/tar I doubt this is a multi arch issue.

Regards,
Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research


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


Re: [CentOS] centos 6.2 xfs + nfs space allocation

2012-06-11 Thread James Pearson
Stephan van Hienen wrote:
 
You can also 'recover' the lost space by running (as root on the server):

 /usr/sbin/xfs_fsr 10Gtest
 
 
 doesn't help :
 
 ]# xfs_fsr 10Gtest
 ]# du -hs
 17G .

... it worked for me :-)

Interestingly, I did a similar 'dd' locally on a XFS file system (CentOS 
6.2) and got an allocation size of 16Gb for a 10Gb file - may be it's a 
bug/feature of the XFS versions used?

I guess you might get a better response from the XFS mail list - see 
http://oss.sgi.com/projects/xfs/ ???

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


Re: [CentOS] Update issue - tar package problem?

2012-06-11 Thread Tom Brown
 I guess I'll have to take your word for it as there is nothing in what
 you mention that verifies this statement. rpm -ql tar will not verify
 that any files are actually there, just that they got installed at some
 point.

 Did you verify /bin/tar was actually there before you did the yum
 localinstall? Perhaps a colleague playing a prank on you? Or an
 accidental removal while using mc without confirmation on delete
 enabled?

 Since both x86_64 packages *and* i386 packages seem to be
 missing /bin/tar I doubt this is a multi arch issue.

# yum update
Loaded plugins: downloadonly, fastestmirror, rhnplugin
Loading mirror speeds from cached hostfile
Setting up Update Process
Resolving Dependencies
-- Running transaction check

snip

--- Package tar.x86_64 2:1.15.1-32.el5_8 set to be updated
-- Processing Dependency: /bin/tar for package: redhat-lsb
-- Finished Dependency Resolution
redhat-lsb-4.0-2.1.4.el5.x86_64 from installed has depsolving problems
  -- Missing Dependency: /bin/tar is needed by package
redhat-lsb-4.0-2.1.4.el5.x86_64 (installed)
Error: Missing Dependency: /bin/tar is needed by package
redhat-lsb-4.0-2.1.4.el5.x86_64 (installed)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest

# rpm -ql tar | grep bin
/bin/gtar
/bin/tar

# ll /bin/tar
-rwxr-xr-x 1 root root 230464 Mar 31  2010 /bin/tar

# rpm -q tar
tar-1.15.1-30.el5

# rpm -ivh http://vault.centos.org/5.7/os/i386/CentOS/tar-1.15.1-30.el5.i386.rpm
Retrieving http://vault.centos.org/5.7/os/i386/CentOS/tar-1.15.1-30.el5.i386.rpm
Preparing...### [100%]
   1:tar### [100%]

# yum update
Loaded plugins: downloadonly, fastestmirror, rhnplugin
Loading mirror speeds from cached hostfile
Setting up Update Process
Resolving Dependencies
-- Running transaction check

big snip

Transaction Summary
=
Install   4 Package(s)
Upgrade 263 Package(s)
Remove2 Package(s)
Reinstall 0 Package(s)
Downgrade 0 Package(s)

Total download size: 417 M
Is this ok [y/N]:

So tar really really is there but it only starts working when the i386
package is put onto the system, even though this is a x86_64 box

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


[CentOS] CentOS-announce Digest, Vol 88, Issue 6

2012-06-11 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:0718 CentOS 5 doxygen FASTTRACK Update (Johnny Hughes)


--

Message: 1
Date: Mon, 11 Jun 2012 11:13:34 +
From: Johnny Hughes joh...@centos.org
Subject: [CentOS-announce] CEBA-2012:0718 CentOS 5 doxygen FASTTRACK
Update
To: centos-annou...@centos.org
Message-ID: 2012061334.ga1...@chakra.karan.org
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Bugfix Advisory 2012:0718

Upstream details at : http://rhn.redhat.com/errata/RHBA-2012-0718.html

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

i386:
72c425f77c5c39f7acf6e022521cc85b76c394784e93f04188e0681251e6c592  
doxygen-1.4.7-2.i386.rpm
97ea811c40a83bf5c7f30efe5394769206c61deb045b41477e0f0f3d96762a42  
doxygen-doxywizard-1.4.7-2.i386.rpm

x86_64:
24a17887e906d68425a6870f8170e6d2355fbc94e143c24df886cb81ca61  
doxygen-1.4.7-2.x86_64.rpm
4793a72c194fb9b3e8886d6f52e44f1b4428177740f06a8523f6ffc4c70894ad  
doxygen-doxywizard-1.4.7-2.x86_64.rpm

Source:
4e8fd530bab7d5d119fdb81b9cb61303ee66bf5961220a7c4d6b86afbb7028c2  
doxygen-1.4.7-2.src.rpm



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



--

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


End of CentOS-announce Digest, Vol 88, Issue 6
**
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] centos 6.2 xfs + nfs space allocation

2012-06-11 Thread aurfalien
On Jun 11, 2012, at 4:47 AM, Stephan van Hienen wrote:

 On Mon, 11 Jun 2012, Svavar Örn Eysteinsson wrote:
 
 What kernel are you using ?
 Latest centos 6.2 kernel:
 2.6.32-220.17.1.el6.x86_64
 
 Are you using inode64 mount option on the Cents server itself for XFS ?
 fstab for this filesystem :
 
 /dev/mapper/VolGroup01-LogVol00 /raid   xfs defaults1 2
 
 /etc/exports for this filesystem :
 
 /raid   192.168.178.5(rw,no_root_squash)
 
 and on the client system /etc/fstab :
 
 server:/raid  /raid   nfs  
 soft,rsize=32768,wsize=32768,vers=3
 
 
 What OS was the NFS client running ? 32bit ?
 Also centos 6.2 x64 with kernel 2.6.32-220.17.1.el6.x86_64.
 
 I also have this problem with a nfs client running 2.6.18-7.4-dm8000 
 (dreambox satelite receiver)
 And Centos 5.8 x64 with kernel 2.6.18-308.8.1.el5

Hi Stephan,

I also run 6.2 with XFS but am getting normal behavior.

I ran your exact command and du -hs shows 9.8GB used.

And ls -l shows 1048576

Would you like more info on my system?

- aurf

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


Re: [CentOS] Update issue - tar package problem?

2012-06-11 Thread Johnny Hughes
On 06/11/2012 09:32 AM, m.r...@5-cent.us wrote:
 Johnny Hughes wrote:
 snip
 When adding packages, Yum can do two things ... install or update ...
 and it does each differently.
 snip of much-appreciated explanation of how yum
 install/update/localinstall works
 The problem all along is that someone did a force removal of tar (at
 least from the rpm database) with a --nodeps switch, thus creating a
 system with missing dependencies.
 snip
 Johnny, here's a question: what's the yum d/b - /var/lib/yum/yumdb, and
 how's it different than the rpm d/b?


http://yum.baseurl.org/wiki/YumDB



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


[CentOS] CVE-2012-2122 ()

2012-06-11 Thread Johnny Hughes
The CentOS team has been looking at the issue called out in these stories:

http://threatpost.com/en_us/blogs/trivial-password-flaw-leaves-mysql-databases-exposed-061112

http://arstechnica.com/information-technology/2012/06/security-flaw-in-mysql-mariadb-allows-access-with-any-password-just-keep-submitting-it/

http://www.net-security.org/secworld.php?id=13076

According to the upstream provider EL4, EL5 and EL6 are not impacted by
the above issue:

https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2012-2122

Thanks,
Johnny Hughes



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


Re: [CentOS] centos 6.2 xfs + nfs space allocation

2012-06-11 Thread Stephan van Hienen
On Mon, 11 Jun 2012, aurfalien wrote:

 Hi Stephan,

 I also run 6.2 with XFS but am getting normal behavior.

 I ran your exact command and du -hs shows 9.8GB used.

 And ls -l shows 1048576

 Would you like more info on my system?

aurf,

Any updates not installed on your system ?
(older kernel maybe?)
And what size is your xfs filesystem (I tested the issue on 2.5tb, 150gb 
and a 5t xfs filesystem)

Stephan

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


Re: [CentOS] centos 6.2 xfs + nfs space allocation

2012-06-11 Thread aurfalien

On Jun 11, 2012, at 10:39 AM, Stephan van Hienen wrote:

 On Mon, 11 Jun 2012, aurfalien wrote:
 
 Hi Stephan,
 
 I also run 6.2 with XFS but am getting normal behavior.
 
 I ran your exact command and du -hs shows 9.8GB used.
 
 And ls -l shows 1048576
 
 Would you like more info on my system?
 
 aurf,
 
 Any updates not installed on your system ?
 (older kernel maybe?)
 And what size is your xfs filesystem (I tested the issue on 2.5tb, 150gb 
 and a 5t xfs filesystem)
 
 Stephan

Hi,

My system info;

kernel 2.6.32-220.17.1.el6.x86_64
xfsprogs-3.1.1-6.el6.x86_64

Mu system is up to dat as of today.  I'm pretty good at checking updates on a 
weekly basis.

I have chosen not to use LVM with my 20TB Raid 10 XFS file system.

I read some were that potential for problems exist due to UUID conflicts.

At any rate, I do not know how to get specifics on exactly what version of XFS 
that my file system is but this was a from scratch 6.2 install.

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


[CentOS] Xine-lib package update returns error message

2012-06-11 Thread E Westphal
When trying to update xine-lib, the following is returned, how did I
break it? Please advise. Thanks in advance.
Missing Dependency: libxine.so.1 is needed by package
xine-0.99.6-1.el5.rf.i386 (installed)

Ed Westphal


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


[CentOS] working dhcpd.conf with routes

2012-06-11 Thread Boris Epstein
Hello listmates,

I am running DHCPD for IPv4 on a Centos 5 machine. I am wondering if anyone
has got a functional dhcpd.conf configuration serving static routes to
Linux, Mac OS X and Windows clients.

I tried a couple of variations of static-routes options - but have yet to
create something that would work.

Thanks.

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


Re: [CentOS] centos 6.2 xfs + nfs space allocation

2012-06-11 Thread Tru Huynh
On Mon, Jun 11, 2012 at 05:07:05PM +0200, Stephan van Hienen wrote:
 On Mon, 11 Jun 2012, James Pearson wrote:
  What does:
 
   /usr/sbin/xfs_bmap -pl 10Gtest
 
  output (when run on the server)?
 
 10Gtest:
  0: [0..808319]: 261386472..262194791 808320 blocks
...
 
 
  You can also 'recover' the lost space by running (as root on the server):
 
   /usr/sbin/xfs_fsr 10Gtest
 
 doesn't help :
 
 ]# xfs_fsr 10Gtest
 ]# du -hs
 17G .
 

try mounting the xfs volume with allocsize=4k.

Tru
-- 
Tru Huynh (mirrors, CentOS i386/x86_64 Package Maintenance)
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xBEFA581B


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


Re: [CentOS] working dhcpd.conf with routes

2012-06-11 Thread Rob Kampen

On 06/12/2012 09:14 AM, Boris Epstein wrote:

Hello listmates,

I am running DHCPD for IPv4 on a Centos 5 machine. I am wondering if anyone
has got a functional dhcpd.conf configuration serving static routes to
Linux, Mac OS X and Windows clients.

I tried a couple of variations of static-routes options - but have yet to
create something that would work.

Use this:
ddns-domainname mydomainname.com;
ddns-update-style interim;
ddns-rev-domainname in-addr.arpa;
ddns-updates on;
ignore client-updates;

key DHCP_UPDATER {
algorithm hmac-md5;
secret ;
};

zone mydomainname.com. {
primary 192.168.1.10;
key DHCP_UPDATER;
}

zone 1.168.192.in-addr.arpa. {
primary 192.168.1.10;
key DHCP_UPDATER;
}

subnet 192.168.1.0 netmask 255.255.255.0 {
authoritative;
# --- default gateway
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option nis-domain mydomainname.com;
option domain-name mydomainname.com;
option domain-name-servers 192.168.1.1 , 192.168.1.2 ;
option time-offset -18000;
option ntp-servers 192.168.1.2;
option netbios-name-servers 192.168.1.10;
range dynamic-bootp 192.168.1.64 192.168.1.127;
default-lease-time 21600;
max-lease-time 43200;
}
# we want the nameserver to appear at a fixed address
host iPhone {
next-server iPhone.mydomainname.com;
hardware ethernet 00:24:36:49:42:81;
fixed-address 192.168.1.192;
}
host Australia {
next-server australia.mydomainname.com;
hardware ethernet 00:24:8c:81:0c:15;
fixed-address 192.168.1.202;
}
host D610 {
next-server D610.mydomainname.com;
hardware ethernet 00:90:4b:c7:54:fb;
fixed-address 192.168.1.201;
}

Hope this helps



Thanks.

Boris.
___
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] working dhcpd.conf with routes

2012-06-11 Thread Boris Epstein
On Mon, Jun 11, 2012 at 5:51 PM, Rob Kampen rkam...@kampensonline.comwrote:

 On 06/12/2012 09:14 AM, Boris Epstein wrote:

 Hello listmates,

 I am running DHCPD for IPv4 on a Centos 5 machine. I am wondering if
 anyone
 has got a functional dhcpd.conf configuration serving static routes to
 Linux, Mac OS X and Windows clients.

 I tried a couple of variations of static-routes options - but have yet to
 create something that would work.

 Use this:
 ddns-domainname mydomainname.com;
 ddns-update-style interim;
 ddns-rev-domainname in-addr.arpa;
 ddns-updates on;
 ignore client-updates;

 key DHCP_UPDATER {
algorithm hmac-md5;
secret ;
 };

 zone mydomainname.com. {
primary 192.168.1.10;
key DHCP_UPDATER;
 }

 zone 1.168.192.in-addr.arpa. {
primary 192.168.1.10;
key DHCP_UPDATER;
 }

 subnet 192.168.1.0 netmask 255.255.255.0 {
authoritative;
# --- default gateway
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option nis-domain mydomainname.com;
option domain-name mydomainname.com;
option domain-name-servers 192.168.1.1 , 192.168.1.2 ;
option time-offset -18000;
option ntp-servers 192.168.1.2;
option netbios-name-servers 192.168.1.10;
range dynamic-bootp 192.168.1.64 192.168.1.127;
default-lease-time 21600;
max-lease-time 43200;
 }
# we want the nameserver to appear at a fixed address
host iPhone {
next-server iPhone.mydomainname.com;
hardware ethernet 00:24:36:49:42:81;
fixed-address 192.168.1.192;
}
host Australia {
next-server australia.mydomainname.com;
hardware ethernet 00:24:8c:81:0c:15;
fixed-address 192.168.1.202;
}
host D610 {
next-server D610.mydomainname.com;
hardware ethernet 00:90:4b:c7:54:fb;
fixed-address 192.168.1.201;
}

 Hope this helps




Rob,

Thanks, looks good. But what part of it deals with static routes for
particular networks? All I see is one default gateway:

option routers 192.168.1.1;

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


Re: [CentOS] working dhcpd.conf with routes

2012-06-11 Thread SVM
12.06.2012 02:05, Boris Epstein wrote:
 Thanks, looks good. But what part of it deals with static routes for
 particular networks? All I see is one default gateway:

 option routers 192.168.1.1;


You should use dhcp options 121 (rfc3442) and 249 (MS).
Here is example:
http://thomasjaehnel.com/blog/2010/01/pushing-routes-via-dhcp.html

See man 5 dhcp-options also.

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


Re: [CentOS] working dhcpd.conf with routes

2012-06-11 Thread Rob Kampen

On 06/12/2012 10:05 AM, Boris Epstein wrote:

On Mon, Jun 11, 2012 at 5:51 PM, Rob Kampenrkam...@kampensonline.comwrote:


On 06/12/2012 09:14 AM, Boris Epstein wrote:


Hello listmates,

I am running DHCPD for IPv4 on a Centos 5 machine. I am wondering if
anyone
has got a functional dhcpd.conf configuration serving static routes to
Linux, Mac OS X and Windows clients.

I tried a couple of variations of static-routes options - but have yet to
create something that would work.


Use this:
ddns-domainname mydomainname.com;
ddns-update-style interim;
ddns-rev-domainname in-addr.arpa;
ddns-updates on;
ignore client-updates;

key DHCP_UPDATER {
algorithm hmac-md5;
secret ;
};

zone mydomainname.com. {
primary 192.168.1.10;
key DHCP_UPDATER;
}

zone 1.168.192.in-addr.arpa. {
primary 192.168.1.10;
key DHCP_UPDATER;
}

subnet 192.168.1.0 netmask 255.255.255.0 {
authoritative;
# --- default gateway
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option nis-domain mydomainname.com;
option domain-name mydomainname.com;
option domain-name-servers 192.168.1.1 , 192.168.1.2 ;
option time-offset -18000;
option ntp-servers 192.168.1.2;
option netbios-name-servers 192.168.1.10;
range dynamic-bootp 192.168.1.64 192.168.1.127;
default-lease-time 21600;
max-lease-time 43200;
}
# we want the nameserver to appear at a fixed address
host iPhone {
next-server iPhone.mydomainname.com;
hardware ethernet 00:24:36:49:42:81;
fixed-address 192.168.1.192;
}
host Australia {
next-server australia.mydomainname.com;
hardware ethernet 00:24:8c:81:0c:15;
fixed-address 192.168.1.202;
}
host D610 {
next-server D610.mydomainname.com;
hardware ethernet 00:90:4b:c7:54:fb;
fixed-address 192.168.1.201;
}

Hope this helps




Rob,

Thanks, looks good. But what part of it deals with static routes for
particular networks? All I see is one default gateway:

option routers 192.168.1.1;
The subnet ip4address/mask {...} defines the information that is 
available to the clients for that subnet.
The host clientname { .} defines the static ip address and name to 
be used for a given ethernet.


Boris.
___
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] working dhcpd.conf with routes

2012-06-11 Thread Boris Epstein
On Mon, Jun 11, 2012 at 6:32 PM, Rob Kampen rkam...@reaching-clients.comwrote:

 On 06/12/2012 10:05 AM, Boris Epstein wrote:

 On Mon, Jun 11, 2012 at 5:51 PM, Rob 
 Kampenrkampen@kampensonline.**comrkam...@kampensonline.com
 wrote:

  On 06/12/2012 09:14 AM, Boris Epstein wrote:

  Hello listmates,

 I am running DHCPD for IPv4 on a Centos 5 machine. I am wondering if
 anyone
 has got a functional dhcpd.conf configuration serving static routes to
 Linux, Mac OS X and Windows clients.

 I tried a couple of variations of static-routes options - but have yet
 to
 create something that would work.

  Use this:
 ddns-domainname mydomainname.com;
 ddns-update-style interim;
 ddns-rev-domainname in-addr.arpa;
 ddns-updates on;
 ignore client-updates;

 key DHCP_UPDATER {
algorithm hmac-md5;
secret ;
 };

 zone mydomainname.com. {
primary 192.168.1.10;
key DHCP_UPDATER;
 }

 zone 1.168.192.in-addr.arpa. {
primary 192.168.1.10;
key DHCP_UPDATER;
 }

 subnet 192.168.1.0 netmask 255.255.255.0 {
authoritative;
# --- default gateway
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option nis-domain mydomainname.com;
option domain-name mydomainname.com;
option domain-name-servers 192.168.1.1 , 192.168.1.2 ;
option time-offset -18000;
option ntp-servers 192.168.1.2;
option netbios-name-servers 192.168.1.10;
range dynamic-bootp 192.168.1.64 192.168.1.127;
default-lease-time 21600;
max-lease-time 43200;
 }
# we want the nameserver to appear at a fixed address
host iPhone {
next-server iPhone.mydomainname.com;
hardware ethernet 00:24:36:49:42:81;
fixed-address 192.168.1.192;
}
host Australia {
next-server australia.mydomainname.com;
hardware ethernet 00:24:8c:81:0c:15;
fixed-address 192.168.1.202;
}
host D610 {
next-server D610.mydomainname.com;
hardware ethernet 00:90:4b:c7:54:fb;
fixed-address 192.168.1.201;
}

 Hope this helps



  Rob,

 Thanks, looks good. But what part of it deals with static routes for
 particular networks? All I see is one default gateway:

 option routers 192.168.1.1;

 The subnet ip4address/mask {...} defines the information that is
 available to the clients for that subnet.
 The host clientname { .} defines the static ip address and name to be
 used for a given ethernet.



Rob,

You may be confusing two different things: static IP addresses for
individual hosts and static routes to route IP traffic to certain subnets.

Thanks anyways.

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


Re: [CentOS] Error dovecot restart

2012-06-11 Thread Muhammad A. Fatahna
thank you very much for information, i wil check again. If have
problem i will ask again :D

-- 
http://mafatahna.web.id
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Centos 6 - Networking: Some Queries -- GURUS HELP PL

2012-06-11 Thread Gordon Messmer
On 06/11/2012 12:45 AM, Sanjay Arora wrote:
 But that segregated network does not have access to the Internetor
 am I wrong?

You're wrong.  The automatically created network will have internet 
access via NAT.

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


Re: [CentOS] Centos 6 - Networking: Some Queries -- GURUS HELP PL

2012-06-11 Thread Gordon Messmer
On 06/11/2012 03:22 AM, Sanjay Arora wrote:
 Now I wonder why I did not think of so simple an idea! Simply put in a
 multi-port NIC card,

 Another questions...I put in another network port  I end up with 3
 NICs  3 bridges...One providing Internet access, One providing
 routing to virtual hosts and one providing route to ltsp network.

 Now, traffic among these three networks will be routed automatically

No.  Multi-homing in this fashion is complex.  You will require advanced 
routing on all of the guests to accomplish it.

Shorewall makes this easier, but you'll need to create multiple routing 
tables using 'ip route', mark packets based on their destination, and 
then select the appropriate routing table based on firewall marks.

This is not a simple idea.

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