forked from docs/doc-exports
Reviewed-by: Miskanin, Jan <jan.miskanin@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
62 lines
9.2 KiB
HTML
62 lines
9.2 KiB
HTML
<a name="evs_01_0038"></a><a name="evs_01_0038"></a>
|
|
|
|
<h1 class="topictitle1">Introduction to Data Disk Initialization Scenarios and Partition Styles</h1>
|
|
<div id="body8662426"><div class="section" id="evs_01_0038__en-us_topic_0000001808490252_section3495606093050"><h4 class="sectiontitle">Scenarios</h4><div class="p" id="evs_01_0038__en-us_topic_0000001808490252_p9280836203858">After a disk is attached to a <span id="evs_01_0038__en-us_topic_0000001808490252_text1184202435812">server</span>, you need to log in to the <span id="evs_01_0038__en-us_topic_0000001808490252_text10187182485810">server</span> to initialize the disk, that is, format the disk. You must initialize a disk before accessing it.<ul id="evs_01_0038__en-us_topic_0000001808490252_ul64936880203918"><li id="evs_01_0038__en-us_topic_0000001808490252_li2272733592439">System disk<p id="evs_01_0038__en-us_topic_0000001808490252_p6479032162353"><a name="evs_01_0038__en-us_topic_0000001808490252_li2272733592439"></a><a name="en-us_topic_0000001808490252_li2272733592439"></a>A system disk does not require manual initialization because it is automatically created and initialized upon <span id="evs_01_0038__en-us_topic_0000001808490252_text265152549174046">server</span> creation. The default partition style is master boot record (MBR).</p>
|
|
</li><li id="evs_01_0038__en-us_topic_0000001808490252_li710858692435">Data disk<ul id="evs_01_0038__en-us_topic_0000001808490252_ul4509464492449"><li id="evs_01_0038__en-us_topic_0000001808490252_li1145481992348">If a data disk is created along with <span id="evs_01_0038__en-us_topic_0000001808490252_text727295939115632">a server</span>, it will be automatically attached to the <span id="evs_01_0038__en-us_topic_0000001808490252_text626098683212827">server</span>.</li><li id="evs_01_0038__en-us_topic_0000001808490252_li3483818692348">If a data disk is created separately, you need to manually attach it to <span id="evs_01_0038__en-us_topic_0000001808490252_text1301337270212932">a server</span>.</li></ul>
|
|
<p id="evs_01_0038__en-us_topic_0000001808490252_p4337941192547">In both cases, you must initialize the data disk before using it. Choose an appropriate partition style based on your service plan.</p>
|
|
</li></ul>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="evs_01_0038__en-us_topic_0000001808490252_section142101701841"><h4 class="sectiontitle">Prerequisites</h4><ul id="evs_01_0038__en-us_topic_0000001808490252_ul951361311418"><li id="evs_01_0038__en-us_topic_0000001808490252_li85131131944">The disk has been attached to a <span id="evs_01_0038__en-us_topic_0000001808490252_text105521823103218">server</span>.</li><li id="evs_01_0038__en-us_topic_0000001808490252_li165131313541">Data may be lost after a disk is initialized, so you are advised to create <a href="en-us_topic_0066615262.html">snapshots</a> or <a href="evs_01_0110.html">backups</a> before initializing a disk.</li></ul>
|
|
</div>
|
|
<div class="section" id="evs_01_0038__en-us_topic_0000001808490252_section9329185781310"><h4 class="sectiontitle">Constraints</h4><ul id="evs_01_0038__en-us_topic_0000001808490252_ul134441752125218"><li id="evs_01_0038__en-us_topic_0000001808490252_li16703542577">A disk created from a data source does not need to be initialized. Such a disk contains the data of the source in the beginning. Initializing the disk may clear the initial data on it.</li><li id="evs_01_0038__en-us_topic_0000001808490252_li144495235213">Initializing a disk does not change the <span id="evs_01_0038__en-us_topic_0000001808490252_text19752218195319">server</span>'s IP address or the disk ID.</li><li id="evs_01_0038__en-us_topic_0000001808490252_li463573445318">Initializing a disk does not delete the snapshots created for the disk, so you can still roll back snapshots to the original disk after the disk is initialized.</li></ul>
|
|
</div>
|
|
<div class="section" id="evs_01_0038__en-us_topic_0000001808490252_section216694193534"><h4 class="sectiontitle">Disk Partition Styles</h4><p id="evs_01_0038__en-us_topic_0000001808490252_p38372208144850"><a href="#evs_01_0038__en-us_topic_0000001808490252_table2729705994129">Table 1</a> lists the common disk partition styles. In Linux, different partition styles require different partitioning tools.</p>
|
|
|
|
<div class="tablenoborder"><a name="evs_01_0038__en-us_topic_0000001808490252_table2729705994129"></a><a name="en-us_topic_0000001808490252_table2729705994129"></a><table cellpadding="4" cellspacing="0" summary="" id="evs_01_0038__en-us_topic_0000001808490252_table2729705994129" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Disk partition styles</caption><thead align="left"><tr id="evs_01_0038__en-us_topic_0000001808490252_row2194811894129"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.1"><p id="evs_01_0038__en-us_topic_0000001808490252_p2826869894129">Disk Partition Style</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19%" id="mcps1.3.4.3.2.5.1.2"><p id="evs_01_0038__en-us_topic_0000001808490252_p806324094129">Maximum Disk Capacity Supported</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="41%" id="mcps1.3.4.3.2.5.1.3"><p id="evs_01_0038__en-us_topic_0000001808490252_p4914271494129">Maximum Number of Partitions Supported</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.4"><p id="evs_01_0038__en-us_topic_0000001808490252_p2113692194129">Linux Partitioning Tool</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="evs_01_0038__en-us_topic_0000001808490252_row5601456494129"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="evs_01_0038__en-us_topic_0000001808490252_p1205045294213">Master Boot Record (MBR)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.4.3.2.5.1.2 "><p id="evs_01_0038__en-us_topic_0000001808490252_p2342140694129">2 TiB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="41%" headers="mcps1.3.4.3.2.5.1.3 "><ul id="evs_01_0038__en-us_topic_0000001808490252_ul21060408163037"><li id="evs_01_0038__en-us_topic_0000001808490252_li45070926163039">4 primary partitions</li><li id="evs_01_0038__en-us_topic_0000001808490252_li63482739163037">3 primary partitions and 1 extended partition</li></ul>
|
|
<div class="p" id="evs_01_0038__en-us_topic_0000001808490252_p723613328428">With MBR, you can create several primary partitions and one extended partition. The extended partition must be divided into logical partitions before use. For example, if 6 partitions need to be created, you can create them in the following two ways:<ul id="evs_01_0038__en-us_topic_0000001808490252_ul6972172517474"><li id="evs_01_0038__en-us_topic_0000001808490252_li49871396163255">3 primary partitions and 1 extended partition, with the extended partition divided into 3 logical partitions</li><li id="evs_01_0038__en-us_topic_0000001808490252_li1797352519473">1 primary partition and 1 extended partition, with the extended partition divided into 5 logical partitions</li></ul>
|
|
</div>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.4 "><ul id="evs_01_0038__en-us_topic_0000001808490252_ul1160282695454"><li id="evs_01_0038__en-us_topic_0000001808490252_li65968598144219">fdisk</li><li id="evs_01_0038__en-us_topic_0000001808490252_li6593898795457">parted</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="evs_01_0038__en-us_topic_0000001808490252_row3114938294129"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="evs_01_0038__en-us_topic_0000001808490252_p1278766394216">GUID Partition Table (GPT)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.4.3.2.5.1.2 "><p id="evs_01_0038__en-us_topic_0000001808490252_p2460587094129">18 EiB</p>
|
|
<p id="evs_01_0038__en-us_topic_0000001808490252_p1993019393474">1 EiB = 1048576 TiB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="41%" headers="mcps1.3.4.3.2.5.1.3 "><p id="evs_01_0038__en-us_topic_0000001808490252_p4691841694129">Unlimited</p>
|
|
<p id="evs_01_0038__en-us_topic_0000001808490252_p12599114794712">Disk partitions created using GPT are not categorized.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.4 "><p id="evs_01_0038__en-us_topic_0000001808490252_p4229536794129">parted</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="notice" id="evs_01_0038__en-us_topic_0000001808490252_note21633485151134"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="evs_01_0038__en-us_topic_0000001808490252_p11834286151113">The maximum disk size supported by MBR is 2 TiB, and that supported by GPT is 18 EiB. Because an EVS data disk currently supports up to 32 TiB, use GPT if your disk size is larger than 2 TiB.</p>
|
|
<p id="evs_01_0038__en-us_topic_0000001808490252_p612681541585">If the partition style is changed after the disk has been used, all data on the disk will be lost, so take care to select an appropriate partition style when initializing the disk. If you must change the partition style to GPT after a disk has been used, it is recommended that you back up the disk data before the change.</p>
|
|
</div></div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="evs_01_0058.html">Initialize an EVS Data Disk</a></div>
|
|
</div>
|
|
</div>
|
|
|