Testing The Drbd Service - Novell LINUX ENTERPRISE SERVER 10 SP2 - STORAGE ADMINISTRATION GUIDE 05-15-2009 Administration Manual

Table of Contents

Advertisement

7 After the block devices on both nodes are fully synchronized, format the DRBD device on the
primary with a file system such as reiserfs. Any Linux file system can be used. For example,
enter
mkfs.reiserfs -f /dev/drbd0
IMPORTANT: Always use the
device name.
disk

9.4 Testing the DRBD Service

If the install and configuration procedures worked as expected, you are ready to run a basic test of
the drbd functionality. This test also helps with understanding how the software works.
1 Test the DRBD service on node 1.
1a Open a terminal console, then log in as the
1b Create a mount point on node 1, such as
mkdir /r0mount
1c Mount the
drbd
mount -o rw /dev/drbd0 /r0mount
1d Create a file from the primary node by entering
touch /r0mount/from_node1
2 Test the DRBD service on node 2.
2a Open a terminal console, then log in as the
2b Dismount the disk on node 1 by typing the following command on node 1:
umount /r0mount
2c Downgrade the DRBD service on node 1 by typing the following command on node 1:
drbdadm secondary r0
2d On node 2, promote the DRBD service to primary by entering
drbdadm primary r0
2e On node 2, check to see if node 2 is primary by entering
rcdrbd status
2f On node 2, create a mount point such as
mkdir /r0mount
2g On node 2, mount the DRBD device by entering
mount -o rw /dev/drbd0 /r0mount
2h Verify that the file you created on node 1 in
ls /r0mount
The
/r0mount/from_node1
3 If the service is working on both nodes, the DRBD setup is complete.
4 Set up node 1 as the primary again.
4a Dismount the disk on node 2 by typing the following command on node 2:
umount /r0mount
/dev/drbd<n>
/r0mount
device by entering
/r0mount
file should be listed.
name in the command, not the actual
user or equivalent.
root
, by entering
user or equivalent.
root
, by entering
Step 1d
is viewable by entering
Installing and Managing DRBD Services 119
/dev/

Advertisement

Table of Contents
loading

This manual is also suitable for:

Linux enterprise desktop 10 sp2

Table of Contents