B.3. How are OCF Return Codes Interpreted?
The first thing the cluster does is to check the return code against the expected result. If the result does not match the expected value, then the operation is considered to have failed and recovery action is initiated.
Esistono tre tipi di ripristino da fallimenti:
Tabella B.3. Tipi di ripristino effettuati dal cluster
Type
|
Descrizione
|
Azione intrapresa dal cluster
|
---|
soft
|
Si è verificato un errore transitorio
|
Restart the resource or move it to a new location
|
hard
|
Si è verificato un errore non transitorio che potrebbe essere specificamente correlato al nodo attuale
|
Move the resource elsewhere and prevent it from being retried on the current node
|
fatal
|
A non-transient error that will be common to all cluster nodes (eg. a bad configuration was specified)
|
Stop the resource and prevent it from being started on any cluster node
|
Assumendo che l'azione sia considerata fallita, la seguente tabella evidenzia i diversi codici di ritorno OCF ed i tipi di ripristino che il cluster avvierà di conseguenza.