因vps业务需求,经常需要动态调整磁盘空间的大小。通过好友的提醒,于是就用到了DISKPART这工具。但最后证实diskpart不能扩容系统分区,可以扩容其他分区。扩容分区操作如下:
1.VC连接ESXI----VM配置(edit setting)----硬盘,调整硬盘容量
 
2.启动VM
 
3.进入VM中,cmd----输入指令>diskpart
 
4.diskpart> list volume
 
5.diskpart> select volume 2
volume 2是指要扩容的那块硬盘(2指的是卷名)
 
6.diskpart>select disk 0
disk 0是指要扩容的那块硬盘(0指的是卷名)
 
7.diskpart> select partition 2
partition 2是指要扩容的那个分区
 
8.diskpart>extend
会提示扩容成功与否
 
9.diskpart>exit
 
OK!