Administrator Guide
# Begin - Long Line 01
New-Volume -StoragePoolFriendlyName "StoragePool" -FriendlyName $VolumeFriendlyName -ResiliencySettingName "Mirror" -
ProvisioningType "Fixed" -StorageTiers $ssdTier,$hddTier -StorageTierSizes $SSDSize,$HDDSize -FileSystem NTFS -
PhysicalDiskRedundancy 1 -NumberOfColumns 2 -NumberOfDataCopies 2
# End - Long Line 01
#Begin - Long Line 02
$ClusterDiskName = (Get-ClusterResource | Where-Object {($_.ResourceType -match "Physical Disk")} | Get-ClusterParameter
VirtualDiskName | Where-Object {$_.Value -match $VolumeFriendlyName}).ClusterObject.Name
#End - Long Line 02
if ($ClusterDiskName)
{
Write-Verbose -Message "$functionName Virtual disk name: $VolumeFriendlyName, Add the disk to CSV."
$csVolume = Add-ClusterSharedVolume -Name $ClusterDiskName
}
$dir = $csVolume.SharedVolumeInfo.FriendlyVolumeName
md $dir\Shares\$VolumeFriendlyName
New-SmbShare -Name $VolumeFriendlyName -Path $dir\Shares\$VolumeFriendlyName -ContinuouslyAvailable $true
The following table describes three important parameters to consider when you are creating a new share:
Table 12. Parameters
Parameter Default Setting Description
PhysicalDiskRedundancy 1 Number of failed disks that the new share can
handle.
NumberOfColumns 2 Number of underlying physical disks across which
one stripe of data for a virtual disk is written.
NumberOfDataCopies 2 Settings you can use to congure mirroring:
• 2, the default setting, creates a two-way
mirror.
• 3 creates a three-way mirror, or species dual
parity.
NOTE: 2x2 congurations provide 2-way
mirroring, and 2x3 congurations provide
2-way mirroring plus enclosure awareness.
To support 3-way mirroring, you must
have a 2x4 conguration, which provides
3-way mirroring plus enclosure awareness.
IMPORTANT: If you are using exclusively
SSDs, you are limited to a 2x2
conguration.
2 From the Console VM, start a PowerShell with elevated rights. Type Enter-PSsession followed by the name of the Storage node
where the script was saved, browse to where the script is located, and run it.
3 Connect to the Virtual Machine Manager (VMM) console.
Administration
31