[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
  /home/paczki-workdir > > Currently there is only one process writing to the filesystem: > > root     27945 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

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/cento

Re: [CentOS] Strange du/df behaviour.

2012-06-28 Thread Leonard den Ottolander
m /usr/bin/pigz -cf > /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

[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 Las

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 so.

Re: [CentOS] Excellent 6.3 QA Status Updates

2012-06-28 Thread Nux!
On 27.06.2012 21:46, Johnny Hughes wrote: > On 06/27/2012 01:09 PM, Paul Heinlein wrote: >> Jeff Sheltren has been providing timely and clear updates about the >> status of the 6.3 release: >> >> http://qaweb.dev.centos.org/ >> >> They're much appreciated! Thank you very, very much. > > Those upd

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

2012-06-28 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] 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 o

[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 "[-\.0-9a-z

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

2012-06-28 Thread Gordon Messmer
On 06/28/2012 11:30 AM, Sean Carolan wrote: > 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}/* | > sort | uniq); do > HOSTS+=("$host") > done You have two major performance problems in this script. Firs

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 Sean Carolan
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 9th field looks like a doma

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

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 k

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 >

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

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/) {

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 web-prox

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 versio

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

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

2012-06-28 Thread John R Pierce
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 was built and integrated by a major name systems integrator. the

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'