<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Mon, Mar 26, 2018 at 11:41 AM Richard W.M. Jones <<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, Mar 25, 2018 at 08:05:14PM +0000, Nir Soffer wrote:<br>> When using the sdk, you can select both the image format and sparse, so you<br>
> can create invalid combinations. oVirt selects the allocation for you.<br>
><br>
> storage type  image format  sparse | allocation      creating<br>
> -----------------------------------|--------------------------------------------------------<br>
> file          qcow2         true   | thin           sparse file of image<br>
> size bytes<br>
> file          raw           false  | preallocated   preallocated file of<br>
> provisioned_size bytes<br>
> file          raw           true   | thin           sparse file of<br>
> provisioned_size<br>
> bytes<br>
> file          qcow2         false  | -              unsupported<br>
> block         qcow2         true   | thin           logical volume of<br>
> initial_size bytes<br>
> block         raw           false  | preallocated   logical volume of<br>
> provisioned_size bytes<br>
> block         qcow2         false  | -              unsupported<br>
> block         raw           true   | -              unsupported<br>
><br>
> The only case when selecting the sparse value is useful is raw file<br>
> on file based storage domain, allowing creation of sparse or preallocated<br>
> disk.<br>
<br>
I don't think this is true.  Both LVs (lvmthin) and SAN LUNs can<br>
support sparse allocation meaningfully.</blockquote><div><br></div><div>"sparse" is just another way for selecting "thin" or "preallocated" allocation</div><div>policy. In oVirt we emulate thin volume on block storage using regular logical</div><div>volumes.</div><div><br></div><div>lvmthin does not support sharing a logical volume in a cluster. SAN LUN can support </div><div>thin provisioning, but we don't support upload to LUN yet.</div><div><br></div><div>Nir</div></div></div>