
16개의 서버가 포함된 Windows Server 2016 RDS 팜이 있습니다. 이러한 모든 서버는 고가용성을 위해 구성되었으며 SQL 클러스터에서 동일한 데이터베이스를 사용합니다.
어떤 이유로 이 데이터베이스가 손실된 경우 데이터베이스를 처음부터 다시 생성하려면 어떻게 해야 합니까? 모든 컬렉션과 원격 앱의 재생성에는 관심이 없습니다.
연결 브로커 역할을 포함하여 모든 RDS 역할을 제거하려고 했습니다. 그러나 역할을 다시 설치하려고 하면 새 데이터베이스를 생성할 수 있는 옵션이 없습니다. 제거 전의 이전 데이터베이스에 연결을 시도합니다. 데이터베이스 설정을 레지스트리 어딘가에 저장하는 것 같습니다.
명령어를 사용해 보았습니다 Set-RDConnectionBrokerHighAvailability
. 결과는 The RD Connection Broker server is configured for high availability.
다음과 같습니다. 연결 브로커에 고가용성이 이미 구성되어 있다고 표시됩니다(모든 RDS 역할을 다시 설치했음에도 불구하고).
명령어를 사용해 보았습니다 Set-RDDatabaseConnectionString -DatabaseConnectionString "DRIVER={ODBC Driver 13 for SQL Server};SERVER=tcp:SQL_cluster.company.local,1433;DATABASE=RDBANK2;APP=Remote Desktop Services Connection Broker;Trusted_Connection=Yes;"
. 결과는 다음과 같습니다.
Update-DBConnStringWithDatabaseAccess : Exception calling "GetConnectionString" : ""
At
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\RemoteDesktop\Deployment.psm1:1876
char:19
+ ... $result = Update-DBConnStringWithDatabaseAccess -ConnectionBroker $ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId :
Microsoft.PowerShell.Commands.WriteErrorException,Update-
DBConnStringWithDatabaseAccess
Get-WmiObject : Cannot validate argument on parameter 'ComputerName'. The argument is
null or empty. Provide an argument that is not null or empty, and then try the
command again.
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\RemoteDesktop\Utility.psm1:1977
char:117
+ ... Properties -Namespace root\cimv2 -ComputerName $broker.Server -Authen ...
+ ~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Get-WmiObject],
ParameterBindingValidationException
+ FullyQualifiedErrorId :
ParameterArgumentValidationError,Microsoft.PowerShell.Commands.GetWmiObjectCommand
먼저 RDS 고가용성 데이터베이스를 다른 SQL 서버로 이동한 다음 Set-RDDatabaseConnectionString
이동된 데이터베이스를 가리키는 명령을 사용하면 명령이 성공적으로 완료됩니다.
RDS 고가용성 데이터베이스가 손실된 경우 어떻게 다시 생성합니까? RDS 연결 브로커 구성을 완전히 재설정한 다음 처음부터 다시 생성할 수 있습니까? 16개의 서버를 모두 처음부터 다시 설치하는 것은 악몽이 될 것입니다.