卸载云硬盘
<p class="shortdesc">当某个ECS实例不再需要挂载某个云硬盘,或者某个云硬盘需要从一个ECS实例卸载挂载到另外一个ECS实例时,您可以选择卸载该云硬盘。</p>
<section class="section prereq" id="uninstalldri__prereq_urj_bt3_tlb"><div class="tasklabel"><h2 class="doc-tairway">前提条件</h2></div>
<ul class="ul" id="uninstalldri__ul_ers_f5m_slb">
<li class="li">云硬盘作为数据盘已挂载到ECS实例,状态为<strong class="ph b">使用中</strong>。</li>
<li class="li">卸载云硬盘时,需要在操作系统下先完成以下操作,否则可能会导致该ECS实例再次挂载云硬盘时无法识别。<ul class="ul" id="uninstalldri__ul_utp_h5m_slb">
<li class="li"><strong class="ph b">Windows系统</strong>:<span class="ph uicontrol">磁盘管理</span>中对磁盘执行脱机操作。<img class="image" id="uninstalldri__image_atc_s5m_slb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20202412103520-1dedce7e9c29.png" width="800"></li>
<li class="li"><strong class="ph b">Linux系统</strong>:先在实例里对磁盘执行 umount
命令,修改/etc/fstab下对应配置行,命令执行成功后再从ECS实例上卸载该云硬盘。</li>
</ul></li>
</ul>
</section>
<section class="section context"><div class="tasklabel"><h2 class="doc-tairway">背景信息</h2></div>
<p class="p">卸载后的云硬盘不会清除硬盘中的数据。</p>
<div class="note important note_important"><span class="note__title">重要:</span>
<p class="p">卸载的云硬盘只能是数据盘,不能卸载系统盘。</p>
</div>
</section>
<section class="section attention" id="uninstalldri__svp_d5m_slb"><div class="tasklabel"><h2 class="doc-tairway">注意事项</h2></div>
<p class="p">为了保证磁盘中存储数据的完整性,建议您在卸载前要确保已经完成或者暂停所有的读写操作,否则,可能会有部分数据因未完成读写而丢失。</p>
</section>
<section class="section limitation" id="uninstalldri__tvp_d5m_slb"><div class="tasklabel"><h2 class="doc-tairway">使用限制</h2></div>
<ul class="ul" id="uninstalldri__ul_ttr_j5m_slb">
<li class="li">SSD型云硬盘不支卸载。</li>
<li class="li">与实例一同创建的包月云硬盘不支持卸载。</li>
</ul>
</section>
<section><div class="tasklabel"><h2 class="doc-tairway">操作步骤</h2></div><ol class="ol steps"><li class="li step">
<span class="ph cmd">登录<a class="xref" href="/console/ecs/overview" target="_blank">云服务器ECS控制台</a>。 </span>
</li><li class="li step">
<span class="ph cmd">在左侧导航栏中单击<span class="ph menucascade"><span class="ph uicontrol">存储</span><abbr> > </abbr><span class="ph uicontrol">云硬盘</span></span>。</span>
</li><li class="li step">
<span class="ph cmd"> 在<span class="keyword wintitle">磁盘管理</span>页面,找到待卸载的云硬盘,单击操作列中的<span class="ph menucascade"><span class="ph uicontrol"><img class="image" id="uninstalldri__image_bzw_hvm_slb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20202412103521-1c1a50f29eea.png"></span><abbr> > </abbr><span class="ph uicontrol">卸载</span></span>。</span>
</li><li class="li step">
<span class="ph cmd">弹出<span class="keyword wintitle">卸载云硬盘</span>的对话框,按提示进行操作,完成后,单击<span class="ph uicontrol">确认</span>。</span>
</li></ol></section>
<section class="section result" id="uninstalldri__result_kqq_bvm_slb"><div class="tasklabel"><h2 class="doc-tairway">执行结果</h2></div>
<p class="p">在<span class="keyword wintitle">磁盘管理</span>页面中,该云磁盘的状态会由挂载前的<strong class="ph b">使用中</strong>,变为<strong class="ph b">卸载中</strong>,大概等待几分钟后,磁盘状态变为<strong class="ph b">待挂载</strong>。</p>
<img class="image" id="uninstalldri__image_jfn_fvm_slb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20202412103520-1608df989b36.png" width="800">
</section>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!