Configuring The Drbd Service - Novell LINUX ENTERPRISE SERVER 10 - STORAGE ADMINISTRATION GUIDE 7-2007 Administration Manual

Table of Contents

Advertisement

2 Install the drbd kernel modules on both servers.

9.3 Configuring the DRBD Service

NOTE: The following procedure uses the server names node 1 and node 2, and the cluster resource
name r0. It sets up node 1 as the primary node. Make sure to modify the instructions to use your own
node and file names.
1 Log in as the root user or equivalent on each node.
2 Open the /etc/drbd.conf file on the primary node (node1) in a text editor, modify the
3 Copy the /etc/drbd.conf file to the /etc/drbd.conf location on the secondary server
4 Initialize and start the drbd service on both systems by entering the following on each node:
5 Configure node1 as the primary node by entering the following on node1:
6 Check the DRBD service status by entering the following on each node:
102 SLES 10 Storage Administration Guide
1b Choose Software > Software Management.
1c Change the filter to Patterns.
1d Under Base Technologies, select High Availability.
1e Click Accept.
2a Log in as the root user or equivalent, then open YaST.
2b Choose Software > Software Management.
2c Change the filter to Search.
2d Type drbd, then click Search.
2e Select all of the drbd-kmp-* packages.
2f Click Accept.
following parameters in the on hostname {} sections, then save the file.
hostname
device
disk
address
meta-disk
All of these options are explained in the examples in the /usr/share/doc/packages/
drbd/drbd.conf file and in the man page of drbd.conf(5).
(node 2).
scp /etc/drbd.conf <node 2> /etc
rcdrbd start
drbdsetup /dev/drbd0 primary --do-what-I-say
NOTE: The --do-what-i-say option has been renamed to --overwrite-data-of-peer in the recent
versions of DRBD.
rcdrbd status
Before proceeding, wait until the block devices on both nodes are fully synchronized. Repeat
the rcdrbd status command to follow the synchronization progress.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10 storage

Table of Contents