122
SLES 10 SP3: Storage Administration Guide
no
vd
ocx
(e
n)
7 Ja
nua
ry 201
0
4b
Downgrade the DRBD service on node 2 by typing the following command on node 2:
drbdadm secondary r0
4c
On node 1, promote the DRBD service to primary by entering
drbdadm primary r0
4d
On node 1, check to see if node 1 is primary by entering
service drbd status
5
To get the service to automatically start and fail over if the server has a problem, you can set up
DRBD as a high availability service with HeartBeat 2.
For information about installing and configuring HeartBeat 2 for SUSE
®
Linux Enterprise
Server 10, see the
HeartBeat 2 Installation and Setup Guide
(http://www.novell.com/
documentation/sles10/hb2/data/hb2_config.html)
on the
Novell Documentation Web site for
SUSE Linux Enterprise Server 10 (http://www.novell.com/documentation/sles10)
.
9.5 Troubleshooting DRBD
Use the following to troubleshoot problems with your DRBD setup:
Section 9.5.1, “Configuration,” on page 122
Section 9.5.2, “Host Names,” on page 122
Section 9.5.3, “TCP Port 7788,” on page 123
Section 9.5.4, “The --do-what-i-say Option,” on page 123
9.5.1 Configuration
If the initial
drbd
setup does not work as expected, there is probably something wrong with your
configuration.
To get information about the configuration:
1
Open a terminal console, then log in as the
root
user or equivalent.
2
Test the configuration file by running
drbdadm
with the
-d
option. Enter
drbdadm -d adjust r0
In a dry run of the
adjust
option,
drbdadm
compares the actual configuration of the DRBD
resource with your DRBD configuration file, but it does not execute the calls. Review the
output to make sure you know the source and cause of any errors.
3
If there are errors in the
drbd.conf
file, correct them before continuing.
4
If the partitions and settings are correct, run
drbdadm
again without the
-d
option. Enter
drbdadm adjust r0
This applies the configuration file to the DRBD resource.
9.5.2 Host Names
Please note that for DRBD, hostnames are case sensitive and therefore
Node0
would be a different
host than
node0
.
Содержание 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...