Please notice the maximum size of VDI is 2T, Anthony
-----Original Message----- From: Mike Tutkowski [mailto:mike.tutkow...@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.tutkow...@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.tutkow...@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.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play> *(tm)*