Skip to main content.
May 12th, 2007

Back online

Tele2 is an European connectivity provider at a very low price. Let’s say that the service is proportional to the price.

I know it’s difficult to keep something up 24/7, but it’s their due anyway. As I happily learned, Tele2 stops outgoing port 25 to prevent some spam problems (not enough resources to put some server which picks random mails in transit and check if they’re spam or not?), and this already made me angry. but, anyway.

At irregular intervals, a new IP address is given to users. Tipically, giving some disservice in doing so (I don’t know if the disservice provokes a re-connection trial and thus a new address, or vice versa, but none of the options are very nice). Last time, this cause some problem, and no internet was reacheable from this host after the first hop (the one after the peer). I tried a couple of reconnections, at the third trial it all started working again. The point is: I’m usually not where the server is located, and since I can’t hope to make my mother learn the misteries of terminal and the like, I’m better dealing with the situation.

So, I had to write some scripts which do the stuff on my behalf. Since I can’t give 100% guilt to Tele2 (it could also be that I have very strangely bugged modem drivers, even if it sounds strange to me that the two events - “flawless” address change, for once, and connection drops, were simultaneous), I suppose that both a reconnection trial (poff/pon couple) is to be tried, and reboot if nothing else works. Reboot is not that bad: the host is unreacheable anyway in this case. So, in attachment, you find a cron script and the defaults file which I wrote to check everything’s alright. It checks connection is up, gateway is reacheable and dns servers are too (in turns, with tele2 connection I’ve had each of this problem occouring separately from the others - connection down; connection up and gateway unreacheable; connection up, gateway reacheable but dns unreacheable…). Hope this way downtimes are reduced to the bare minimum!

Posted by mattia as boot, cron, dns, smtp, tele2 at 5:41 PM CEST

No Comments »

April 21st, 2007

LVM, XFS and boot remake adventure

New Ubuntu version, Feisty Fawn, and I decide to upgrade. A little problem: my /boot is too little. I won’t tell you how little I did it because I’m not that proud of my choice, now. Anyway, I have a 4-disk system managed by LVM, with a single XFS partition over it. luckily, one of them was spare (I planned to put windows on it, then I didn’t need it and was yet free), because XFS can only be grown, never shrinked (funny choice, by the way). So, I had to create a new boot partition, migrate the contents there, and make the old boot partition join the LVM. Since this involved something delicate (yes, that plain, old boot partition) I did things with care. Not enough, since I forgot one thing and had to put the server up again making things locally. Anyway, if you’re brave, you can technically make all that I talked about with your system online and running. How? This is the roadmap:

So, here’s the end, and after that I could update to Feisty with its funny I-do-it-all-myself update manager. End of the Dilbertian Space.

Posted by mattia as boot, lvm, xfs at 10:30 PM CEST

No Comments »