Files
doc-exports/docs/mrs/umn/admin_guide_000122.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
10 KiB
HTML

<a name="admin_guide_000122"></a><a name="admin_guide_000122"></a>
<h1 class="topictitle1">Managing Tenant Directories</h1>
<div id="body1529658735914"><div class="section" id="admin_guide_000122__s716003bb96344ef4a40afc8fa0b464d3"><h4 class="sectiontitle">Scenario</h4><p id="admin_guide_000122__a8b9bd673b87f46f78b0a706fc6882250">You can manage the HDFS storage directories used by specified tenants based on service requirements on <span id="admin_guide_000122__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_000122__sabfbd5e96e70477e9d0da2e82d09ec52"><h4 class="sectiontitle">Prerequisites</h4><p id="admin_guide_000122__p016834242620">A tenant with HDFS storage resources has been added.</p>
</div>
<div class="section" id="admin_guide_000122__section1851010596261"><h4 class="sectiontitle">Viewing a Tenant Directory</h4><ol id="admin_guide_000122__o2d228b36bf8c41ddb833ace782335baa"><li id="admin_guide_000122__lc1e0e8a98d6c4f059cb4203e4d0f4f89"><span>On <span id="admin_guide_000122__text12669141974814">MRS</span> Manager, choose <strong id="admin_guide_000122__b129514514419">Tenant Resources</strong>.</span></li><li id="admin_guide_000122__l221b85adea07470ca708fea623ecce06"><span>In the tenant list on the left, click the target tenant.</span></li><li id="admin_guide_000122__l91a72cda6a3c4f409dc1474679b410d7"><span>Click the <strong id="admin_guide_000122__b158929494415">Resource</strong> tab.</span></li><li id="admin_guide_000122__l1e9b58e475184bd38b40348ab683ab7f"><span>View the <strong id="admin_guide_000122__b1376155114419">HDFS Storage</strong> table.</span><p><ul id="admin_guide_000122__u807417d804c445b6b3725e015ffe3ba5"><li id="admin_guide_000122__la4d8697ea64244ce9c38f33550b940e8">The <strong id="admin_guide_000122__b3223195854115">File Number Threshold</strong> column provides the quota for files and directories of the tenant directory.</li><li id="admin_guide_000122__la7beb6325d1e4d1db38b70cb00bc32e7">The <strong id="admin_guide_000122__b137033012427">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_000122__section1244418362273"><h4 class="sectiontitle">Adding a Tenant Directory</h4><ol id="admin_guide_000122__o4e870a46e84444f495559604644c1689"><li id="admin_guide_000122__l8621fc21c1ac4c4abcf25baf7b653010"><span>On <span id="admin_guide_000122__text106791221144817">MRS</span> Manager, choose <strong id="admin_guide_000122__b630520594219">Tenant Resources</strong>.</span></li><li id="admin_guide_000122__l211c0808677d4f87a9b73f7f856980ce"><span>In the tenant list on the left, click the target tenant.</span></li><li id="admin_guide_000122__l87fbcfefd0f5439ea700004764ad69b5"><span>Click the <strong id="admin_guide_000122__b7954104425">Resource</strong> tab.</span></li><li id="admin_guide_000122__l24d2c44ae3fe4174a39f7471176d2424"><span>In the <strong id="admin_guide_000122__b181301122426">HDFS Storage</strong> area, click <strong id="admin_guide_000122__b111311121429">Create Directory</strong>.</span><p><ul id="admin_guide_000122__ua777ae02823a46ae9131494225c09fde"><li id="admin_guide_000122__li9692103743516"><strong id="admin_guide_000122__b169817538911">Parent Directory</strong>: indicates the storage directory used by the parent tenant of the current tenant.<div class="note" id="admin_guide_000122__note14690837133511"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="admin_guide_000122__p1269073718355">This parameter is not displayed if the current tenant is not a sub-tenant.</p>
</div></div>
</li><li id="admin_guide_000122__li1377347113713">Set <strong id="admin_guide_000122__b848713201018">Path</strong> to a tenant directory path.<div class="note" id="admin_guide_000122__note117494743719"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="admin_guide_000122__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_000122__lc5ec7f7f9faa4f28a799a3599678f6d1">Set <strong id="admin_guide_000122__b196160761018">Quota</strong> to the quota for files and directories.</li><li id="admin_guide_000122__li37451421105715"><strong id="admin_guide_000122__b194656144109">File Number Threshold (%)</strong> is valid only when <strong id="admin_guide_000122__b1147171417101">Quota</strong> is set. If the ratio of the number of used files to the value of <strong id="admin_guide_000122__b1645192911103">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_000122__note17978185883919"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="admin_guide_000122__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_000122__l0e064c838b22400ba8196fc3d375fc28">Set <strong id="admin_guide_000122__b12640124981020">Space Quota</strong> to the storage space size of the tenant directory.</li><li id="admin_guide_000122__li18729737115711">If the ratio of used storage space to the value of <strong id="admin_guide_000122__b106716522102">Space Quota</strong> exceeds the <strong id="admin_guide_000122__b18671252121013">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_000122__note9307194304113"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="admin_guide_000122__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_000122__leff66ee13a16408092dc1175da490b5c"><span>Click <strong id="admin_guide_000122__b145551358161013">OK</strong>.</span></li></ol>
</div>
<div class="section" id="admin_guide_000122__section5256111033018"><h4 class="sectiontitle">Modifying a Tenant Directory</h4><ol id="admin_guide_000122__oca710902fd5b4c6891de518f02aebc9e"><li id="admin_guide_000122__l04667ab87d124273b6b5434d9dc24a12"><span>On <span id="admin_guide_000122__text16409142324817">MRS</span> Manager, choose <strong id="admin_guide_000122__b461118381110">Tenant Resources</strong>.</span></li><li id="admin_guide_000122__l6cb07a672fb642fdb07dc48c01796a29"><span>In the tenant list on the left, click the target tenant.</span></li><li id="admin_guide_000122__l66d873daaffb43a3b9980a7d955d3f38"><span>Click the <strong id="admin_guide_000122__b187863611112">Resource</strong> tab.</span></li><li id="admin_guide_000122__l78977f73fec849808691396207592023"><span>In the <strong id="admin_guide_000122__b694168181118">HDFS Storage</strong> table, click <strong id="admin_guide_000122__b2094128141113">Modify</strong> in the <strong id="admin_guide_000122__b1694217818116">Operation</strong> column of the specified tenant directory.</span><p><ul id="admin_guide_000122__u6363cad9fdd84209bc05d3c379d77d27"><li id="admin_guide_000122__le635b7392f9d47fdb71e02327d842654">Set <strong id="admin_guide_000122__b1910617137111">Quota</strong> to the quota for files and directories.</li><li id="admin_guide_000122__li1557321111417"><strong id="admin_guide_000122__b1615911571112">File Number Threshold (%)</strong> is valid only when <strong id="admin_guide_000122__b71595158111">Quota</strong> is set. If the ratio of the number of used files to the value of <strong id="admin_guide_000122__b2768121681114">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_000122__lb4c092b65c4149d880b0868b49fccfe2">Set <strong id="admin_guide_000122__b15519112311119">Space Quota</strong> to the storage space size of the tenant directory.</li><li id="admin_guide_000122__li0181153382110">If the ratio of used storage space to the value of <strong id="admin_guide_000122__b1627942512114">Space Quota</strong> exceeds the <strong id="admin_guide_000122__b162801625101118">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_000122__l455d477a2bdd4da697a7e790551fa231"><span>Click <strong id="admin_guide_000122__b6914112881112">OK</strong>.</span></li></ol>
</div>
<div class="section" id="admin_guide_000122__section9874163511307"><h4 class="sectiontitle">Deleting a Tenant Directory</h4><ol id="admin_guide_000122__o8264689649bb4cd1af561e5443a4feef"><li id="admin_guide_000122__l3e3ef1d707c04b2da9b786e058084e43"><span>On <span id="admin_guide_000122__text1428814259485">MRS</span> Manager, choose <strong id="admin_guide_000122__b256733218118">Tenant Resources</strong>.</span></li><li id="admin_guide_000122__ldc923b3f5de444dfaa7c81330ee258e6"><span>In the tenant list on the left, click the target tenant.</span></li><li id="admin_guide_000122__l2cbd8718378c48f9b47fd2d429a83895"><span>Click the <strong id="admin_guide_000122__b945233101220">Resource</strong> tab.</span></li><li id="admin_guide_000122__ld3d43baf3e694f95a1a927bd7074612c"><span>In the <strong id="admin_guide_000122__b37995339128">HDFS Storage</strong> table, click <strong id="admin_guide_000122__b9800233191210">Delete</strong> in the <strong id="admin_guide_000122__b18001933131217">Operation</strong> column of the specified tenant directory.</span><p><div class="note" id="admin_guide_000122__note156219561149"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="admin_guide_000122__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_000122__l177f534ec2214386ae06059b9658f9c9"><span>Click <strong id="admin_guide_000122__b1159911462129">OK</strong>.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="admin_guide_000121.html">Managing Tenants</a></div>
</div>
</div>