doc-exports/docs/mrs/umn/admin_guide_000279.html
Yang, Tong 2195db241c MRS UMN 20231220 version update
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>
2024-05-16 09:40:21 +00:00

33 lines
6.1 KiB
HTML

<a name="admin_guide_000279"></a><a name="admin_guide_000279"></a>
<h1 class="topictitle1">Updating a Key for a Cluster</h1>
<div id="body1530067732197"><div class="section" id="admin_guide_000279__s7dfc54c5c8d84d4a91337db4882ba9d1"><h4 class="sectiontitle">Scenario</h4><p id="admin_guide_000279__en-us_topic_0046736709_p22732954">When a cluster is installed, an encryption key is generated automatically by the system so that the security information in the cluster (such as all database user passwords and key file access passwords) can be stored in encryption mode. After the cluster is installed, if the original key is accidentally disclosed or a new key is required, you can manually update the key.</p>
</div>
<div class="section" id="admin_guide_000279__s637616b86e2a4708b4038adf0a17edb5"><h4 class="sectiontitle">Impact on the System</h4><ul id="admin_guide_000279__en-us_topic_0046736709_ul29429992"><li id="admin_guide_000279__en-us_topic_0046736709_li63543344">After a cluster key is updated, a new key is generated randomly in the cluster. This key is used to encrypt and decrypt the newly stored data. The old key is not deleted, and it is used to decrypt data encrypted using the old key. After security information is modified, for example, a database user password is changed, the new password is encrypted using the new key.</li><li id="admin_guide_000279__en-us_topic_0046736709_li35019191">When a key is updated for a cluster, the cluster must be stopped and cannot be accessed.</li></ul>
</div>
<div class="section" id="admin_guide_000279__sc471d82ce1aa4109b4252b234409f67f"><h4 class="sectiontitle">Prerequisites</h4><ul id="admin_guide_000279__en-us_topic_0046736709_ul17982255"><li id="admin_guide_000279__en-us_topic_0046736709_li27622569">You have obtained the IP addresses of the active and standby management nodes. For details, see <a href="admin_guide_000005.html">Logging In to the Management Node</a>.</li><li id="admin_guide_000279__en-us_topic_0046736709_li22835632">You have stopped the upper-layer service applications that depend on the cluster.</li></ul>
</div>
<div class="section" id="admin_guide_000279__s6cfb7445430f451cb001a63856eb0c0a"><h4 class="sectiontitle">Procedure</h4><ol id="admin_guide_000279__en-us_topic_0046736709_ol37746932"><li id="admin_guide_000279__en-us_topic_0046736709_li4178072"><span>Log in to <span id="admin_guide_000279__text67509419010">MRS</span> Manager.</span></li><li id="admin_guide_000279__en-us_topic_0046736709_li2879553"><span>Choose <strong id="admin_guide_000279__b1743597657115320">Cluster</strong> &gt; <em id="admin_guide_000279__i85511041115">Name of the desired cluster</em> and click <strong id="admin_guide_000279__b309827415115320">Stop</strong>. In the dialog box that is displayed, enter the password of the current user</span><p><p id="admin_guide_000279__en-us_topic_0046736709_p25915985">and click <strong id="admin_guide_000279__b1882393687115320">OK</strong>. Wait for a while until a message indicating that the operation is successful is displayed.</p>
</p></li><li id="admin_guide_000279__en-us_topic_0046736709_li31917275"><span>Log in to the active management node as user <strong id="admin_guide_000279__b19909161920198">omm</strong>.</span></li><li id="admin_guide_000279__en-us_topic_0046736709_li18820026"><span>Run the following command to disable logout upon timeout:</span><p><p id="admin_guide_000279__en-us_topic_0046736709_p35162510"><strong id="admin_guide_000279__en-us_topic_0046736709_b48027136">TMOUT=0</strong></p>
<div class="note" id="admin_guide_000279__note12497171716409"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="admin_guide_000279__p1614684417440">After the operations in this section are complete, run the <strong id="admin_guide_000279__b1256613426199">TMOUT=</strong><em id="admin_guide_000279__i195672428199">Timeout interval</em> command to restore the timeout interval in a timely manner. For example, <strong id="admin_guide_000279__b234655841913">TMOUT=600</strong> indicates that a user is logged out if the user does not perform any operation within 600 seconds.</p>
</div></div>
</p></li><li id="admin_guide_000279__en-us_topic_0046736709_li29591041"><span>Run the following command to go to the related directory:</span><p><p id="admin_guide_000279__en-us_topic_0046736709_p64992778"><strong id="admin_guide_000279__b42829902112529">cd ${BIGDATA_HOME}/om-server/om/tools</strong></p>
</p></li><li id="admin_guide_000279__en-us_topic_0046736709_li29923648"><span>Run the following command to update the cluster key:</span><p><p id="admin_guide_000279__en-us_topic_0046736709_p877384"><strong id="admin_guide_000279__b12415929172928">sh updateRootKey.sh</strong></p>
<p id="admin_guide_000279__en-us_topic_0046736709_p3959276">Enter <strong id="admin_guide_000279__en-us_topic_0046736709_b35633491">y</strong> as prompted.</p>
<pre class="screen" id="admin_guide_000279__s2c7c4d88366c42ccac227e0521cc1834">The root key update is a critical operation.
Do you want to continue?(y/n): </pre>
<p id="admin_guide_000279__en-us_topic_0046736709_p631679">If the following information is displayed, the key is updated successfully.</p>
<pre class="screen" id="admin_guide_000279__en-us_topic_0046736709_screen5685119">Step 4-1: The key save path is obtained successfully.
...
Step 4-4: The root key is sent successfully. </pre>
</p></li><li id="admin_guide_000279__en-us_topic_0046736709_li51166072"><span>On <span id="admin_guide_000279__text12173102192516">MRS</span> Manager, click <strong id="admin_guide_000279__b262919167115320">Cluster</strong>, click the name of the desired cluster, and click <strong id="admin_guide_000279__b1712625255115320">Start</strong>.</span><p><p id="admin_guide_000279__en-us_topic_0046736709_p57841469">In the displayed dialog box, click <strong id="admin_guide_000279__b730981837115320">OK</strong>. Wait until a message is displayed, indicating that the startup is successful.</p>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="admin_guide_000271.html">Security Hardening</a></div>
</div>
</div>