SMAX重启步骤

点点圈 提交于 2020-10-26 22:45:24

重启suite

      全部都在Master节点操作

  • 查看suite namespace, 进入/opt/kubernetes/bin , 获取对应的itsma na 名称如下:

            kubectl get ns

             结果如下:

[10.225.50.90][root@cnsd2sapwill003 bin]# kubectl get ns
NAME              STATUS   AGE
core              Active   176d
default           Active   176d
itsma-hdtup       Active   176d
kube-node-lease   Active   176d
kube-public       Active   176d
kube-system       Active   176d






  • 停止Suite

./cdfctl.sh runlevel set -l DOWN -n itsma-hdtup

  • 启动Suite

./cdfctl.sh runlevel set -l UP -n itsma-hdtup

对应结果如下:

NAME                                                 READY   STATUS      RESTARTS   AGE
auth-7d6bf797c4-t2k5k                                2/2     Running     0          27m
autopass-lm-v2-76cbc87f74-4vwgb                      2/2     Running     0          27m
idm-78fcddccf-rzc64                                  2/2     Running     0          27m
infra-rabbitmq-0                                     2/2     Running     0          26m
itom-auth-deploy-controller-pod                      0/1     Completed   0          175d
itom-autopass-deploy-controller-pod                  0/1     Completed   0          175d
itom-bo-ats-deployment-6cf6fd7c76-mvndr              2/2     Running     0          27m
itom-bo-config-deployment-78dd6bbf88-5cxp4           2/2     Running     0          27m
itom-bo-dependency-check-pod                         0/1     Completed   0          175d
itom-bo-deploy-controller-pod                        0/1     Completed   0          175d
itom-bo-facade-deployment-74c765cd58-kb2rm           2/2     Running     0          27m
itom-bo-fo-ui-deployment-97575ff98-9jhr9             2/2     Running     0          27m
itom-bo-init-pod                                     0/1     Completed   0          175d
itom-bo-license-deployment-7b98b76944-6xx7l          2/2     Running     0          27m
itom-bo-login-deployment-847fd79fc6-kjj24            2/2     Running     0          27m
itom-bo-ui-deployment-788c7d766b-j5wv8               2/2     Running     0          27m
itom-bo-user-deployment-5d4f7c86b-4q7ns              2/2     Running     0          27m
itom-bo-user-offline-deployment-788dc6f9d9-qd57r     2/2     Running     0          27m
itom-idm-deploy-controller-pod                       0/1     Completed   0          175d
itom-ingress-deploy-controller-pod                   0/1     Completed   0          175d
itom-itsma-certificate-deploy-controller-pod         0/1     Completed   0          175d
itom-itsma-certificate-deployment-6bfb4ff445-mvhv4   2/2     Running     0          27m
itom-itsma-throttling-deploy-controller-pod          0/1     Completed   0          175d
itom-nginx-ingress-deployment-6bfd794d96-ss95v       1/1     Running     0          27m
itom-smartanalytics-deploy-controller-pod            0/1     Completed   0          175d
itom-throttling-controller-qv74b                     1/1     Running     1          175d
itom-virtual-agent-deploy-controller-pod             0/1     Completed   0          175d
itom-xruntime-deploy-controller-pod                  0/1     Completed   0          175d
itom-xruntime-gateway-7bf96fbbc-knjcw                2/2     Running     0          27m
itom-xruntime-help-center-8569dfffb9-5vjfg           1/1     Running     0          27m
itom-xruntime-infra-deploy-controller-pod            0/1     Completed   0          175d
itom-xruntime-init-infra                             0/1     Completed   0          175d
itom-xruntime-lcm                                    0/1     Completed   1          175d
itom-xruntime-mobile-gateway-77d478db76-jgddj        2/2     Running     0          27m
itom-xruntime-opb-ui-84c84865f8-trzcn                1/1     Running     0          27m
itom-xruntime-platform-55d5849b85-q5dl4              2/2     Running     0          27m
itom-xruntime-platform-offline-645564bc8b-b76mp      2/2     Running     0          26m
itom-xruntime-ppo-567c75897c-rlqxd                   2/2     Running     0          26m
itom-xruntime-redis-f7fc7f545-q7prg                  3/3     Running     0          26m
itom-xruntime-serviceportal-c9c447cd7-wxnn4          2/2     Running     0          26m
itom-xruntime-ui-8666857987-2p4tq                    1/1     Running     0          26m
itom-xruntime-xmpp-659dd6786d-xlgpc                  2/2     Running     0          26m
smarta-admin-ui-backend-64f7456bc-qvb67              1/1     Running     0          26m
smarta-data-source-7fc5f77f8d-pdlg2                  2/2     Running     0          26m
smarta-installer-5f67c4d474-pk66x                    2/2     Running     0          26m
smarta-ocr-548f48b4c-p4bg7                           2/2     Running     0          26m
smarta-saw-con-0                                     1/1     Running     0          26m
smarta-saw-dah-0                                     1/1     Running     0          26m
smarta-saw-dih-fd78d578-5v9rj                        1/1     Running     0          26m
smarta-saw-proxy-fb4c65ff8-v45zw                     1/1     Running     0          26m
smarta-sawarc-con-0                                  1/1     Running     0          26m
smarta-sawarc-dah-0                                  1/1     Running     0          26m
smarta-sawarc-dih-7bc77cb4d-r7ckp                    1/1     Running     0          26m
smarta-sawmeta-con-0                                 1/1     Running     0          26m
smarta-sawmeta-dah-0                                 1/1     Running     0          26m
smarta-sawmeta-dih-767c85d79-96mtb                   1/1     Running     0          26m
smarta-search-777f686d89-48sgg                       2/2     Running     0          26m
smarta-smart-ticket-64c4899854-k5qd4                 2/2     Running     0          26m
smarta-smart-ticket-admin-ui-6d99d8844b-nw95q        1/1     Running     0          26m
smarta-smart-ticket-task-bf87d5fb-gjb9l              2/2     Running     0          26m
smarta-stx-agent-765db5bcdc-9z5tj                    1/1     Running     0          26m
smarta-stx-category-bc86fc49f-98jcl                  1/1     Running     0          26m
smarta-stx-media-7fb74d5c6-hkrjp                     1/1     Running     0          26m






























































重启CDF

  • 在Master节点操作:

  1. 停止deployments, replication controller, statfulset, or cronjob相关POD

            $K8S_HOME/scripts/cdfctl.sh runlevel set -l DOWN


  • 在所有Worker节点操作:

$K8S_HOME/bin/kube-stop.sh
  • 在所有Master节点操作:

$K8S_HOME/bin/kube-stop.sh
  • 重启服务器(可选)

  在重启服务器上,按顺序执行

systemctl restart nfs
source $K8S_HOME/bin/env.sh && for m in $(df | grep "$RUNTIME_CDFDATA_HOME" | awk '{print $6}'); do umount -f -l $m; done
  • 在所有Master节点上同时启动Kube-proxy

 $K8S_HOME/bin/kube-start.sh
  • 在master节点上启动PODS

   $K8S_HOME/scripts/cdfctl.sh runlevel set -l UP

  • 检查POD状态

  $K8S_HOME/bin/kube-status.sh

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!