{"id":3349,"date":"2014-07-08T20:37:49","date_gmt":"2014-07-08T12:37:49","guid":{"rendered":"http:\/\/rmohan.com\/?p=3349"},"modified":"2014-07-08T20:38:10","modified_gmt":"2014-07-08T12:38:10","slug":"linux-cluster-commands","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=3349","title":{"rendered":"Linux cluster commands"},"content":{"rendered":"<p>Linux cluster commands<\/p>\n<p>Checking status of the cluster:<br \/>\n# clustat<br \/>\n# clustat -m Display status of and exit<br \/>\n# clustat -s Display status of and exit<br \/>\n# clustat -l Use long format for services<\/p>\n<p># cman_tool status Show local record of cluster status<br \/>\n# cman_tool nodes Show local record of cluster nodes<br \/>\n# cman_tool nodes -af<\/p>\n<p># ccs_tool lsnode List nodes<br \/>\n# ccs_tool lsfence List fence devices<\/p>\n<p># group_tool displays the status of fence, dlm and gfs groups<br \/>\n# group_tool ls displays the list of groups and their membership<\/p>\n<p>Resource Group Control Commands:<br \/>\nclusvcadm -d Disable<br \/>\nclusvcadm -e Enable<br \/>\nclusvcadm -e -F Enable according to failover domain rules<br \/>\nclusvcadm -e -m Enable on<br \/>\nclusvcadm -r -m Relocate to member&gt;<br \/>\nclusvcadm -R Restart a group in place.<br \/>\nclusvcadm -s Stop<\/p>\n<p>Resource Group Locking (for cluster Shutdown \/ Debugging):<br \/>\nclusvcadm -l Lock local resource group manager.<br \/>\nThis prevents resource groups from<br \/>\nstarting on the local node.<br \/>\nclusvcadm -S Show lock state<br \/>\nclusvcadm -Z Freeze group in place<br \/>\nclusvcadm -U Unfreeze\/thaw group<\/p>\n<p>clusvcadm -u Unlock local resource group manager.<br \/>\nThis allows resource groups to start on the local node.<\/p>\n<p>clusvcadm -c Convalesce (repair, fix) resource group.<br \/>\nAttempts to start failed, non-critical resources within a resource group.<br \/>\n###################################################################################################<br \/>\nCluster Command Quick Reference<\/p>\n<p>1)Cluster status<br \/>\nclustat Display the status of the cluster as viewed from the executing host<\/p>\n<p>2)Cluster services administration<br \/>\nclusvcadm Manage services across the cluster.<\/p>\n<p>3)Move a service to another node<br \/>\nclusvcadm \u2013r -m<\/p>\n<p>4)Stop a service<br \/>\nclusvcadm \u2013d<\/p>\n<p>5)Start a service<br \/>\nclusvcadm \u2013e<\/p>\n<p>6)Cluster configuration system<br \/>\nccs_tool Online management of cluster configuration<\/p>\n<p>7)Update the cluster.conf file across the cluster<br \/>\nccs_tool update \/etc\/cluster\/cluster.conf<br \/>\n8)Cluster Management<br \/>\ncman_tool Manage cluster nodes and display the current state of the cluster<\/p>\n<p>9)Display status<br \/>\ncman_tool status<\/p>\n<p>10)Fencing tools<\/p>\n<p>11)Eject a node from the cluster<br \/>\nfence_node<\/p>\n<p>12)Print fence debug messages<br \/>\nfence_tool dump<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux cluster commands<\/p>\n<p>Checking status of the cluster: # clustat # clustat -m Display status of and exit # clustat -s Display status of and exit # clustat -l Use long format for services<\/p>\n<p># cman_tool status Show local record of cluster status # cman_tool nodes Show local record of cluster nodes # cman_tool nodes [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4,17],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3349"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3349"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3349\/revisions"}],"predecessor-version":[{"id":3350,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3349\/revisions\/3350"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3349"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}