Last active
September 30, 2015 20:25
-
-
Save gregjhogan/f5bf1ec965272da88bda to your computer and use it in GitHub Desktop.
Azure VM Storage Pool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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