我想将 Proxmox 环境中的虚拟磁盘从 64GB 扩展到 100GB。来宾操作系统是 Debian 10。我在 Proxmox 中扩展了虚拟磁盘(现在有 100GB)并重新启动了来宾操作系统。
\ncfdisk
正确地看到磁盘的大小现在为 100GiB:
Disk: /dev/vda\n Size: 100 GiB, 107374182400 bytes, 209715200 sectors\n Label: dos, identifier: 0x9f2b12a1\n\n Device Boot Start End Sectors Size Id Type\n>> /dev/vda1 * 2048 499711 497664 243M 83 Linux\n /dev/vda2 501758 134215679 133713922 63.8G 5 Extended\n \xe2\x94\x94\xe2\x94\x80/dev/vda5 501760 134215679 133713920 63.8G 8e Linux LVM\n Free space 134215680 209715199 75499520 36G\n
Run Code Online (Sandbox Code Playgroud)\n但是我无法扩展vda2
或vda5
并出现以下错误消息: