-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DRAFT: Feature: Non-privileged hacluster
It enables creating the cluster under the hacluster It requires some preparaions. To use it, do: $ sudo mv /sbin/crm* /sbin/cibadmin /sbin/stonith \ /sbin/corosync-keygen /sbin/corosync-cfgtool /usr/bin/ $ sudo cp /sbin/csync2 /sbin/sbd /usr/bin/ # sbd csync2 must exist in /sbin/ $ sudo chmod 770 /etc/pacemaker/ $ sudo chown hacluster:haclient -R /etc/csync2 /etc/corosync \ /usr/share/doc/packages/corosync \ /etc/sysconfig /var/lib/csync2 \ /etc/crm /etc/lvm /etc/samba $ sudo chmod 777 -R /etc/csync2 /etc/corosync \ /usr/share/doc/packages/corosync \ /etc/sysconfig /var/lib/csync2 \ /etc/crm /etc/lvm /etc/samba Permissions for /run to use the lock Pay attention: 1) not recursive 2) the permissions are reset to default after reboot $ sudo chown hacluster:haclient /run $ sudo chmod 777 /run Besides set up the csync2 running as hacluster Add 'User=hacluster' into the '[Service]' section $ sudo echo 'User=hacluster' >> /usr/lib/systemd/system/csync2@.service $ sudo systemctl daemon-reload $ su - hacluster And now you can do the usual routines under hacluster $ crm cluster init ... $ crm cluster join ...
- Loading branch information
Aleksei Burlakov
committed
Aug 18, 2022
1 parent
5acffe4
commit d35e38c
Showing
5 changed files
with
58 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters