Create a VDI in an SR as large as possible

2013-06-11 Thread Mike Tutkowski
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

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

2013-06-11 Thread Mike Tutkowski
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

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

2013-06-11 Thread Mike Tutkowski
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.tutkow...@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

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

2013-06-11 Thread Mike Tutkowski
Thanks for that info, Anthony. On Tue, Jun 11, 2013 at 11:43 AM, Anthony Xu xuefei...@citrix.com wrote: 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:

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

2013-06-11 Thread Anthony Xu
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