Drbd Configuration - Novell SLRS 8 Admin Manual

Table of Contents

Advertisement

5.3.5 DRBD Configuration
SUSE provides templates of the needed configuration files. Here, use the file
drbd.conf. Initially, adapt a few settings. Later, other parameters should be
changed for fine tuning.
Adapt the following settings:
disk-size to the size of your DRBD partition
And in the section on bs1 and on bs2:
bs1 and bs2 to the host names of your servers given by uname -n
disk = to the device name of your DRBD-disk
address = to the IP address of the DRBD network on the server
Copy the customized file to /etc/drbd.conf on both servers. Make sure DRBD
is started automatically by running "chkconfig drbd on" on both branch
servers. Start DRBD on node1 with the command "rcdrbd start" and an-
swer "yes". Now you should have a device named /dev/nb0. Create a file
system on this block device, e.g., "mke2fs -j /dev/nb0" for a journaling ext3
file system.
Now start DRBD on node2 and control the synchronization of the network
block device /dev/nb0. This can be done while you watch "cat /proc/drbd"
or the log file /var/log/messages. Finally, create the directory /drbd on both
nodes for the HA setup described in Section 5.3.6.
Testing DRBD
You are now ready to test the functionality of DRBD:
Issue "drbdsetup /dev/nb0 primary" on node1
Mount the device /dev/nb0 on node1 with "mount /dev/nb0 /drbd"
Write some data to /drbd
Unmount /dev/nb0 on node1
Issue "drbdsetup /dev/nb0 secondary" on node1
Issue "drbdsetup /dev/nb0 primary" on node2
Mount /dev/nb0 on node2 with "mount /dev/nb0 /drbd"
Check that the data is accessible through /drbd then delete the data
Unmount /dev/nb0 on node2
5.3 Installation of the Highly Available Branch Servers
67

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux retail solution 8

Table of Contents