Installing and Managing DRBD Services
87
no
vd
ocx (
E
NU)
9
Jan
uar
y 2
007
drbdadm adjust r0
Make sure there are no errors before continuing.
5
Configure
node1
as the primary node by entering
drbdsetup /dev/drbd0 primary –do-what-I-say
6
Start the DRBD service on both systems by entering the following on each node:
service drbd start
7
Check the DRBD service status by entering the following on each node:
service drbd status
8
Format the DRBD device on the primary with a file system such as reiserfs. Any Linux file
system can be used. Enter the following:
mkfs.reiserfs -f /dev/drbd0
Always use the
/dev/drbd#
name in the command, not the actual
/dev/disk
device
name.
9
Test the DRBD service on node 1.
9a
Create a mount point on node 1, such as
/r0mount
, by entering
mkdir /r0mount
9b
Mount the
drbd
device by entering
mount -o rw /dev/drbd0 /r0mount
9c
Create a file from the primary node by entering
touch /r0mount/from_node1
10
Test the DRBD service on node 2.
10a
Dismount the disk on node 1 by typing the following command on node 1:
umount /r0mount
10b
Downgrade the DRBD service on node 1 by typing the following command on node 1:
drbdadm secondary r0
10c
On node 2, promote the DRBD service to primary by entering
drbdadm primary r0
10d
On node 2, check to see if node 2 is primary by entering
service drbd status
10e
On node 2, create a mount point such as
/r0mount
, by entering
mkdir /r0mount
10f
On node 2, mount the DRBD device by entering
mount -o rw /dev/drbd0 /r0mount
10g
Verify that the file you created on node 1 in
Step 9c
is viewable by entering
ls /r0mount
The
/r0mount/from_node1
file should be listed.
11
If the service is working on both nodes, the DRBD setup is complete.
12
Set up node 1 as the primary again.
12a
Dismount the disk on node 2 by typing the following command on node 2:
umount /r0mount
12b
Downgrade the DRBD service on node 2 by typing the following command on node 2:
Summary of Contents for LINUX ENTERPRISE SERVER 10 - STORAGE ADMINISTRATION GUIDE FOR EVMS
Page 4: ...novdocx ENU 9 January 2007 ...
Page 8: ...8 SLES 10 Storage Administration Guide for EVMS novdocx ENU 9 January 2007 ...
Page 10: ...10 SLES 10 Storage Administration Guide for EVMS novdocx ENU 9 January 2007 ...
Page 40: ...40 SLES 10 Storage Administration Guide for EVMS novdocx ENU 9 January 2007 ...
Page 52: ...52 SLES 10 Storage Administration Guide for EVMS novdocx ENU 9 January 2007 ...
Page 74: ...74 SLES 10 Storage Administration Guide for EVMS novdocx ENU 9 January 2007 ...
Page 84: ...84 SLES 10 Storage Administration Guide for EVMS novdocx ENU 9 January 2007 ...