Bug 2086561
| Summary: | Convert from Preallocated to Sparse doesn't change the actual disks' size | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-engine | Reporter: | sshmulev |
| Component: | BLL.Storage | Assignee: | Benny Zlotnik <bzlotnik> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Ilia Markelov <imarkelo> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.5.0.8 | CC: | ahadas, bugs, bzlotnik, lsvaty, sfishbai |
| Target Milestone: | ovirt-4.5.2 | Flags: | pm-rhel:
ovirt-4.5?
lsvaty: blocker- |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ovirt-engine-4.5.2 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-08-30 08:47:42 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Storage | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
sshmulev
2022-05-16 12:37:11 UTC
Fixing Engine version I tested this on: Engine-4.5.0.6-0.7.el8ev While verifying I've found that the actual size after the convert is now 134217728, which is much less than the 2.5G default size for the thin disk. Is it fine, or something is wrong? For example I converted ISCSI-Cow-Preallocated-Enabled to ISCSI-Cow-Thin-Enabled and got this: <backup>incremental</backup> <content_type>data</content_type> <format>cow</format> ... <propagate_errors>false</propagate_errors> <provisioned_size>5368709120</provisioned_size> <shareable>false</shareable> <sparse>true</sparse> <status>ok</status> <storage_type>image</storage_type> <total_size>134217728</total_size> As discussed, the actual allocated size is 134217728, so that is the required size for the conversion to qcow, as measure by: $ qemu-img measure -f qcow2 -O qcow2 img Verified. The actual size of the disk after conversion is 134217728, which is smaller than 5G. Versions: engine-4.5.1.3-654.af4ac851f145.35.el8ev vdsm-4.50.2-1.el8ev.x86_64 This bugzilla is included in oVirt 4.5.2 release, published on August 10th 2022. Since the problem described in this bug report should be resolved in oVirt 4.5.2 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report. |