[StoreFront] - Version 3.x - Syncing App Subscriptions Across Multiple Citrix StoreFront Clusters

Architecture

 

SOURCE :

 

 

How To :

 

NoteCommandScreen

From remote StoreFront

Source server for propagated configuration

Find source server IN Storefront MMC.

 

Launch PowerShell and execute this command

 

 Import-Module "C:\Program Files\Citrix\Receiver StoreFront\Management\Cmdlets\UtilsModule.psm1"

 

And also this command

 


Import-Module "C:\Program Files\Citrix\Receiver StoreFront\Management\Cmdlets\SubscriptionSyncModule.psm1"

 

Now add your internal Cluster with this command :

 

  • URLofYourStore = Base URL of StoreFront Cluster
  • 11.xxx.xxx.xxx = Virtual Server on Netscaler Pantin.

Where can find base URL ? In MMC StoreFront :

 

 

 

Add-DSSubscriptionsRemoteSyncCluster –clusterName URLofYourStore –clusterAddress 11.xxx.xxx.xxx

Now specify the remote store with which to synchronize users' application subscriptions : here INTERNALv3 :

 

 

 

 

Add-DSSubscriptionsRemoteSyncStore –clusterName URLofYourStore –storeName INTERNALv3

 

Now configure regular synchronization at a specific interval, type the following command

 


Add-DSSubscriptionsSyncReoccuringSchedule –scheduleName SyncInternalv3 –startTime 11:31:00 -repeatMinutes 30

 

To start synchronizing users' application subscriptions between the stores, restart the subscription store service on the local computer.

 

Restart-DSSubscriptionsStoreSubscriptionService

Launch MMC Windows Event Viewer and navigate to : Citrix Delivery Service

 

 

You will find two event LOG :

 

  • ID = 22 / Start Synchronization
  • ID = 23 / Synchronization Completed

 

 

 

To list the subscription synchronization schedules currently configured for your StoreFront deployment, type the following command.

 

Get-DSSubscriptionsSyncScheduleSummary

 

 
To remove an existing subscription synchronization schedule, type the following command. Then, propagate the configuration change to the other StoreFront servers in the deployment and restart the subscription store service.

 

Remove-DSSubscriptionsSchedule -scheduleName SyncInternalv3

 

 
To remove an existing Cluster

 

Remove-DSSubscriptionsRemoteSyncCluster -clusterName URLofYourStore

 

 
When you have CREATED/DELETED "subscription synchronization or Cluster" you will need to propagate the configuration (from MMC StoreFront) change to the other StoreFront servers in the deployment and restart the subscription store service "Restart-DSSubscriptionsStoreSubscriptionService".

[CITRIX] - Upgrade Citrix StoreFront 2.x to 3.0

Lors de l'upgrade de Citrix StoreFront 2.6 vers StoreFront 3.0 ce dernier peut échouer avec le CODE ERREUR :

 

  • CitrixStoreFront-x64.msi' failed with error code 1603.

 

Voici pour notre environnement comment nous avons contourné ce problème :

 

  1. Supprimer le dossier "Storefront Install" situé dans : C:\ProgramData\Citrix
  2. Supprimer tous les fichiers "thumbs.db" situé dans le dossier de votre STORE. Par défaut pour IIS se sera : "C:\inetpub\wwwroot\Citrix"
  3. Relancer votre upgrade de StoreFront

 

[XenApp/Desktop] - WorkAround for integrate Internet Explorer 11 Enterprise Mode

Dans l'IT tout avance vite voir trop vite mais il y a des boulets qui s'attachent qui persistent qui nous hantent tous les jours...... Un bon exemple qui n'a pas, dans son infra, des silos de serveurs avec de bons vieux IE 6 ou IE 8 :-)


Alors on a profité des REVERSES des VDISKS pour passer l'ensemble des environnements virtuels sous IE 11 en mode entreprise.

Sur le papier rien de bien compliqué : MSDN BLOG. Quelques GPO à configurer, un tools à télécharger (Enterprise Mode Site List Manager) pour la gestion des fichiers XML et un share à mettre en place.

Evidemment ça, c'est sur le papier. Dans la réalité ça se complique quand on active le mode sur des environnements Citrix XenApp ou XenDesktop avec UPM. Apparemment d'après notre ami GOOGLE il s'agirait d'un BUG côté Citrix.

Le symptôme :

Après la configuration des GPO's vous pouvez constater que le mode entreprise est pris en compte en regardant ces deux clés de registre :

 

  • “HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Main\EnterpriseMode”.  La clé "SITELIST" vous renvoie en valeur le chemin d'accès à votre fichier XML.
  • “HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\EnterpriseMode”. La clef "currentversion" est apparemment le nombre de fois ou vous mettez à jour votre fichier XML en central. Seul problème cette dernière peut ne pas s'incrémenter suite à la modification de votre fichier XML. Conclusion votre Site List n'est plus fonctionnelle.

