Archive for the 'Linux' Category

haproxy bafflement

Sunday, April 29th, 2007

Update 2007-05-05: I sent some strace output to the author of haproxy, Willy Tarreau, and he replied within 24 hours with a full annotation of the strace and a one line patch to fix this issue. That’s what I call support! Here’s his comments and the patch:
I think this is caused by the […]

You need xargs replacement to do it that way..

Tuesday, April 10th, 2007

sheepeatingtaz, Omahn’s method seems fine for a one-off. The problem with resiak’s suggestion is that you need text after the data that xargs would put in. One way to do it would be:

$ cd ~/fonts
$ find . -type f -iname ‘*.ttf’ -print0 | xargs -I{} -0 cp {} ~/.fonts/

The -I flag tells it […]

Or, just use LVM

Wednesday, March 28th, 2007

Steven,
Or just use LVM which removes the error-prone and nail-biting fdisk step:

Unmount filesystem.
Extend the logical volume:
$ sudo lvextend -L2G /dev/vgname/lvname
fsck the filesystem:
$ sudo fsck.ext3 -f /dev/vgname/lvname
Extend the filesystem:
$ sudo resize2fs /dev/vgname/lvname
Mount it again.

Note a couple of things:

At no point did you have to delete a partition and create it again.
There was no need to remember […]

TTOTD: Ubuntu needs nfs-common to do NFS locking

Friday, March 23rd, 2007

If your NFS mounts seem to take ages to, er, mount, and OpenOffice always opens things read-only, then maybe you forgot to install nfs-common and thus have no NFS locking support.
Or you could go to NFSv4 (mentalist).
Or disable locking in OOo (mentalist).

Brainteaser

Wednesday, March 21st, 2007

It’s a mystery!

Not at FOSDEM

Friday, February 23rd, 2007

I’m not going to FOSDEM because I have spent most of today since about 4am alternately vomiting or curled up in a foetal position with incredibly painful stomach cramps.
No throwing up in the last 5 hours and cramps reduced to the point where I can actually use the computer, so fingers crossed I’m past the […]

There goes the neighbourhood

Thursday, February 22nd, 2007

http://article.gmane.org/gmane.linux.redhat.fedora.devel/49590

“If we turn the lights out, close the curtains and stay real quiet, do you think he’ll believe we’re not in?” — Entire Ubuntu community

See also.

What’s wrong with software RAID?

Thursday, February 15th, 2007

Ante, what’s wrong with Linux software RAID plus LVM for that? SATA RAID is generally “fakeraid”, and Linux software RAID will most likely outperform even the real 3ware SATA RAID. The only thing something like 3ware has going for it is battery backup — as an expensive optional extra.

Why doesn’t script work anymore?

Sunday, February 11th, 2007

Uwe’s post about script reminded me that script just doesn’t seem to work for me for some reason anymore on Debian (both sarge and etch). I also see it sometimes on work’s RHEL-alike machines, but not all of them!
Here’s what happens:

$ script
Script started, file is typescript
bash: No such file or directory
Script done, file is […]

Hang on, isn’t this a Linux user group?

Wednesday, January 31st, 2007

$ find ~/Maildir/lug-* -type f | \
> xargs grep -il $(echo ‘ivfgn’ | rot13) | \
> awk -F ‘/’ ‘{ print $5 }’ | \
> sort | uniq -c | sort -rn
34 lug-hampshire
31 lug-gl
19 lug-northwales
13 […]