[sheepdog-users] 'dog vdi create' and specific size
namei.unix at gmail.com
Wed Feb 5 08:57:52 CET 2014
On Mon, Feb 03, 2014 at 03:06:43PM +0100, Valerio Pachera wrote:
> Hi, I need to create a vdi with the exact same size of a logical volume (in
> general, of a block device).
> lvdisplay --unit K /dev/vg00/test | grep 'LV Size'
> LV Size 524288,00 kB
> dog vdi list -r test_mirror
> = test_mirror 0 536870912 0 0 1391435637 fc8681 2:1
> As you can see, device size doesn't match.
> Is there a specific reason?
> Is it possible to get the exact size I require?
> Nonetheless I can't use Byte unit to create a vdi.
> In the above example, LV Size is multiple of 1024 but, in other cases, I
> need to specify a size that is not a multiple of 1024.
> lvdisplay --unit K /dev/ssd/win7office | grep 'LV Size'
> LV Size 54760833,02 kB
> It would be cool to be able to use Byte as unit
> lvdisplay --unit B /dev/ssd/win7office | grep 'LV Size'
> LV Size 54760833024 B
> dog vdi create win7office_mirror 54760833024B
We use bytes as default (I think we should support 'B' to represent bytes). So I
think 54760833024 would work.
More information about the sheepdog-users