Tuesday, May 17, 2011

Citrix: Rejoining Deleted Citrix Server to Farm

If any of the Citrix servers deleted accidentally from Access Management Console you can perform following procedures to rejoin the servers in the existing Farm.

Scenario
I am using following Citrix environment:
  • SQL 2005 Database Server Name - CITRIX
  • Database Autentication - Windows Integrated Authentication
  • Farm Name - MyFarm
  • Servers in the Farm - XENAPP1, XENAPP2, XENAPP3
  • Citrix product version - Presentation Server 4.5 for Windows Server 2003

Problem
I have accedentally removed the server XENAPP3 from the server Farm. Now I want to rejoin the server to the existing Farm.


Resolution
  1. Ensure there are no users logged on. To check that login to the server you want to rejoin and then execute the following command:

    QUSER

    This will show all the users who are currently active on that server. If users are connected do not perform the following steps.
     
  2. Open Command Prompt and run the following command:

    CHFARM

     
  3. Click Yes on the warning message.

     
  4. Select Join an existing farm option and then click on Next.

     
  5. If you have various Zones, clear Use Default Zone Name check box and then enter the Zone name where the server resides.

    If you have only one default Zone, then keep the default setting. In this case I have only one default Zone.

    Click Next to continue.
  6. Select the Database Server Name from the Server drop-down list and then click on Next.

     
  7. Based on your database authentication mode select the authentication. Here I am using Windows Integrated Authentication, so I have selected "With Windows NT authentication using the network login ID". Click Next.
  8. Click on Next. Keep the default setting.

     
  9. Click on Finish. Keep the default settings.

     
  10. Click on Test Data Source to check the connectivity with the Database.

     
  11. Click OK twice to close the connectivity test. The connectivity test should show "TESTS COMPLETED SUCCESSFULLY".

     
  12. Enter the credentials to connect to the database and then click Next.

     
  13. I am using IMA Encryption. Select the encrypted key by clicking on the Browse button and then click on Next.

     
  14. You can specify License Server name and License Server Port seperately. If you want to inherit the Global Farm settings then select "Use the global farm settings for the license server.". Click Next.

     
  15. Confirm the name of the Server Farm and then click on Finish.


    IMPORTANT: When "Joining an Existing Farm" if the Farm Name is NOT displayed in this "grayed out" field on the last screen. DO NOT proceed. The credentials you entered for IMA to connect to the Data Store are invalid. Go back and confirm the user account and password are correct.
  16. Click on Yes if you get IMA service warning.

     
  17. It will try to start and then stop the IMA service. Click on Yes if you get the following warning.

     
  18. On successfully adding the server to the existing Farm, you will get the following confirmation message. Click OK.

     
  19. Now if you check the server Farm, you will get the deleted server added to the existing Farm.

No comments:

Post a Comment