欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

联通服务器操作系统 [qcow2 镜像空间扩展] 程序 - 扩展步骤

最编程 2024-09-29 20:43:36
...

一、检查环境信息

1.查看镜像信息

qemu-img info uniontechos-server-20-1050a-amd64-gui.qcow2
image: uniontechos-server-20-1050a-amd64-gui.qcow2
file format: qcow2 virtual size: 12.5 GiB (13421772800 bytes) #系统安装后的默认大小
disk size: 3.24 GiB
cluster_size: 65536
Format specific information:
compat: 1.1 lazy
refcounts: false
refcount bits: 16
corrupt: false

2.查看镜像分区信息

virt-df uniontechos-server-20-1050a-amd64-gui.qcow2
文件系统 1K-blocks 已用空间 可用空间 使用百分比%
uniontechos-server-20-1050a-amd64-gui.qcow2:/dev/sda1
1038336 197216 841120 19%
uniontechos-server-20-1050a-amd64-gui.qcow2:/dev/uniontechos/root
11524096 6933576 4590520 61%

3.确认需要扩容的分区名

virt-filesystems --partitions --long -a uniontechos-server-20-1050a-amd64-gui.qcow2
Name           T