WorkAround :

  •  Replacer la clef à BLANK via le "REGISTRY WIZARD" :

Cliquer sur l'image pour zoomer

 

La répétition des différents tests actuels sont pour l'instant concluants.

On mettra à jour l'article si de nouvelles erreurs sont rencontrées.

 

 

 

[NETSCALER] - Configure Datastream - SQL 2012 AlWaysOn

En France au mois d'août il y a une règle ...... "OCCUPE toi comme tu peux"......


Alors pour cela il vous suffit de trouver :


- Un EXPERT SQL : PASCAL B. -> Profil LinkeDin

- Un EXPERT CITRIX : LUC P. -> Profil LinkeDin

- Un NetScaler 10.1 de Staging

- Des VM's 2K12 R2 et 2K8 R2 de Staging


Vous secouez le tout et les gars vous valident la solution :

DataStream couplée avec SQL 2K12 Always On.

Et comme ils sont généreux ils en profitent pour la partager avec vous par le biais de ce site......

Maintenant place à la solution validée :

SQL001 : 10.0.0.1

SQL002 : 10.0.0.2

Content Switch Vserver : 10.0.0.222

1. Project Purpose


The NetScaler® DataStream" feature provides an intelligent mechanism for request switching at the database layer by distributing requests based on the SQL query being sent.
When deployed in front of database servers, a NetScaler ensures optimal distribution of traffic from the application servers and Web servers. Administrators can segment traffic according to information in the SQL query and on the basis of database names, usernames, character sets, and packet size.
You can either configure load balancing to switch requests based on load balancing algorithms or elaborate the switching criteria by configuring content switching to make a decision based on an SQL query parameters. You can further configure monitors to track the state of database servers.

In this Page we will describe all the steps for implementing this feature.

2. Test Environment


For this lab we will use the Citrix database hosted on a Microsoft cluster. This Cluster is composed of 2 SQL server 2012 Enterprise in Standalone Mode, with AlwaysOn enabled.
So we will try to enable the datastream mechanism, all SQL Read request will be redirect on the Database in Slave mode (SECONDARY) , the Write request will be redirect on the master (PRIMARY) :

E-DOC Citrix

In Our Lab :

3. Configuration steps


In order to configure the feature we have to follow the steps describe by edocs here.

 

Configure Database User :

In order to connect to database we have to configure a user on both Netscaler and SQL database.

V03

Clic for ZOOM

Of course password must be the same, on SQL side, the user has the permissions below :

Clic for ZOOM

Configure Monitors

The monitor are used for check the services availability, in our case we will create monitors for checking if the database is primary or secondary.

For that create a new monitor base on MSSQL-ECV Type, for example the monitor below will check if the database is primary.

Clic for ZOOM

In special parameters we will put the SQL request, the result will be parsed, if the request answer PRIMARY, the monitor will be GREEN, if not it'll be RED

SQL Request: select c.role_desc from sys.dm_hadr_availability_replica_states c inner join sys.dm_hadr_database_replica_states r ON c.replica_id=r.replica_id and c.is_local=1 inner join sys.availability_groups a on a.group_id=c.group_id where a.name='MonCluster2012'

Rule: MSSQL.RES.ROW(0).TEXT_ELEM(0).EQ("PRIMARY")

 

Create the same monitor but for "SECONDARY", name SQL_ALWAYSON_SECONDARTY in our case.
Once the monitors are created we will create Service group in order to affect the monitor to the 2 SQL servers

Clic for ZOOM

Create Service Group :

For create service group go to Load Balancing / Service Group / click Add then give a name to your service group.

We will create 2 service group, one for PRIMARY monitor, the other One for SECONDARY.

This service group will check on both SQL Server, so.

Clic for ZOOM

In the capture above, we have create a service group on the 2 sql server, with the Secondary monitor, we can see on the first print screen the result of the monitor (SQLrequest), so we can see here the first server is in RED state, so it's not the SECONDARY, the second IP (10.0.0.2) si in GREEN state, so this server is secondary the request will be redirect on it (when we will have a LB server of course)

Of course a second service group must be created with primary monitor.

Clic for ZOOM

Load Balancer Creation

So we can now identify which server is PRIMARY and SECONDARY, we have the service group, so we will now configure the 2 load balancer with the service group.
One Vserver LB for the READ request with the SECONDARY service group, and 1 Vserver LB for the WRITE request with the PRIMARY service group.

In the print screen above the Vserver for SECONDARY database (read request), this LB Vserver will redirect the MSSQL to the service in GREEN state (which is the SECONDARY database)
NB: The LB server not need to be directly addressable, they will be use the internal mechanism.

