VMware Cloud Community
Gaetan123
Enthusiast
Enthusiast

Increase storage for an OrgVDC

Hello.

I'm trying to increase the Storage allocated for a VDC.

PS C:\Users\\Documents\WindowsPowerShell> get-orgvdc LON-TEST-VDC1 | ft name,storagelimitGB

Name            StorageLimitGB

----            --------------

LON-TEST-VDC1           3607

PS C:\Users\\Documents\WindowsPowerShell> set-orgvdc LON-TEST-VDC1 -StorageLimitGB 3608 -whatif

Set-OrgVdc : A parameter cannot be found that matches parameter name 'StorageLimitGB'.

At line:1 char:28

+ set-orgvdc LON-TEST-VDC1 -StorageLimitGB 3608 -whatif

+                            ~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidArgument: (:) [Set-OrgVdc], ParameterBindingException

    + FullyQualifiedErrorId : NamedParameterNotFound,VMware.VimAutomation.Cloud.Commands.Cmdlets.SetOrgVdc

I may not be using the right cmdlet obviously.

thanks

Regards

Gaetan

8 Replies
LucD
Leadership
Leadership

Isn't that the StorageAllocationGB parameter on the Set-OrgVdc cmdlet?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
Gaetan123
Enthusiast
Enthusiast

Hi LucD,

in my case StorageAllocationGB is showing -1

Reply
0 Kudos
LucD
Leadership
Leadership

When you use the Set-OrgVdc with the StorageAllocationGB parameter?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
Gaetan123
Enthusiast
Enthusiast

When I do a get-orgvdc and select name,StorageLimitGB, StorageAllocationGB

StorageLimitGB is showing 3607 but StorageAllocationGB is showing -1

In vCloud Director, the storage policy is showing 3607. I have a few org vdc to change and it takes too many clicks to get there.

Reply
0 Kudos
LucD
Leadership
Leadership

It looks like changing the Limit on a Storage Profile is currently only possible through the API, not through a cmdlet.

See Update Organization vDC Storage Profiles.

You might want to have a look at vCloud Director Provider and OrgV DC Storage Profile PowerCLI Module.

But note that this is not an official PowerCLI module!


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Gaetan123
Enthusiast
Enthusiast

set-OrgVdcStorageProfile -OrgName TEST | Set-OrgVdcStorageProfile -Limit 3694592

PS C:\Users\\Documents\WindowsPowerShell> get-orgvdc LON-TEST-VDC1 | ft name,storagelimitGB

Name            StorageLimitGB

----            --------------

LON-TEST-VDC1           3608

Reply
0 Kudos
LucD
Leadership
Leadership

I assume that 1st cmdlet was Get-OrgVdcStorageProfile?

Since the value on the Limit parameter is in MB it seems to have worked (3694592 MB = 3608 GB).

While you had 3607 GB at the start.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
Gaetan123
Enthusiast
Enthusiast

Correct. Thank you so much. We have 5 sites with many customers to update and that made my life much easier. Changes are properly reflected now

Reply
0 Kudos