forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
48 lines
12 KiB
HTML
48 lines
12 KiB
HTML
<a name="evs_01_0004"></a><a name="evs_01_0004"></a>
|
|
|
|
<h1 class="topictitle1">Detaching a Data Disk</h1>
|
|
<div id="body1505899668359"><div class="section" id="evs_01_0004__section5983609165054"><h4 class="sectiontitle">Scenarios</h4><div class="p" id="evs_01_0004__p7283033145738">Data disks can be detached online or offline, which means that the <span id="evs_01_0004__text131307965717457">server</span> containing the to-be-detached data disk can either be in the <strong id="evs_01_0004__b120192614516">Running</strong> or <strong id="evs_01_0004__b842352706153020">Stopped</strong> state.<ul id="evs_01_0004__ul5912262220553"><li id="evs_01_0004__li140223145659">ECS<p id="evs_01_0004__p1262008145659"><a name="evs_01_0004__li140223145659"></a><a name="li140223145659"></a>Detach a disk online. For details, see <span class="menucascade" id="evs_01_0004__menucascade1747482419218"><b><span class="uicontrol" id="evs_01_0004__uicontrol44682248215">Storage</span></b> > <b><span class="uicontrol" id="evs_01_0004__uicontrol547420240215">Detaching an EVS Disk from a Running ECS</span></b></span> in the <em id="evs_01_0004__i1247412415210">Elastic Cloud Server User Guide</em>.</p>
|
|
</li><li id="evs_01_0004__li5655893420531">BMS<p id="evs_01_0004__p28101646145814"><a name="evs_01_0004__li5655893420531"></a><a name="li5655893420531"></a>SCSI disks can be attached to BMSs and used as data disks. You can detach a data disk either from a running or stopped BMS.</p>
|
|
</li></ul>
|
|
</div>
|
|
<p id="evs_01_0004__p16843121614292">For a data disk attached to <span id="evs_01_0004__text332693616175613">a server</span>, the disk function is displayed as <strong id="evs_01_0004__b842352706173213">Data disk</strong>, and the disk status is displayed as <strong id="evs_01_0004__b842352706173228">In-use</strong> in the disk list. After the data disk has been detached from the server, the disk function remains unchanged, the disk status changes to <strong id="evs_01_0004__b84235270619653">Available</strong> for a non-shared data disk, and the disk status changes to <strong id="evs_01_0004__b1587157633191011">Available</strong> for a shared data disk after it is detached from all its servers.</p>
|
|
</div>
|
|
<div class="section" id="evs_01_0004__section738654910211"><h4 class="sectiontitle">Prerequisites</h4><ul id="evs_01_0004__ul56732512316"><li id="evs_01_0004__li1367313542316">Before detaching an EVS disk from a running Windows <span id="evs_01_0004__en-us_topic_0036046828_text7825217272">ECS</span>, ensure that no program is reading data from or writing data to the disk. Otherwise, data will be lost.</li></ul>
|
|
<ul id="evs_01_0004__ul181821580234"><li id="evs_01_0004__li18182758142311">Before detaching an EVS disk from a running Linux <span id="evs_01_0004__en-us_topic_0036046828_text161041853202718">ECS</span>, you must log in to the <span id="evs_01_0004__en-us_topic_0036046828_text1999316351317">ECS</span> and run the <strong id="evs_01_0004__en-us_topic_0036046828_b16542154283120">umount</strong> command to cancel the association between the disk and the file system. In addition, ensure that no program is reading data from or writing data to the disk. Otherwise, detaching the disk will fail.</li></ul>
|
|
</div>
|
|
<div class="section" id="evs_01_0004__section29382065152026"><h4 class="sectiontitle">Detaching a Non-shared Disk</h4><ol id="evs_01_0004__ol3795125415241"><li id="evs_01_0004__li5884586202528"><span>Log in to the management console.</span></li><li id="evs_01_0004__li153618295518"><span>Click <span><img id="evs_01_0004__en-us_topic_0021738346_image052111582392" src="en-us_image_0237893718.png"></span> in the upper left corner and select the desired region and project.</span></li><li id="evs_01_0004__li2429637215241"><span>Under <strong id="evs_01_0004__b1139904112451">Storage</strong>, click <strong id="evs_01_0004__b16399741134511">Elastic Volume Service</strong>.</span><p><p id="evs_01_0004__p1734076015241">The disk list page is displayed.</p>
|
|
</p></li><li id="evs_01_0004__li6242429915241"><span>Determine whether to view the server information before detaching the disk.</span><p><ul id="evs_01_0004__ul750428215241"><li id="evs_01_0004__li42968215241">If you need to view the server information, perform the following procedure:<ol type="a" id="evs_01_0004__ol386714215241"><li id="evs_01_0004__li3480427815241">In the disk list, click the name of the to-be-detached disk.<p id="evs_01_0004__p4480305315241"><a name="evs_01_0004__li3480427815241"></a><a name="li3480427815241"></a>The disk details page is displayed.</p>
|
|
</li><li id="evs_01_0004__li57429915241">Click the <strong id="evs_01_0004__b1086718369221">Attachments</strong> tab to view the server where the target disk has been attached.</li><li id="evs_01_0004__li1601134615241">Click <span><img id="evs_01_0004__image169462381447" src="en-us_image_0238263087.png"></span> to select the server and click <strong id="evs_01_0004__b1462223832211">Detach Disk</strong>.<div class="p" id="evs_01_0004__p26489280112">The <strong id="evs_01_0004__b974413823517">Detach Disk</strong> dialog box is displayed, as shown in <a href="#evs_01_0004__fig146481428813">Figure 1</a>.<div class="fignone" id="evs_01_0004__fig146481428813"><a name="evs_01_0004__fig146481428813"></a><a name="fig146481428813"></a><span class="figcap"><b>Figure 1 </b>Detach Disk</span><br><span><img id="evs_01_0004__image31557617715" src="en-us_image_0163801956.png"></span></div>
|
|
</div>
|
|
</li><li id="evs_01_0004__li1228932514152">Click <strong id="evs_01_0004__b158161925174716">Yes</strong> to detach the disk.</li></ol>
|
|
</li><li id="evs_01_0004__li5205209315241">If you do not need to view the server information, perform the following procedure:<ol type="a" id="evs_01_0004__ol6581565415241"><li id="evs_01_0004__li5546997715241">In the disk list, locate the row that contains the target disk and choose <span class="menucascade" id="evs_01_0004__menucascade4220138115518"><b><span class="uicontrol" id="evs_01_0004__uicontrol22204825517">More</span></b> > <b><span class="uicontrol" id="evs_01_0004__uicontrol1722018825517">Detach</span></b></span> in the <strong id="evs_01_0004__b63418755618">Operation</strong> column.<div class="p" id="evs_01_0004__p6388317815241">The <strong id="evs_01_0004__b158659919">Detach Disk</strong> dialog box is displayed, as shown in <a href="#evs_01_0004__fig715496815241">Figure 2</a>.<div class="fignone" id="evs_01_0004__fig715496815241"><a name="evs_01_0004__fig715496815241"></a><a name="fig715496815241"></a><span class="figcap"><b>Figure 2 </b>Detach Disk dialog box</span><br><span><img id="evs_01_0004__image10876143421618" src="en-us_image_0152754019.png"></span></div>
|
|
</div>
|
|
</li><li id="evs_01_0004__li10164172510103">Click <strong id="evs_01_0004__b12628123318476">Yes</strong> to detach the disk.</li></ol>
|
|
</li></ul>
|
|
<p id="evs_01_0004__p6321302415241">The disk list is displayed. The disk status is <strong id="evs_01_0004__b177471541122314">Detaching</strong>, indicating that the disk is being detached from the server.</p>
|
|
<p id="evs_01_0004__p4561408915241">When the status changes to <strong id="evs_01_0004__b2076608000194835">Available</strong>, the disk is successfully detached.</p>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="evs_01_0004__section24629896173058"><h4 class="sectiontitle">Detaching a Shared Disk</h4><ol id="evs_01_0004__ol9647240195926"><li id="evs_01_0004__li1317173144714"><span>Log in to the management console.</span></li><li id="evs_01_0004__li141714319471"><span>Click <span><img id="evs_01_0004__en-us_topic_0021738346_image052111582392_1" src="en-us_image_0237893718.png"></span> in the upper left corner and select the desired region and project.</span></li><li id="evs_01_0004__li308525592029"><span>Under <strong id="evs_01_0004__b20441241164513">Storage</strong>, click <strong id="evs_01_0004__b1944215419459">Elastic Volume Service</strong>.</span><p><p id="evs_01_0004__p92375762029">The disk list page is displayed.</p>
|
|
</p></li><li id="evs_01_0004__li30547501203454"><span>Determine whether to view <span id="evs_01_0004__text774651735162822">the server</span> information before detaching the disk.</span><p><ul id="evs_01_0004__ul6405871203623"><li id="evs_01_0004__li45035676203623">If you need to view the server information, perform the following procedure:<ol type="a" id="evs_01_0004__ol5146104320552"><li id="evs_01_0004__li44189183205518">In the disk list, click the name of the to-be-detached disk.<p id="evs_01_0004__p62158329205518"><a name="evs_01_0004__li44189183205518"></a><a name="li44189183205518"></a>The disk details page is displayed.</p>
|
|
</li><li id="evs_01_0004__li22554051205518">Click the <strong id="evs_01_0004__b486173317254">Attachments</strong> tab to view the servers where the target disk has been attached.</li><li id="evs_01_0004__li4681796294534">Click <span><img id="evs_01_0004__image1538360094534" src="en-us_image_0238263087.png"></span> to select <span id="evs_01_0004__text14273884162320">the server</span> and click <strong id="evs_01_0004__b11812121717445">Detach Disk</strong>.<p id="evs_01_0004__p677737194536">Shared EVS disks support batch detachment so that you can select multiple <span id="evs_01_0004__text281883369163033">servers</span> at a time.</p>
|
|
<div class="p" id="evs_01_0004__p135031424410">The <strong id="evs_01_0004__b217563333">Detach Disk</strong> dialog box is displayed, as shown in <a href="#evs_01_0004__fig10503132745">Figure 3</a>.<div class="fignone" id="evs_01_0004__fig10503132745"><a name="evs_01_0004__fig10503132745"></a><a name="fig10503132745"></a><span class="figcap"><b>Figure 3 </b>Detaching a shared disk</span><br><span><img id="evs_01_0004__image1570210331343" src="en-us_image_0163801385.png"></span></div>
|
|
</div>
|
|
</li><li id="evs_01_0004__li68718326174">Click <strong id="evs_01_0004__b17631842194718">Yes</strong> to detach the disk.</li></ol>
|
|
</li><li id="evs_01_0004__li64294352203649">If you do not need to view the server information, perform the following procedure:<ol type="a" id="evs_01_0004__ol47897994205959"><li id="evs_01_0004__li28428764205959">In the disk list, locate the row that contains the target disk and choose <span class="menucascade" id="evs_01_0004__menucascade1196311589544"><b><span class="uicontrol" id="evs_01_0004__uicontrol39639586543">More</span></b> > <b><span class="uicontrol" id="evs_01_0004__uicontrol1396365835420">Detach</span></b></span> in the <strong id="evs_01_0004__b1285440142911">Operation</strong> column.<div class="p" id="evs_01_0004__p3348449221142">The <strong id="evs_01_0004__b483434932">Detach Disk</strong> dialog box is displayed, as shown in <a href="#evs_01_0004__fig36494313113211">Figure 4</a>.<div class="fignone" id="evs_01_0004__fig36494313113211"><a name="evs_01_0004__fig36494313113211"></a><a name="fig36494313113211"></a><span class="figcap"><b>Figure 4 </b>Detaching a shared disk dialog box</span><br><span><img id="evs_01_0004__image109903409232" src="en-us_image_0152754508.png"></span></div>
|
|
</div>
|
|
</li><li id="evs_01_0004__li1551533362118">Click <span><img id="evs_01_0004__image2051873372112" src="en-us_image_0238263087.png"></span> to select <span id="evs_01_0004__text14518133312217">the server</span>.<p id="evs_01_0004__p680022912210">Shared EVS disks support batch detachment so that you can select multiple <span id="evs_01_0004__text187144103225">servers</span> at a time.</p>
|
|
</li><li id="evs_01_0004__li12774166192215">Click <strong id="evs_01_0004__b11645374912">Yes</strong> to detach the disk.</li></ol>
|
|
</li></ul>
|
|
<p id="evs_01_0004__p2383353721714">The disk list page is displayed. The disk status is <strong id="evs_01_0004__b84235270616235">Detaching</strong>, indicating that the disk is being detached from the server.</p>
|
|
<p id="evs_01_0004__p6683897421132">If the shared EVS disk has been attached to multiple <span id="evs_01_0004__text55249689710520">servers</span> and needs to be detached from only some of its servers, the disk status will go back to <strong id="evs_01_0004__b8423527061063">In-use</strong> after the disk has been detached from the target servers. The disk status changes to <strong id="evs_01_0004__b84235270610812">Available</strong> only when it has been detached from all the <span id="evs_01_0004__text118666373210831">servers</span>.</p>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="evs_01_0002.html">Detaching an EVS Disk</a></div>
|
|
</div>
|
|
</div>
|
|
|