Aller à la recherche

Take control!

Linux, PostgreSQL, Puppet and more

mercredi 20 juillet 2016 22:48

Raid utility mdadm fails when adding new drive with "Device or resource busy"

Linux raid software is a good low-cost feature for securing your data. It provides drive mirroring and handling of drives in array.

Last time, I've got a failed drive (failed controller to be exact) that failed a software RAID.

After replacing the drive and rebooting, it was back in the system. But I couldn't put it back in the RAID array. The error message was:

[root@my_server ~]# mdadm --manage /dev/md1 --add /dev/sdd
mdadm: Cannot open /dev/sdd: Device or resource busy
Lire la suite

samedi 23 janvier 2016 00:31

Corebird twitter client installation for Ubuntu 15.10

This article explains how to install Corebird twitter client for Ubuntu 15.10 (wily). First, Corebird is one of the best twitter client I ever used on Linux. Check the project page here: http://corebird.baedert.org/.

Regarding the version, still "1.1", it is latest sources which are compiled. The client is far more fast and beautiful.

Lire la suite

mardi 19 janvier 2016 13:24

OpenVPN and IPv6

From https://openvpn.net

The VPN server is the underlying component in OpenVPN Access Server that does all of the background work; routing, tunneling, encryption, user management, authentication etc.

Usually, you want to use a VPN server in order to level up your security. You could use public wifi access or other untrusted connection. In this case, the provider may track your activity (accessed sites), grab your passwords (for non-ssl services), ...

This article will explain how to configure an OpenVPN server, allowing it to provide private IPv4 and public IPv6 addresses to connected clients.

Lire la suite

mercredi 15 octobre 2014 23:14

WordPress extension visitor-maps and PostgreSQL

Here is a modification of a WordPress extension: Visitor-Maps. It is now compatible with PostgreSQL.

Lire la suite

mercredi 19 février 2014 18:17

Puppet - Foreman as external node classifier results in error 400

Here is one way to solve error 400 when using Puppet, Foreman and external node classifier:

Error: Could not retrieve catalog from remote server: 
Error 400 on SERVER: Failed when searching for node your.host.name: 
Failed to find your.host.name via exec: 
Execution of '/etc/puppet/node.rb your.host.name' returned 1: 
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Lire la suite

lundi 2 décembre 2013 15:15

Display catalog for host managed by puppet

This command will show the host catalog, compiled version of host configuration:

curl https://puppet:8140/production/catalog/$(hostname -f)? \
   --cacert /var/lib/puppet/ssl/certs/ca.pem \
   --cert /var/lib/puppet/ssl/certs/$(hostname -f).pem \
   --key /var/lib/puppet/ssl/private_keys/$(hostname -f).pem

jeudi 21 novembre 2013 21:55

Dell PERC firmware update for Debian Jessie

Here is a procedure for updating Dell PERC firmware on Debian Jessie.

Lire la suite

mercredi 26 juin 2013 23:10

Manage bash jobs in script, part 2

After seeing how to execute commands in background with bash and manage background jobs in scripts ([ Manage bash jobs in script, part 1|http://blog.230ruedubac.fr/post/2013/04/24/Manage-bash-jobs-in-script%2C-part-1|en]) simple way, here is how to enhance those scripts to make them more reactive and handle timeout.

Lire la suite

mercredi 24 avril 2013 00:15

Manage bash jobs in script, part 1

After seeing how to manage bash jobs in interactive mode, we will manage bash jobs inside scripts. Extra bonus, some very useful examples.

Lire la suite

lundi 8 avril 2013 22:14

Bash: manage jobs in interactive mode

Bash management jobs features are very useful. Here are some examples that will make your life easier!

Lire la suite