De eerste 500km!

Bijna 4 weken geleden heb ik een elektrische scooter gekocht, een Novox C20 (25km/h model) om precies te zijn. Waarom? Ik woon in Zeeland en daar is het in de zomer een drama om met de auto ergens te komen, laat staan parkeren. (Nee, het is echt niet een probleem van de randstad!) Maar ook omdat ik elektrische voertuigen leuk vind.

De afgelopen weken heb ik dus al aardig wat kilometers gemaakt op de C20 en dat bevalt eigenlijk prima! Het is opzich best raar, je pakt de scooter uit de garage en gaat rijden, tanken is niet meer nodig.

Het leukste zijn toch wel de reacties van de mensen om je heen, je hoort en ziet iedereen over je praten, want zeker in Zeeland heeft nog bijna niemand een elektrische scooter gezien. Ook bij een verkeerslicht blijft het leuk, je bent volledig stil, dus je mensen kijken je raar aan.

Een groter probleem is toch wel dat je érg defensief moet rijden, mensen gaan er nu eenmaal vanuit dat ze ander verkeer aan horen komen, dus fietsers zullen zonder te kijken links af slaan, inhalen zonder naar achteren te kijken en ook voetgangers steken lukraak over, ze horen je immers gewoon niet…

Dat blijft toch wel vervelend en soms ook érg irritant, soms lijdt het zelfs tot een boze reactie van mensen, maar dat is gewoon omdat ze erg van je schrikken.

In het begin had ik echter wel last van “range anxiety”, je denkt constant dat je accu leeg is, hij langzamer begint te rijden of dat je het gewoon niet naar huis gaat halen, terwijl dat allemaal tussen je oren zit. Het komt gewoon omdat ik er zelf ook nog niet helemaal aan gewend ben dat er geen geluid van af komt.

Het bereik is verder prima, de eerste dag heb ik samen met mijn vriendin er op ruim 70 kilometer gereden waar hij volgens het boekje 100 moet halen (met één persoon). Inmiddels rijden we regelmatig met twee personen er op zo’n 50 kilometer op een dag en dat haalt de scooter allemaal met gemak. Over landweggetjes met flinke wind, de duinen naar boven, het is geen probleem, ook niet met twee personen.

Het begint wel steeds meer te wennen, je komt thuis, prikt de scooter aan de lader en de volgende dag kan je er gewoon weer mee rijden, heerlijk!

Nu is het wachten op de Tesla Model S..

Het gaat goed met de aanleg van laadpunten

Recentelijk schreef ik nog een blogpost over het feit dat ik een Tesla Model S besteld heb, dit omdat ik zelf elektrisch rijden als de toekomst zie.

Echter woon ik in Zeeland waardoor ik automatisch veel kilometers maak, voor veel zaken moet je namelijk een aardig stuk rijden. De Tesla Model S, met zijn 450km bereik is tot nu toe dan ook de enige, echte elektrische auto die aan mijn wensen voldoet.

Een elektrische auto kan zéér gemakkelijk geladen worden, door deze simpelweg in het stopcontact te “prikken”, echter gaat het laden dan niet zo snel.

Daarom worden er door Nederland heeft op verschillende, strategische plaatsen oplaadpalen geplaatst.

Stichting E-Laad is een van de bekendste spelers op het gebied van het plaatsen van laadpalen, hun doelstelling is om in 2012 een 10.000 laadpalen in Nederland te hebben staan.

Echter zijn ze niet de enige, ook in Amsterdam wordt er door NUON hard gewerkt aan het aanleggen van laadpunten. Daar mag je zelfs al op de mooiste plekken gratis parkeren en laden!

Dit lijkt dus de goede kant op te gaan, het duurt niet lang meer of je kan met een elektrische auto prima door Nederland rijden.

Voor een compleet overzicht van alle laadpunten in Nederland, zie www.oplaadpalen.nl.

Tesla Model S, here i come!

I’m a fan of cars, to bad I live in Holland where cars are a pretty expensive hobby.

A few years ago Tesla Motors introduced their roadster, a fast full electric sports vehicle based on the Lotus Elise.

But then in 2009 they announced the Model S, well, after seeing the pictures and the specifications i was sold!

About a month ago I was in New York and I visited the Tesla showroom for a testdrive of the Roadster and I was fully sold!

