tech:cluster_pacemaker_et_corosync_partition_gfs2
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:cluster_pacemaker_et_corosync_partition_gfs2 [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:cluster_pacemaker_et_corosync_partition_gfs2 [2026/06/30 20:34] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Cluster Pacemaker et Corosync partition GFS2 | ||
| + | |||
| + | **Brouillon** | ||
| + | |||
| + | Voir : | ||
| + | * https:// | ||
| + | * [SBD Fencing watchdog softdog](http:// | ||
| + | * https:// | ||
| + | * [GFS2](https:// | ||
| + | * [Cluster LVM / CLVM](https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * http:// | ||
| + | |||
| + | Voir aussi : | ||
| + | * [[Pb Cluster LVM Err internal cluster locking initialisation failed]] | ||
| + | * [OCFS2](https:// | ||
| + | |||
| + | |||
| + | ~~~bash | ||
| + | / | ||
| + | ~~~ | ||
| + | |||
| + | ou | ||
| + | |||
| + | `/ | ||
| + | ~~~ini | ||
| + | locking_type = 3 | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | sed -i -e " | ||
| + | systemctl stop lvm2-lvmetad.service | ||
| + | dracut -H -f / | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | yum install rgmanager lvm2-cluster gfs2-utils | ||
| + | |||
| + | mkfs.gfs2 -p lock_dlm -t my_cluster: | ||
| + | ~~~ | ||
| + | |||
| + | `-j 2` \ | ||
| + | **2 journaux** car deux nœuds | ||
| + | |||
| + | Teste | ||
| + | ~~~bash | ||
| + | mount -t gfs2 -o locktable=" | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | pcs resource create dlm ocf: | ||
| + | |||
| + | pcs resource create clvmd ocf: | ||
| + | |||
| + | pcs constraint order start dlm-clone then clvmd-clone | ||
| + | pcs constraint colocation add clvmd-clone with dlm-clone | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | pcs resource create clusterfs Filesystem device="/ | ||
| + | op monitor interval=10s on-fail=fence clone interleave=true | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Pb | ||
| + | |||
| + | [[Pb Cluster LVM Err internal cluster locking initialisation failed]] | ||
| + | |||
| + | |||
| + | ### Transport endpoint is not connected | ||
| + | |||
| + | ~~~ | ||
| + | mount: mount /dev/sdb on /mnt/gfs failed: Transport endpoint is not connected | ||
| + | ~~~ | ||
| + | |||
| + | Solution | ||
| + | ~~~bash | ||
| + | systemctl start dlm | ||
| + | systemctl enable dlm | ||
| + | ~~~ | ||
| + | |||
