120
SLES 10 SP3: Storage Administration Guide
no
vd
ocx
(e
n)
7 Ja
nua
ry 201
0
1b
Choose
Software > Software Management.
1c
Change the filter to
Patterns
.
1d
Under
Base Technologies
, select
High Availability
.
1e
Click
Accept
.
2
Install the
drbd
kernel modules on both servers.
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
.
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
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)
.
3
Copy the
/etc/drbd.conf
file to the
/etc/drbd.conf
location on the secondary server
(node 2).
scp /etc/drbd.conf <node 2> /etc
4
Initialize and start the drbd service on both systems by entering the following on each node:
rcdrbd start
5
Configure
node1
as the primary node by entering the following on
node1
:
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.
6
Check the DRBD service status by entering the following on each node:
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.
Содержание LINUX ENTERPRISE SERVER 10 SP3 - ARCHITECTURE-SPECIFIC
Страница 4: ...4 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...
Страница 30: ...30 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...
Страница 42: ...42 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...
Страница 76: ...76 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...
Страница 108: ...108 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...
Страница 118: ...118 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...
Страница 124: ...124 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...
Страница 132: ...132 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...