Join Enterprise Portal servers into a single server farm (AX 2012)
This article explains how to join Enterprise Portal servers (for Microsoft Dynamics AX 2012) into a single server farm.
When Microsoft Dynamics Lifecycle Services (LCS) deploys Enterprise Portal (EP) servers, each EP server is deployed into its own server farm. The steps in this article show how to join all EP servers into a single server farm. The basic idea is to keep the server farm on one EP server and join all the other EP servers to that farm. The information in this article is based on the following assumptions:
- N EP servers are deployed by LCS, and these servers are labeled EP-01, EP-02, EP-03...EP-0N.
- The load balancer is named AzureILB01.
- You're using EP-01 as the single server farm, and all the other EP servers will join that farm.
Put EP servers into a single server farm
Log on to EP-01 by using the Dynamics Installer User service account.
Start Microsoft SharePoint 2013 Central Administration.
Go to System settings > Configure alternate access mappings.
Click Add Internal URLs. The following screen shot shows how to add a mapping for EP-02 on port 81, which is the port that the EP site is created on. Repeat this step for every EP server that is deployed by LCS.
Click Edit Public URLs, and enter appropriate values:
- Default: Use the load balancer URL + port 81.
- Intranet: Use EP-01 (the SharePoint server farm virtual machine) + port 81.
- Internet: Use the publicly registered URL + port 81.
Open Registry Editor (regedit), and create the following registry key:
- Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro\Lsa\MSV1_0
- Key details, key value: The load balancer name and the fully qualified name
Open a Command Prompt window, and get the IP address of the local machine by running the ipconfig command.
Repeat steps 6 through 8 on every EP server that is deployed by LCS.
Log on to the EP-02 server by using the Dynamics Installer User service account.
Go to the drive where the Dynamics installer is stored (this drive is most likely drive F). Right-click Setup, click Run as administrator, and then follow these steps:
- Click Install Microsoft Dynamics AX components.
- On the Welcome page, click Next.
- Click Add or modify components, and then click Next.
- Under Web server components, select the Enterprise Portal check box. Click OK to acknowledge that you want to install EP, and then click Next.
- Make sure that there are no validation errors, and then click Next.
- Enter the BC proxy user password, and then click Next.
- On the **Configure a Web site for Enterprise Portal **page, select the web application.
- Select the Configure for Windows SharePoint Services check box.
- Select the Restart IIS after installation is completed check box, and then click Next.
Click Next until the installation is completed.
Repeat steps 10 through 12 on servers EP-03 through EP-0N. (You must re-install EP on every EP server, except the single server where the farm is configured. In our example, this server is EP-01.)
Follow these steps on every EP server, EP-01 through EP-0N:
- Open the Internet Information Services (IIS) administration console (inetmgr).
- Go to Sites > SharePoint – 81.
- Right-click, and then click Edit bindings.
- Double-click the binding to open the Edit Site Binding dialog box.
- In the Host name field, enter the load balancer name.
Follow these validation steps on every EP server:
- In a Command Prompt window, run the iisreset command.
- Start Internet Explorer, and go to http://AzureILB01:81/sites/DynamicsAx.
- Make sure that the Role Center page is rendered without error.
Configure AppFabric cache
Log on to the EP-01 server by using the Dynamics Install User service account.
Open a Microsoft Windows PowerShell Command Prompt window as an administrator.
Run the Use-CacheCluster command to set the context of your Windows PowerShell session to a specific cache cluster.
Run the New-Cache command to create a new named cache. Make a note of the name that you specify. (You'll enter this cache name in the next procedure.)
Run the Grant-CacheAllowedClientAccount command, and specify the .NET Business Connector proxy. (This is the account that is used by the EP application pool).
Run the following command: Set-CacheConfig -Secondaries 1
- When you're prompted for the cache name, enter the name from step 4.
- When you're asked whether you want to continue, enter Y.
If step 6 causes an error, try to run the commands in the following order:
- Set-CacheConfig -Secondaries 1
Export the configuration by running the Export-CacheClusterConfig command. Specify a name for the file. This file can be saved anywhere on the local computer.
Open the file that you just created, and add the following configuration to the <advancedProperties> section.
<transportProperties maxBufferSize="1000000000" />
Import the configuration by running the following command: Import-CacheClusterConfig c:\newConfig.xml When you're asked whether you want to continue, enter Y.
Run the Start-CacheCluster command to start the cache.
In Notepad, open the web.config file (C:\inetpub\wwwroot\wss\VirtualDirectories\81\web.config) in admin mode.
Locate the <configSections> section. Add the following section element.
<section name="dataCacheClient" type="Microsoft.ApplicationServer.Caching.DataCacheClientSection, Microsoft.ApplicationServer.Caching.Core, Version=18.104.22.168, Culture=neutral, PublicKeyToken=31bf3856ad364e35" allowLocation="true" allowDefinition="Everywhere" />
Add the following dataCacheClient element to the web.config file after the </configSections> tag.
- Replace every instance of “Host_server_name” with the name of an EP server.
- Replace “default” with the name that you specified when you ran the New-Cache command.
<!-- velocity --> <dataCacheClient dataCacheServiceAccountType="DomainAccount"> <localCache isEnabled="false" /> <hosts> <!--List of hosts --> <!-- Replace highlighted with your own EP server name --> <host name="EP-01" cachePort="22233" /> <host name="EP-02" cachePort="22233" /> <host name="EP-03" cachePort="22233" /> <host name="EP-0N" cachePort="22233" /> </hosts> </dataCacheClient> <Microsoft.Dynamics> <AppFabricCaching CacheName="default" /> </Microsoft.Dynamics> <!-- velocity -->
Repeat steps 12 through 14 on every EP server that is deployed by LCS.
On the EP-01 server, in a Windows PowerShell window, run the stop-cachecluster command.
Run the start-cachecluster command.
- On one of the EP servers, in the Windows Services console, verify that AppFabricCachingService is running.
- Open a Windows PowerShell Command Prompt window as an administrator.
- Run the Get-CacheStatistics default command. The result should show all zeros.
- Restart the web service on the EP server by running the iisereset command.
- Open EP, and go to Sales.
- Run the Get-CacheStatistics default command again, and verify that the cache shows values. This result indicates that cache distribution is working.
Because every EP server was deployed into its own server farm, after you join all the servers into a single farm, the databases that were created for other EP server farms must be removed from SQL.
- Spfarm_config_ ep-03
To learn the name of the WSS_Content_* database for a particular site, follow these steps.
- Start SharePoint Central Administration.
- Go to Application management > View site collection.
- In the upper-right corner, select the site that is hosted on port 81. The result screen should indicate which database is used for the selected site.
- Delete all WSS_Content_* databases that aren't used by the server that site 81 is created on. In this case, keep the WSS_Content_* database that is used by EP-01, and delete every other database that has a name that starts with WSS_Content_*.