1
2
3
4
5
6
7
8
9
10
11
12
|
# Get disk IDs
Get-StoragePool -IsPrimordial $true | Get-PhysicalDisk | Where-Object CanPool -eq $True | select-object DeviceId, FriendlyName, @{Name="Size";Expression={$_.size/1GB}}, PhysicalLocation | Sort-Object -Property PhysicalLocation
# Create Storage pool Example with 3 disk
$disks = get-physicaldisk |? {$_.DeviceId -in 2,3,4}
New-StoragePool –FriendlyName DataPool1 –StorageSubsystemFriendlyName (Get-StorageSubSystem).FriendlyName –PhysicalDisks $disks
# Create Virtual Disk Example using 3 columns and 64k Interleave
New-VirtualDisk -FriendlyName Data1 -StoragePoolFriendlyName DataPool1 -ProvisioningType Fixed -ResiliencySettingName Simple -NumberOfColumns 3 -Interleave 65536 –UseMaximumSize # 64K Interleave
# Create Volume Example using 64k Allocation Units
Get-VirtualDisk –FriendlyName DATA1 | Get-Disk | Initialize-Disk –Passthru | New-Partition –AssignDriveLetter –UseMaximumSize | Format-Volume -NewFileSystemLabel DATA1 -AllocationUnitSize 65536 # 64k Alloc
|