My work with Puppet

So I have been busy in the past weeks. I’m currently working a lots with OpenStack and Ceph. This Post is about some issue I found inside the puppet-ceph module, further I forked it and solved it. More here osd::devices allow working on dmcrypt block devices. Lets get start: When you want to run Ceph, there different ways to handle this. Inktank provide a tool called ceph-deploy. It’s in python develop software, but this is no option for environment that has to work automatically.

Useful find cmd

This command allows me to get the md5sum of all files inside of a folder. I did run it on two system with almost the same content inside some folder. On Host A: root@A: find . -type f 2>/dev/null -exec md5sum {} \; >listA. On Host B: root@B: find . -type f 2>/dev/null -exec md5sum {} \; >listB.txt I get it on my localsystem via scp. Then I run a diff between the both to see where are the differences.

[ArchLinux]pacman dead lock

There is since some days a problem with a pacman. I just saw this post on Google+ Maybe this as an addtional link to the ArchLinux froum For me did a remove of the packages package-query and pacman-color it. sudo pacman -Rdd package-query sudo pacman -Rdd pacman-color Update: An upgrade from yaourt to the latest version seem to fix the problem so far Akendo

Update of My Blog 3

Status I updated some days ago my blog. I migrated to Octopress, an awesome tool that allows me to write my Blog inside of markdown. My main problem was that Wordpress had become to fat, at some point I started to drop off everything from the server that I didn’t need. But still Apache went into “out of memory” problems. Connections was failing. Duo an outdated kernel version (which i can’t control) there is no OOM and at some point I wasn’t able to login to the server.

My Gentoo Mirror

The Idea I wanted to give back something to the Gentoo Community for doing such a great job. Using Gentoo for some years did makes me happy. So how I can i give something back? For this I’ll try to host a mirror of the gentoo emerge portage tree. I just updated the rsyncd service followed this documenation.(Warning its’ in German) The vps may not fit the requirements, but I give it a try.

Update of My Blog 2

I just updated my blog to use octopress. Later some more.

KVM and I/O problems

KVM and Postgresql Problem: Slow I/O - with Software Raid 1 and LVM2. So we had some trouble with a Software Raid 1 and our KVM Virtual Machines, the writing and reading speed was just bad. But this was only  for paralle wirte/read requests. So doing single test like dd or even bonnie didn't show the problem.

MySQL to Postgresql

I dislike MySQL. I never did like it, since Oracle bought Sun it starting to become more then just disliking it. I prefer to work with Postgresql. I want to migrate some of my MySQL DB to Postgresql.

How to deploy wsgi with apache

Related to the previors Post, i hade now to apply from virtualenv to a apache webserver. I used to deployed it with the WSGI. For that you need to enable the mod_wsgi in apache2. To enable it in debian: apt-get install libapache2-mod-wsgi a2enmod wsgi services apache2 restart Now disabling the old mod_python in the configuration files. Add this to the top of your virtualhost file: WSGIDaemonProcess $GROUPNAME python-path=/path/to/django/project/.env/lib/python2.6/site-packages user=apache group=apache processes=2 threads=25 WSGIProcessGroup $GROUPNAME WSGIScriptAlias / "

Bulding a virtualenv

virutalenv Virutalenv is a python program that allows you to create system separate container with an own version of python/pip. All installed packages(with pip) are store there. This allow a developer to install all necessarily packages into the userspace. It's smoother and allow to have separate version of the same project, for example django. Starting command: virtualenv --no-site-packages .env To apply the virtualenv to your local environment run source .env/bin/activate (.