forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Reviewed-by: Rechenburg, Matthias <matthias.rechenburg@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
32 lines
4.6 KiB
HTML
32 lines
4.6 KiB
HTML
<a name="admin_guide_000005"></a><a name="admin_guide_000005"></a>
|
|
|
|
<h1 class="topictitle1">Logging In to the Management Node</h1>
|
|
<div id="body1529658735909"><div class="section" id="admin_guide_000005__s7128e8f6c7494cfeaa20079a5df01ff2"><h4 class="sectiontitle">Scenario</h4><p id="admin_guide_000005__en-us_topic_0046737080_p46032187">Some O&M operation scripts and commands need to be run or can be run only on the active management node. You can identify and log in to the active or standby management node based on the following operations.</p>
|
|
</div>
|
|
<div class="section" id="admin_guide_000005__section19247450185112"><h4 class="sectiontitle">Checking and Logging In to the Active and Standby Management Nodes</h4><ol id="admin_guide_000005__ol117619127525"><li id="admin_guide_000005__li3761412155216"><span>Log in to <span id="admin_guide_000005__text15946118176">MRS</span> Manager.</span></li><li id="admin_guide_000005__li183151116145212"><span>Choose <strong id="admin_guide_000005__b172911930121717">System</strong> > <strong id="admin_guide_000005__b492520322174">OMS</strong>.</span><p><p id="admin_guide_000005__p197254111355">In the <strong id="admin_guide_000005__b121162874112036">Basic Information</strong> area, <strong id="admin_guide_000005__b1128610141112036">Current Active</strong> indicates the host name of the active management node, and <strong id="admin_guide_000005__b644270924112036">Current Standby</strong> indicates the host name of the standby management node.</p>
|
|
<p id="admin_guide_000005__p1696203874710">Click a host name to go to the host details page. On the host details page, record the IP address of the host.</p>
|
|
</p></li><li id="admin_guide_000005__li057945965215"><span>Log in to the active or standby management node as user <strong id="admin_guide_000005__b1175333104716">root</strong>.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="admin_guide_000005__section2041437195014"><h4 class="sectiontitle">Identifying the Active and Standby Management Nodes by Running Scripts and Logging In to Them</h4><ol id="admin_guide_000005__en-us_topic_0046737080_ol37619686"><li id="admin_guide_000005__en-us_topic_0046737080_li3032859"><span>Log in to any node where <span id="admin_guide_000005__text4146940132310">MRS</span> Manager is installed as user <strong id="admin_guide_000005__b12862417114912">root</strong>.</span></li><li id="admin_guide_000005__en-us_topic_0046737080_li27295738"><span>Run the following command to identify the active and standby management nodes:</span><p><p id="admin_guide_000005__p154162032192111"><strong id="admin_guide_000005__b1984664117213">su - omm</strong></p>
|
|
<p id="admin_guide_000005__en-us_topic_0046737080_p44335050"><strong id="admin_guide_000005__b4671446311348">sh ${BIGDATA_HOME}/om-server/om/sbin/status-oms.sh</strong></p>
|
|
<p id="admin_guide_000005__en-us_topic_0046737080_p34369293">In the command output, the node whose <strong id="admin_guide_000005__b10659114675120">HAActive</strong> is <strong id="admin_guide_000005__b133681051145114">active</strong> is the active management node (Master1), and the node whose <strong id="admin_guide_000005__b124713485214">HAActive</strong> is <strong id="admin_guide_000005__b147231811205210">standby</strong> is the standby node (Master2).</p>
|
|
<pre class="screen" id="admin_guide_000005__sa5c2163684934b85b897bbfd9b95c328">HAMode
|
|
double
|
|
NodeName HostName HAVersion StartTime HAActive HAAllResOK HARunPhase
|
|
192-168-0-30 Master1 V100R001C01 2021-09-01 07:12:05 active normal Actived
|
|
192-168-0-24 Master2 V100R001C01 2021-09-01 07:14:02 standby normal Deactived </pre>
|
|
</p></li><li id="admin_guide_000005__li8851133123215"><span>Run the following command to obtain the IP addresses of the active and standby management nodes:</span><p><p id="admin_guide_000005__p1945516812323"><strong id="admin_guide_000005__b1076142116320">cat /etc/hosts</strong></p>
|
|
<p id="admin_guide_000005__p19811133215">Example IP addresses of the active and standby management nodes:</p>
|
|
<pre class="screen" id="admin_guide_000005__screen186863433211">127.0.0.1 localhost
|
|
192.168.0.30 Master1
|
|
192.168.0.24 Master2</pre>
|
|
</p></li><li id="admin_guide_000005__en-us_topic_0046737080_li32449357"><span>Log in to the active or standby management node as user <strong id="admin_guide_000005__b1124119319532">root</strong>.</span></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="admin_guide_000001.html">Getting Started</a></div>
|
|
</div>
|
|
</div>
|
|
|