安装了PVE,会发现系统默认把空间分成了Local、Local-LVM两部分,这样的话对于像三角云、星际蜗牛这样的矿渣来说安装好了控件不是特别够,所以需要把两部分控件合并起来,具体操作如下:
1、备份虚拟机(如果是全新安装,则省略这一步)
2、删除虚拟机(如果是全新安装,则省略这一步)
3、删除local-lvm
root@pve:~# lvremove pve/data
Do you really want to remove and DISCARD active logical volume pve/data? [y/n]: y
Logical volume "data" successfully removed
root@pve:~#
4、扩展Loacal,把删除的Local-LVM控件扩展给Local
root@pve:~# lvextend -l +100%FREE -r pve/root
Size of logical volume pve/root changed from 96.00 GiB (24576 extents) to <550.23 GiB (140858 extents).
Logical volume pve/root successfully resized.
resize2fs 1.44.5 (15-Dec-2018)
Filesystem at /dev/mapper/pve-root is mounted on /; on-line resizing required
old_desc_blocks = 12, new_desc_blocks = 69
The filesystem on /dev/mapper/pve-root is now 144238592 (4k) blocks long.
root@pve:~#
5、PVE页面删除Local-LVM储存
6、编辑Local,内容全部打上勾
7、搞定
8、恢复虚拟机(如果是全新安装,则省略这一步)