NAME
Set-DcsServerGroupDefaultWitnessProperties
SYNOPSIS
Sets the default witness properties for the server group.
SYNTAX
Set-DcsServerGroupDefaultWitnessProperties -Address <String> [ -Connection <String> ] [ -PipelineVariable <String> ]
Set-DcsServerGroupDefaultWitnessProperties -IOFenced [ -Connection <String> ] [ -PipelineVariable <String> ]
Set-DcsServerGroupDefaultWitnessProperties -NoWitness [ -Connection <String> ] [ -PipelineVariable <String> ]
DESCRIPTION
Sets the default witness properties for the server group. The default server group setting is applied to all virtual disks that are not individually configured to use a specific witness with the cmdlet Set-DcsVirtualDiskWitnessProperties. The witness can be configured by providing an IP address for that witness. If the witness already exists and an IP address is provided, the IP address for the witness is changed. If a witness does not exist, it is created automatically using the provided IP address and assigned a default name. If there is an existing witness and it is set as either the -IOFenced or -NoWitness option, the witness is no longer needed and automatically deleted.
PARAMETERS
- -Address<String>
- IP address of the witness. This parameter will either change the IP address of an existing witness, or create a new witness with the provided IP address if a witness does not already exist. New witness is created with the base name of "Witness" with a number appended, such as Witness 1, Witness 2.
-
- Required: true
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -Connection<String>
- Alias of the connection to the server group. If not specified, the default connection is used.
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -PipelineVariable<String>
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -IOFenced<SwitchParameter>
- Specify this parameter to set the witness option for an existing witness as "IOFenced", which will deny host access to both active storage sources in applicable virtual disks.
-
- Required: true
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -NoWitness<SwitchParameter>
- Specify this parameter to disable the witness and remove it from the server group configuration. This option does not disable host access in any way. Data will continue to flow through enabled front-end paths.
-
- Required: true
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
INPUTS
OUTPUTS
ServerHostGroupData : Object that identifies and describes the server group.
NOTES
The current values for DefaultWitness (Witness ID), and DefaultWitnessOption are displayed in the returned object from Get-DcsServerGroup. Related cmdlets: Add-DcsWitness, Get-DcsWitness, Remove-DcsWitness, Set-DcsVirtualDiskWitnessProperties, Set-DcsWitnessProperties, Invoke-DcsWitnessContact.
EXAMPLES
Set-DcsServerGroupDefaultWitnessProperties -Address "172.99.99.999"
In the example, there was no witness set and therefore a new witness is created using the provided IP address "172.99.99.999". The ServerHostGroupData object is returned. The data for the new witness (including the default name) can be retrieved using the cmdlet Get-DcsWitness.
OurGroup | : | True |
Alias | : | Local |
Description | : | |
State | : | Present |
SmtpSettings | : | |
LicenseSettings | : | DataCore.Executive.LicenseSettings |
LicenseType | : | NFR |
ContactData | : | |
StorageUsed | : | 0 B |
BulkStorageUsed | : | 0 B |
MaxStorage | : | 1 PiB |
RecoverySpeed | : | 32 |
ExistingProductKeys | : | {, , , ...} |
DataCoreStorageUsed | : | 700 GiB |
SupportBundleRelayAddress | : | |
MirrorTrunkMappingEnabled | : | False |
SelfHealingDelay | : | 480 |
DefaultWitness | : | 542bedf181cc496091462bad5c5bc6b9 |
DefaultWitnessOption | : | Automatic |
Sequencenumber | : | 641409 |
Id | : | 9c72ee84-b984-4d7a-a382-170f9d770e53 |
Caption | : | Local |
ExtendedCaption | : | Local |
Internal | : | False |
Set-DcsServerGroupDefaultWitnessProperties -IOFenced
The server group default witness is set to IOFenced, which disables host access to both active storage sources in affected virtual disks. In this case, the witness is no longer needed and is removed from the server group. The ServerHostGroupData object is returned.
OurGroup | : | True |
Alias | : | Local |
Description | : | |
State | : | Present |
SmtpSettings | : | |
LicenseSettings | : | DataCore.Executive.LicenseSettings |
LicenseType | : | NFR |
ContactData | : | |
StorageUsed | : | 0 B |
BulkStorageUsed | : | 0 B |
MaxStorage | : | 1 PiB |
RecoverySpeed | : | 32 |
ExistingProductKeys | : | {, , , ...} |
DataCoreStorageUsed | : | 700 GiB |
SupportBundleRelayAddress | : | |
MirrorTrunkMappingEnabled | : | False |
SelfHealingDelay | : | 480 |
DefaultWitness | : | |
DefaultWitnessOption | : | IoFenced |
WitnessAllowed | : | True |
Sequencenumber | : | 778703 |
Id | : | 9c72ee84-b984-4d7a-a382-170f9d770e53 |
Caption | : | Local |
ExtendedCaption | : | Local |
Internal | : | False |