8.5. Resolving Conflicts

The hooks are displayed in the Gluster Hooks sub-tab of the Cluster tab. Hooks causing a conflict are displayed with an exclamation mark. This denotes either that there is a conflict in the content or status of the hook across the servers in the cluster, or that the hook script is missing in one or more servers. These conflicts can be resolved via the console. The hooks in the servers are periodically synchronized with engine database and the following conflicts can occur for the hooks:
  • Content Conflict - the content of the hook is different across servers.
  • Status Conflict - the status of the hook is different across servers.
  • Missing Conflict - one or more servers of the cluster do not have the hook.
  • Content + Status Conflict - both the content and status of the hook are different across servers.
  • Content + Status + Missing Conflict - both the content and status of the hook are different across servers, or one or more servers of the cluster do not have the hook.

8.5.1. Resolving Missing Hook Conflicts

Procedure 8.4. Resolving a Missing Hook Conflict

  1. Click the Cluster tab and select a cluster. A Gluster Hooks sub-tab displays, listing the hooks in the cluster.
  2. Select a hook causing a conflict and click Resolve Conflicts. The Resolve Conflicts window displays.
    Missing Hook Conflict

    Figure 8.3. Missing Hook Conflict

  3. Select one of the options give below:
    • Copy the hook to all the servers to copy the hook to all servers.
    • Remove the missing hook to remove the hook from all servers and the engine.
  4. Click OK. The conflict is resolved.

8.5.2. Resolving Content Conflicts

Procedure 8.5. Resolving a Content Conflict

  1. Click the Cluster tab and select a cluster. A Gluster Hooks sub-tab displays, listing the hooks in the cluster.
  2. Select the conflicted hook and click Resolve Conflicts. The Resolve Conflicts window displays.
    Content Conflict

    Figure 8.4. Content Conflict

  3. Select an option from the Use Content from drop-down list:
    • Select a server to copy the content of the hook from the selected server.
      Or
    • Select Engine (Master) to copy the content of the hook from the engine copy.

    Note

    The content of the hook will be overwritten in all servers and in the engine.
  4. Click OK. The conflict is resolved.

8.5.3. Resolving Status Conflicts

Procedure 8.6. Resolving a Status Conflict

  1. Click the Cluster tab and select a cluster. A Gluster Hooks sub-tab displays, listing the hooks in the cluster.
  2. Select the conflicted hook and click Resolve Conflicts. The Resolve Conflicts window displays.
    Status Conflict

    Figure 8.5. Status Conflict

  3. Set Hook Status to Enable or Disable.
  4. Click OK. The conflict is resolved.

8.5.4. Resolving Content and Status Conflicts

Procedure 8.7. Resolving a Content and Status Conflict

  1. Click the Cluster tab and select a cluster. A Gluster Hooks sub-tab displays, listing the hooks in the cluster.
  2. Select a hook causing a conflict and click Resolve Conflicts. The Resolve Conflicts window displays.
  3. Select an option from the Use Content from drop-down list to resolve the content conflict:
    • Select a server to copy the content of the hook from the selected server.
      Or
    • Select Engine (Master) to copy the content of the hook from the engine copy.

    Note

    The content of the hook will be overwritten in all the servers and in engine.
  4. Set Hook Status to Enable or Disable to resolve the status conflict.
  5. Click OK. The conflict is resolved.

8.5.5. Resolving Content, Status, and Missing Conflicts

Procedure 8.8. Resolving a Content, Status and Missing Conflict

  1. Click the Cluster tab and select a cluster. A Gluster Hooks sub-tab displays, listing the hooks in the cluster.
  2. Select the conflicted hook and click Resolve Conflicts. The Resolve Conflicts window displays.
  3. Select one of the options given below to resolve the missing conflict:
    • Copy the hook to all the servers.
    • Remove the missing hook.
  4. Select an option from the Use Content from drop-down list to resolve the content conflict:
    • Select a server to copy the content of the hook from the selected server.
      Or
    • Select Engine (Master) to copy the content of the hook from the engine copy.

    Note

    The content of the hook will be overwritten in all the servers and in Engine.
  5. Set Hook Status to Enable or Disable to resolve the status conflict.
  6. Click OK. The conflict is resolved.