<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://linux-vserver.at/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://linux-vserver.at/index.php?action=history&amp;feed=atom&amp;title=DRBD</id>
		<title>DRBD - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://linux-vserver.at/index.php?action=history&amp;feed=atom&amp;title=DRBD"/>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/index.php?title=DRBD&amp;action=history"/>
		<updated>2026-04-09T12:42:25Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://linux-vserver.at/index.php?title=DRBD&amp;diff=4980&amp;oldid=prev</id>
		<title>Glenn: +link</title>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/index.php?title=DRBD&amp;diff=4980&amp;oldid=prev"/>
				<updated>2011-10-21T20:25:15Z</updated>
		
		<summary type="html">&lt;p&gt;+link&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 20:25, 21 October 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The idea is simple:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The idea is simple:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Install a vserver on a DRBD resource and let it failover to the other node of a cluster.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Install a vserver on a &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[http://en.wikipedia.org/wiki/&lt;/ins&gt;DRBD &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;DRBD] &lt;/ins&gt;resource and let it failover to the other node of a cluster.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This configuration uses vserver, DRBD and heartbeat. This page will not describe, how these packages are installed and configured. Only the important topics are mentioned.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This configuration uses vserver, DRBD and heartbeat. This page will not describe, how these packages are installed and configured. Only the important topics are mentioned.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Glenn</name></author>	</entry>

	<entry>
		<id>http://linux-vserver.at/index.php?title=DRBD&amp;diff=4908&amp;oldid=prev</id>
		<title>Glenn: + Category:Documentation</title>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/index.php?title=DRBD&amp;diff=4908&amp;oldid=prev"/>
				<updated>2011-10-21T19:32:47Z</updated>
		
		<summary type="html">&lt;p&gt;+ &lt;a href=&quot;/Category:Documentation&quot; title=&quot;Category:Documentation&quot;&gt;Category:Documentation&lt;/a&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:32, 21 October 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 290:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 290:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To be continued ...&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To be continued ...&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Documentation]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Glenn</name></author>	</entry>

	<entry>
		<id>http://linux-vserver.at/index.php?title=DRBD&amp;diff=3707&amp;oldid=prev</id>
		<title>Jze: migrated from old wiki Vserver+DRBD</title>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/index.php?title=DRBD&amp;diff=3707&amp;oldid=prev"/>
				<updated>2009-04-08T11:07:05Z</updated>
		
		<summary type="html">&lt;p&gt;migrated from old wiki Vserver+DRBD&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== A Vserver guest mirrored by DRBD with heartbeat failover ==&lt;br /&gt;
&lt;br /&gt;
The idea is simple:&lt;br /&gt;
Install a vserver on a DRBD resource and let it failover to the other node of a cluster.&lt;br /&gt;
&lt;br /&gt;
This configuration uses vserver, DRBD and heartbeat. This page will not describe, how these packages are installed and configured. Only the important topics are mentioned.&lt;br /&gt;
&lt;br /&gt;
Steps of installation:&lt;br /&gt;
* compile a vserver kernel&lt;br /&gt;
* compile the DRBD module against this kernel&lt;br /&gt;
* install the kernel, the module and reboot&lt;br /&gt;
* install the user space utilities of DRBD, vserver and heartbeat&lt;br /&gt;
* install the same packages at the second node&lt;br /&gt;
* configure and activate a DRBD resource&lt;br /&gt;
* make the DRBD resource primary on one node&lt;br /&gt;
* create a journalled filesystem (ext3, xfs, reiser) on top of the DRBD device&lt;br /&gt;
* mount the DRBD device as /var/lib/vservers/&amp;lt;vserver-name&amp;gt;&lt;br /&gt;
* install a vserver&lt;br /&gt;
* finish configuration&lt;br /&gt;
* sync the configuration to the other node&lt;br /&gt;
&lt;br /&gt;
==In detail==&lt;br /&gt;
&lt;br /&gt;
===Install the necessary packages===&lt;br /&gt;
On Debian Sarge we can use ready packages. Your &amp;lt;tt&amp;gt;/etc/apt/sources.list&amp;lt;/tt&amp;gt; should have an entry pointing to unstable.&lt;br /&gt;
 apt-get update&lt;br /&gt;
