Cleaning up the cluster and the stack

Cleaning up the cluster involves a two-step process.

Follow these steps to clean up the stack:

  1. Run the mmcloudworkflows cluster destroy command from the controller node.
    Note: You must be a root user to run the mmcloudworkflow administrative command.
    Important: Running the mmcloudworkflows cluster destroy command enables the customer to remove and deprovision all the nodes in the IBM Storage Scale cluster. Running the mmcloudworkflows cluster destroy command also removes all the data that is stored in the storage nodes. The data that existed in the IBM Storage Scale cluster cannot be retrieved after it is deleted.
    For example, to remove the entire cluster, run the following command:
    mmcloudworkflows cluster destroy --stack_name scale-workflow-demo
    The system displays the following output:
    2020-06-17 08:27:48,571 - INFO - Logging in to file:
    /var/adm/ras/ibm_cloud_workflow_logs/mm_cloud_workflow_teardown.log_2020-Jun-17_08-27-48
    
    ============================================================================
                        |   ! Danger Zone !  |
    ============================================================================
    | This workflow, will result in teardown of IBM Spectrum Scale         |
    | cluster and resources. However, it will not destroy VPC, Bastion     |
    | Host resources and the s3 bucket.                                    |
    |                                                                      |
    | Notes:                                                               |
    | 1. Ensure to STOP all your applications before proceeding further.   |
    | 2. All IBM Scale Scale instances must be in either 'running',        |
    |   'pending', 'stopping' or 'stopped' state.                          |
    =============================================================================
    
    
    Do you want to continue teardown [y/N]: y

    For more information, see the mmcloudworkflows utility command.

    On successful completion, the entire IBM Storage Scale cluster is deleted. You can verify that the cluster is deleted from the AWS EC2 console.

  2. Delete the AWS CloudFormation Stack from the AWS Console.
    1. Open the CloudFormation console, and select the root stack to be deleted.
    2. Go to ​Actions​ > Delete Stack​​.