And after doubting a long time i’ve finally faxed the form and made the deposit, i’m getting a Tesla Model S!

To bad I have to wait until 2012….

tesla-model-s-sedan

Nokia, shame on you..

Last november i bought a Noka N900, the reason for my purchase was because it ran Maemo which gave me the freedom to do with my phone whatever i wanted to (with some limitations ofcourse 😉 ).

I’ve been using my N900 intensive since then, using it the whole day to keep up to date with my work, manage some servers through SSH and keep in touch with Jabber Instant Messaging.

Really, the N900 is a great phone and even better when you like Linux as much as i do.

But there was a downside…. A few weeks ago (half April) my phone started to complain that my memory was full, so i couldn’t receive any more IM’s or SMS’s. When i opened a terminal and did a “df -h” it showed me that i was only using 23% of the internal memory. A reboot solved it, so i guessed it was a bug somewhere.

After a few days the phone started to reboot itself and kept complaining whenever i wanted to save something to the internal MMC memory, so i opened up a terminal and typed “dmesg”, well, then i knew what was wrong: The internal MMC memory was broken.

So i started to search the web and i found this thread: talk.maemo.org

It seemed i wasn’t the only one! I contacted Nokia (since i bought the phone from them directly) and they told me i could return it to “BelCompany” (A Dutch phone store) which would then return it for me to the Nokia Service Center.

And so they did.. After a week i got my phone back with the message: Software reprogrammed

Well, i didn’t think that would fix it and it didn’t. After 5 minutes of usage i opened a terminal again and i saw the kernel spitting out errors again about mmcblk0p2. So i went back to “BelCompany” and they returned it again to Nokia.

Guess what? I got my phone back again with the same message and it is still broken!

So i got a broken phone back from the repair center for the second time! I brought the phone back to “BelCompany” again and they urged Nokia to replace my phone with a new N900.

Nokia, shame on you! When i returned my phone to the Nokia service center i attached 3 A4’s with error message from the phone and ways you could reproduce the problem, but in stead you just reprogrammed the MMC and sent it back to me again. Really not the way to treat people when they pay EUR 599,00 for a phone!

To be continued..

How to turn off the Journal with EXT4

For a specific system i wanted maximum performance, so i tried of turning the journaling on my ext4 device.

It took me some time to find out how, so here is a small howto:

1. Unmount your EXT4 filesystem
2. tune2fs -O ^has_journal /dev/sdX
3. mount your filesystem again.

And voila! You have an ext4 filesystem without a journal.

Note: This works if you have a kernel newer then 2.6.28!

ActiveSync (Z-Push) sync with Zarafa and Nokia N900

Recently i bought a Nokia N900 and started right away with configuring my Exchange (Zarafa) account, but i didn’t work.

Syncing a mobile phone works via Microsoft’s ActiveSync, in Zarafa’s case this is implemented via Z-Push.

After making a post on the Z-Push forum i got in contact with Andreas (a Z-Push) and he found out what the problem was. Z-Push implements Exchange 2003 and the Nokia N900 requires Exchange 2007.

Andreas started working on some fixes and after a few days of mailing he made an alpha version which also support the Nokia N900.

At the moment i am running the Alpha in conjunction with my Zarafa envirioment and it works fine, so for all the other N900 users, help is on its way!

Protecting yourself against a DDoS with varnish

Today we received another DDoS attack on of our clusters.

99% of the DDoS attacks we receive are floods on port 80, not really Syn Flood attacks, but just a large stream of garbage on port 80 from thousands of hosts. This results in Apache just spawning processes and eventually locking up.

About two weeks ago i read about Varnish, this high performance HTTP proxy also seems to be a real life-saver when it comes to DDoS attacks.

Since we were really out of options i gave Varnish a go and installed it on our webservers. I configured Apache to listen on 127.0.0.1:80 and Varnish to listen on the public IP.

After doing this on 10 webservers i sat back and watched everything getting back to life!

This is because Varnish only forwards a HTTP request to the backend (Apache in this case) when it is complete, so this protects Apache from getting al the garbage and spawning useless childs.

So if you ever get a DDoS (and i really hope not!), keep Varnish in mind for saving yourself!

At the moment Varnish really looks like a permanent solution in our hosting envirioment, with some special Apache modules you can make it a transparant proxy, see: mod_extract_forwarded2

