doc-exports/docs/evs/umn/evs_faq_0022.html
Zaoxu, Li 305c41bb57 EVS 2.0.38 SP1 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Zaoxu, Li <lizaoxu@huawei.com>
Co-committed-by: Zaoxu, Li <lizaoxu@huawei.com>
2022-10-19 22:27:18 +00:00

65 lines
12 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__section1894911274212"><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_0238302626.png"></span></div>
<p id="evs_faq_0022__p12917163215451"><strong id="evs_faq_0022__b2867112116347">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__b1111072882615">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 class="section" id="evs_faq_0022__section1514019519474"><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__b2016201981319">Solution</strong></p>
<ul id="evs_faq_0022__ul3768177254"><li id="evs_faq_0022__li117681573257"><strong id="evs_faq_0022__b116729239134">Method 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">Method 2</strong>: If the 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">Run the following command to mount the partition again:<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 enable automatic partition mounting at system start:</p>
</li><li id="evs_faq_0022__li840964143216"><a name="evs_faq_0022__li840964143216"></a><a name="li840964143216"></a>Run the following command to 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, run the following command to query the UUID of the <span class="parmname" id="evs_faq_0022__parmname3502158185412"><b>/dev/vdb1</b></span> partition:</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">Run the following command to open the <strong id="evs_faq_0022__b24501428145412">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">The preceding content is used for reference only. Add the information that is used in the environment. The parameters are described as follows:<ul id="evs_faq_0022__evs_01_0033_ul10841125111147"><li id="evs_faq_0022__evs_01_0033_li188411051101417">The first column indicates the partition UUID obtained in <a href="#evs_faq_0022__li840964143216">2</a>.</li><li id="evs_faq_0022__evs_01_0033_li9862203181612">The second column indicates the directory on which the partition is mounted. You can query the mount point using the <strong id="evs_faq_0022__b1098641135614">df -TH</strong> command.</li><li id="evs_faq_0022__evs_01_0033_li1540144915187">The third column indicates the file system format of the partition. You can query the file system format using the <strong id="evs_faq_0022__b1948119432010">df -TH</strong> command.</li><li id="evs_faq_0022__evs_01_0033_li1982810425243">The fourth column indicates the partition mount option. Normally, this parameter is set to <strong id="evs_faq_0022__b933212199472">defaults</strong>.</li><li id="evs_faq_0022__evs_01_0033_li14571101713817">The fifth column indicates the Linux dump backup option.<ul id="evs_faq_0022__evs_01_0033_ul1766882053820"><li id="evs_faq_0022__evs_01_0033_li05705233389"><strong id="evs_faq_0022__b171861135480">0</strong>: No Linux dump backup is used. This is the default setting. You can set this parameter to <strong id="evs_faq_0022__b89477717541">0</strong>.</li><li id="evs_faq_0022__evs_01_0033_li1351851752519"><strong id="evs_faq_0022__b3523528155219">1</strong>: Linux dump backup is used.</li></ul>
</li><li id="evs_faq_0022__evs_01_0033_li16931205453916">The sixth column indicates the fsck option, that is, whether to use fsck to check the attached disk during startup.<ul id="evs_faq_0022__evs_01_0033_ul13128162795413"><li id="evs_faq_0022__evs_01_0033_li1681842217415"><strong id="evs_faq_0022__b1386853117525">0</strong>: not use fsck.</li><li id="evs_faq_0022__evs_01_0033_li17887347191818">If the mount point is the root partition (<strong id="evs_faq_0022__b8148125110555">/</strong>), this parameter must be set to <strong id="evs_faq_0022__b126194925614">1</strong>.<p id="evs_faq_0022__evs_01_0033_p198922399202">When this parameter is set to <strong id="evs_faq_0022__b1691117212211">1</strong> for the root partition, this parameter for other partitions must start with <strong id="evs_faq_0022__b15892195215">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">Perform the following operations to verify the automatic mounting function:<ol type="a" id="evs_faq_0022__en-us_topic_0142861223_ol199891910256"><li id="evs_faq_0022__en-us_topic_0142861223_li1620791415268">Run the following command to 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">Run the following command to reload all the content in the <strong id="evs_faq_0022__b209761436105913">/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">Run the following command to 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, automatic mounting has been configured:</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>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="evs_01_0078.html">Attachment</a></div>
</div>
</div>