Skip to content

Instantly share code, notes, and snippets.

@gregjhogan
Last active September 30, 2015 20:25
Show Gist options
  • Save gregjhogan/f5bf1ec965272da88bda to your computer and use it in GitHub Desktop.
Save gregjhogan/f5bf1ec965272da88bda to your computer and use it in GitHub Desktop.
Azure VM Storage Pool
# 1. add four or more virtual data disks (no caching) to a vm
# 2. run the following commands in the vm to turn them all into a single storage pool
New-StoragePool –FriendlyName StoragePool1 –StorageSubsystemFriendlyName "Storage Spaces*" –PhysicalDisks (Get-PhysicalDisk –CanPool $True)
$disks = Get-StoragePool –FriendlyName StoragePool1 -IsPrimordial $false | Get-PhysicalDisk
New-VirtualDisk -StoragePoolFriendlyName StoragePool1 –FriendlyName VirtualDisk1 -ResiliencySettingName Simple –NumberOfColumns $disks.Count –UseMaximumSize –Interleave 256KB
Get-VirtualDisk –FriendlyName VirtualDisk1 | Get-Disk | Initialize-Disk –Passthru | New-Partition –AssignDriveLetter –UseMaximumSize | Format-Volume –AllocationUnitSize 65536
# 3. in the future you can dynamically add capacity by adding additional disks (no idea how)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment