Posts

Cross-platform

Today I have worked with linux, windows and mac.

Snowy weather

Yesterday afternoon it started snowing and it was so beautiful... In the evening I took a nice and relaxing walk cross the snow covered place where I live (Trissino, BTW)... The picture in the header was taken yesterday in the morning when it was 6 below and everything was white for the ice. See it in full here . AHHHH, life smiles again!

Checking mysql replication

Question: What happens if you have two mysql database with replication, they stop replicating and you do not notice? Answer: you get into trouble.... Here is a small script to help you stay informed... #!/usr/bin/php /* Connessione e selezione del database */ $connessione = mysql_connect("localhost", "root", "secretpw") or die("Connessione non riuscita"); print "Connesso con successo\n"; /* Esecuzione di una query SQL */ $query = "SHOW SLAVE STATUS"; $risultato = mysql_query($query) or die("Query fallita"); $slaveok=0; while ($row = mysql_fetch_array($risultato, MYSQL_ASSOC)) { print "Slave is running: ".$row["Slave_Running"] . "\n"; print "Last error : ".$row["Last_error"] . "\n"; if ($row["Slave_Running"]=="Yes" && $row["Last_error"]==...

Crazy crazy weekend

So last week I managed to migrate the file server cluster and everything worked ok. It was then time for me to take a break and relax... and luckily friday the 7th I was able to take a day off at work. I worked hard all friday as a lumberjack and at the evening I was ready for some fun! Friday night was spent enjoying a warming drink (called jager tee ) in a pub and chatting with a friend of mine. We then planned for Saturday to be more quiet, but could not resist groovy caipiroskas in cozy disco bar until 4am.... So here I am, Monday morning fighting computers as hard as I can! I need some coffeeeeee

Yesterday's dinner and good thought for 2005

Yesterday eve I went out with some friends of mine and as usual we ended up talking about computers and eventually boring to death my poor girlfriend who, in a desperate attempt to save her evening and good mood decided to get drunk (with no success at all I must say). I proposed them to write an open source version of My Life Bits. My good thought for 2005 is to develop (possibily useful ;-) ) open source stuff and give it away. I am currently working on a java implementation of mapserver . Happy new Year Everybody!!

Migration from samba2.2+ldap to samba3+ldap

I am busy (while customers are away, getting unseasonably tanned) upgrading a linux cluster currently acting as file server to samba3 and ldap 2.2. On the first day I was lucky: the server won't see the new 140GB disks, only 80GB and for this I had to flash the raid controller (Adapted 2100s) the server won't boot from cd and I had to reset bios settings to default a DDS4 (boasting 20GB native capacity) drive is not able to backup a 15GB partition One day completely lost and looks like my holidays are shrinking... UPDATE: just to make sure that things go as wrong as possible somebody planned to rearrange the power supplies while I was plugging the new disks on the second system. Another hour wasted... 3 Jan 2005, Update: all users came back to their offices and I must say that I was a little worried. The system was not really ready in my opinion, but luckily all went well. Only three of them were locked out because of the password being lost in the migration....

Migration of a qmail server

Today I have been busy migrating a qmail/vpopmail server from an old machine (that was giving signs of disk problems) to a brand new proliant dl 380. The whole migration process (comprised of installation of the new server) took only one day and a half! While I was at it I threw into the new server nagios , so now I can have a quick look at what's going on in the network at any time. I replaced amavis/uvscan with qmail-scanner and clamav , we'll see how it goes... Merry xmas to all!

A nice word on SuSE Linux

Yesterday I deployed a cluster solution with SuSE Linux enterprise server 8 and drbd: just awesome! SuSE is definitely my favourite distro for their excellent administration tool ( yast ), Oracle support, documentation and security features. This week I also had a chance to install SLES9 and I must say that I am impressed. They have tight integration with ldap already in the installation procedure and even SSL certificate management tools! I have used RedHat Enterprise in the past and now I find it primitive if compared to SuSE. Keep up the good work!
Life is good. Even if computers break too often and playing catch up is not funny at all. Three disks crashed in two days: a firewall and a mail server, not bad!