Update ocf resource agent, pacemaker and systemd notes.

This commit is contained in:
2022-02-06 20:12:32 +01:00
parent f289a46857
commit 2e5bf7d1a7
3 changed files with 16 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
:PROPERTIES:
:ID: 7a81bb2d-a6cf-4a2d-8308-0de97fab1856
:mtime: 20220111174057
:mtime: 20220130132903
:ctime: 20220110091205
:END:
#+title: OCF resource agent
@@ -20,13 +20,11 @@
#+BEGIN_SRC shell
apt-get install resource-agents
#+END_SRC
* Pour tester la conformité d'un ~resource-agent~ créé :
* Tester la conformité d'un ~resource-agent~ créé :
#+BEGIN_SRC shell
ocf-tester -n <nom du resource-agent> <chemin vers le script du resource agent>
#+END_SRC
* A installer dans le répertoire ~/usr/lib/ocf/resource.d/<provider>/~ du noeud concerné
* Pour créer une nouvelle ressource:
* A installer dans le répertoire ~/usr/lib/ocf/resource.d/<provider>/~ pour créer une nouvelle ressource:
#+BEGIN_SRC shell
sudo pcs resource create <id de la resource> [<standard>:[<provider>:]]<type>
#+END_SRC