Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
| Entrambe le parti precedenti la revisione Revisione precedente Prossima revisione | Revisione precedente | ||
|
debian:cluster [2020/10/23 20:34] stefano [configurazione] |
debian:cluster [2024/02/08 17:30] (versione attuale) stefano |
||
|---|---|---|---|
| Linea 10: | Linea 10: | ||
| # Please read the corosync.conf.5 manual page | # Please read the corosync.conf.5 manual page | ||
| - | totem { | + | |
| version: 2 | version: 2 | ||
| cluster_name: | cluster_name: | ||
| Linea 20: | Linea 20: | ||
| ttl: 1 | ttl: 1 | ||
| } | } | ||
| - | } | + | |
| - | + | ||
| - | logging { | + | logging { |
| fileline: off | fileline: off | ||
| to_stderr: yes | to_stderr: yes | ||
| Linea 33: | Linea 33: | ||
| debug: off | debug: off | ||
| } | } | ||
| - | } | + | |
| - | + | ||
| - | quorum { | + | quorum { |
| provider: corosync_votequorum | provider: corosync_votequorum | ||
| | | ||
| } | } | ||
| - | + | | |
| - | nodelist { | + | nodelist { |
| node { | node { | ||
| name: d1 | name: d1 | ||
| Linea 51: | Linea 51: | ||
| ring0_addr: 192.168.122.38 | ring0_addr: 192.168.122.38 | ||
| } | } | ||
| - | } | + | |
| a quanto pare però è sufficiente mettere la direttiva nodelist { } con le relative sottodiretive node { } \\ | a quanto pare però è sufficiente mettere la direttiva nodelist { } con le relative sottodiretive node { } \\ | ||
| Linea 74: | Linea 74: | ||
| rendere esecutivi i comandi\\ | rendere esecutivi i comandi\\ | ||
| commit | commit | ||
| + | |||
| + | creare l'IP\\ | ||
| + | pcs resource create clstIP IPaddr2 ip=" | ||
| + | | ||
| https:// | https:// | ||
| + | |||
| + | |||
| + | per la gestione del cluster su può usare pcs via web:\\ | ||
| + | https:// | ||
| + | |||
| + | |||
| + | ==== info ==== | ||
| + | |||
| + | To domain-join an debian / ubuntu – server you first need to install realmd and its dependencies\\ | ||
| + | |||
| + | sudo apt install -y realmd | ||
| + | sudo apt install -y sssd-tools sssd libnss-sss libpam-sss adcli | ||
| + | sudo apt install -y realmd packagekit | ||
| + | |||
| + | Join the server to your Active Directory-Domain\\ | ||
| + | |||
| + | sudo realm join yourdomain.tld --user administrator | ||
| + | |||
| + | If you need to, replace “administrator” with another authorized user.\\ | ||
| + | |||
| + | If the above command fails:\\ | ||
| + | check if your user has the required permissions\\ | ||
| + | check the password\\ | ||
| + | try the following: | ||
| + | |||
| + | sudo realm join yourdomain.tld --user administrator --install=/ | ||
| + | |||
| + | poi per la condivisione\\ | ||
| + | |||
| + | chown " | ||
| + | |||
| + | |||
| + | ===== attuale ===== | ||
| + | |||
| + | sito prova:\\ | ||
| + | https:// | ||
| + | https:// | ||
| + | |||
| + | |||
| + | per il join al dominio\\ | ||
| + | |||
| + | il file smb.conf\\ | ||
| + | |||
| + | [global] | ||
| + | | ||
| + | workgroup = CASA | ||
| + | security = ADS | ||
| + | realm = CASA.INT | ||
| + | vfs objects = acl_xattr | ||
| + | map acl inherit = Yes | ||
| + | store dos attributes = Yes | ||
| + | idmap config * : backend = tdb | ||
| + | idmap config * : range = 3000-7999 | ||
| + | winbind use default domain = true | ||
| + | winbind nss info = rfc2307 | ||
| + | winbind enum users = yes | ||
| + | winbind enum groups = yes | ||
| + | |||
| + | verificare krb5.conf\\ | ||
| + | e nsswitch.conf\\ | ||
| + | |||
| + | passwd: | ||
| + | group: | ||
| + | |||
| + | |||
| + | |||
| + | cambiare password hacluster\\ | ||
| + | eseguire corosync-keygen \\ | ||
| + | copiare sull' | ||
| + | |||
| + | per il cluster c'è poco da fare, aggiungere solo i nodi al nodelist { } \\ | ||
| + | cambiare il nome del cluster\\ | ||
| + | aggiungere two_node:1 alla sezione del quorum { } \\ | ||
| + | |||
| + | avviare corosync e pacemaker\\ | ||
| + | |||
| + | pcs property set stonith-enabled=false | ||
| + | pcs property set no-quorum-policy=ignore | ||
| + | | ||
| + | poi usare crm per aggiungere le risorse\\ | ||
| + | |||
| + | primitive p_drbd_0 ocf: | ||
| + | ms ms_drbd_0 p_drbd_0 meta master-max=" | ||
| + | | ||