qemu-img resize qcow2 --shrink 4G

2022-09-09

1、qemu-img resize CentOS-Stream-ec2-8-20220125.1.x86_64.qcow2 --shrink 4G

2、qemu-img resize CentOS-Stream-ec2-8-20220125.1.x86_64.qcow2 +10G

3、qemu-img info CentOS-Stream-ec2-8-20220125.1.x86_64.qcow2
image: CentOS-Stream-ec2-8-20220125.1.x86_64.qcow2
file format: qcow2
virtual size: 4 GiB (4294967296 bytes)
disk size: 1.07 GiB
cluster_size: 65536
Format specific information:
compat: 0.10
compression type: zlib
refcount bits: 16

4、qemu-img info CentOS-Stream-GenericCloud-9-20220829.0.x86_64.qcow2
image: CentOS-Stream-GenericCloud-9-20220829.0.x86_64.qcow2
file format: qcow2
virtual size: 10 GiB (10737418240 bytes)
disk size: 978 MiB
cluster_size: 65536
Format specific information:
compat: 0.10
compression type: zlib
refcount bits: 16

分类:Linux | 标签: |

相关日志

评论被关闭!