云机硬盘如何扩容/新增

1.通过客户后台选择需要操作器进行升/降级操作,具体操作方法可参考:公有云升/降级操作

2.示例:当前数据盘为固态硬盘(高效)100G,由100G扩容到3000G

3.登录机器查看,当前以centos7.9系统为例 
通过下图可以看到,数据盘vdb已经扩容到3T,但是挂载点/home,还是100G, 
根据挂载点的文件系统格式,执行命令: xfs_growfs /home/,再次查看扩容完成 


命令使用场景解释: 
执行df -Th,查看挂载点的文件系统格式为xfs,不同文件系统格式,使用不同的命令即可 
xfs_growf   #扩展xfs文件系统 
resize2fs     #扩展ext4文件系统 

4.云机新增硬盘参考如下 
ps:新增硬盘,只能增加不同类型的硬盘,同类型硬盘只能扩容,无法新增 
图示:新增一块2000G的固态硬盘,支付后登录机器进行挂载 

5.查看下图,可以看到新增的硬盘vdc已经添加,需要操作挂载

6.创建挂载点,执行挂载即可 
mkdir /www   #创建挂载点 
mount /dev/vdc /www   #vdc这块盘挂载到/www 
vi /etc/fstab   #设置开机自动挂载书写格式参考下方图示 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Manual installation of the operating system on the public cloud

1.Log in to the raksmart backend and click on "Products & Services."   2.Enter the cloud...

To enable Google two-factor authentication in the public cloud

To ensure the security of user Rak Cloud management panel, Rak Cloud service panel supports...

How to build an internal network in the public cloud

To create an internal network for cloud virtual machines, ensure that the machines are on the...

How to enter rescue mode in public cloud

1. If the server's operating system cannot boot normally but you need to back up data, you can...

Operating the Public Cloud Snapshot/Backup Function

1.In the backend, go to "Product Services" and click on "Public Cloud." Find the desired product...