PVE 8.2 qcow2 Disk Changes from Thin Provisioning to Thick Provisioning

felix_zhong

New Member
Feb 23, 2024
1
0
1
I am running virtual machines on Proxmox VE 8.2, where all VMs are stored on local file storage with the ext4 filesystem format. Ceph storage is used as a shared resource for temporary use by VMs. Typically, when a host requires maintenance, I need to quickly migrate VMs to the Ceph storage.

During a failure migration, I moved a qcow2 disk from local storage to Ceph storage. After the host was restored, when migrating the qcow2 disk back from Ceph to local storage, I noticed that the qcow2 disk had changed from thin provisioning to thick provisioning. When attempting to migrate the qcow2 disk directly from one host's local storage to another host's local storage, the format reverted from thick provisioning back to thin provisioning.

In my test environment using PVE 8.1, this issue does not occur. When migrating from Ceph storage to local storage, the qcow2 disk remains in thin provisioning mode.

Could you please advise on how to resolve this issue?




create full clone of drive virtio0 (cephpool:vm-11254131-disk-0)
Formatting '/mnt/pve/datapool/images/11254131/vm-11254131-disk-0.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off preallocation=off compression_type=zlib size=53687091200 lazy_refcounts=off refcount_bits=16
drive mirror is starting for drive-virtio0
drive-virtio0: transferred 0.0 B of 50.0 GiB (0.00%) in 0s
drive-virtio0: transferred 1.8 GiB of 50.0 GiB (3.50%) in 1s
drive-virtio0: transferred 2.8 GiB of 50.0 GiB (5.62%) in 2s
drive-virtio0: transferred 3.8 GiB of 50.0 GiB (7.59%) in 3s
drive-virtio0: transferred 4.8 GiB of 50.0 GiB (9.55%) in 4s
drive-virtio0: transferred 5.8 GiB of 50.0 GiB (11.52%) in 5s
drive-virtio0: transferred 6.7 GiB of 50.0 GiB (13.49%) in 6s
drive-virtio0: transferred 7.7 GiB of 50.0 GiB (15.42%) in 7s
drive-virtio0: transferred 8.7 GiB of 50.0 GiB (17.39%) in 8s
drive-virtio0: transferred 9.7 GiB of 50.0 GiB (19.36%) in 9s
drive-virtio0: transferred 10.7 GiB of 50.0 GiB (21.30%) in 10s
drive-virtio0: transferred 11.6 GiB of 50.0 GiB (23.27%) in 11s
drive-virtio0: transferred 12.6 GiB of 50.0 GiB (25.23%) in 12s
drive-virtio0: transferred 13.6 GiB of 50.0 GiB (27.20%) in 13s
drive-virtio0: transferred 14.6 GiB of 50.0 GiB (29.17%) in 14s
drive-virtio0: transferred 15.6 GiB of 50.0 GiB (31.13%) in 15s
drive-virtio0: transferred 16.5 GiB of 50.0 GiB (33.07%) in 16s
drive-virtio0: transferred 17.5 GiB of 50.0 GiB (35.03%) in 17s
drive-virtio0: transferred 18.5 GiB of 50.0 GiB (36.97%) in 18s
drive-virtio0: transferred 19.5 GiB of 50.0 GiB (38.96%) in 19s
drive-virtio0: transferred 20.5 GiB of 50.0 GiB (40.93%) in 20s
drive-virtio0: transferred 21.4 GiB of 50.0 GiB (42.89%) in 21s
drive-virtio0: transferred 22.4 GiB of 50.0 GiB (44.86%) in 22s
drive-virtio0: transferred 23.4 GiB of 50.0 GiB (46.77%) in 23s
drive-virtio0: transferred 24.4 GiB of 50.0 GiB (48.73%) in 24s
drive-virtio0: transferred 25.3 GiB of 50.0 GiB (50.70%) in 25s
drive-virtio0: transferred 26.3 GiB of 50.0 GiB (52.67%) in 26s
drive-virtio0: transferred 27.3 GiB of 50.0 GiB (54.63%) in 27s
drive-virtio0: transferred 28.3 GiB of 50.0 GiB (56.60%) in 28s
drive-virtio0: transferred 29.3 GiB of 50.0 GiB (58.51%) in 29s
drive-virtio0: transferred 30.2 GiB of 50.0 GiB (60.48%) in 30s
drive-virtio0: transferred 31.2 GiB of 50.0 GiB (62.45%) in 31s
drive-virtio0: transferred 32.2 GiB of 50.0 GiB (64.33%) in 32s
drive-virtio0: transferred 33.1 GiB of 50.0 GiB (66.28%) in 33s
drive-virtio0: transferred 34.1 GiB of 50.0 GiB (68.25%) in 34s
drive-virtio0: transferred 35.1 GiB of 50.0 GiB (70.21%) in 35s
drive-virtio0: transferred 36.0 GiB of 50.0 GiB (72.08%) in 36s
drive-virtio0: transferred 37.0 GiB of 50.0 GiB (74.04%) in 37s
drive-virtio0: transferred 38.0 GiB of 50.0 GiB (76.01%) in 38s
drive-virtio0: transferred 38.9 GiB of 50.0 GiB (77.87%) in 39s
drive-virtio0: transferred 39.9 GiB of 50.0 GiB (79.84%) in 40s
drive-virtio0: transferred 40.9 GiB of 50.0 GiB (81.80%) in 41s
drive-virtio0: transferred 41.8 GiB of 50.0 GiB (83.67%) in 42s
drive-virtio0: transferred 42.8 GiB of 50.0 GiB (85.64%) in 43s
drive-virtio0: transferred 43.8 GiB of 50.0 GiB (87.61%) in 44s
drive-virtio0: transferred 44.8 GiB of 50.0 GiB (89.54%) in 45s
drive-virtio0: transferred 45.8 GiB of 50.0 GiB (91.51%) in 46s
drive-virtio0: transferred 46.7 GiB of 50.0 GiB (93.47%) in 47s
drive-virtio0: transferred 47.7 GiB of 50.0 GiB (95.44%) in 48s
drive-virtio0: transferred 48.7 GiB of 50.0 GiB (97.41%) in 49s
drive-virtio0: transferred 49.7 GiB of 50.0 GiB (99.37%) in 50s
drive-virtio0: transferred 50.0 GiB of 50.0 GiB (100.00%) in 51s, ready
all 'mirror' jobs are ready
drive-virtio0: Completing block job_id...
drive-virtio0: Completed successfully.
drive-virtio0: mirror-job finished
did not load config file, using default settings.
2024-12-26T15:47:32.996+0800 7ab36368d500 -1 Errors while parsing config file!
2024-12-26T15:47:32.996+0800 7ab36368d500 -1 can't open ceph.conf: (2) No such file or directory
2024-12-26T15:47:32.996+0800 7ab36368d500 -1 Errors while parsing config file!
2024-12-26T15:47:32.996+0800 7ab36368d500 -1 can't open ceph.conf: (2) No such file or directory
did not load config file, using default settings.
2024-12-26T15:47:33.033+0800 7fcc1f892500 -1 Errors while parsing config file!
2024-12-26T15:47:33.033+0800 7fcc1f892500 -1 can't open ceph.conf: (2) No such file or directory
2024-12-26T15:47:33.033+0800 7fcc1f892500 -1 Errors while parsing config file!
2024-12-26T15:47:33.033+0800 7fcc1f892500 -1 can't open ceph.conf: (2) No such file or directory
Removing image: 1% complete...
Removing image: 2% complete...
Removing image: 3% complete...
Removing image: 4% complete...
Removing image: 5% complete...
Removing image: 6% complete...
Removing image: 7% complete...
Removing image: 8% complete...
Removing image: 9% complete...
Removing image: 10% complete...
Removing image: 11% complete...
Removing image: 12% complete...
Removing image: 13% complete...
Removing image: 14% complete...
Removing image: 15% complete...
Removing image: 16% complete...
Removing image: 17% complete...
Removing image: 18% complete...
Removing image: 19% complete...
Removing image: 20% complete...
Removing image: 21% complete...
Removing image: 22% complete...
Removing image: 23% complete...
Removing image: 24% complete...
Removing image: 25% complete...
Removing image: 26% complete...
Removing image: 27% complete...
Removing image: 28% complete...
Removing image: 29% complete...
Removing image: 30% complete...
Removing image: 31% complete...
Removing image: 32% complete...
Removing image: 33% complete...
Removing image: 34% complete...
Removing image: 35% complete...
Removing image: 36% complete...
Removing image: 37% complete...
Removing image: 38% complete...
Removing image: 39% complete...
Removing image: 40% complete...
Removing image: 41% complete...
Removing image: 42% complete...
Removing image: 43% complete...
Removing image: 44% complete...
Removing image: 45% complete...
Removing image: 46% complete...
Removing image: 47% complete...
Removing image: 48% complete...
Removing image: 49% complete...
Removing image: 50% complete...
Removing image: 51% complete...
Removing image: 52% complete...
Removing image: 53% complete...
Removing image: 54% complete...
Removing image: 55% complete...
Removing image: 56% complete...
Removing image: 57% complete...
Removing image: 58% complete...
Removing image: 59% complete...
Removing image: 60% complete...
Removing image: 61% complete...
Removing image: 62% complete...
Removing image: 63% complete...
Removing image: 64% complete...
Removing image: 65% complete...
Removing image: 66% complete...
Removing image: 67% complete...
Removing image: 68% complete...
Removing image: 69% complete...
Removing image: 70% complete...
Removing image: 71% complete...
Removing image: 72% complete...
Removing image: 73% complete...
Removing image: 74% complete...
Removing image: 75% complete...
Removing image: 76% complete...
Removing image: 77% complete...
Removing image: 78% complete...
Removing image: 79% complete...
Removing image: 80% complete...
Removing image: 81% complete...
Removing image: 82% complete...
Removing image: 83% complete...
Removing image: 84% complete...
Removing image: 85% complete...
Removing image: 86% complete...
Removing image: 87% complete...
Removing image: 88% complete...
Removing image: 89% complete...
Removing image: 90% complete...
Removing image: 91% complete...
Removing image: 92% complete...
Removing image: 93% complete...
Removing image: 94% complete...
Removing image: 95% complete...
Removing image: 96% complete...
Removing image: 97% complete...
Removing image: 98% complete...
Removing image: 99% complete...
Removing image: 100% complete...done.
TASK OK
 

Attachments

  • Snipaste_2024-12-26_15-40-52.png
    Snipaste_2024-12-26_15-40-52.png
    14.5 KB · Views: 4
  • Snipaste_2024-12-26_15-48-54.png
    Snipaste_2024-12-26_15-48-54.png
    17.1 KB · Views: 4

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!