[CentOS] Strange du/df behaviour.

2012-06-28 Thread Rafał Radecki
/pigz -cf /home/paczki-workdir/abaksa-mail-20120628-0413.tgz and it writes so much data: du -sh /home/paczki-workdir/abaksa-mail-20120628-0413.tgz;sleep 3;du -sh /home/paczki-workdir/abaksa-mail-20120628-0413.tgz 13G /home/paczki-workdir/abaksa-mail-20120628-0413.tgz 13G /home/paczki

Re: [CentOS] Strange du/df behaviour.

2012-06-28 Thread Rafał Radecki
27918  3 09:16 ?        00:01:44 tar --exclude=*/Maildir/.Spam/cur/* --exclude=*/Maildir/.Spam/new/* --use-compress-program /usr/bin/pigz -cf /home/paczki-workdir/abaksa-mail-20120628-0413.tgz and it writes so much data: du -sh /home/paczki-workdir/abaksa-mail-20120628-0413.tgz;sleep 3;du -sh

Re: [CentOS] Strange du/df behaviour.

2012-06-28 Thread David Hrbáč
Dne 28.6.2012 10:26, Rafał Radecki napsal(a): Update: Any clues why df shows wrong and floating info? Reserved space for root? See man dumpe2fs and tune2fs. DH ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Strange du/df behaviour.

2012-06-28 Thread Leonard den Ottolander
/home/paczki-workdir/abaksa-mail-20120628-0413.tgz I don't see a path in that command. What is piping into tar? du -sk /home/paczki-workdir/abaksa-mail-20120628-0413.tgz;sleep 3;du -sk /home/paczki-workdir/abaksa-mail-20120628-0413.tgz 13410988/home/paczki-workdir/abaksa-mail-20120628

[CentOS] NIS expiration of passwords

2012-06-28 Thread Fabien Archambault
Dear all, I have a NIS server which shares a database of users between some computers (nodes exactly) and I would like that, on the first login, the user changes its password. So, on the NIS server I have made: chage -d 0 USER Then: # cd /var/yp # make On the NIS server I have: chage -l USER

Re: [CentOS] How to handel smtp to public servers - done

2012-06-28 Thread Emmett Culley
For the last five years I have been running a captive portal gateway I developed at a number of airports to manage free wireless. There are more that 25K connection each day, and port 25 is blocked for every one of them. Yes we get complaints, but not often, one every two or three months or

[CentOS] CentOS 5.8 crash/freeze running VMware

2012-06-28 Thread Michael Eager
Hi -- I have a server running CentOS 5.8. It has a 6-core AMD processor, 16Gb memory, and a RAID 5 file system. It serves as both a file server and to run several VMware virtual machines. The guest machines run Windows 7 and various versions of Linux. The system is running the latest version

[CentOS] How to configure time on virtual clients using KVM?

2012-06-28 Thread Theo Band
I use a CentOS5.8 server with KVM. I have several virtual machines running on it. When I reboot the server (takes 10 minutes) all VMs are saved and correctly restored. The time on the clients is however of by 10 minutes. nptd is running on the clients and that is able to correct this big mismatch.

[CentOS] Optimizing grep, sort, uniq for speed

2012-06-28 Thread Sean Carolan
This snippet of code pulls an array of hostnames from some log files. It has to parse around 3GB of log files, so I'm keen on making it as efficient as possible. Can you think of any way to optimize this to run faster? HOSTS=() for host in $(grep -h -o [-\.0-9a-z][-\.0-9a-z]*.com ${TMPDIR}/* |

Re: [CentOS] Optimizing grep, sort, uniq for speed

2012-06-28 Thread m . roth
Sean Carolan wrote: This snippet of code pulls an array of hostnames from some log files. It has to parse around 3GB of log files, so I'm keen on making it as efficient as possible. Can you think of any way to optimize this to run faster? HOSTS=() for host in $(grep -h -o

Re: [CentOS] Optimizing grep, sort, uniq for speed

2012-06-28 Thread Gordon Messmer
On 06/28/2012 12:15 PM, Gordon Messmer wrote: You have two major performance problems in this script. First, UTF-8 processing is slow. Second, wildcards are EXTREMELY SLOW! Naturally, you should test both on your own data. I'm amused to admit that I tested my own advice against my mail log

Re: [CentOS] Optimizing grep, sort, uniq for speed

2012-06-28 Thread m . roth
Sean Carolan wrote: Thank you Mark and Gordon. Since the hostnames I needed to collect are in the same field, at least in the lines of the file that are important. I ended up using suggestions from both of you, the code is like this now. The egrep is there to make sure whatever is in the

Re: [CentOS] Optimizing grep, sort, uniq for speed

2012-06-28 Thread Sean Carolan
*sigh* awk is not cut. What you want is awk '{if (/[-\.0-9a-z][-\.0-9a-z]*.com/) { print $9;}}' | sort -u No grep needed; awk looks for what you want *first* this way. Thanks, Mark. This is cleaner code but it benchmarked slower than awk then grep. real3m35.550s user2m7.186s sys

Re: [CentOS] Optimizing grep, sort, uniq for speed

2012-06-28 Thread Woodchuck
On Thu, Jun 28, 2012 at 01:30:33PM -0500, Sean Carolan wrote: This snippet of code pulls an array of hostnames from some log files. It has to parse around 3GB of log files, so I'm keen on making it as efficient as possible. Can you think of any way to optimize this to run faster? If the key

Re: [CentOS] Optimizing grep, sort, uniq for speed

2012-06-28 Thread m . roth
Woodchuck wrote: On Thu, Jun 28, 2012 at 01:30:33PM -0500, Sean Carolan wrote: This snippet of code pulls an array of hostnames from some log files. It has to parse around 3GB of log files, so I'm keen on making it as efficient as possible. Can you think of any way to optimize this to run

Re: [CentOS] NIS expiration of passwords

2012-06-28 Thread Michael Coffman
On Thu, Jun 28, 2012 at 7:23 AM, Fabien Archambault fabien.archamba...@univ-amu.fr wrote: Dear all, I have a NIS server which shares a database of users between some computers (nodes exactly) and I would like that, on the first login, the user changes its password. So, on the NIS server I

Re: [CentOS] Optimizing grep, sort, uniq for speed

2012-06-28 Thread Sean Carolan
*sigh* awk is not cut. What you want is awk '{if (/[-\.0-9a-z][-\.0-9a-z]*.com/) { print $9;}}' | sort -u I ended up using this construct in my code; this one fetches out servers that are having issues checking in with puppet: awk '{if (/Could not find default node or by name with/) { print

Re: [CentOS] How to handel smtp to public servers

2012-06-28 Thread Kahlil Hodgson
On 27/06/12 18:23, Götz Reinicke wrote: I like to know which private computer sends lot of mail. :) You could get your firewall ACCEPT but LOG the outgoing 25 from anything but your mailhub. Have often wondered whether a transparent mail-proxy could be set up, similar to a transparent

Re: [CentOS] CentOS 5.8 crash/freeze running VMware

2012-06-28 Thread Ted Miller
On 06/28/2012 12:45 PM, Michael Eager wrote: Hi -- I have a server running CentOS 5.8. It has a 6-core AMD processor, 16Gb memory, and a RAID 5 file system. It serves as both a file server and to run several VMware virtual machines. The guest machines run Windows 7 and various versions of

Re: [CentOS] Universal server hardware platform - which to choose?

2012-06-28 Thread Luke S. Crawford
On Tue, Jun 26, 2012 at 03:03:23PM -0400, Steve Thompson wrote: On Tue, 26 Jun 2012, m.r...@5-cent.us wrote: We've had a number of servers fail, and it *seems* to be related to the motherboard. I too have had bad experiences with SuperMicro motherboards; never had one last more than

Re: [CentOS] Universal server hardware platform - which to choose?

2012-06-28 Thread Luke S. Crawford
On Thu, Jun 28, 2012 at 09:57:33PM -0700, John R Pierce wrote: On 06/28/12 8:56 PM, Luke S. Crawford wrote: The problem with supermicro is that the end user assembles them; If you use ESD protection, this is fine. If you dont? go buy a dell or something. well, the SM kit I've bought

[CentOS-virt] Virtual NICs on a Xen VM

2012-06-28 Thread Steve Campbell
Currently, I've got a Centos 5.8 host that I began playing with Xen virtual machines. It's a sandbox sort of server where I try and learn all of this virtualization stuff. In the future, I'll more than likely swith to Centos 6 and kvm, but for now, it's xen. Searching google and the list, I

[CentOS-es] Problema recepción y envío con Postfix

2012-06-28 Thread Henry Sanchez Mora
Buenas tardes amigos, una ayuda con el siguiente problema: Desde hace un mes, más o menos, estoy teniendo el siguiente problema con el envió y recepción de correos por medio de Postfix (version 2.2.8), el mensaje es el siguiente: Este mensaje me envía el servidor tanto para correos entrantes

Re: [CentOS-es] Problema recepción y envío con Postfix

2012-06-28 Thread Ernesto Pérez Estévez
On 06/28/2012 08:45 AM, Henry Sanchez Mora wrote: Buenas tardes amigos, una ayuda con el siguiente problema: ok, el mensaje lo está emitiendo el mailscanner... por lo que veo tú usas postfix (casi nadie que usa postfix usa mailscanner) y el otro extremo usa sendmail (por los números de versión

Re: [CentOS-es] Problema recepción y envío con Postfix

2012-06-28 Thread Henry Sanchez Mora
Ok, Gracias. Que me sugieren para remplazar el MailScanner, que otro aplicativo podría utilizar. Es decir cual es lo más recomendado de aplicativo de: antivirus para correo y web, así como para el manejo del SPAM, que trabaje muy estrechamente con Postfix. Saludos, El 28/06/2012 9:04,

Re: [CentOS-es] Problema recepción y envío con Postfix

2012-06-28 Thread Ernesto Pérez Estévez
On 06/28/2012 12:07 PM, Henry Sanchez Mora wrote: Ok, Gracias. Que me sugieren para remplazar el MailScanner, que otro aplicativo podría utilizar. Es decir cual es lo más recomendado de aplicativo de: antivirus para correo y web, así como para el manejo del SPAM, que trabaje muy es decir,

Re: [CentOS-es] (sin asunto)

2012-06-28 Thread Carlos Restrepo
2012/6/28 Gabriel gabrielbuen...@yahoo.com.ar http://www.malteseclock.com/tukvzg.html ___ CentOS-es mailing list CentOS-es@centos.org http://lists.centos.org/mailman/listinfo/centos-es Por favor administradores/moderadores de la lista no mas de

[CentOS-es] Problema Servidor PPTP

2012-06-28 Thread Angel Manuel Delgado Echezarreta
Saludos listeros, estoy montando un server pptp bajo CentOS 5.6 y no logro conectarme al mismo, aparentemente el servicio pptpd esta corriendo y la PC bajo Windows me dice que no logra contactar al servidor VPN, mi configuración es la siguiente: CentOS release 5.6 (Final) Kernel 2.6.18-238.el5

Re: [CentOS-es] Problema Servidor PPTP

2012-06-28 Thread Andres Genovez
No es dificil, Algo esta mal por ahi, dime que te dice el dmesg. o hasle un # tail -f /var/log/messages El 28 de junio de 2012 16:54, Angel Manuel Delgado Echezarreta cl8...@frcuba.co.cu escribió: Saludos listeros, estoy montando un server pptp bajo CentOS 5.6 y no logro conectarme al mismo,

Re: [CentOS-es] (sin asunto)

2012-06-28 Thread Ernesto Pérez Estévez
On 06/28/2012 03:45 PM, Carlos Restrepo wrote: 2012/6/28 Gabriel gabrielbuen...@yahoo.com.ar http://www.malteseclock.com/tukvzg.html ___ CentOS-es mailing list CentOS-es@centos.org http://lists.centos.org/mailman/listinfo/centos-es Por favor