zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Active/Passive Cluster with Pacemaker, Corosync

December 28, 2010 by Igor Drobot 26 Comments

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)

Active/Passive

1. Basic notes

Node-1:
Hostname: node-1
IP: 192.168.2.101

Node-2:
Hostname: node-2
IP: 192.168.2.102

Partitioning:

/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:
Structure
[Read more…]

Filed Under: Linux Tagged With: Active/Passive, Cluster, Corosync, Debian Cluster, DRBD, HA, Heartbeat, migration-threshold, OpenAIS, Pacemaker

Nomachine user limit

December 28, 2010 by Igor Drobot Leave a Comment

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

1
2
/usr/NX/bin/nxserver --userlist
/usr/NX/bin/nxserver --userdel username

/usr/NX/bin/nxserver --userlist /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:)

Filed Under: Linux Tagged With: Nomachine

SSH aliases

December 24, 2010 by Igor Drobot Leave a Comment

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:

1
2
3
4
5
6
vim .ssh/config
# Add this
Host piper
    HostName piper
    User root
    Port 1022

vim .ssh/config # Add this Host piper HostName piper User root Port 1022

1
ssh piper

ssh piper

Filed Under: Bash, Debian, Linux Tagged With: alias, bash, ssh

Roundcube PHP Update conflict

December 24, 2010 by Igor Drobot Leave a Comment

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:

1
2
3
4
vim /etc/php5/apache2/php.ini
# Add this lines to the bottom of the config:
[suhosin]
suhosin.session.encrypt = Off

vim /etc/php5/apache2/php.ini # Add this lines to the bottom of the config: [suhosin] suhosin.session.encrypt = Off

Solution for php5-fpm:

1
php_admin_value[suhosin.session.encrypt] = Off

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:

1
php -d suhosin.session.encrypt=off -d date.timezone=Europe/Berlin bin/updatedb.sh --package=roundcube --version=0.8.2 --dir=`pwd`/SQL

php -d suhosin.session.encrypt=off -d date.timezone=Europe/Berlin bin/updatedb.sh --package=roundcube --version=0.8.2 --dir=`pwd`/SQL

Filed Under: Debian, Linux, Mailing Tagged With: php5, Roundcube, Squeeze, Suhosin

Maemo be root

December 24, 2010 by Igor Drobot Leave a Comment

After my failed android installation I try to restore my old state of my N900.

Here’s how to get root access:
1. Go to Application manager > Application catalogs -> New
2. Write maemo.org extras-testing for catalog name
3. Give web address as http://repository.maemo.org/extras-testing
4. Enter fremantle as the distribution
5. Enter free non-free for components

Now simply install rootsh from Application Manager.
Once you are done with rootsh, open a terminal.

You can now either try sudo gainroot and you will be root.

Filed Under: Linux, Mobile Tagged With: Maemo, Nokia N900

  • « Previous Page
  • 1
  • …
  • 51
  • 52
  • 53
  • 54
  • 55
  • …
  • 74
  • Next Page »
Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok