![扩展虚拟机的分区(xfs)](https://linux22.com/image/676091/%E6%89%A9%E5%B1%95%E8%99%9A%E6%8B%9F%E6%9C%BA%E7%9A%84%E5%88%86%E5%8C%BA%EF%BC%88xfs%EF%BC%89.png)
操作系统:Ubuntu 14.04,分区表:
Model: VMware Virtual disk (scsi)
Disk /dev/sda: 37.6GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 200MB 199MB primary xfs boot
2 200MB 1201MB 1000MB primary linux-swap(v1)
3 1201MB 2201MB 1000MB primary xfs
4 2202MB 26.8GB 24.6GB extended
5 2202MB 8201MB 5999MB logical xfs
6 8202MB 26.8GB 18.6GB logical xfs
我正在尝试扩展虚拟机上的一个分区(#6)。VM 位于 ESXi 上,我在其中为当前磁盘增加了 10GB 的磁盘空间。parted
识别新空间,但当我尝试调整分区大小时,它给出:
(parted) resizepart 6
End? [26.8GB]? 37.6GB
Error: Can't have overlapping partitions.
如果我尝试删除并在其位置创建一个新的分区,我会收到以下消息,就好像它记住了前一个分区一样?:
(parted) rm 6
(parted) mkpart
Partition type? [logical]?
File system type? [ext2]? xfs
Start? 8202MB
End? 37.6GB
Warning: You requested a partition from 8202MB to 37.6GB.
The closest location we can manage is 8202MB to 26.8GB.
Is this still acceptable to you?
Yes/No?
我不确定如何将新空间分配给我的分区 6?如果需要任何详细信息,请告诉我。
答案1
您需要先扩展扩展分区 (4)。然后才能扩展/替换逻辑分区。