I decide me to use LVM for the most server that I have, its very flexible and you can every time resize and shrink your partitions.
Use swap area as LVM was a little bit tricky:
Create a swap partition with parted or your favorite one.
# -L flag creates a label for your device
mkswap -L swap /dev/vdc1
LABEL=swap none swap sw 0 0
In this article I will explains how to set up and maintain an Active/Passive Cluster, using Pacemaker with Corosync with DRBD replication.
We have two nodes (same hardware), one active and another in passive mode. If the active node goes down, the passive one will automatically take its position and all running services.
This article was written complete for and with Debian 6-squeeze (With a lot of luck you could bring it to run on Ubuntu)
1. Basic notes
/dev/vda1 System / ext4
/dev/vda5 reserved for DRBD – empty
/dev/vda6 swap area
Cluster IP: 192.168.2.100
We need this cluster IP to reach currently active node.
This is a physical network structure of the cluster:
Continue reading ‘Active/Passive Cluster with Pacemaker, Corosync’
Some days ago I found a strange user limitation for Nomachine Server – I know that it was the “free” edition. The user limitation came end of 2009 and my server without limitation running since 2008
I think I should visit sites of OpenSource/Free projects ofter
/usr/NX/bin/nxserver --userdel username
Very very dirty hack to prevent the limitation – Create a cron which runs every minute and remove all users:)
I think you now this problem, you have a lot different hosts with different ssh ports.
It takes to much time to write the full ssh commands and recognize all of your ports:
Easy solution – use aliases:
# Add this
Another tricky error after Debian squeeze upgrade:
ERROR: Wrong ‘suhosin.session.encrypt’ option value. Read REQUIREMENTS section in INSTALL file or use Roundcube Installer, please!
The fix is very trivial:
# Add this lines to the bottom of the config:
suhosin.session.encrypt = Off
Solution for php5-fpm:
php_admin_value[suhosin.session.encrypt] = Off
To upgrade the database style to roundcube version 0.9.0 I used a little workaround to prevent suhosin error reporting:
php -d suhosin.session.encrypt=off -d date.timezone=Europe/Berlin bin/updatedb.sh --package=roundcube --version=0.8.2 --dir=`pwd`/SQL