5.3.6 Deleting a Node

This section discusses deleting a node using the Heketi CLI. Make sure the node has no volumes or devices listed in the Heketi topology (using the heketi-cli topology info command) before you remove it.

To delete a node:

  1. Use the heketi-cli node list command to get a list of the nodes managed by Heketi:

    # heketi-cli node list
    Id:32755ad123c325f75c91aa963c4312f3	Cluster:7c1cf54ff4b5ab41f823ac592ba68ca5
    Id:7c899bc9f50e46efc993dc22263549e4	Cluster:7c1cf54ff4b5ab41f823ac592ba68ca5
    Id:c35ba48b042555633b511f459f5aa157	Cluster:7c1cf54ff4b5ab41f823ac592ba68ca5
  2. Use the heketi-cli node disable command to disable the device using the node Id:

    # heketi-cli node disable c35ba48b042555633b511f459f5aa157
    Node c35ba48b042555633b511f459f5aa157 is now offline
  3. Use the heketi-cli node remove command to remove the node using the node Id:

    # heketi-cli node remove c35ba48b042555633b511f459f5aa157
    Node c35ba48b042555633b511f459f5aa157 is now removed
  4. Use the heketi-cli node delete command to delete the node using the node Id:

    # heketi-cli node delete c35ba48b042555633b511f459f5aa157
    Node c35ba48b042555633b511f459f5aa157 deleted