Cloud Pak for Data

 View Only
  • 1.  Does anyone have a script to properly shutdown a icp4d cluster

    Posted Thu May 16, 2019 11:40 PM
    Does anyone have a script to properly shutdown a icp4d cluster

    ------------------------------
    John Longo
    ------------------------------

    #CloudPakforDataGroup


  • 2.  RE: Does anyone have a script to properly shutdown a icp4d cluster

    Posted Mon May 20, 2019 12:22 AM
    Hi John,

    Go to each node (masters and workers) and run the following commands to stop core services:

    systemctl stop kubelet
    systemctl stop docker
    systemctl stop glusterd

    Restart the system and after restart the services should come up automatically but to verify issue following commands

    `mount -a ` to make sure all the filesystems are mounted back.
    systemctl status kubelet
    systemctl status docker
    systemctl status glusterd

    Allow atleast 30-40 minutes for pods to be in ready state before kubectl commands start working.

    If you are looking to restart just one Node, you should follow standard Kubernetes procedure of draining the node and then restarting.

    https://www.ibm.com/support/knowledgecenter/en/SSBS6K_3.1.2/manage_cluster/node_maintenance.html

    Thanks
    Sachin

    ------------------------------
    SACHIN PRASAD
    ------------------------------



  • 3.  RE: Does anyone have a script to properly shutdown a icp4d cluster

    Posted Mon May 20, 2019 07:16 AM
    Thank You!!

    ------------------------------
    John Longo
    ------------------------------