&lt;br /&gt;
Maybe some additional packages are necessary:&lt;br /&gt;
 apt-get install libdb3-dev libncurses-dev docbook-utils &lt;br /&gt;
 apt-get install fakeroot dpatch&lt;br /&gt;
&lt;br /&gt;
Get the kernel source and unpack it:&lt;br /&gt;
 apt-get install linux-source-2.6.12&lt;br /&gt;
 cd /usr/src&lt;br /&gt;
 tar xjf /usr/src/linux-source-2.6.12.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Maybe you want to have your old .config&lt;br /&gt;
 cd linux-source-2.6.12&lt;br /&gt;
 cp /boot/config-2.6.12-1-386 .config&lt;br /&gt;
&lt;br /&gt;
Now it's time to install patches:&lt;br /&gt;
 apt-get install util-vserver -t unstable&lt;br /&gt;
 apt-get install kernel-patch-vserver -t unstable&lt;br /&gt;
&lt;br /&gt;
Compile the Kernel:&lt;br /&gt;
 make-kpkg --rootcmd fakeroot --revision custom01 --added-patches  vserver--append-to-version +vserver --initrd binary-arch&lt;br /&gt;
&lt;br /&gt;
Now you should find a .deb ready to install:&lt;br /&gt;
 cd ..&lt;br /&gt;
 dpkg -i kernel-image-2.6.12+vserver_custom01_i386.deb&lt;br /&gt;
&lt;br /&gt;
The configuration of GRUB should be updated now to boot the new kernel - try a reboot.&lt;br /&gt;
&lt;br /&gt;
Install the DRBD packages:&lt;br /&gt;
 apt-get install drbd0.7-module-source -t unstable&lt;br /&gt;
 apt-get install drbd0.7-utils -t unstable&lt;br /&gt;
&lt;br /&gt;
Unpack the module source:&lt;br /&gt;
 cd /usr/src/&lt;br /&gt;
 tar xzf drbd0.7.tar.gz&lt;br /&gt;
&lt;br /&gt;
Compile the DRBD module:&lt;br /&gt;
 cd linux-source-2.6.12&lt;br /&gt;
 make-kpkg --append-to-version +vserver modules_image&lt;br /&gt;
&lt;br /&gt;
Install the module:&lt;br /&gt;
 cd ..&lt;br /&gt;
 dpkg -i /usr/src/drbd0.7-module-2.6.12+vserver_0.7.11-1+custom01_i386.deb&lt;br /&gt;
 update-modules&lt;br /&gt;
 modprobe drbd&lt;br /&gt;
&lt;br /&gt;
===Prepare the disk space===&lt;br /&gt;
You will need some block device like &amp;lt;tt&amp;gt;/dev/hdaX&amp;lt;/tt&amp;gt;, or a better choice is to use LVM.&lt;br /&gt;
 lvcreate -L3000 -nlvvs03 vg0&lt;br /&gt;
&lt;br /&gt;
A recommended method is, to have DRBD metadata on an extra block device for each DRBD device.&lt;br /&gt;
&lt;br /&gt;
Prepare space for it:&lt;br /&gt;
 lvcreate -L132 -nlvvs03md vg0&lt;br /&gt;
