doc-exports/docs/evs/umn/evs_faq_0022.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

92 lines
14 KiB
HTML

<a name="evs_faq_0022"></a><a name="evs_faq_0022"></a>
<h1 class="topictitle1">Why Can't I View the Attached Data Disk on the Server?</h1>
<div id="body1537870666560"><div class="section" id="evs_faq_0022__section33471835132016"><h4 class="sectiontitle">Troubleshooting</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="evs_faq_0022__table99123503206" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Possible causes</caption><thead align="left"><tr id="evs_faq_0022__row691245011202"><th align="left" class="cellrowborder" valign="top" width="10%" id="mcps1.3.1.2.2.4.1.1"><p id="evs_faq_0022__p4912650112019">OS</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="70%" id="mcps1.3.1.2.2.4.1.2"><p id="evs_faq_0022__p89121250102013">Possible Cause</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.1.2.2.4.1.3"><p id="evs_faq_0022__p788314122319">Solution</p>
</th>
</tr>
</thead>
<tbody><tr id="evs_faq_0022__row2912650192010"><td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.1.2.2.4.1.1 "><p id="evs_faq_0022__p39121350102020">Linux</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.1.2.2.4.1.2 "><ul id="evs_faq_0022__ul4393648142114"><li id="evs_faq_0022__li539394816212">New data disks are not formatted and partitioned by default, and an unformatted disk will not be listed in the command output. You must manually initialize the disk.</li><li id="evs_faq_0022__li75635182211">If a data disk cannot be found after the <span id="evs_faq_0022__text27865716438">server</span> is restarted, automatic partition mounting at system start may not be configured.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.1.2.2.4.1.3 "><p id="evs_faq_0022__p98851418237"><a href="#evs_faq_0022__section1514019519474">Linux Data Disk</a></p>
</td>
</tr>
<tr id="evs_faq_0022__row1191375012019"><td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.1.2.2.4.1.1 "><p id="evs_faq_0022__p19913125017202">Windows</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.1.2.2.4.1.2 "><p id="evs_faq_0022__p139131250162011">New data disks are not formatted and partitioned by default. Only formatted and partitioned drives show up in the resource manager. You must manually initialize the disk.</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.1.2.2.4.1.3 "><p id="evs_faq_0022__p11881614192312"><a href="#evs_faq_0022__section1894911274212">Windows Data Disk</a></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="evs_faq_0022__section1514019519474"><a name="evs_faq_0022__section1514019519474"></a><a name="section1514019519474"></a><h4 class="sectiontitle">Linux Data Disk</h4><p id="evs_faq_0022__p25882148586"><strong id="evs_faq_0022__b83190616226">Symptom</strong>: A data disk has been attached to a Linux <span id="evs_faq_0022__text12588714185819">server</span> on the management console, but the disk cannot be viewed on the server.</p>
<p id="evs_faq_0022__p164651825194813">Run <strong id="evs_faq_0022__b132231827612">df -TH</strong> to view the disk information. CentOS 7.4 is used in this example. The normal command output is as follows:</p>
<pre class="screen" id="evs_faq_0022__screen51057714151616">[root@ecs-test-0001 ~]# df -TH
Filesystem Type Size Used Avail Use% Mounted on
/dev/vda1 ext4 43G 1.9G 39G 5% /
devtmpfs devtmpfs 2.0G 0 2.0G 0% /dev
tmpfs tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs tmpfs 2.0G 9.1M 2.0G 1% /run
tmpfs tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
tmpfs tmpfs 398M 0 398M 0% /run/user/0
/dev/vdb1 ext4 106G 63M 101G 1% /mnt/sdc</pre>
</div>
<p id="evs_faq_0022__p555518181571">Unlike the normal command output, only system disk <strong id="evs_faq_0022__b173031883253">/dev/vda1</strong> is visible, but data disk <strong id="evs_faq_0022__b4594182013253">/dev/vdb1</strong> is missing from the command output.</p>
<p id="evs_faq_0022__p1047315558249"><strong id="evs_faq_0022__b189453109416">Cause Analysis</strong>:</p>
<ul id="evs_faq_0022__ul3768177254"><li id="evs_faq_0022__li117681573257"><strong id="evs_faq_0022__b221823492613">Cause 1</strong>: New data disks are not formatted and partitioned by default, and an unformatted disk will not be listed in the command output. You must manually initialize the disk.<p id="evs_faq_0022__p20728164816261">For details, see <a href="evs_01_0038.html">Introduction to Data Disk Initialization Scenarios and Partition Styles</a>.</p>
</li><li id="evs_faq_0022__li12124745142719"><strong id="evs_faq_0022__b999772481910">Cause 2</strong>: If a data disk cannot be found after the <span id="evs_faq_0022__text1412524518273">server</span> is restarted, automatic partition mounting at system start may not be configured. Perform the following steps:<ol id="evs_faq_0022__ol1771453182717"><li id="evs_faq_0022__li14425525112916">Mount the data disk.<p id="evs_faq_0022__p8411927102912"><a name="evs_faq_0022__li14425525112916"></a><a name="li14425525112916"></a><strong id="evs_faq_0022__b10250248165211">mount</strong> <em id="evs_faq_0022__i172511248135216">Disk partition</em> <em id="evs_faq_0022__i1325216487520">Mount point</em></p>
<p id="evs_faq_0022__p2550130210557">In this example, run the following command:</p>
<p id="evs_faq_0022__p5169551152959"><strong id="evs_faq_0022__b18041179153011">mount /dev/vdb1 /mnt/sdc</strong></p>
<p id="evs_faq_0022__p47251650183210">Perform the following steps to configure auto mount at system start:</p>
</li><li id="evs_faq_0022__li840964143216"><a name="evs_faq_0022__li840964143216"></a><a name="li840964143216"></a>Query the partition UUID.<p id="evs_faq_0022__p32760575102436"><a name="evs_faq_0022__li840964143216"></a><a name="li840964143216"></a><strong id="evs_faq_0022__b1708526520162011">blkid</strong> <em id="evs_faq_0022__i1458842329162011">Disk partition</em></p>
<p id="evs_faq_0022__p54606997105845">In this example, the UUID of the <span class="parmname" id="evs_faq_0022__parmname15875121912207"><b>/dev/vdb1</b></span> partition is queried.</p>
<p id="evs_faq_0022__p204811453103215"><strong id="evs_faq_0022__b11565159153817">blkid /dev/vdb1</strong></p>
<p id="evs_faq_0022__p13610514113319">Information similar to the following is displayed:</p>
<pre class="screen" id="evs_faq_0022__screen361091453315">[root@ecs-test-0001 ~]# blkid /dev/vdb1
/dev/vdb1: UUID="0b3040e2-1367-4abb-841d-ddb0b92693df" TYPE="ext4"</pre>
<p id="evs_faq_0022__p275684701890">The UUID of the <span class="parmname" id="evs_faq_0022__parmname1022121805414"><b>/dev/vdb1</b></span> partition is displayed.</p>
</li><li id="evs_faq_0022__li5216103063212">Open the <strong id="evs_faq_0022__b925094162018">fstab</strong> file using the vi editor.<p id="evs_faq_0022__p1621663016322"><strong id="evs_faq_0022__b3216173019324">vi /etc/fstab</strong></p>
<p id="evs_faq_0022__p12709846193219">Press <strong id="evs_faq_0022__b182671353541">i</strong> to enter editing mode.</p>
</li><li id="evs_faq_0022__li8415123893310">Move the cursor to the end of the file and press <strong id="evs_faq_0022__b1970252114560">Enter</strong>. Then, add the following information:<pre class="screen" id="evs_faq_0022__screen8133145031318">UUID=0b3040e2-1367-4abb-841d-ddb0b92693df /mnt/sdc ext4 defaults 0 2</pre>
<div class="p" id="evs_faq_0022__p32771248181412">In this example, the line starting with "UUID" is the information added. Edit this line to match the following format:<ul id="evs_faq_0022__en-us_topic_0044524669_ul10841125111147"><li id="evs_faq_0022__en-us_topic_0044524669_li188411051101417">UUID: The UUID obtained in <a href="#evs_faq_0022__li840964143216">2</a>.</li><li id="evs_faq_0022__en-us_topic_0044524669_li9862203181612">Mount point: The directory on which the partition is mounted. You can query the mount point using <strong id="evs_faq_0022__b1186677132117">df -TH</strong>.</li><li id="evs_faq_0022__en-us_topic_0044524669_li1540144915187">Filesystem: The file system format of the partition. You can query the file system format using <strong id="evs_faq_0022__b18908121232111">df -TH</strong>.</li><li id="evs_faq_0022__en-us_topic_0044524669_li1982810425243">Mount option: The partition mount option. Usually, this parameter is set to <strong id="evs_faq_0022__b0736201522115">defaults</strong>.</li><li id="evs_faq_0022__en-us_topic_0044524669_li14571101713817">Dump: The Linux dump backup option.<ul id="evs_faq_0022__en-us_topic_0044524669_ul1766882053820"><li id="evs_faq_0022__en-us_topic_0044524669_li05705233389"><strong id="evs_faq_0022__b1567302262113">0</strong>: Linux dump backup is not used. Usually, dump backup is not used, and you can set this parameter to <strong id="evs_faq_0022__b175062266213">0</strong>.</li><li id="evs_faq_0022__en-us_topic_0044524669_li1351851752519"><strong id="evs_faq_0022__b1118842902117">1</strong>: Linux dump backup is used.</li></ul>
</li><li id="evs_faq_0022__en-us_topic_0044524669_li16931205453916">fsck: The fsck option, which means whether to use fsck to check the disk during startup.<ul id="evs_faq_0022__en-us_topic_0044524669_ul13128162795413"><li id="evs_faq_0022__en-us_topic_0044524669_li1681842217415"><strong id="evs_faq_0022__b932453915218">0</strong>: The fsck option is not used.</li><li id="evs_faq_0022__en-us_topic_0044524669_li17887347191818">If the mount point is the root partition (<strong id="evs_faq_0022__b1184612434213">/</strong>), this parameter must be set to <strong id="evs_faq_0022__b984616438217">1</strong>.<p id="evs_faq_0022__en-us_topic_0044524669_p198922399202">If this parameter is set to <strong id="evs_faq_0022__b116470182214">1</strong> for the root partition, this parameter for other partitions must start with <strong id="evs_faq_0022__b11641604220">2</strong> because the system checks the partitions in the ascending order of the values.</p>
</li></ul>
</li></ul>
</div>
</li><li id="evs_faq_0022__li841512388338">Press <strong id="evs_faq_0022__b18103250165717">Esc</strong>, enter <strong id="evs_faq_0022__b13104155016576">:wq</strong>, and press <strong id="evs_faq_0022__b41041750155718">Enter</strong>.<p id="evs_faq_0022__p1141543813310">The system saves the configurations and exits the vi editor.</p>
<div class="p" id="evs_faq_0022__p119444243216">Verify that the disk is auto-mounted at startup.<ol type="a" id="evs_faq_0022__en-us_topic_0142861223_ol199891910256"><li id="evs_faq_0022__en-us_topic_0142861223_li1620791415268">Unmount the partition.<p id="evs_faq_0022__en-us_topic_0142861223_p18208131462618"><a name="evs_faq_0022__en-us_topic_0142861223_li1620791415268"></a><a name="en-us_topic_0142861223_li1620791415268"></a><strong id="evs_faq_0022__b53351531105912">umount</strong> <em id="evs_faq_0022__i1533613114598">Disk partition</em></p>
<p id="evs_faq_0022__en-us_topic_0142861223_p621161413262">In this example, run the following command:</p>
<p id="evs_faq_0022__en-us_topic_0142861223_p1521115148260"><strong id="evs_faq_0022__en-us_topic_0142861223_b0213614192618">umount /dev/vdb1</strong></p>
</li><li id="evs_faq_0022__en-us_topic_0142861223_li2397162792610">Reload all the content in the <strong id="evs_faq_0022__b195551333224">/etc/fstab</strong> file.<p id="evs_faq_0022__en-us_topic_0142861223_p1739714278269"><strong id="evs_faq_0022__en-us_topic_0142861223_b63981278267">mount -a</strong></p>
</li><li id="evs_faq_0022__en-us_topic_0142861223_li9280203710269">Query the file system mounting information.<p id="evs_faq_0022__en-us_topic_0142861223_p3282133715264"><a name="evs_faq_0022__en-us_topic_0142861223_li9280203710269"></a><a name="en-us_topic_0142861223_li9280203710269"></a><strong id="evs_faq_0022__b179311847195916">mount | grep</strong> <em id="evs_faq_0022__i1193211474591">Mount point</em></p>
<p id="evs_faq_0022__en-us_topic_0142861223_p3286437112619">In this example, run the following command:</p>
<p id="evs_faq_0022__en-us_topic_0142861223_p18286123782619"><strong id="evs_faq_0022__b1987515233315">mount | grep</strong> <strong id="evs_faq_0022__b1831387417">/mnt/sdc</strong></p>
<p id="evs_faq_0022__en-us_topic_0142861223_p429163752616">If information similar to the following is displayed, auto mount has taken effect:</p>
<pre class="screen" id="evs_faq_0022__en-us_topic_0142861223_screen429312370265">root@ecs-test-0001 ~]# mount | grep /mnt/sdc
/dev/vdb1 on /mnt/sdc type ext4 (rw,relatime,data=ordered)</pre>
</li></ol>
</div>
</li></ol>
</li></ul>
<div class="section" id="evs_faq_0022__section1894911274212"><a name="evs_faq_0022__section1894911274212"></a><a name="section1894911274212"></a><h4 class="sectiontitle">Windows Data Disk</h4><p id="evs_faq_0022__p2028114614814"><strong id="evs_faq_0022__b1321714105119">Symptom</strong>: A data disk has been attached to a Windows <span id="evs_faq_0022__text52816611489">server</span> on the management console, but the disk cannot be viewed on the server. For example, Volume (D:) was not shown in <strong id="evs_faq_0022__b1310953663516">This PC</strong> of a Windows server running Windows Server 2012. Normally, Volume (D:) appears, as shown in <a href="#evs_faq_0022__fig156291639133210">Figure 1</a>.</p>
<div class="fignone" id="evs_faq_0022__fig156291639133210"><a name="evs_faq_0022__fig156291639133210"></a><a name="fig156291639133210"></a><span class="figcap"><b>Figure 1 </b>Volume (D:) appears</span><br><span><img id="evs_faq_0022__image66291839163217" src="en-us_image_0000001327868762.png"></span></div>
<p id="evs_faq_0022__p12917163215451"><strong id="evs_faq_0022__b36239447275">Solution</strong>: New data disks are not formatted and partitioned by default. Only formatted and partitioned drives show up in <strong id="evs_faq_0022__b2624204432718">This PC</strong>. You must manually initialize the disk before it can be viewed here.</p>
<p id="evs_faq_0022__p1934726152915">For details, see <a href="evs_01_0038.html">Introduction to Data Disk Initialization Scenarios and Partition Styles</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="evs_01_0078.html">Attachment</a></div>
</div>
</div>