[sheepdog-users] 'dog vdi create' and specific size
sirio81 at gmail.com
Mon Feb 3 15:06:43 CET 2014
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
'You may use k, M, G, T or P suffixes for kilobytes, megabytes, gigabytes,
terabytes and petabytes.'
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sheepdog-users