增加虚拟机 VirtualBox 中的磁盘大小(CentOS)。

huangapple go评论59阅读模式
英文:

increase disk size on virtual box (cent os)

问题

我需要增加磁盘大小。
我的系统部署在Oracle VirtualBox上。
我在VirtualBox中增加了磁盘大小超过200 GB,但在CentOS中,系统磁盘大小仍然保持不变(18 GB)。
我该如何将新增的磁盘空间移动到系统驱动器上?

英文:

I need to increase the disk size.

my system is deployed on oracle virtualbox.
I increased the size of the disk in virtualbox on 200+ gb, but in cent os the system disk remained the same size(18 gb).
How do I move the disk space that has appeared to the system drive?
screenshot

答案1

得分: 1

以下是翻译好的内容:

  1. 修改您的分区表,使 sda2 结束于磁盘的末尾。
  2. 重新读取分区表(需要重新启动)。
  3. 使用 pvresize 调整您的 LVM 物理卷。

链接:https://serverfault.com/questions/861517/centos-7-extend-partition-with-unallocated-space

英文:

I think this is what you need to do

  1. alter your partition table so sda2 ends at end of disk
  2. reread the partition table (will require a reboot)
  3. resize your LVM pv using pvresize

https://serverfault.com/questions/861517/centos-7-extend-partition-with-unallocated-space

huangapple
  • 本文由 发表于 2023年6月30日 02:55:30
  • 转载请务必保留本文链接:https://go.coder-hub.com/76583903.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定