ÜberGalerieBlogUnity3D ExamplesKontaktSitemapFullsitemap

it's raining and doing some sysadmin tasks

It is still raining. Using the time to do some sysadmin work and training puppet.

Found  a nice cheat sheet for mdadm.

mdadm --create --verbose /dev/md0 --level=raid10 --raid-devices=4 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1
mdadm --create --verbose /dev/md1 --level=raid10 --raid-devices=4 /dev/sdf1 /dev/sdg1 /dev/sdh1 /dev/sdi1 mdadm --examine --scan --config=mdadm.conf >> /etc/mdadm/mdadm.conf
pvcreate /dev/md0
pvcreate /dev/md1 vgcreate raid10_big /dev/md0
vgcreate raid10_small /dev/md1
serverli am arbeiten
Kommentare (0)  Permalink

Taking a Backup Using Snapshots

This is how I can create a backup from a running xen instance with the help of a lvm snapshot:

# Create the snapshot volume of 1GB size
# named domS2U01_bak of volume /dev/RAID/domS2U01_root
lvcreate -L1G -s -n domS2U01_bak /dev/RAID/domS2U01_root

# Mount the snapshot volume
mount /dev/RAID/domS2U01_bak /mnt/debian

# change to mounted volume
cd /mnt/debian/

# make backup
tar zcpvf /mnt/backup/domS2U01_20121110.tgz .

# remove the snapshot
cd /
umount /mnt/debian
lvremove /dev/RAID/domS2U01_bak

This tutorial from the LVM HOWTO helped me.

Kommentare (0)  Permalink

Replacing A Failed Hard Drive In A Software RAID

If it ever happens that a harddrive fails in a software RAID this is a short note how to replace it.
# check status
cat /proc/mdstat

# mark drive / partition as failed
mdadm --manage /dev/md0 --fail /dev/sdb1

# remove drive / partition from raid
mdadm --manage /dev/md0 --remove /dev/sdb1
Now replace the harddrive with a new one.
Format and partition the new drive.
It's partition type should be fd. Make sure that the new partition or drive has the same size or bigger as the old driver or partition.
# check the smart status of the new drive
smartctl -t long /dev/sdb

# wait until it is finished and verify smart status is ok
smartctl -l selftest /dev/sdb

# add the new driver / partition to the degraded raid
mdadm --manage /dev/md0 --add /dev/sdb1

I found this tutorial on howtoforge helpful.

Kommentare (0)  Permalink

Unity Training Day

 Today was the training day of Unity3D's Unite 2012

Unite 2012 Training Day

Kommentare (0)  Permalink

smartctl on a synology DS411s

To avoid getting segmentation faults on a synology device you have to use -d sat and the full path to the command:
(mine is a DS411s)

/usr/syno/bin/smartctl -d sat -l selftest /dev/sdd
Kommentare (0)  Permalink

frank the fish on android

You might have notices that our game "frank the fish" is also available on google play.
You can play it on modern Android phones.

Frank the fish is a game designed for kids. But it makes fun for grown ups as well.

Surprisingly porting to Android took not so much time.
The only thing we had and wanted to do is to support the hardware keyboard of xperia play devices.
Once you open the hardware keyboard the onscreen HUD disappears and you can enjoy the scene.

Android game Frank the Fish on a xperia play without the HUD

Have fun playing it.

PS: don't forget to check out our youtube and facebook page. 

Kommentare (0)  Permalink

frank the fish

I am so proud that we finally finished one of our spare time projects.
It's a game called "frank the fish" and is currently available on the iOS App Store.
An android version ready but not yet submitted to google play.

It took us a while to get so far. But I am happy we made it.

The game is done with Unity3D - a great game engine. All models, render scenes and animation where done in Cinema4D.

Here are some linked screen shots (click them to get to the game micro site):
Start screen of the android version of frank the fish game Main menu of the android version of frank the fish game Near the game start in the game frank the fish In the deep ocean there are also some sharks - play frank the fish on andoid to see them We made quite some effort in enhancing the under water world in frank the fish game ouch - I lost a live in the frank the fish game for andoird
Or watch this youtube video:

more blog posts planned, once the android version is in the store.

Kommentare (2)  Permalink

rrd grpahing some data

Just did again some graphing with rrd.
Thinking (googling) some metrics to graph I found some interesting articles:

  • some nice rrd examples: link
  • List of Cacti Scripts and Templates: link (I did not try them out yet!)
  • 20 Linux System Monitoring Tools Every SysAdmin Should Know: link
  • article about graphing spend cpu ticks: link
  • opennms graph gallery: link
  • tool to create color gradient steps: link (mentioned in the link above)
  • pmacct could be used to get protocols out of network traffic: link (will try it, once I have more time)

And here are some pics:
load average

cpu ticks in percentage of total klicks
(as this machine is idleing it graphs only between 0 and 5 %)

temperature reading: system, cpus and harddrives

Btw: am using catcti to graph and some custom code to push metrics to cacti. Will post about it, once it is on github.

Kommentare (0)  Permalink

finally had some time...

...to prepare some photos to play with Photomatix Pro.


it's a bit unsharp without a RC - out of battery exception :-)

Kommentare (0)  Permalink

building customized debian kernels

Arg, ok, back with debian for my servers and new hardware.
With debian I got a more recent kernel for xen (someone forward ported xen to the current debian stable kernel), but an older xen hypervisor.

However I need an even newer igb network driver (where gentoo had backported them).

This line only builds the xen flavour:

fakeroot make -f debian/rules.gen binary-arch_amd64_xen

Location of the full howto.

Building only the kernel module:

apt-get install linux-headers-2.6.26-2-xen-amd64
/usr/src/igb-2.3.4/src && make && make install
Kommentare (0)  Permalink
Next1-10/43