diff --git a/xml/article_nfs_storage.xml b/xml/article_nfs_storage.xml
index c77ce5ecf..3488436f4 100644
--- a/xml/article_nfs_storage.xml
+++ b/xml/article_nfs_storage.xml
@@ -239,7 +239,7 @@
}
net {
- protocol C;
+ protocol C;
fencing resource-and-stonith;
}
@@ -282,21 +282,23 @@
The protocol to use for this connection. Protocol C
- provides better data availability and does not consider a write to be
- complete until it has reached all local and remote disks.
+ is the default option. It provides better data availability and does not consider
+ a write to be complete until it has reached all local and remote disks.
- Specifies the fencing policy. For clusters with a &stonith; device
- configured, use resource-and-stonith.
+ Specifies the fencing policy resource-and-stonith at the DRBD level.
+ This policy immediately suspends active I/O operations until &stonith; completes.
- Enables resource-level fencing. If the DRBD replication link
- becomes disconnected, &pace; tries to promote the DRBD resource
- to another node. For more information, see .
+ Enables resource-level fencing to prevent &pace; from starting a service
+ with outdated data. If the DRBD replication link
+ becomes disconnected, the crm-fence-peer.9.sh script
+ stops the DRBD resource from being promoted to another node until the replication link
+ becomes connected again and DRBD completes its synchronization process.
diff --git a/xml/ha_drbd.xml b/xml/ha_drbd.xml
index c6faf276d..9838e0021 100644
--- a/xml/ha_drbd.xml
+++ b/xml/ha_drbd.xml
@@ -322,6 +322,14 @@ NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE
connection-mesh {
hosts &node1; &node2;;
}
+ net {
+ protocol C;
+ fencing resource-and-stonith;
+ }
+ handlers {
+ fence-peer "/usr/lib/drbd/crm-fence-peer.9.sh";
+ after-resync-target "/usr/lib/drbd/crm-unfence-peer.9.sh";
+ }
}
@@ -394,6 +402,27 @@ NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE
&drbd-connection-mesh;
+
+ The protocol to use for this connection. Protocol C
+ is the default option. It provides better data availability and does not consider
+ a write to be complete until it has reached all local and remote disks.
+
+
+
+
+ Specifies the fencing policy resource-and-stonith at the DRBD level.
+ This policy immediately suspends active I/O operations until &stonith; completes.
+
+
+
+
+ Enables resource-level fencing to prevent &pace; from starting a service
+ with outdated data. If the DRBD replication link becomes disconnected, the
+ crm-fence-peer.9.sh script stops the DRBD resource from
+ being promoted to another node until the replication link becomes connected
+ again and DRBD completes its synchronization process.
+
+
@@ -855,65 +884,6 @@ resource r0-U {
-
- Using resource-level fencing with &stonith;
-
- When a DRBD replication link becomes interrupted, &pace; tries to promote
- the DRBD resource to another node. To prevent &pace; from starting a service
- with outdated data, enable resource-level fencing in the DRBD configuration
- file.
-
-
- The fencing policy can have different values (see man page drbdsetup and the
- option).
- As a &productname; cluster is normally used with a &stonith; device, the value
- resource-and-stonith is used in
- .
-
-
-
- Configuration of DRBD with resource-level fencing using the Cluster
- Information Base (CIB)
- resource RESOURCE {
- net {
- fencing resource-and-stonith;
- # ...
- }
- handlers {
- fence-peer "/usr/lib/drbd/crm-fence-peer.9.sh";
- after-resync-target "/usr/lib/drbd/crm-unfence-peer.9.sh";
- # ...
- }
- ...
-}
-
- If the DRBD replication link becomes disconnected, DRBD does the
- following:
-
-
- DRBD calls the crm-fence-peer.9.sh script.
-
-
- The script contacts the cluster manager.
-
-
-
- The script determines the &pace; resource associated with this
- DRBD resource.
-
-
- The script ensures that the DRBD resource no longer gets
- promoted to any other node. It stays on the currently active one.
-
-
- If the replication link becomes connected again and DRBD
- completes its synchronization process, then the constraint is removed.
- The cluster manager is now free to promote the resource.
-
-
-
-
-
Testing the DRBD service