IPMI tools, Linux tools to slow down fans on your supermicro server

I just found out that you can edit your server fanspeed settings via IPMI tools on Linux.

So if you are keeping a server at home, this will make it quieter.

install IPMItools

save current ipmi configs

create backup copy for fun

make changes to fans peeds

commit changes

NGINX dynamic fastcgi param based on host

Techstack: Ubuntu/Debian, NGINX, PHP5FPM ( I will assume that you have these installed and nginx is talking to php5fpm)

Supposed you have a php application that needs to do different things based on a fastcgi_param variable, but you want to set a different variable based on another variable in nginx (like http hostname).

The nginx http_map module is the answer, but it may not be immediately obvious how to use it.

http://nginx.org/en/docs/http/ngx_http_map_module.html

Continue reading

puppet_ansible_logo

Simple Ansible playbook to install Puppet 3.6.2 on your Ubuntu 12.04 servers

This is a super simple way of installing a current version of Puppet on your Ubuntu servers.

You will need

All you need is SSH access with SSH KEYS, and Ansible installed. My thinking is that once you have SSH access, you should be able to do anything you please with the resources.

Why would you want to do this?

  • Puppet can be a pain to install (up to date versions, instead of OS version)
  • You may not have a preseeded, kickstart iso
  • You may have previous outdated installation, and you need to get compliant
  • With Ansible you will not need to repeat a series of steps, and you will know for sure that all the steps have been completed

Here I assume you have a recent version of Ansible installed with pip.

My ansible hosts file looks like this (it can live in your home folder and can be called staging ~/staging )

My ansible playbook looks like this, it should live next to the hosts file for convenience. I called this file puppet.yml .

This is how I ran my playbook against my proxmox-webservers :

The -v option will make the output busier, so you see what is going on.

 

 

 

zfs-linux

Proxmox + ZFS on Linux local storage Part 1

UPDATE: 2015-04-21 zfsonlinux update from 063 to 064, my zfs volume automounts. I tried getting the later versions of the pve kernel to work with zfs without any success. You are stuck with 2.6.32-26-pve.

CAVEAT: This is by no means stable, reliable or noobie friendly.  June 12 2014, zfsonline release update, your zfs pool is now not accessible. http://serverfault.com/questions/606299/zfs-on-linux-upgrade-from-0-6-2-to-0-6-3-made-my-zpool-unreadable-help-translate

PROXMOX is a free open source virtualization environment based on Debian. Proxmox has KVM and openvz virtualization.

ZFS is the legendary Solaris filesystem and volume manager, that really cares about keeping your data intact.

Running ZFS and PROXMOX on the same box is not the best idea for production, but it is very convenient if you have dev/lab setup.

This should be a very clear guide on how to setup ZFS on PROXMOX.

http://proxmox.com/
http://zfsonlinux.org/

I have this running on my Supermicro server.

MODEL: SuperServer 6026TT-GTRF
MOTHERBOARD: 2x X8DTT-HF
CPU: 1x Xeon X5620 Quadcore 2.4Ghz
RAM: 3x 4GB = 12GB
STORAGE: 4x 1TB, 1x 500GB
EXPANSION:
FIRMWARE: V2.20

Only one server node is being used.
The virtual machines are relatively fast, I should really run some benchmarks and share the output.

Continue reading

kibana-dashboard

Make sense of server logs, with logstash, elasticsearch and kibana.

I have read quite a few posts about logstash, kibana and elasticsearch, the three together offer centralized logging and a brilliant interface, but a lot of the information was hazy.

Logstash, Elasticsearch and Kibana are three different projects that work seamlessly together to create amazing UI dash-boards so you can make sense of dense server logs.

Why do yet another “Getting Started with Logstash, Elasticsearch and Kibana” post?

I will try to explain why certain steps are important and what you can do to get more out of this setup.

I found most of the guides lacking, especially when it comes to kibana dashboards, fixing configuration mistakes, basic elastic search functionality.

I will call Logstash, Elasticsearch and Kibana the LEK stack, because it is less typing and possibly less confusing.

Continue reading

1097191_10200398939596110_179605453_o

FYIDISCO – a silent disco in SOHO 1000smiles

Not too long ago 1000heads organised 1000smiles, a day full of events where everyone from 1000heads got involved to spread happiness (sounds a bit cheesy but it was absolutely amazing).

Our team decided to run a silent disco around SOHO (similar to the ones at festivals).

The budget was a modest £100, some of which was spent on a huge sign and the rest on headphone splitters.

Continue reading

words are for people