发布网友 发布时间:2022-04-10 20:17
共2个回答
懂视网 时间:2022-04-11 00:38
在XenDesktop的部署过程中如果是用SQL Mirror的方式我们建议用户在配置好Mirror之后在初始化XenDesktop站点配置,这样在Connection string中默认会包含mirror数据库连接。但是有时候难免会有用户出现先配置站点以后在配置mirror,这样就会让事情变的非常复杂,需要几十条命令重置所有service的connection string,稍有不慎可能导致环境挂掉。这里我整理了2段简单的脚本供大家使用。注意事项
具体步骤
我们首先需要将DDC中的connection string置空,您可以将一下内容保存为ps1文件到DDC上通过管理员权限执行
Set-ItemProperty -Path HKLM:SOFTWARECitrixDesktopServerDataStoreConnectionsController ConnectionString $null
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesADIdentitySchemaDataStoreConnections ConnectionString $null
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesAnalyticsDataStoreConnections ConnectionString $null
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesAppLibrarySchemaDataStoreConnections ConnectionString $null
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesConfigLoggingSiteSchemaDataStoreConnections ConnectionString $null
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesConfigurationSchemaDataStoreConnections ConnectionString $null
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesDASDataStoreConnections ConnectionString $null
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesDesktopUpdateManagerSchemaDataStoreConnections ConnectionString $null
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesEnvTestServiceSchemaDataStoreConnections ConnectionString $null
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesHostingUnitServiceSchemaDataStoreConnections ConnectionString $null
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesMonitorDataStoreConnections ConnectionString $null
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesOrchestrationSchemaDataStoreConnections ConnectionString $null
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesStorefrontSchemaDataStoreConnections ConnectionString $null
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesTrustSchemaDataStoreConnections ConnectionString $null
Asnp citrix*
$cs="Server=DB.ctx.com;Failover Partner=DB2.ctx.com;Initial Catalog=Citrixsite;Integrated Security=True"
$cslog="Server=DB.ctx.com;Failover Partner=DB2.ctx.com;Initial Catalog=CitrixLogging;Integrated Security=True"
$csmonitor="Server=DB.ctx.com;Failover Partner=DB2.ctx.com;Initial Catalog=CitrixMonitoring;Integrated Security=True"
Set-ItemProperty -Path HKLM:SOFTWARECitrixDesktopServerDataStoreConnectionsController ConnectionString $cs
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesADIdentitySchemaDataStoreConnections ConnectionString $cs
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesAnalyticsDataStoreConnections ConnectionString $cs
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesAppLibrarySchemaDataStoreConnections ConnectionString $cs
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesConfigLoggingSiteSchemaDataStoreConnections ConnectionString $cs
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesConfigurationSchemaDataStoreConnections ConnectionString $cs
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesDASDataStoreConnections ConnectionString $cs
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesDesktopUpdateManagerSchemaDataStoreConnections ConnectionString $cs
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesEnvTestServiceSchemaDataStoreConnections ConnectionString $cs
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesHostingUnitServiceSchemaDataStoreConnections ConnectionString $cs
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesMonitorDataStoreConnections ConnectionString $cs
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesOrchestrationSchemaDataStoreConnections ConnectionString $cs
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesStorefrontSchemaDataStoreConnections ConnectionString $cs
Set-ItemProperty -Path HKLM:SOFTWARECitrixXDservicesTrustSchemaDataStoreConnections ConnectionString $cs
Set-MonitorDBConnection -datastore Monitor -DBConnection $null
Set-MonitorDBConnection -datastore Monitor -DBConnection $csmonitor
Set-LogDBConnection -datastore Logging -DBConnection $null
Set-LogDBConnection -datastore Logging -DBConnection $cslog
希望对大家有所帮助
如何配置XenDesktop使用Mirror数据库
标签:复杂 power 站点 ted asto path server 配置 数据
热心网友 时间:2022-04-10 21:46
架构设计上是一致的,看是否考虑群集区分业务,考虑资源负载等因素 当然有一些配置上需要更改 1、使用vSphere底层搭建XenDesktop时需要对vcenter server配置文件进行修改。