<br><br><div class="gmail_quote">On 4 February 2011 11:45, carlopmart <span dir="ltr"><<a href="mailto:carlopmart@gmail.com">carlopmart@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 02/04/2011 12:37 PM, John Haxby wrote:<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div class="h5"><br>
Do you mean something like this (from the lvcreate man page):<br>
<br>
"lvcreate --virtualsize 1T --size 100M --snapshot --name sparse vg1"<br>
creates a sparse device named /dev/vg1/sparse of size 1TB with space<br>
for just under 100MB of actual data on it.<br>
<br>
<br>
jch<br>
<br>
<br>
</div></div></blockquote>
<br>
Yes, but If I understand good, these options are only valid for snapshots ... I am trying to do a sparse logical volume without using snapshots ...<div><div></div><br></div></blockquote></div><br><br>Hmmm. So you want to create a sparse logical volume using something other than the mechanism for creating sparse logical volumes? Quoting the man page again:<br>
<br> --virtualsize VirtualSize<br> Create a sparse device of the given size (in MB by default)<br> using a snapshot. Anything written to the device will be<br> returned when reading from it. Reading from other areas of the<br>
device will return blocks of zeros. It is implemented by creat‐<br> ing a hidden virtual device of the requested size using the zero<br> target. A suffix of _vorigin is used for this device.<br>
<br>Actually, I think the "--snapshot" on the man page example I previously quoted is either redundant or wrong, this command works just fine:<br><br> lvcreate --virtualsize 1T --size 100M --name sparse vg1<br>
<br>Now it doesn't mention the s-word are you happy?<br><br>jch<br>