Entries tagged as linux
We had this server, you know, a really old server. It still ran openSUSE 10.2, which is baaad, mkay?
So there was a plan. A brilliant plan. Let's upgrade it to 11.1. No clean install, no DVD, just netinstall.
Then there was silence, because neither the openSUSE websites nor the oracle had any decent hints, all to be found was "OMG ITS DEAD, HALP!"
So the drama began. Disabling all services except sshd was the first step
The plan would be to be a bit conservative and go 10.2 -> 10.3 -> 11.0 -> 11.1, so the second step was to get a decently fresh version of zypper that supports the dup parameter (dist-upgrade).
So off to software.opensuse.org and grab the RPM.
Next came a mass of rpm -Uhv --test [whatever].rpm accompanied by an RPM search for the missing libs and a whiteboard drawing of dependencies as I didn't want to resolve em automatically to avoid completely destroying the system.
Lucky day, after 10 RPMs we had a fresh zypper. Just.. doh, it was a 10.3 zypper without dup. But luckily there was a backport of an 11.0 zypper version for 10.3 and with like 3 more dependencies and an enhanced whiteboard drawing it was done.
The rest went quite normal like described on openSUSE - Upgrade.
- zypper ref, zypper dup, fetch 320 MB
- check /boot/grub/menu.lst, whee, new kernel.
- reboot
- no ping, grab serial console
- doh, it's root(hd0,0) and not root(/dev/md0)
- woohoo, booting up
- uname -a shows a correct kernel, but yast won't start. whatever, next step
From then on it was just following the aforementioned upgrade procedure with additional attention to be paid to not forget zypper in zypper after each zypper ar and a few zypper ref inbetween and upgrading rpm as well. cpio: Bad magic is not something you like to read. (Reminds me of magic_quotes_gpc, what the hell. MAGIC. As in mushrooms, I swear. Ever heard of determinism?
relogin_suggested in yast/zypper is also something that's badly named, it means: "reboot your damn box" - and you should.
Total traffic: about 330MB per Upgrade, so not more than 1GB for 10.2 to 11.1
So, after a few hours everything looks fine, except for a postgrey that switched from tcp sockets to unix sockets without telling anyone and of course overwriting postfix config files. Positively surprised the SuSEfirewall2 rules were all still intact. yast was starting again and after adding the updates-repo and some more zypper up I called it a night.
So there was a plan. A brilliant plan. Let's upgrade it to 11.1. No clean install, no DVD, just netinstall.
Then there was silence, because neither the openSUSE websites nor the oracle had any decent hints, all to be found was "OMG ITS DEAD, HALP!"
So the drama began. Disabling all services except sshd was the first step
The plan would be to be a bit conservative and go 10.2 -> 10.3 -> 11.0 -> 11.1, so the second step was to get a decently fresh version of zypper that supports the dup parameter (dist-upgrade).
So off to software.opensuse.org and grab the RPM.
Next came a mass of rpm -Uhv --test [whatever].rpm accompanied by an RPM search for the missing libs and a whiteboard drawing of dependencies as I didn't want to resolve em automatically to avoid completely destroying the system.
Lucky day, after 10 RPMs we had a fresh zypper. Just.. doh, it was a 10.3 zypper without dup. But luckily there was a backport of an 11.0 zypper version for 10.3 and with like 3 more dependencies and an enhanced whiteboard drawing it was done.
The rest went quite normal like described on openSUSE - Upgrade.
- zypper ref, zypper dup, fetch 320 MB
- check /boot/grub/menu.lst, whee, new kernel.
- reboot
- no ping, grab serial console
- doh, it's root(hd0,0) and not root(/dev/md0)
- woohoo, booting up
- uname -a shows a correct kernel, but yast won't start. whatever, next step
From then on it was just following the aforementioned upgrade procedure with additional attention to be paid to not forget zypper in zypper after each zypper ar and a few zypper ref inbetween and upgrading rpm as well. cpio: Bad magic is not something you like to read. (Reminds me of magic_quotes_gpc, what the hell. MAGIC. As in mushrooms, I swear. Ever heard of determinism?
relogin_suggested in yast/zypper is also something that's badly named, it means: "reboot your damn box" - and you should.
Total traffic: about 330MB per Upgrade, so not more than 1GB for 10.2 to 11.1
So, after a few hours everything looks fine, except for a postgrey that switched from tcp sockets to unix sockets without telling anyone and of course overwriting postfix config files. Positively surprised the SuSEfirewall2 rules were all still intact. yast was starting again and after adding the updates-repo and some more zypper up I called it a night.
I was trying to count who said a certain word how often in an IRC channel, so I came up with this:
It takes roughly 1.8sec for 150.000 lines. Will add a perl and awk version if I find time.
grep -i foobar .irssi/irclogs/channel.log | cut -d "<" -f 2 | cut -d ">" -f 1 | sed 's/[@ %*!]//' | sort | uniq -c | sort
It takes roughly 1.8sec for 150.000 lines. Will add a perl and awk version if I find time.
Bevor ichs wieder vergesse, vm-pop3d via stunnel und xinetd. (Wie kommt man eigentlich auf die saudumme Syntax von "-- progname --original --arguments"
Hab circa 3mal in der manpage drübergelesen, bis ichs gerafft hab. Und wieso wirft stunnel dann nicht wenigstens einen sinnvollen Fehler, wenn man gleich mit "-- --original" anfängt?
service pop3s
{
socket_type = stream
protocol = tcp
wait = no
instances = 25
user = tequila
group = tequila
server = /usr/bin/stunnel
server_args = -l /usr/local/sbin/vm-pop3d -p /etc/stunnel/stunnel.pem -- vm-pop3d --user=tequila --group=tequila
log_type = SYSLOG local4 info
log_on_success = PID HOST EXIT DURATION
log_on_failure = HOST ATTEMPT
}
Hab circa 3mal in der manpage drübergelesen, bis ichs gerafft hab. Und wieso wirft stunnel dann nicht wenigstens einen sinnvollen Fehler, wenn man gleich mit "-- --original" anfängt?
service pop3s
{
socket_type = stream
protocol = tcp
wait = no
instances = 25
user = tequila
group = tequila
server = /usr/bin/stunnel
server_args = -l /usr/local/sbin/vm-pop3d -p /etc/stunnel/stunnel.pem -- vm-pop3d --user=tequila --group=tequila
log_type = SYSLOG local4 info
log_on_success = PID HOST EXIT DURATION
log_on_failure = HOST ATTEMPT
}
I've been using vm-pop3d for quite some time on Debian sarge and never had any problems.
After making the same setup on a Debian etch machine it would always die after the pop3 call of UIDL.
After some digging in the sourcecode and finally being able to reproduce it with some crashes after free() I tried the Rambo method of commenting out the call to free(), recompiling and testing - it worked.
Still not really grasping what is going on here I'll have a closer look again.
And I'm hoping a pop3d process started from inetd won't live long enough to produce any memleak.
Time to grab my "Operating systems" by Tanenbaum and read up on memory management again and compare that to Linux :P
After making the same setup on a Debian etch machine it would always die after the pop3 call of UIDL.
After some digging in the sourcecode and finally being able to reproduce it with some crashes after free() I tried the Rambo method of commenting out the call to free(), recompiling and testing - it worked.
Still not really grasping what is going on here I'll have a closer look again.
And I'm hoping a pop3d process started from inetd won't live long enough to produce any memleak.
Time to grab my "Operating systems" by Tanenbaum and read up on memory management again and compare that to Linux :P
(Page 1 of 3, totaling 11 entries)
next page »
Layout by Ricky Wilson | Serendipity Template by Carl Galloway | Login
About
Life's a bitch, life's a whore. Nothing less, nothing more.
Read More
Der Autor...
... studierte bisher Informatik. Und zwar an der LMU München. Nebenher arbeitete er als PHP-Entwickler und Admin. Seit kurzem sogar Vollzeit und in Farbe
Quicksearch
last.fm
Song: Weather Experience (Top Buzz remix)
Artist: The Prodigy
14. June 2009, 19:23
Song: Charly (Trip Into Drum and Bass version)
Artist: The Prodigy
14. June 2009, 19:17
Song: Wind It Up (Rewound)
Artist: The Prodigy
14. June 2009, 19:11
10. September 2010, 21:19


