Replace (one or more!) ceph journal disk

Simple script used to replace journal disk. I regenerate journal UUID for convenience but you can also keep as it is. The layout is the following : disk /dev/sda : 5 journal partitions -> 5 OSD (OSD.40 to OSD.44) disk /dev/sdb : 5 journal partitions -> 5 OSD (OSD.…

CSF and OpenVPN

Issue Out-of-the-box, CSF + OpenVPN don't work together. Well, not with further configuration. Let's say your OpenVPN conf is working, but you just can't get out on the internet through your VPN box. Seems we need some masquerade and maybe other things.. Configuration Here is my conf : eth0 : external nic 10.…

Bonding

A bonding configuration allow you to increase your bandwidth by merging several physical interfaces to a virtual one. LACP is a well known aggregation protocol, available in most switches and in Linux. This post will show you how to use LACP between a switch and a Linux server. Linux Load…

Create host and various things in Zabbix

Recently I wanted to monitor some servers. In the old days I used Nagios or Cacti for such a purpose (both based on rrdtool) but I wanted to change and let Zabbix a chance. Zabbix turn out a nice product I have to say. When it's easy to tweak, then…

Use ceilometer API

Why do I need ? First, get Nova instance name from Nova. Since this is not mandatory, it permit you to get VM names. More elegant. Then get a ceilometer object and perform a request. Get the server list from Nova Retrieve environment variables os_username = os.environ.get('OS_USERNAME')…

Annoying message...

If csf warn you everyday while trying to being updated with this message : URLGET set to use LWP but perl module is not installed, reverting to HTTP::Tiny Then install libwww-perl sudo apt-get install libwww-perl or yum install perl-libwww-perl under CentOS like.…

Change hostname from DNS server

Sometimes, your want to change your hostname, more precisely you want your hostname actually reflecting your DNS change. I won't talk when such a situation happen, but it could happen. So here is how I manage it. This above script runs under Ubuntu, but it should also runs under any…

Quickly install puppet agent on Ubuntu

I often want to add some running computer to my puppet platform. Here is a little script I use to achieve this simple task. Run it as root.…