You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Builds a virutal two node, streched, general purpose file server cluster with storage replica
4
+
.DESCRIPTION
5
+
Script with all steps to build a streched cluster, based on two VMs, with a general purpose file server cluster role.
6
+
The underneath storage is not shared storage but local storage. The volume insiede the VMs will then replicated with Storage Replica
7
+
8
+
The sicript is intended to run on a third computer like a managemnt server where the Failover Cluster, Hyper-V and Storage Replica RSAT tools are installed.
9
+
10
+
.PARAMETERServer
11
+
Computer names of the thwo cluster nodes
12
+
13
+
.PARAMETERLocations
14
+
Name of the two sites. Will be used to name the sites in cluster fault domains configuration
15
+
16
+
.PARAMETERClusterName
17
+
Name of the failover cluster
18
+
19
+
.PARAMETERClusterIP
20
+
IP Address of the failover cluster
21
+
22
+
.PARAMETERCloudWitnessAccount
23
+
Name of the Azure storage account which should be used as cloud witness (empty if cloud witness should not be configure)
24
+
25
+
.PARAMETERCloudWitnessAccessKey
26
+
Primary access Key of the Azure storage account which should be used as cloud witness (empty if cloud witness should not be configure)
27
+
28
+
.PARAMETERWitnessShare
29
+
Full UNC path to the sahre which sould be used as witness file share (only if cloud witness can/sould not be used)
30
+
31
+
.PARAMETERHyperVHosts
32
+
Name of the Hyper-V hosts on which the two VMs are currently running (to attach the need VHDX to the VMs)
33
+
34
+
.PARAMETERDataVHDXBasePaths
35
+
Paths to the location where the VHDX files for the Data disks should be created (SOFS Share,CSV Volume, or local volume of the Hyper-V host)
36
+
37
+
.PARAMETERLogVHDXBasePaths
38
+
Paths to the location where the VHDX files for the Log disks should be created (SOFS Share,CSV Volume, or local volume of the Hyper-V host)
39
+
40
+
.PARAMETERLogDiskSize
41
+
Size fo the Log disk VHDX files in bytes (PowerShell will convert <number>GB automatically in the corresponding bytes value)
42
+
43
+
.PARAMETERDataDiskSize
44
+
Size fo the Data disk VHDX files in bytes (PowerShell will convert <number>GB automatically in the corresponding bytes value)
45
+
46
+
.PARAMETERLogDiskLetter
47
+
Drive Letter of the Log disk volume
48
+
49
+
.PARAMETERDataDiskLetter
50
+
Drive Letter of the Data disk volume
51
+
52
+
.PARAMETERFSClusterName
53
+
Name of the File Server Cluster Role
54
+
55
+
.PARAMETERFSClusterIP
56
+
IP Address of the File Server Cluster Role
57
+
58
+
.PARAMETERShareNames
59
+
An Arry with Hashtable(s) with file share which sould be created on the Data volume. (One Hashtable per File Share)
60
+
The Hashtable must contains to keys "Sharename" and "ContinuouslyAvailable"
New-SRPartnership-SourceComputerName $Servers[0] -SourceRGName "RG-Data-$($Servers[0])"-SourceRGDescription "Replication Group for D: from $($Servers[0]) to $($Servers[1])"-SourceVolumeName $DataDiskLetter-SourceLogVolumeName $LogDiskLetter-DestinationComputerName $Servers[1] -DestinationRGName "RG-Data-$($Servers[1])"-DestinationRGDescription "Replication Group for D: from $($Servers[0]) to $($Servers[1])"-DestinationVolumeName $DataDiskLetter-DestinationLogVolumeName $LogDiskLetter-ReplicationMode $ReplicationMode
0 commit comments