weizhouapache commented on PR #6005:
URL: https://github.com/apache/cloudstack/pull/6005#issuecomment-1405065990

   @DaanHoogland 
   we need to revisit this PR after 4.18 release.
   
   I have added the UI support and fixed a critical bug.
   
   However , it still does not work. the issues are
   (1) in DB/UI, the volume has new size (I set to 11GB), but on secondary 
storage, it is still the old size (8GB in my testing)
   ```
   # qemu-img info 
/mnt/secstoragetmp/volumes/2/498/b10834c2-8b11-33a5-add9-a2cc68f7f148.qcow2 
   image: 
/mnt/secstoragetmp/volumes/2/498/b10834c2-8b11-33a5-add9-a2cc68f7f148.qcow2
   file format: qcow2
   virtual size: 8 GiB (8589934592 bytes)
   disk size: 1.65 GiB
   cluster_size: 65536
   Format specific information:
       compat: 0.10
       compression type: zlib
       refcount bits: 16
   ```
   
   (2) after attaching it to a vm, the volume is copied to primary storage. 
however, the size is still not changed (=old size)
   
   ```
   # qemu-img info 
/mnt/657524e2-065b-3ca8-9e97-746b3c7d17db/2792282d-1e69-40a7-9072-206c7ff133f5
   image: 
/mnt/657524e2-065b-3ca8-9e97-746b3c7d17db/2792282d-1e69-40a7-9072-206c7ff133f5
   file format: qcow2
   virtual size: 8 GiB (8589934592 bytes)
   disk size: 1.65 GiB
   cluster_size: 65536
   Format specific information:
       compat: 0.10
       compression type: zlib
       refcount bits: 16
   ```
   
   In short, volume is never resized (on KVM). I did not see any log to resize 
the volume.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to