Strumenti Utente

Strumenti Sito


debian:cluster

Differenze

Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.

Link a questa pagina di confronto

Entrambe le parti precedenti la revisione Revisione precedente
Prossima revisione
Revisione precedente
debian:cluster [2020/10/23 19:08]
stefano
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 {+  totem {
         version: 2         version: 2
         cluster_name: debian         cluster_name: debian
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 62: Linea 62:
   pcs property set no-quorum-policy=ignore   pcs property set no-quorum-policy=ignore
  
-poi avevo provato a inserire l'altra direttiva dell'INFINITY ma non sembra funzionare su Debian così come non sembra funzionare pcs.\\+con debian bisogna usare crmsh \\ 
 +  apt-get install crmsh 
 +  
 +poi entrare nella configurazione con\\ 
 +  crm configure
  
 +eseguire i seguenti passi\\
 +  primitive p_drbd_0 ocf:linbit:drbd params drbd_resource="r0" op monitor interval="10"
 +  ms ms_drbd_0 p_drbd_0 meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
 +
 +rendere esecutivi i comandi\\
 +  commit
 +
 +creare l'IP\\
 +  pcs resource create clstIP IPaddr2 ip="192.168.1.63" cidr_netmask="24" nic="enp1s0" mac="52:54:00:b0:8c:10"
 +  
 +
 +https://github.com/ClusterLabs/pacemaker/blob/master/doc/pcs-crmsh-quick-ref.md \\
 +
 +
 +per la gestione del cluster su può usare pcs via web:\\
 +https://ip:2224 \\
 +
 +
 +==== 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 "CASA\\ginopino:CASA\\domain users" /direct/
 +
 +
 +===== attuale =====
 +
 +sito prova:\\
 +https://linuxtot.com/add-a-simple-samba-file-server-as-a-domain-member/ \\
 +https://wiki.debian.org/Permissions \\
 +
 +
 +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:         files winbind systemd
 +  group:          files winbind systemd
 +
 +
 +
 +cambiare password hacluster\\
 +eseguire corosync-keygen \\
 +copiare sull'altro nodo i file\\
 +
 +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:linbit:drbd params drbd_resource="r0" op monitor interval="10"
 +  ms ms_drbd_0 p_drbd_0 meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
 +  
debian/cluster.1603472894.txt.gz · Ultima modifica: 2023/04/17 14:25 (modifica esterna)