Files
doc-exports/docs/mrs/umn/admin_guide_000105.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

36 lines
12 KiB
HTML

<a name="admin_guide_000105"></a><a name="admin_guide_000105"></a>
<h1 class="topictitle1">Managing Tenant Directories</h1>
<div id="body8662426"><div class="section" id="admin_guide_000105__en-us_topic_0193195928_s716003bb96344ef4a40afc8fa0b464d3"><h4 class="sectiontitle">Scenario</h4><p id="admin_guide_000105__en-us_topic_0193195928_a8b9bd673b87f46f78b0a706fc6882250">You can manage the HDFS storage directories used by specified tenants based on service requirements on <span id="admin_guide_000105__text15946118176">MRS</span> Manager, such as adding tenant directories, changing the quotas for directories and files and for storage space, and deleting directories.</p>
</div>
<div class="section" id="admin_guide_000105__en-us_topic_0193195928_sabfbd5e96e70477e9d0da2e82d09ec52"><h4 class="sectiontitle">Prerequisites</h4><p id="admin_guide_000105__en-us_topic_0193195928_p016834242620">A tenant with HDFS storage resources has been added.</p>
</div>
<div class="section" id="admin_guide_000105__en-us_topic_0193195928_section1851010596261"><h4 class="sectiontitle">Viewing a Tenant Directory</h4><ol id="admin_guide_000105__en-us_topic_0193195928_o2d228b36bf8c41ddb833ace782335baa"><li id="admin_guide_000105__en-us_topic_0193195928_lc1e0e8a98d6c4f059cb4203e4d0f4f89"><span>Log in to <span id="admin_guide_000105__text1272195619469">MRS</span> Manager and choose <strong id="admin_guide_000105__b4114102816313">Tenant Resources</strong>.</span></li><li id="admin_guide_000105__en-us_topic_0193195928_l221b85adea07470ca708fea623ecce06"><span>In the tenant list on the left, click the target tenant.</span></li><li id="admin_guide_000105__en-us_topic_0193195928_l91a72cda6a3c4f409dc1474679b410d7"><span>Click the <strong id="admin_guide_000105__b363028882114127">Resource</strong> tab.</span></li><li id="admin_guide_000105__en-us_topic_0193195928_l1e9b58e475184bd38b40348ab683ab7f"><span>View the <strong id="admin_guide_000105__b1706413738114127">HDFS Storage</strong> table.</span><p><ul id="admin_guide_000105__en-us_topic_0193195928_u807417d804c445b6b3725e015ffe3ba5"><li id="admin_guide_000105__en-us_topic_0193195928_la4d8697ea64244ce9c38f33550b940e8">The <strong id="admin_guide_000105__b8177745944">File Number Threshold</strong> column provides the quota for files and directories of the tenant directory.</li><li id="admin_guide_000105__en-us_topic_0193195928_la7beb6325d1e4d1db38b70cb00bc32e7">The <strong id="admin_guide_000105__b2080082389114127">Space Quota</strong> column provides the storage space size of the tenant directory.</li></ul>
</p></li></ol>
</div>
<div class="section" id="admin_guide_000105__en-us_topic_0193195928_section1244418362273"><h4 class="sectiontitle">Adding a Tenant Directory</h4><ol id="admin_guide_000105__en-us_topic_0193195928_o4e870a46e84444f495559604644c1689"><li id="admin_guide_000105__en-us_topic_0193195928_l8621fc21c1ac4c4abcf25baf7b653010"><span>On <span id="admin_guide_000105__text24357584462">MRS</span> Manager, choose <strong id="admin_guide_000105__b1348610422165">Tenant Resources</strong>.</span></li><li id="admin_guide_000105__en-us_topic_0193195928_l211c0808677d4f87a9b73f7f856980ce"><span>In the tenant list on the left, click the target tenant.</span></li><li id="admin_guide_000105__en-us_topic_0193195928_l87fbcfefd0f5439ea700004764ad69b5"><span>Click the <strong id="admin_guide_000105__b484811951711">Resource</strong> tab.</span></li><li id="admin_guide_000105__en-us_topic_0193195928_l24d2c44ae3fe4174a39f7471176d2424"><span>In the <strong id="admin_guide_000105__b1137531635114127">HDFS Storage</strong> area, click <strong id="admin_guide_000105__b745240694114127">Create Directory</strong>.</span><p><ul id="admin_guide_000105__en-us_topic_0193195928_ua777ae02823a46ae9131494225c09fde"><li id="admin_guide_000105__en-us_topic_0193195928_li9692103743516"><strong id="admin_guide_000105__b1930154141914">Parent Directory</strong>: indicates the storage directory used by the parent tenant of the current tenant.<div class="note" id="admin_guide_000105__en-us_topic_0193195928_note14690837133511"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="admin_guide_000105__en-us_topic_0193195928_p1269073718355">This parameter is not displayed if the current tenant is not a sub-tenant.</p>
</div></div>
</li><li id="admin_guide_000105__en-us_topic_0193195928_li1377347113713">Set <strong id="admin_guide_000105__b175815833114127">Path</strong> to a tenant directory path.<div class="note" id="admin_guide_000105__en-us_topic_0193195928_note117494743719"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="admin_guide_000105__en-us_topic_0193195928_p127524753715">If the current tenant is not a sub-tenant, the new path is created in the HDFS root directory.</p>
</div></div>
</li><li id="admin_guide_000105__en-us_topic_0193195928_lc5ec7f7f9faa4f28a799a3599678f6d1">Set <strong id="admin_guide_000105__b1204493957114127">Quota</strong> to the quota for files and directories.</li><li id="admin_guide_000105__en-us_topic_0193195928_li37451421105715"><strong id="admin_guide_000105__b8792519242">File Number Threshold (%)</strong> is valid only when <strong id="admin_guide_000105__b52892100258">Quota</strong> is set. If the ratio of the number of used files to the value of <strong id="admin_guide_000105__b177081046163615">Quota</strong> exceeds the value of this parameter, an alarm is generated. If this parameter is not specified, no alarm is reported in this scenario.<div class="note" id="admin_guide_000105__en-us_topic_0193195928_note17978185883919"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="admin_guide_000105__en-us_topic_0193195928_p197925813913">The number of used files is collected every hour. Therefore, the alarm indicating that the ratio of used files exceeds the threshold is delayed.</p>
</div></div>
</li><li id="admin_guide_000105__en-us_topic_0193195928_l0e064c838b22400ba8196fc3d375fc28">Set <strong id="admin_guide_000105__b102251346406">Space Quota</strong> to the storage space size of the tenant directory.</li><li id="admin_guide_000105__en-us_topic_0193195928_li18729737115711">If the ratio of used storage space to the value of <strong id="admin_guide_000105__b89432011426">Space Quota</strong> exceeds the <strong id="admin_guide_000105__b5793161184118">Storage Space Threshold (%)</strong> value, an alarm is generated. If this parameter is not specified, no alarm is reported in this scenario.<div class="note" id="admin_guide_000105__en-us_topic_0193195928_note9307194304113"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="admin_guide_000105__en-us_topic_0193195928_p173075438413">The used storage space is collected every hour. Therefore, the alarm indicating that the ratio of used storage space exceeds the threshold is delayed.</p>
</div></div>
</li></ul>
</p></li><li id="admin_guide_000105__en-us_topic_0193195928_leff66ee13a16408092dc1175da490b5c"><span>Click <strong id="admin_guide_000105__b494147573114127">OK</strong>.</span></li></ol>
</div>
<div class="section" id="admin_guide_000105__en-us_topic_0193195928_section5256111033018"><h4 class="sectiontitle">Modifying a Tenant Directory</h4><ol id="admin_guide_000105__en-us_topic_0193195928_oca710902fd5b4c6891de518f02aebc9e"><li id="admin_guide_000105__en-us_topic_0193195928_l04667ab87d124273b6b5434d9dc24a12"><span>On <span id="admin_guide_000105__text125519034719">MRS</span> Manager, choose <strong id="admin_guide_000105__b117251223184312">Tenant Resources</strong>.</span></li><li id="admin_guide_000105__en-us_topic_0193195928_l6cb07a672fb642fdb07dc48c01796a29"><span>In the tenant list on the left, click the target tenant.</span></li><li id="admin_guide_000105__en-us_topic_0193195928_l66d873daaffb43a3b9980a7d955d3f38"><span>Click the <strong id="admin_guide_000105__b5135163074312">Resource</strong> tab.</span></li><li id="admin_guide_000105__en-us_topic_0193195928_l78977f73fec849808691396207592023"><span>In the <strong id="admin_guide_000105__b1125354597114127">HDFS Storage</strong> table, click <strong id="admin_guide_000105__b1409459164316">Modify</strong> in the <strong id="admin_guide_000105__b662055457114127">Operation</strong> column of the specified tenant directory.</span><p><ul id="admin_guide_000105__en-us_topic_0193195928_u6363cad9fdd84209bc05d3c379d77d27"><li id="admin_guide_000105__en-us_topic_0193195928_le635b7392f9d47fdb71e02327d842654">Set <strong id="admin_guide_000105__b1825344615">Quota</strong> to the quota for files and directories.</li><li id="admin_guide_000105__en-us_topic_0193195928_li1557321111417"><strong id="admin_guide_000105__b590436124610">File Number Threshold (%)</strong> is valid only when <strong id="admin_guide_000105__b18905146174617">Quota</strong> is set. If the ratio of the number of used files to the value of <strong id="admin_guide_000105__b19547171318467">Quota</strong> exceeds the value of this parameter, an alarm is generated. If this parameter is not specified, no alarm is reported in this scenario.</li><li id="admin_guide_000105__en-us_topic_0193195928_lb4c092b65c4149d880b0868b49fccfe2">Set <strong id="admin_guide_000105__b8399629174613">Space Quota</strong> to the storage space size of the tenant directory.</li><li id="admin_guide_000105__en-us_topic_0193195928_li0181153382110">If the ratio of used storage space to the value of <strong id="admin_guide_000105__b411811508461">Space Quota</strong> exceeds the <strong id="admin_guide_000105__b61181950164612">Storage Space Threshold (%)</strong> value, an alarm is generated. If this parameter is not specified, no alarm is reported in this scenario.</li></ul>
</p></li><li id="admin_guide_000105__en-us_topic_0193195928_l455d477a2bdd4da697a7e790551fa231"><span>Click <strong id="admin_guide_000105__b708410364114127">OK</strong>.</span></li></ol>
</div>
<div class="section" id="admin_guide_000105__en-us_topic_0193195928_section9874163511307"><h4 class="sectiontitle">Deleting a Tenant Directory</h4><ol id="admin_guide_000105__en-us_topic_0193195928_o8264689649bb4cd1af561e5443a4feef"><li id="admin_guide_000105__en-us_topic_0193195928_l3e3ef1d707c04b2da9b786e058084e43"><span>On <span id="admin_guide_000105__text199643114476">MRS</span> Manager, choose <strong id="admin_guide_000105__b87151545477">Tenant Resources</strong>.</span></li><li id="admin_guide_000105__en-us_topic_0193195928_ldc923b3f5de444dfaa7c81330ee258e6"><span>In the tenant list on the left, click the target tenant.</span></li><li id="admin_guide_000105__en-us_topic_0193195928_l2cbd8718378c48f9b47fd2d429a83895"><span>Click the <strong id="admin_guide_000105__b59281583473">Resource</strong> tab.</span></li><li id="admin_guide_000105__en-us_topic_0193195928_ld3d43baf3e694f95a1a927bd7074612c"><span>In the <strong id="admin_guide_000105__b192481217104718">HDFS Storage</strong> table, click <strong id="admin_guide_000105__b10255141714715">Delete</strong> in the <strong id="admin_guide_000105__b142551317164713">Operation</strong> column of the specified tenant directory.</span><p><div class="note" id="admin_guide_000105__en-us_topic_0193195928_note156219561149"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="admin_guide_000105__en-us_topic_0193195928_p1356235641411">The tenant directory that is created by the system during tenant creation cannot be deleted.</p>
</div></div>
</p></li><li id="admin_guide_000105__en-us_topic_0193195928_l177f534ec2214386ae06059b9658f9c9"><span>Click <strong id="admin_guide_000105__b1547385861114127">OK</strong>.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="admin_guide_000104.html">Managing Tenants</a></div>
</div>
</div>