Reference Guide

Appendices
These appendices present the following topics:
Topics:
Appendix A: Sample PowerShell cmdlets for end-to-end deployment
Appendix B: Supported hardware
Appendix A: Sample PowerShell cmdlets for end-to-
end deployment
Install required Windows features
Install-WindowsFeature -Name Fs-Fileserver,Storage-Replica ,Hyper-V, Failover-
Clustering, Data-Center-Bridging -IncludeAllSubFeature -IncludeManagementTools -
Verbose
Create VM switches and configure host networking
#Create VMSwitch for Management Network
#Mention the correct network adapters based on your environment. This
configuration has to be done on all #nodes in the stretch cluster
New-VMSwitch -Name S2DSwitch -AllowManagementOS 0 -NetAdapterName "NIC1","NIC2"
-MinimumBandwidthMode Weight -Verbose
#Host Management Adapter
Add-VMNetworkAdapter -ManagementOS -Name "Management" -SwitchName S2DSwitch -
Passthru | Set-VMNetworkAdapterVlan -Access -VlanId 202 Verbose
New-NetIPAddress -InterfaceAlias "vEthernet (Management)" -IPAddress
192.168.100.11 -DefaultGateway 192.168.100.1 -PrefixLength 24 -AddressFamily
IPv4 Verbose
#DNS server address
Set-DnsClientServerAddress -InterfaceAlias "vEthernet (Management)" -
ServerAddresses 192.168.100.100,192.168.100.101
#Storage 1 Adapter
New-NetIPAddress -InterfaceAlias "SLOT 3 Port 1" -IPAddress 192.168.101.11 -
PrefixLength 24 -AddressFamily IPv4 -Verbose
#Storage 2 Adapter
New-NetIPAddress -InterfaceAlias "SLOT 3 Port 2" -IPAddress 192.168.102.11 -
PrefixLength 24 -AddressFamily IPv4 Verbose
#Enable RDMA on Storage Ports & set NetworkDirect Technology to iWarp
Enable-NetAdapterRDMA -Name "SLOT 3 Port 1", "SLOT 3 Port 2"
Set-NetAdapterAdvancedProperty -Name 'SLOT 3 PORT 1' -DisplayName 'NetworkDirect
Technology' -DisplayValue 'iWarp'
Set-NetAdapterAdvancedProperty -Name 'SLOT 3 PORT 2' -DisplayName 'NetworkDirect
Technology' -DisplayValue 'iWarp'
#Set VM Migration to SMB
Set-VMHost VirtualMachineMigrationPerformanceOption SMB
A
Appendices 21