Product SiteDocumentation Site

F.2.2. Aggiornare la configurazione

Dato che XM non è il più amichevole dei linguaggi è pratica comune per gli amministratori del cluster creare script per le proprie attività. In questi casi c'è da aspettarsi che tali script non funzionino con la sintassi della versione 1.0.
Al fine di supportare tali ambienti, è possibile continuare ad utilizzare la vecchia sintassi 0.6.
The downside is, however, that not all the new features will be available and there is a performance impact since the cluster must do a non-persistent configuration upgrade before each transition. So while using the old syntax is possible, it is not advisable to continue using it indefinitely.
Anche se il proprio desiderio è quello di utilizzare la vecchia sintassi, è consigliabile seguire la procedura di upgrade per assicurarsi che il cluster sia capace di utilizzare la configurazione attuale (visto che internamente effettuerà praticamente la stessa operazione).
  1. Creare di una copia shadow del proprio lavoro con
    # crm_shadow --create upgrade06
  2. Verify the configuration is valid
    # crm_verify --live-check
  3. Correggere eventuali errori o allerta
  4. Perform the upgrade:
    # cibadmin --upgrade
  5. If this step fails, there are three main possibilities:
    1. La configurazione non è valida per l'avvio - tornare al passo 2
    2. The transformation failed - report a bug or email the project
    3. The transformation was successful but produced an invalid result [22]
      If the result of the transformation is invalid, you may see a number of errors from the validation library. If these are not helpful, visit http://clusterlabs.org/wiki/Validation_FAQ and/or try the procedure described below under Sezione F.2.3, «Aggiornamento manuale della configurazione»
  6. Verificare le modifiche
    # crm_shadow --diff
    Se a questo punto si necessita di approfondire altro in merio all'aggioramento (ad esempio cambiare qualcuno degli ID automatici) questo è il momento. Dal momento che la configurazione shadow non è utilizzata dal cluster è possibile modificare il file manualmenee.
    # crm_shadow --edit
    This will open the configuration in your favorite editor (whichever is specified by the standard $EDITOR environment variable)
  7. Presenterà un'anteprima delle azioni del cluster
    Controlla quello che fa il cluster quando viene caricata la nuova configurazione
    # crm_simulate --live-check --save-dotfile upgrade06.dot -S
    # graphviz upgrade06.dot
    Verify that either no resource actions will occur or that you are happy with any that are scheduled. If the output contains actions you do not expect (possibly due to changes to the score calculations), you may need to make further manual changes. See Sezione 2.7, «Testare le proprie modifiche» for further details on how to interpret the output of crm_simulate
  8. Applicare le modifiche
    # crm_shadow --commit upgrade06 --force
Se il passo fallisce, p accaduto qualcosa di veramente strano. Biosgnerebbe quindi riportare un Bug


[22] The most common reason is ID values being repeated or invalid. Pacemaker 1.0 is much stricter regarding this type of validation.