You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Mike Tutkowski <mi...@solidfire.com> on 2013/06/11 19:31:00 UTC

Create a VDI in an SR as large as possible

Hi,

I want to create an SR that has a single VDI that takes up all of the
available space of the SR.

The SR has some metadata on it, so I can't just set the size of the VDI
equal to the size of the SR.

Right now, I take the size of the SR and trim off some hard-coded number.

Anyone know how I can come up with this number dynamically?

Thanks!

-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: Create a VDI in an SR as large as possible

Posted by Mike Tutkowski <mi...@solidfire.com>.
Also, I've tried leaving the "virtualsize" property un-set, but it defaults
to a fairly small size.


On Tue, Jun 11, 2013 at 11:37 AM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> At one point I tried the following, but it didn't work (the VDI's size was
> set too high):
>
> vdir.virtualSize = sr.getPhysicalSize(conn) -
> sr.getPhysicalUtilisation(conn);
>
>
> On Tue, Jun 11, 2013 at 11:31 AM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
>> Hi,
>>
>> I want to create an SR that has a single VDI that takes up all of the
>> available space of the SR.
>>
>> The SR has some metadata on it, so I can't just set the size of the VDI
>> equal to the size of the SR.
>>
>> Right now, I take the size of the SR and trim off some hard-coded number.
>>
>> Anyone know how I can come up with this number dynamically?
>>
>> Thanks!
>>
>> --
>> *Mike Tutkowski*
>> *Senior CloudStack Developer, SolidFire Inc.*
>> e: mike.tutkowski@solidfire.com
>> o: 303.746.7302
>> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
>> *™*
>>
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: Create a VDI in an SR as large as possible

Posted by Mike Tutkowski <mi...@solidfire.com>.
Thanks for that info, Anthony.


On Tue, Jun 11, 2013 at 11:43 AM, Anthony Xu <Xu...@citrix.com> wrote:

> Please notice the maximum size of VDI is 2T,
>
> Anthony
>
> -----Original Message-----
> From: Mike Tutkowski [mailto:mike.tutkowski@solidfire.com]
> Sent: Tuesday, June 11, 2013 10:37 AM
> To: dev@cloudstack.apache.org
> Subject: Re: Create a VDI in an SR as large as possible
>
> At one point I tried the following, but it didn't work (the VDI's size was
> set too high):
>
> vdir.virtualSize = sr.getPhysicalSize(conn) -
> sr.getPhysicalUtilisation(conn);
>
>
> On Tue, Jun 11, 2013 at 11:31 AM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
> > Hi,
> >
> > I want to create an SR that has a single VDI that takes up all of the
> > available space of the SR.
> >
> > The SR has some metadata on it, so I can't just set the size of the
> > VDI equal to the size of the SR.
> >
> > Right now, I take the size of the SR and trim off some hard-coded number.
> >
> > Anyone know how I can come up with this number dynamically?
> >
> > Thanks!
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the
> > cloud<http://solidfire.com/solution/overview/?video=play>
> > *(tm)*
> >
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud<http://solidfire.com/solution/overview/?video=play>
> *(tm)*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

RE: Create a VDI in an SR as large as possible

Posted by Anthony Xu <Xu...@citrix.com>.
Please notice the maximum size of VDI is 2T,

Anthony

-----Original Message-----
From: Mike Tutkowski [mailto:mike.tutkowski@solidfire.com] 
Sent: Tuesday, June 11, 2013 10:37 AM
To: dev@cloudstack.apache.org
Subject: Re: Create a VDI in an SR as large as possible

At one point I tried the following, but it didn't work (the VDI's size was set too high):

vdir.virtualSize = sr.getPhysicalSize(conn) - sr.getPhysicalUtilisation(conn);


On Tue, Jun 11, 2013 at 11:31 AM, Mike Tutkowski < mike.tutkowski@solidfire.com> wrote:

> Hi,
>
> I want to create an SR that has a single VDI that takes up all of the 
> available space of the SR.
>
> The SR has some metadata on it, so I can't just set the size of the 
> VDI equal to the size of the SR.
>
> Right now, I take the size of the SR and trim off some hard-coded number.
>
> Anyone know how I can come up with this number dynamically?
>
> Thanks!
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the 
> cloud<http://solidfire.com/solution/overview/?video=play>
> *(tm)*
>



--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*(tm)*

Re: Create a VDI in an SR as large as possible

Posted by Mike Tutkowski <mi...@solidfire.com>.
At one point I tried the following, but it didn't work (the VDI's size was
set too high):

vdir.virtualSize = sr.getPhysicalSize(conn) -
sr.getPhysicalUtilisation(conn);


On Tue, Jun 11, 2013 at 11:31 AM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> Hi,
>
> I want to create an SR that has a single VDI that takes up all of the
> available space of the SR.
>
> The SR has some metadata on it, so I can't just set the size of the VDI
> equal to the size of the SR.
>
> Right now, I take the size of the SR and trim off some hard-coded number.
>
> Anyone know how I can come up with this number dynamically?
>
> Thanks!
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*