rtc timer problems when running Asterisk in KVM

For our VOIP we use Asterisk ( www.sipcat.com ). Recently we migrated the server from a physical machine to a KVM virtual machine under Ubuntu 9.04

When searching around i found some problems around running Asterisk in a VM, but there were also some succes stories.

I kept getting the message:
rtc: lost some interrupts at 1024Hz

I was able to solve this by disabling APIC for this virtual machine, i kept ACPI enabled.

Multipath iSCSI under Linux

Building a iSCSI Target (Server) under Linux is fairly simple, just install Enterprise iSCSI Target (IET) and you are ready. The Initiator (Client) is simple to, just use Open-iSCSI and you are ready to go, but how do you make this redundant?

When i first started using iSCSI i heard about the term “multipath”, i read that you could make a redundant IP link to your iSCSI Target with multipath, but how?

Searching on the web didn’t give me real practical anwsers. After using multipath for about 2 years now, i thought, why don’t i make a blog post about it so other people can have redundant iSCSI to!

For this example i have a iSCSI Target with two IP’s:

  1. 172.16.0.1/255.255.255.0
  2. 172.16.1.1/255.255.255.0

These IP’s given to eth0 and eth1, via two switches the connectivity is given to my initiator with the IP’s:

  1. 172.16.0.101/255.255.255.0
  2. 172.16.1.101/255.255.255.0

So there is a redundant network connection to the target, now we just have to start using this.

My target has as IQN: “iqn.2009-11-11.widodh.storage:iscsi-001”

I suppose you know how to configure IET and Open-iSCSI, so i’ll just skip the regular configuration. In this example my Target exports one LUN of 10GB.

On the client (Ubuntu 9.04 (Jaunty)) you have to install:

  1. open-iscsi
  2. multipath-tools

And that’s it, there is no configuration needed for multipath, this is all done dynamically.

Now we are going to discover the Target on both IP’s and log on to it:

iscsiadm -m discovery -t sendtargets -p 172.16.1.1
iscsiadm -m discovery -t sendtargets -p 172.16.0.1
iscsiadm -m node -T iqn.2009-11-11.widodh.storage:iscsi-001 -p 172.16.0.1 --login
iscsiadm -m node -T iqn.2009-11-11.widodh.storage:iscsi-001 -p 172.16.1.1 --login

The nicest thing about this is, that Multipath itself discovers that there is a redundant connection to a SCSI device and everything is done for you.

In “/dev/mapper” you’ll find (for example) “14945540000000000000000000100000099b2f8000f000000″and that is your multipath device.

You can list your multipath devices with:

multipath -ll

In my example this looked like:

14945540000000000000000000100000099b2f8000f000000dm-0 IET     ,VIRTUAL-DISK  
[size=35G][features=0][hwhandler=0]
\_ round-robin 0 [prio=1][active]
 \_ 4:0:0:0 sdd 8:48  [active][ready]
\_ round-robin 0 [prio=1][enabled]
 \_ 3:0:0:0 sdc 8:32  [active][ready]

Multipath detected a redundant path for “sdc” and “sdd” and created a device which i could use.

If one of the connections goes down for what ever reason, you should see this in your dmesg:

[ 2070.285310] device-mapper: multipath: Failing path 8:32.

Multipath will then show:

sdc: checker msg is "directio checker reports path is down"
14945540000000000000000000100000099b2f8000f000000dm-0 IET     ,VIRTUAL-DISK  
[size=35G][features=0][hwhandler=0]
\_ round-robin 0 [prio=1][active]
 \_ 4:0:0:0 sdd 8:48  [active][ready]
\_ round-robin 0 [prio=0][enabled]
 \_ 3:0:0:0 sdc 8:32  [failed][faulty]

Yes, you will see a lot of SCSI errors in your dmesg, but since you have a redundant path that is nothing to be worried about.

Just keep in mind, use “/dev/mapper/14945540000000000000000000100000099b2f8000f000000” as your block device for whatever you intent to use it!

Multipath in combination with iSCSI is really great, a simple network hickup will never get your services down and you can keep your network like a basic Layer-2 network, no STP is needed, the redundant paths can go over fully seperated links which decreases the chance for downtime!

Have fun using multipath!