add-databaseavailabiltygroupserver started on machine SRV-MAIL-03.
add-dagserver started
commandline: $scriptCmd = {& $wrappedCmd @PSBoundParameters }
Option 'Identity' = 'DAG2022'.
Option 'MailboxServer' = 'srv-mail-03'.
Option 'DatabaseAvailabilityGroupIpAddresses' = ''.
Option 'WhatIf' = ''.
Process: w3wp w3wp.exe.
User context = 'NT AUTHORITY\SYSTEM'.
Member of group 'Everyone'.
Member of group 'BUILTIN\Users'.
Member of group 'NT AUTHORITY\SERVICE'.
Member of group 'CONSOLE LOGON'.
Member of group 'NT AUTHORITY\Authenticated Users'.
Member of group 'NT AUTHORITY\This Organization'.
Member of group 'BUILTIN\IIS_IUSRS'.
Member of group 'LOCAL'.
Member of group 'IIS APPPOOL\MSExchangePowerShellAppPool'.
Member of group 'BUILTIN\Administrators'.
Updated Progress 'Validating the parameters.' 2%.
Validating the parameters.
Working
Mailbox server: value passed in = srv-mail-03, mailboxServer.Name = SRV-MAIL-03, mailboxServer.Fqdn = srv-mail-03.entadm.group
LogClussvcState: Received an InvalidOperationException for server srv-mail-03.
LogClussvcState: clussvc is not installed on srv-mail-03.entadm.group. Exception (if any) = none
The IP addresses for the DAG are (blank means DHCP): 10.128.49.20
Looking up IP addresses for DAG2022.
DAG2022 = .
Looking up IP addresses for srv-mail-03.
srv-mail-03 = .
Looking up IP addresses for srv-mail-03.entadm.group.
srv-mail-03.entadm.group = .
DAG DAG2022 has 2 servers:
SRV-MAIL-03 has an Operating System Version of 10.0
SRV-MAIL-02 has an Operating System Version of 10.0
SRV-MAIL-01 has an Operating System Version of 10.0
DAG DAG2022 contains server SRV-MAIL-02.
DAG DAG2022 contains server SRV-MAIL-01.
According to GetNodeClusterState(), the server SRV-MAIL-03 is NotInstalled.
Updated Progress 'Checking if Mailbox server 'SRV-MAIL-03' is in a database availability group.' 4%.
Checking if Mailbox server 'SRV-MAIL-03' is in a database availability group.
Working
GetRemoteCluster() for the mailbox server failed with exception = An error occurred while attempting a cluster operation. Error: Cluster API failed: "OpenCluster(srv-mail-03.entadm.group) failed with 0x6d9. Error: There are no more endpoints available from the endpoint mapper". This is OK.
Ignoring previous error, as it is acceptable if the cluster does not exist yet.
DumpClusterTopology: Opening remote cluster DAG2022.
Dumping the cluster by connecting to: DAG2022.
The cluster's name is: DAG2022.
Groups
group: Available Storage
OwnerNode: srv-mail-02.entadm.group
State: Offline
group: Cluster Group
OwnerNode: srv-mail-02.entadm.group
State: Online
Resource: Cluster IP Address
Address =
EnableDhcp =
Network =
Resource: File Share Witness (\\srv-sso-01.entadm.group\DAG2022.entadm.group)
Resource: Cluster Name
NetName =
Nodes
node: srv-mail-01.entadm.group
node: srv-mail-02.entadm.group
Subnets
Name(Cluster Network 1), Mask(10.128.49.0/27), Role(ClusterNetworkRoleInternalAndClient)
NIC 10.128.49.21 on Node srv-mail-01 in State=Up
NIC 10.128.49.22 on Node srv-mail-02 in State=Up
Name(Cluster Network 3), Mask(10.106.0.0/16), Role(ClusterNetworkRoleInternalUse)
NIC 10.106.5.21 on Node srv-mail-01 in State=Up
NIC 10.106.5.22 on Node srv-mail-02 in State=Up
Opening the cluster on nodes .
Other mailbox servers in the DAG are already members of cluster 'DAG2022'
The server SRV-MAIL-03 does not belong to a cluster, and the other servers belong to DAG2022.
Successfully resolved the servers based on the stopped servers list.
The following servers are in the StartedServers list (The list is the StartedServers property of the DAG in AD):
srv-mail-02
srv-mail-01
The following servers are in the StoppedServers list:
Verifiying that the members of database availability group 'DAG2022' are also members of the cluster.
Verifying that the members of cluster 'DAG2022' are also members of the database availability group.
InternalValidate() done.
Updated Progress 'Adding server 'SRV-MAIL-03' to database availability group 'DAG2022'.' 6%.
Adding server 'SRV-MAIL-03' to database availability group 'DAG2022'.
Working
Updated Progress 'The task is installing the Windows Failover Clustering component on server SRV-MAIL-03.' 8%.
The task is installing the Windows Failover Clustering component on server SRV-MAIL-03.
Working
The following log entry comes from a different process that's running on machine 'SRV-MAIL-03'. BEGIN
Updated Progress 'The task is installing the Windows Failover Clustering component on server srv-mail-03.' 2%.
Working
Running PS> Import-Module -Name ServerManager
Running PS> Add-WindowsFeature -Name RSAT-Clustering -IncludeAllSubFeature
Produced result: Success: True, ExitCode: Success, RestartNeeded: No
Running PS> Import-Module -Name ServerManager
Running PS> Add-WindowsFeature -Name Failover-Clustering -IncludeAllSubFeature
Produced result: Success: True, ExitCode: SuccessRestartRequired, RestartNeeded: Yes
Warning: Please restart this computer before adding or removing roles or features.
Updated Progress 'The task has installed the Windows Failover Clustering component.' 4%.
Working
The preceding log entry comes from a different process running on computer 'SRV-MAIL-03'. END
Updated Progress 'The task has installed the Windows Failover Clustering component.' 10%.
The task has installed the Windows Failover Clustering component.
Working
DumpClusterTopology: Opening remote cluster DAG2022.
Dumping the cluster by connecting to: DAG2022.
The cluster's name is: DAG2022.
Groups
group: Available Storage
OwnerNode: srv-mail-02.entadm.group
State: Offline
group: Cluster Group
OwnerNode: srv-mail-02.entadm.group
State: Online
Resource: Cluster IP Address
Address =
EnableDhcp =
Network =
Resource: File Share Witness (\\srv-sso-01.entadm.group\DAG2022.entadm.group)
Resource: Cluster Name
NetName =
Nodes
node: srv-mail-01.entadm.group
node: srv-mail-02.entadm.group
Subnets
Name(Cluster Network 1), Mask(10.128.49.0/27), Role(ClusterNetworkRoleInternalAndClient)
NIC 10.128.49.21 on Node srv-mail-01 in State=Up
NIC 10.128.49.22 on Node srv-mail-02 in State=Up
Name(Cluster Network 3), Mask(10.106.0.0/16), Role(ClusterNetworkRoleInternalUse)
NIC 10.106.5.21 on Node srv-mail-01 in State=Up
NIC 10.106.5.22 on Node srv-mail-02 in State=Up
Updated Progress 'Windows Failover Clustering is now installed. Running additional checks.' 12%.
Windows Failover Clustering is now installed. Running additional checks.
Working
According to GetNodeClusterState(), the server SRV-MAIL-03 is NotInstalled.
Updated Progress 'Checking if Mailbox server 'SRV-MAIL-03' is in a database availability group.' 14%.
Checking if Mailbox server 'SRV-MAIL-03' is in a database availability group.
Working
GetRemoteCluster() for the mailbox server failed with exception = An error occurred while attempting a cluster operation. Error: Cluster API failed: "OpenCluster(srv-mail-03.entadm.group) failed with 0x6d9. Error: There are no more endpoints available from the endpoint mapper". This is OK.
Ignoring previous error, as it is acceptable if the cluster does not exist yet.
DumpClusterTopology: Opening remote cluster DAG2022.
Dumping the cluster by connecting to: DAG2022.
The cluster's name is: DAG2022.
Groups
group: Available Storage
OwnerNode: srv-mail-02.entadm.group
State: Offline
group: Cluster Group
OwnerNode: srv-mail-02.entadm.group
State: Online
Resource: Cluster IP Address
Address =
EnableDhcp =
Network =
Resource: File Share Witness (\\srv-sso-01.entadm.group\DAG2022.entadm.group)
Resource: Cluster Name
NetName =
Nodes
node: srv-mail-01.entadm.group
node: srv-mail-02.entadm.group
Subnets
Name(Cluster Network 1), Mask(10.128.49.0/27), Role(ClusterNetworkRoleInternalAndClient)
NIC 10.128.49.21 on Node srv-mail-01 in State=Up
NIC 10.128.49.22 on Node srv-mail-02 in State=Up
Name(Cluster Network 3), Mask(10.106.0.0/16), Role(ClusterNetworkRoleInternalUse)
NIC 10.106.5.21 on Node srv-mail-01 in State=Up
NIC 10.106.5.22 on Node srv-mail-02 in State=Up
Opening the cluster on nodes .
Other mailbox servers in the DAG are already members of cluster 'DAG2022'
The server SRV-MAIL-03 does not belong to a cluster, and the other servers belong to DAG2022.
Successfully resolved the servers based on the stopped servers list.
The following servers are in the StartedServers list (The list is the StartedServers property of the DAG in AD):
srv-mail-02
srv-mail-01
The following servers are in the StoppedServers list:
Verifiying that the members of database availability group 'DAG2022' are also members of the cluster.
Verifying that the members of cluster 'DAG2022' are also members of the database availability group.
Updated Progress 'Updating the membership of server 'SRV-MAIL-03' in the AD group 'DAG2022'.' 16%.
Updating the membership of server 'SRV-MAIL-03' in the AD group 'DAG2022'.
Working
Database 'MDB-04' is hosted on server 'SRV-MAIL-03'. Updating MasterServerOrAvailabilityGroup
Updated Progress 'Updating the MasterServerOrAvailabilityGroup property of database 'MDB-04' to 'DAG2022'.' 17%.
Updating the MasterServerOrAvailabilityGroup property of database 'MDB-04' to 'DAG2022'.
Working
Updating 'MDB-04'.MasterServerOrAvailabilityGroup to 'DAG2022.
database (MDB-04)'s MsOrDag=DAG2022.
Updated Progress 'Successfully updated the membership of server 'SRV-MAIL-03' in Active Directory group 'DAG2022'.' 19%.
Successfully updated the membership of server 'SRV-MAIL-03' in Active Directory group 'DAG2022'.
Working
Updated Progress 'Checking that the CNO for DAG2022 is part of Exchange Trusted Subsystems.' 21%.
Checking that the CNO for DAG2022 is part of Exchange Trusted Subsystems.
Working
Unable to make Exchange Trusted Subsystems the owner of the CNO for DAG2022. Error: An Active Directory Constraint Violation error occurred on srv-rwdc-11.entadm.group. Additional information: This security ID may not be assigned as the owner of this object.
Active directory response: 0000051B: AtrErr: DSID-030F25BA, #1:
0: 0000051B: DSID-030F25BA, problem 1005 (CONSTRAINT_ATT_TYPE), data 0, Att 20119 (nTSecurityDescriptor)
.
Updated Progress 'The CNO DAG2022 is now part of the Exchange Trusted Subsystem Security Group.' 23%.
The CNO DAG2022 is now part of the Exchange Trusted Subsystem Security Group.
Working
Updated Progress 'Successfully added server 'SRV-MAIL-03' to database availability group 'DAG2022'.' 25%.
Successfully added server 'SRV-MAIL-03' to database availability group 'DAG2022'.
Working
Updated Progress 'Done!' 100%.
Done!
COMPLETED
add-databaseavailabiltygroupserver explicitly called CloseTempLogFile().