doc-exports/docs/evs/umn/evs_faq_0082.html
zhangyue d05287d5d6 EVS UMN DOC
Reviewed-by: Miskanin, Jan <jan.miskanin@t-systems.com>
Co-authored-by: zhangyue <zhangyue164@huawei.com>
Co-committed-by: zhangyue <zhangyue164@huawei.com>
2024-05-09 07:19:17 +00:00

46 lines
6.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<a name="evs_faq_0082"></a><a name="evs_faq_0082"></a>
<h1 class="topictitle1">How Do I Extend the Root Partition of a Quickly Provisioned <span id="text14214843193113">BMS</span>?</h1>
<div id="body0000001130782573"><div class="section" id="evs_faq_0082__section151239189336"><h4 class="sectiontitle">Scenarios</h4><p id="evs_faq_0082__p84218254337">If the root partition of your quickly provisioned <span id="evs_faq_0082__text3647455113111">BMS</span> is too small, extend the root partition by referring to the following procedure.</p>
<p id="evs_faq_0082__p1290042818010">This example uses CentOS 7.3 and system disk, <strong id="evs_faq_0082__b14124154020235">/dev/sdf</strong>. The way you allocate additional space depends on the OS. This example is used for reference only. For detailed operations and differences, see the corresponding OS documentations.</p>
<p id="evs_faq_0082__p17737151541">In this example, the initial size of the <span id="evs_faq_0082__text147851214323">BMS</span> system disk (<strong id="evs_faq_0082__b1130617319505">sdf</strong>) is 40 GiB and needs to be expanded to 140 GiB. The initial disk partitions are as follows:</p>
<p id="evs_faq_0082__p72442289213"><span><img id="evs_faq_0082__image724419284212" src="en-us_image_0000001083722314.png"></span></p>
</div>
<div class="section" id="evs_faq_0082__section203761345173319"><h4 class="sectiontitle">Procedure</h4><ol id="evs_faq_0082__ol113775953318"><li id="evs_faq_0082__li237959183310"><span>Log in to the EVS console and expand the system disk capacity to 140 GiB.</span></li><li id="evs_faq_0082__li61108546519"><span>Log in to the <span id="evs_faq_0082__text61616113323">BMS</span> and run the following command to view the system disk capacity:</span><p><p id="evs_faq_0082__p11725312193417"><strong id="evs_faq_0082__b74351326162010">lsblk</strong></p>
<p id="evs_faq_0082__p876212391617">Information similar to the following is displayed:</p>
<p id="evs_faq_0082__p8413151393513"><span><img id="evs_faq_0082__image741341319357" src="en-us_image_0000001130646285.png"></span></p>
<p id="evs_faq_0082__p15196154113519">The system disk (<strong id="evs_faq_0082__b591215211503">sdf</strong>) has been expanded from 40 GiB to 140 GiB. The <strong id="evs_faq_0082__b8772201682916">sdf4</strong> partition (64 MiB) is the configdriver partition that stores the <span id="evs_faq_0082__text2072581663215">BMS</span> configuration information.</p>
</p></li><li id="evs_faq_0082__li34221235411"><span>Run the following command to back up the configdriver partition:</span><p><p id="evs_faq_0082__p10369152633714"><strong id="evs_faq_0082__b1029811315375">dd if=/dev/sdf4 of=/root/configdriver.img</strong></p>
<p id="evs_faq_0082__p10117102512371">Information similar to the following is displayed:</p>
<p id="evs_faq_0082__p331112143714"><span><img id="evs_faq_0082__image19310172183715" src="en-us_image_0000001130785213.png"></span></p>
</p></li><li id="evs_faq_0082__li1052385793713"><span>Run the following command and delete the configdriver partition:</span><p><p id="evs_faq_0082__p9670412103810"><strong id="evs_faq_0082__b11220201016385">fdisk /dev/sdf</strong></p>
<p id="evs_faq_0082__p61821849123816"><span><img id="evs_faq_0082__image16181949203813" src="en-us_image_0000001130508073.png"></span></p>
</p></li><li id="evs_faq_0082__li211317117406"><span>Run the <strong id="evs_faq_0082__b1111411194010">partprobe</strong> command to update the partition information.</span><p><p id="evs_faq_0082__p153811426409">If partition configdriver has been deleted, information similar to the following is displayed:</p>
<p id="evs_faq_0082__p71381774016"><span><img id="evs_faq_0082__image91301720401" src="en-us_image_0000001083680596.png"></span></p>
</p></li><li id="evs_faq_0082__li174846134440"><span>Recreate the configdriver partition with 100 MB.</span><p><p id="evs_faq_0082__p1948661317442">If the available sectors range from 83755008 to 293601279, set 293401279 (293601279 200000) as the new partition's start sector and 293601279 (default value) as the end sector.</p>
<p id="evs_faq_0082__p19671154912529"><span><img id="evs_faq_0082__image967124916527" src="en-us_image_0000001083835006.png"></span></p>
<p id="evs_faq_0082__p11581763534">Run the <strong id="evs_faq_0082__b14715129105214">partprobe</strong> command to update the partition information.</p>
<p id="evs_faq_0082__p1499131918532"><span><img id="evs_faq_0082__image179913198539" src="en-us_image_0000001130811405.png"></span></p>
</p></li><li id="evs_faq_0082__li1449917568536"><span>Run the following command to extend the root partition:</span><p><p id="evs_faq_0082__p5502185625313"><strong id="evs_faq_0082__b165021956165318">growpart /dev/sdf 3</strong></p>
<p id="evs_faq_0082__p1147813341748">Information similar to the following is displayed:</p>
<p id="evs_faq_0082__p62801911185411"><span><img id="evs_faq_0082__image02808116544" src="en-us_image_0000001130937191.png"></span></p>
<p id="evs_faq_0082__p16900164011540">Run the <strong id="evs_faq_0082__b1892665112203">lsblk</strong> command to view the new root partition size.</p>
<p id="evs_faq_0082__p1276275516543"><span><img id="evs_faq_0082__image2762125520548" src="en-us_image_0000001084154922.png"></span></p>
</p></li><li id="evs_faq_0082__li133321740859"><span>Run the following command to extend the file system of the root partition:</span><p><p id="evs_faq_0082__p83391240850"><strong id="evs_faq_0082__b02707201863">resize2fs /dev/sdf3</strong></p>
<p id="evs_faq_0082__p1533917409513">Information similar to the following is displayed:</p>
<p id="evs_faq_0082__p0339104010516"><span><img id="evs_faq_0082__image13339174015511" src="en-us_image_0000001130937239.png"></span></p>
</p></li><li id="evs_faq_0082__li76602775618"><span>Run the following command to restore the content of the configdriver partition:</span><p><p id="evs_faq_0082__p116604785619"><strong id="evs_faq_0082__b36601975564">dd if=/root/configdriver.img of=/dev/sdf4</strong></p>
<p id="evs_faq_0082__p6562124117612">Information similar to the following is displayed:</p>
<p id="evs_faq_0082__p82221430165711"><span><img id="evs_faq_0082__image322210303572" src="en-us_image_0000001130673091.png"></span></p>
<p id="evs_faq_0082__p634184695712"><span><img id="evs_faq_0082__image93416464579" src="en-us_image_0000001083707294.png"></span></p>
<p id="evs_faq_0082__p152451558195720">The root partition of the quickly provisioned <span id="evs_faq_0082__text876834913329">BMS</span> has been extended.</p>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="evs_01_0077.html">Capacity Expansion</a></div>
</div>
</div>