初始化云硬盘(Windows系统)
<p class="shortdesc">当云硬盘作为数据盘挂载到云服务器ECS上后,默认为脱机状态,您需要将数据盘进行格式化、分区及创建文件系统等初始化操作后,才能正常使用数据盘。</p>
<section class="section prereq" id="iniwindows__prereq_tkw_nzj_rlb"><div class="tasklabel"><h2 class="doc-tairway">前提条件</h2></div>
<ul class="ul" id="iniwindows__ul_zkf_4zj_rlb">
<li class="li">已经创建并登录基于Windows操作系统的云服务器ECS。</li>
<li class="li">已经将云硬盘作为数据盘挂在载上述实例中,且数据盘未初始化。</li>
</ul>
</section>
<section class="section context"><div class="tasklabel"><h2 class="doc-tairway">背景信息</h2></div>
<p class="p">本文以Windows2016为例介绍如何初始化云硬盘。</p>
</section>
<section><div class="tasklabel"><h2 class="doc-tairway">操作步骤</h2></div><ol class="ol steps"><li class="li step stepexpand">
<span class="ph cmd">远程连接云服务器ECS实例。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">单击系统左下角的WIN按钮,然后单击服务器管理器。</span>
<div class="itemgroup info">
<img class="image" id="iniwindows__image_cn3_22k_rlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20200707171845-1f4367fd99d9.png">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">在<span class="ph menucascade"><span class="ph uicontrol">服务器管理器</span><abbr> > </abbr><span class="ph uicontrol">仪表盘</span></span>页面,单击左侧导航栏中的<span class="ph uicontrol">文件和存储服务</span>。</span>
<div class="itemgroup info">
<img class="image" id="iniwindows__image_b3w_j2k_rlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20200707171845-13bf2c2194ac.png">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">在左侧导航栏中单击<span class="ph uicontrol">磁盘</span>。</span>
<div class="itemgroup info">
<img class="image" id="iniwindows__image_jpw_k2k_rlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20200707171845-1d43c51694f1.png" width="800">
<p class="p">完成单击后,在界面右侧的所有磁盘列表中,显示两个磁盘,其中20GB的为本次待初始化的数据盘,此时该磁盘的状态为脱机。60GB的磁盘为系统盘。</p>
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">选中待联机化的数据盘,单击右键,选择<span class="ph uicontrol">联机</span>。</span>
<div class="itemgroup info">
<img class="image" id="iniwindows__image_fbs_n2k_rlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20200707171845-1859d4ae9a26.png" width="800">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">在弹出的对话框中,查看提示信息,然后单击<span class="ph uicontrol">是(Y)</span>。</span>
<div class="itemgroup info">
<img class="image" id="iniwindows__image_q1w_p2k_rlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20200707171845-15ea12e39bad.png">
<p class="p">完成后,磁盘的状态会变为联机。</p>
<img class="image" id="iniwindows__image_efx_q2k_rlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20200707171846-13f325d396f5.png" width="800">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">选中待初始化的磁盘,单击右键,选择<span class="ph uicontrol">初始化</span>。</span>
<div class="itemgroup info">
<img class="image" id="iniwindows__image_ssb_t2k_rlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20200707171846-173d842e92d4.png" width="800">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">在弹出的对话框中,查看提示信息,然后单击<span class="ph uicontrol">是(Y)</span>。</span>
<div class="itemgroup info">
<img class="image" id="iniwindows__image_ukm_52k_rlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20200707171846-129939419afd.png">
<p class="p">完成后,该磁盘的分区由未知变为GPT。</p>
<img class="image" id="iniwindows__image_ss4_v2k_rlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20200707171846-144e2fb69404.png" width="800">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">启动新建卷向导。</span>
<div class="itemgroup info">
<p class="p">单击下图中的字样。按页面提示完成新建卷向导。</p>
<img class="image" id="iniwindows__image_dpd_y2k_rlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20200707171846-1fffbdc99723.png" width="800">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">在<span class="ph menucascade"><span class="ph uicontrol">新建卷向导</span><abbr> > </abbr><span class="ph uicontrol">开始之前</span></span>页面,单击<span class="ph uicontrol">下一步</span>。</span>
<div class="itemgroup info">
<img class="image" id="iniwindows__image_k4y_ffk_rlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20200707171846-11e13e179264.png" width="800">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">进入<span class="ph menucascade"><span class="ph uicontrol">磁盘向导</span><abbr> > </abbr><span class="ph uicontrol">服务器和磁盘</span></span>页面,选择服务器和磁盘,此示例中,系统默认出现要挂载的服务器和磁盘。单击<span class="ph uicontrol">下一步</span>。</span>
<div class="itemgroup info">
<img class="image" id="iniwindows__image_wmd_xyq_rlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20200707171846-10ac17b89275.png" width="800">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">进入<span class="ph menucascade"><span class="ph uicontrol">磁盘向导</span><abbr> > </abbr><span class="ph uicontrol">大小</span></span>页面,设置卷大小,默认为磁盘最大值,您可以根据实际需要,填写卷大小。完成后,单击<span class="ph uicontrol">下一步</span>。</span>
<div class="itemgroup info">
<img class="image" id="iniwindows__image_mxj_yyq_rlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20200707171846-13c10890946d.png" width="800">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">进入<span class="ph menucascade"><span class="ph uicontrol">磁盘向导</span><abbr> > </abbr><span class="ph uicontrol">驱动器号或文件夹</span></span>页面,根据实际需求选择驱动器号,完成后,单击<span class="ph uicontrol">下一步</span>。</span>
<div class="itemgroup info">
<img class="image" id="iniwindows__image_sjt_zyq_rlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20200707171846-1b9410c490be.png" width="800">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd"> 进入<span class="ph menucascade"><span class="ph uicontrol">磁盘向导</span><abbr> > </abbr><span class="ph uicontrol">文件系统设置</span></span>页面,选择文件系统及分配单元大小,此示例中,选择默认值,完成后,单击<span class="ph uicontrol">下一步</span>。</span>
<div class="itemgroup info">
<img class="image" id="iniwindows__image_vxh_dzq_rlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20200707171846-1d01ffab9c87.png" width="800">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">进入<span class="ph menucascade"><span class="ph uicontrol">磁盘向导</span><abbr> > </abbr><span class="ph uicontrol">确认</span></span>页面,确认刚刚配置的内容,无误后,单击<span class="ph uicontrol">创建</span>。</span>
<div class="itemgroup info">
<img class="image" id="iniwindows__image_dq5_fzq_rlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20200707171846-1a5a72eb94ee.png" width="800">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">进入<span class="ph menucascade"><span class="ph uicontrol">新建卷向导</span><abbr> > </abbr><span class="ph uicontrol">结果</span></span>页面,等待各项任务执行完成,然后<span class="ph uicontrol">关闭</span>此页面。</span>
<div class="itemgroup info">
<img class="image" id="iniwindows__image_ils_gzq_rlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20200707171846-125787229644.png" width="800">
</div>
</li></ol></section>
<section class="section result" id="iniwindows__result_irb_2ck_rlb"><div class="tasklabel"><h2 class="doc-tairway">执行结果</h2></div>
<p class="p">在<span class="keyword wintitle">此电脑</span>页面,可以看到刚刚创建的卷。</p>
<img class="image" id="iniwindows__image_u1c_3zq_rlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20200707171846-18eb6e659c04.png" width="800">
</section>
<section class="section postreq" id="iniwindows__postreq_vmp_jzq_rlb"><div class="tasklabel"><h2 class="doc-tairway">后续操作</h2></div>
<p class="p">如果创建卷时,您基于挂载的云硬盘创建多个卷,那么,在创建卷时,卷的大小填写的小于最大值,例如,云硬盘最大容量为20GB,您可以填写10GB。完成一个卷的创建后,您可以基于剩余的容量再创建一个卷。</p>
<img class="image" id="iniwindows__image_gyg_vzq_rlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20200707171846-1530b0ca9a54.png" width="800">
<p class="p">创建完成后,您可以看到,在磁盘页面中,仍然有9.87GB的容量没有被分配。</p>
<img class="image" id="iniwindows__image_s3t_kzq_rlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20200707171846-198ba45899c9.png" width="800">
<p class="p">在磁盘页面,选中云硬盘,然后单击右键,选择<span class="ph uicontrol">新建卷</span>,既可以按照此示例中的步骤10~15,完成另外一个卷的创建。</p>
<img class="image" id="iniwindows__image_plb_yzq_rlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20200707171846-16462e8e9476.png" width="800">
<p class="p">操作完成后,您可以在此电脑中看到刚刚创建的两个卷。</p>
<img class="image" id="iniwindows__image_apd_zzq_rlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20200707171847-12f294bc9fb7.png" width="800">
</section>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!