&lt;br /&gt;
===Configure DRBD===&lt;br /&gt;
Create an entry in &amp;lt;tt&amp;gt;/etc/drbd.conf&amp;lt;/tt&amp;gt; using your favorite editor:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
resource vs03 {&lt;br /&gt;
  protocol C;&lt;br /&gt;
  incon-degr-cmd &amp;quot;echo '!DRBD! pri on incon-degr' | wall ; sleep 60 ; halt -f&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  startup {&lt;br /&gt;
    wfc-timeout  100;&lt;br /&gt;
    degr-wfc-timeout 120;    # 2 minutes.&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  disk {&lt;br /&gt;
    on-io-error   pass_on;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  net {&lt;br /&gt;
    # sndbuf-size 512k;&lt;br /&gt;
    # timeout       60;    #  6 seconds  (unit = 0.1 seconds)&lt;br /&gt;
    # connect-int   10;    # 10 seconds  (unit = 1 second)&lt;br /&gt;
    # ping-int      10;    # 10 seconds  (unit = 1 second)&lt;br /&gt;
    # max-buffers     2048;&lt;br /&gt;
    # max-epoch-size  2048;&lt;br /&gt;
    # ko-count 4;&lt;br /&gt;
    # on-disconnect reconnect;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  syncer {&lt;br /&gt;
    rate 10M;&lt;br /&gt;
    group 1;&lt;br /&gt;
    al-extents 257;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  on cel600 {&lt;br /&gt;
    device     /dev/drbd1;&lt;br /&gt;
    disk       /dev/vg0/lvvs03;&lt;br /&gt;
    address    192.168.0.22:7789;&lt;br /&gt;
    meta-disk  /dev/vg0/lvvs03md[0];&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  on xp2400 {&lt;br /&gt;
    device    /dev/drbd1;&lt;br /&gt;
    disk      /dev/vg0/lvvs03;&lt;br /&gt;
    address   192.168.0.21:7789;&lt;br /&gt;
    meta-disk /dev/vg0/lvvs03md[0];&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Start DRBD&lt;br /&gt;
 /etc/init.d/drbd start&lt;br /&gt;
&lt;br /&gt;
The DRBD resource is in an undefined state. It needs to be forced to be 'primary' on the current node.&lt;br /&gt;
 drbdsetup /dev/drbd1 primary --do-what-I-say&lt;br /&gt;
&lt;br /&gt;
Obviously a filesystem is needed on top of DRBD:&lt;br /&gt;
 mke2fs -j /dev/drbd1&lt;br /&gt;
&lt;br /&gt;
Also we need a mount point somewhere:&lt;br /&gt;
 mkdir /mnt/vs03&lt;br /&gt;
&lt;br /&gt;
As heartbeat is intended to manage the vserver, using the heartbeat script for mounting is a first test:&lt;br /&gt;
 /etc/ha.d/resource.d/Filesystem /dev/drbd1 /mnt/vs03 ext3 start&lt;br /&gt;
&lt;br /&gt;
=== Install the vserver guest===&lt;br /&gt;
There are many methods how to install a vserver. Here 'debootstrap' is used. The important option is '--rootdir' to force the installation to the DRBD device.&lt;br /&gt;
 vserver -v vs03 build --force --rootdir /mnt/vs03 \&lt;br /&gt;
 -m debootstrap --hostname vs03.nack.at \&lt;br /&gt;
 --netdev eth0 --interface 192.168.0.3/24 --context 3 -- \&lt;br /&gt;
 -d sarge -m http://ftp.at.debian.org/debian/&lt;br /&gt;
&lt;br /&gt;
We could start the vserver now. But first we try to make the configuration more pretty.&lt;br /&gt;
 cd /mnt/vs03/vs03/etc/rc0.d&lt;br /&gt;
 rm K20makedev K25hwclock.sh S30urandom S31umountnfs.sh  S35networking S36ifupdown S40umountfs S90halt K89klogd&lt;br /&gt;
 cd ../rc6.d&lt;br /&gt;
 rm K20makedev K25hwclock.sh S30urandom S31umountnfs.sh  S35networking S36ifupdown S40umountfs S90reboot K89klogd&lt;br /&gt;
 cd ../rcS.d&lt;br /&gt;
 rm S05keymap.sh S48console-screen.sh S50hwclock.sh S40networking  S45mountnfs.sh S10checkroot.sh S02mountvirtfs&lt;br /&gt;
 rm S30procps.sh S35mountall.sh S36mountvirtfs S39ifupdown S30checkfs.sh S18ifupdown-clean S18hwclockfirst.sh&lt;br /&gt;
 cd ../rc2.d&lt;br /&gt;
 rm S20makedev S11klogd&lt;br /&gt;
&lt;br /&gt;
If we want to have virtual IPs in the host context managed by heartbeat, there can be conflicts (and funny effects), if we do not 'name' the alias of the vserver IP.&lt;br /&gt;
 echo vs03 &amp;gt; /etc/vservers/vs03/interfaces/0/name&lt;br /&gt;
&lt;br /&gt;
sshd should only listen to the IPs of the host context:&lt;br /&gt;
 xp2400:/# cat /etc/ssh/sshd_config | grep ListenAddress&lt;br /&gt;
 ListenAddress 192.168.0.21:22&lt;br /&gt;
 ListenAddress 192.168.0.20:22&lt;br /&gt;
&lt;br /&gt;
We want to limit the vserver to 1 GB AS/VM (virtual address space) and 128 MB RSS (real memory). Note, that the units are pages.&lt;br /&gt;
 xp2400:/# mkdir /etc/vservers/vs03/rlimits&lt;br /&gt;
 xp2400:/usr/src# echo 250000 &amp;gt; /etc/vservers/vs03/rlimits/as&lt;br /&gt;
 xp2400:/# echo 32000 &amp;gt; /etc/vservers/vs03/rlimits/rss&lt;br /&gt;
&lt;br /&gt;
We want control CPU consumption:&lt;br /&gt;
 xp2400:/# echo sched_prio &amp;gt; /etc/vservers/vs03/flags&lt;br /&gt;
 xp2400:/# echo 6 &amp;gt; /etc/vservers/vs03/schedule&lt;br /&gt;
 xp2400:/# echo 30 &amp;gt;&amp;gt; /etc/vservers/vs03/schedule&lt;br /&gt;
 xp2400:/# echo 1000 &amp;gt;&amp;gt; /etc/vservers/vs03/schedule&lt;br /&gt;
 xp2400:/# echo 200 &amp;gt;&amp;gt; /etc/vservers/vs03/schedule&lt;br /&gt;
 xp2400:/# echo 3000 &amp;gt;&amp;gt; /etc/vservers/vs03/schedule&lt;br /&gt;
 xp2400:/# echo dummy &amp;gt;&amp;gt; /etc/vservers/vs03/schedule&lt;br /&gt;
 xp2400:/# cat /etc/vservers/vs03/schedule&lt;br /&gt;
 6&lt;br /&gt;
 30&lt;br /&gt;
 1000&lt;br /&gt;
 200&lt;br /&gt;
 3000&lt;br /&gt;
 dummy&lt;br /&gt;
&lt;br /&gt;
After these checks it's time to start the vserver:&lt;br /&gt;
 xp2400:/# vserver vs03 start&lt;br /&gt;
&lt;br /&gt;
Check if the interface is nicely named and shown with ifconfig:&lt;br /&gt;
 xp2400:/#  ip addr show&lt;br /&gt;
 [...]&lt;br /&gt;
 2: eth0: &amp;lt;BROADCAST,MULTICAST,UP&amp;gt; mtu 1500 qdisc pfifo_fast qlen 1000&lt;br /&gt;
     link/ether 00:30:bd:6b:d6:8f brd ff:ff:ff:ff:ff:ff&lt;br /&gt;
     inet 192.168.0.21/24 brd 192.168.0.255 scope global eth0&lt;br /&gt;
     inet 192.168.0.3/24 brd 192.168.0.255 scope global secondary eth0:vs03&lt;br /&gt;
     inet6 fe80::230:bdff:fe6b:d68f/64 scope link&lt;br /&gt;
        valid_lft forever preferred_lft forever&lt;br /&gt;
 &lt;br /&gt;
 xp2400:/# ifconfig&lt;br /&gt;
 eth0      Link encap:Ethernet  [...]&lt;br /&gt;
 &lt;br /&gt;
 eth1      [...]&lt;br /&gt;
 &lt;br /&gt;
 eth0:vs03 Link encap:Ethernet  HWaddr 00:30:BD:6B:D6:8F&lt;br /&gt;
           inet addr:192.168.0.3  Bcast:192.168.0.255  Mask:255.255.255.0&lt;br /&gt;
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1&lt;br /&gt;
           Interrupt:177 Base address:0xd000&lt;br /&gt;
&lt;br /&gt;
Enter the vserver:&lt;br /&gt;
 xp2400:/# vserver vs03 enter&lt;br /&gt;
&lt;br /&gt;
In the vserver we check the base configuration and install some packages.&lt;br /&gt;
 vs03:/# base-config&lt;br /&gt;
 vs03:/# apt-get update&lt;br /&gt;
 vs03:/# apt-get install locales&lt;br /&gt;
 vs03:/# apt-get install less&lt;br /&gt;
 vs03:/# nano /etc/resolv.conf&lt;br /&gt;
 vs03:/# ping www.linux-vserver.org&lt;br /&gt;
&lt;br /&gt;
We want to install at least one service, sshd. &lt;br /&gt;
 vs03:/# apt-get install ssh&lt;br /&gt;
 vs03:/# nano /etc/ssh/sshd_config&lt;br /&gt;
 vs03:/# cat /etc/ssh/sshd_config | grep ListenAddress&lt;br /&gt;
 ListenAddress 192.168.0.3:22&lt;br /&gt;
 vs03:/# /etc/init.d/ssh restart&lt;br /&gt;
 Restarting OpenBSD Secure Shell server: sshd.&lt;br /&gt;
 vs03:/# passwd&lt;br /&gt;
 Enter new UNIX password:&lt;br /&gt;
 Retype new UNIX password:&lt;br /&gt;
 passwd: password updated successfully&lt;br /&gt;
 vs03:/# exit&lt;br /&gt;
 logout&lt;br /&gt;
&lt;br /&gt;
Test the ssh login:&lt;br /&gt;
 xp2400:/# ssh root@192.168.0.3&lt;br /&gt;
 The authenticity of host '192.168.0.3 (192.168.0.3)' can't be established.&lt;br /&gt;
 RSA key fingerprint is e2:19:d1:8d:7f:ac:0a:ce:12:f5:06:b7:ae:41:96:59.&lt;br /&gt;
 Are you sure you want to continue connecting (yes/no)? yes&lt;br /&gt;
 Warning: Permanently added '192.168.0.3' (RSA) to the list of known hosts.&lt;br /&gt;
 Password: &amp;lt;secret&amp;gt;&lt;br /&gt;
 vs03:~#&lt;br /&gt;
&lt;br /&gt;
As another service Apache2 should be used:&lt;br /&gt;
 vs03:/# apt-get install apache2&lt;br /&gt;
 [...]&lt;br /&gt;
 Starting web server: Apache2(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80&lt;br /&gt;
 no listening sockets available, shutting down&lt;br /&gt;
 Unable to open logs&lt;br /&gt;
 invoke-rc.d: initscript apache2, action &amp;quot;start&amp;quot; failed.&lt;br /&gt;
 &lt;br /&gt;
 Setting up apache2 (2.0.54-4) ...&lt;br /&gt;
&lt;br /&gt;
To avoid the above error:&lt;br /&gt;
 vs03:/# nano /etc/apache2/ports.conf&lt;br /&gt;
 vs03:/# cat /etc/apache2/ports.conf&lt;br /&gt;
 Listen 192.168.0.3:80&lt;br /&gt;
 vs03:/# /etc/init.d/apache2 start&lt;br /&gt;
 Starting web server: Apache2(98)Address already in use: make_sock: could not bind to address 192.168.0.3:80&lt;br /&gt;
 no listening sockets available, shutting down&lt;br /&gt;
 Unable to open logs&lt;br /&gt;
&lt;br /&gt;
Do we have an Apache listening on the vserver IP in the host context?&lt;br /&gt;
 xp2400:/# cat /etc/apache2/ports.conf&lt;br /&gt;
 Listen 80&lt;br /&gt;
 xp2400:/# nano /etc/apache2/ports.conf&lt;br /&gt;
 xp2400:/# cat /etc/apache2/ports.conf&lt;br /&gt;
 Listen 192.168.0.21:80&lt;br /&gt;
 Listen 127.0.0.1:80&lt;br /&gt;
 xp2400:/# /etc/init.d/apache2 restart&lt;br /&gt;
 Forcing reload of web server: Apache2.&lt;br /&gt;
 &lt;br /&gt;
 vs03:/# /etc/init.d/apache2 start&lt;br /&gt;
 Starting web server: Apache2.&lt;br /&gt;
 &lt;br /&gt;
 xp2400:/# lynx http://192.168.0.3/&lt;br /&gt;
   Test Page for Apache Installation&lt;br /&gt;
 &lt;br /&gt;
   If you can see this, it means that the installation of the Apache web&lt;br /&gt;
   server software on this system was successful. You may now add content&lt;br /&gt;
   to this directory and replace this page.&lt;br /&gt;
 [...]&lt;br /&gt;
&lt;br /&gt;
The configuration on one node is ready.&lt;br /&gt;
&lt;br /&gt;
To be continued ...&lt;/div&gt;</summary>
		<author><name>Jze</name></author>	</entry>

	</feed>