We have to create an other LB server for Master database with the PRIMARY service group.

Clic for ZOOM

Context switch Creation

We have now the 2 load balancer server, we have to create a context switch for load balance on this 2 Lb server depends of the type of request..

For that go to the netscaler GUI under Context Switching / Virtual Servers then clic ADD.

Clic for ZOOM

Then under Policies we will create a 2 policy, this policy will analyse the SQL request and redirect to the good LB server.

First policy for select request :

Clic for ZOOM

The second one will be a default policy, all the request without an "insert".

On the screenshot above we can see:

If a request contains insert, the request will be redirect on LB_VS_SQLSlave, else the request will be redirect to LB_Vs_SQLMaster.

Clic for ZOOM

Configure Fail over

On the step above, we have created a process for redirect SQL request on 2 SQL server, but we have now to configure in case of crash of one of the 2 SQL servers.

In this case the monitor which check the "SECONDARY" state will answer a bad state (on both server), because the SQL request will only answer "PRIMARY".

So if we stay like that, the select request will be in error. In order to keep the service running we will set a backup server on the LB_Vs_SQLSlave, that means if all the service are in RED state, it will switch to the backup server.

We will use the LB_Vs_SQLMaster as Backup server, because this one will have 1 service in green state because the request still answer PRIMARY to the SQL request Monitor.

Clic for ZOOM

Configure Authentication


If we keep th configuration like that, all the request will be done by the Netscaler_usr on the SQL server, it can be a problem for specific application which need an Kerberos authentication.

So we can implement this kind of authentication : Citrix Edoc. How to coming soon.

TEST

In this paragraph we will make some test in order to check if the solution works fine, and in order to explain a little bit deeper the datastream.

Functional Diagram

Clic for ZOOM

[PVS 7.1] - Streamed VM setup Wizard "CRASH" : Object reference not set to an instance of an object.

Hi everyone,

Small post for a similar incident thereto :

- http://discussions.c...ws-server-2008/

and logically error  fixed in version " 6.1 019 "

- Http://support.citrix.com/article/CTX137709 :

When using the Streamed VM setup Wizard , Provisioning Services Console might fail to retrieve the template information and the Following error Message Appears :

" Can not connect to the hypervisor at <hypervisor location>
Object reference not set to an instance of an object . "
[# LA3483 ]


Actual version " 6.1 019 " error does not appear . By against version 7.1 can't use the Wizard Streamed VM setup. The error appears as you can see an attachment (pvs-console.png) : "Object reference not set to an instance of an object" .

The environment :

- Pvs = 7.1 Virtual Machine Windows Server 2008 R2 + Microsoft Visual C + + 2008 Redistributable 4.0 Extended NETFramework
- Hypervisor : vSphere 5.1.0 - 1312873
- SQL : Virtual Machine Windows Server 2008 R2 + SQL 2012 sp1

I am trying to generate LOGS to post here .

Is it really a BUG ?

 

1°) : discussions.citrix.com/topic/324886-xendesktop-setup-wizard-fails-pvs-61-hotfix-016-vmware-host/page-2

 

The other issue reported during the PVS upgrade was also resovled for me

"Streaming setup wizard will not enumerate the cluster/Host details in the second datacenter in VC"

After adding a registry entry under HKLM\Software\Citrix\ProvisioningServices issue resolved.

Hope this issue of not reading/enumerating the cluster/Host information from 2nd datacenter is from 6.0 :)

Note: To configure Image Update Management with an ESX server configured for use with multiple datacenters, add the following registry entry under the corresponding Image Update Management Server:
•Create a registry key named PlatformESX under HKLM\Software\Citrix\ProvisioningServices
•Under PlatformESX , create a string value named Datacenter , then enter the name of the datacenter where your Update virtual machine is hosted.
Note: If running a vCenter server on alternate ports, the following registry modifications must be made in order to connect to it from Provisioning Services: •Create a new registry key named PlatformEsx under HKLM\Software\Citrix\ProvisioningServices

•Create a new string value in the PlatformEsx key named ServerConnectionString and set it to http://{0}:300/sdk)

 

SOURCE : support.citrix.com/proddocs/topic/provisioning-61/pvs-vdisks-wizards-vhpool-create.html

 

2°) : support.citrix.com/article/CTX138199

 

After installing Hotfix 16 for Provisioning Services 6.1 in environments with multiple VMware ESX data centers, the Streamed VM Setup Wizard enumerates only those clusters/hosts that are located in the default data centers.

 

The Streamed VM Setup Wizard works if ONE ESXi is selected

 

A private fix is available. Please contact citrix support with  our initial case: SR # 61188583

Citrix Forum

 

Download Freewww.bigtheme.net/joomla Joomla Templates Responsive