Browse files

Merge pull request #155 from davidvossel/cfs_pcs_update

Low: doc: Demonstrate that pcs automatically discovers resource standard...
  • Loading branch information...
2 parents 394e906 + 7f8e9ee commit bdd3f2eab35ed440e6a7944aa70be33c1432c74f @davidvossel davidvossel committed Sep 21, 2012
Showing with 9 additions and 2 deletions.
  1. +0 −1 TODO.markdown
  2. +9 −1 doc/Clusters_from_Scratch/en-US/Ch-Shared-Storage.txt
@@ -51,7 +51,6 @@
- Document advanced fencing logic in Pacemaker Explained
- Use ann:defaultValue="..." instead of <optional> in the schema more often
- Document in CFS an Appendix detailing with re-enabling firewall
-- Remove ocf:heartbeat part of resource create to demonstrate that the resource is automatically found.
- Document implicit operation creation in CFS once pcs supports it.
- Document use of pcs resource move command in CFS once pcs supports it.
- Make use of --clone option in pcs resource create dlm in CFS once pcs fully supports that option.
@@ -457,13 +457,21 @@ tell the cluster where it can be located (only on the DRBD Primary)
and when it is allowed to start (after the Primary was promoted).
+We are going to take a shortcut when creating the resource this time though.
+Instead of explicitly saying we want the 'ocf:heartbeat:Filesystem' script, we
+are only going to ask for 'Filesystem'. We can do this because we know there is only
+one resource script named 'Filesystem' available to pacemaker, and that pcs is smart
+enough to fill in the 'ocf:heartbeat' portion for us correctly in the configuration.
+If there were multiple 'Filesystem' scripts from different ocf providers, we would need
+to specify the exact one we wanted to use.
Once again we will queue up our changes to a file and then push the
new configuration to the cluster as the final step.
# pcs cluster cib fs_cfg
-# pcs -f fs_cfg resource create WebFS ocf:heartbeat:Filesystem \
+# pcs -f fs_cfg resource create WebFS Filesystem \
device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" \
# pcs -f fs_cfg constraint colocation add WebFS WebDataClone INFINITY with-rsc-role=Master

0 comments on commit bdd3f2e

Please sign in to comment.