Archive

Archive
<May 2012>
SunMonTueWedThuFriSat
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789
Monthly
Go

Search

Pierre's Blog

Windows SMB Network Stack randomly freezing on Provisioned Target Devices

Sep 19

Written by:
9/19/2009 2:11 PM  RssIcon

I've worked this week on a critical production issue involving Provisioning Services 5.1.

The symptoms were the following :

  • explorer.exe freezing randomly for some seconds (8 to 30)
  • Logons stalling randomly for 8 to 30 seconds
  • Microsoft Office Applications (Word, Excel, Powerpoint ...) Freezing randomly when doing File / Open or File Save for 8 to 30 second
  • Start Menu freezing for 8 to 30 seconds
  • ...

Actually, anything that can use the SMB Network stack was randomly freezing on Provisioned devices.

During our tests, we've confirmed that the Master Target (the device used to create the vDisk) was not impacted at all, and that we were able to reproduce only on provisioned target devices.

We've been able to reproduce the issue and found that even if the symptom was an application freezing, the issue was impacting all XenApp / Terminal Server sessions on the Target Device at the same time.

We've also found that the usual SMB tuning tips for XenApp Servers were raising the timeout from 8 to 30 seconds.

The case is now escalated and hopefully we should get an hotfix for it (and I'll update this post as soon as we've validated it).

Fortunately we have able been to find a workaround and as this case is critical for users I'm sharing it (to be honest we just found it )

To explain the problem and the workaround, I'll describe the Architecture we're using to understand the context and see if the workaround could be applied in your implementation.

My customer is using Citrix Provisioning Services 5.1 to deploy Provisioned XenApp Servers.

The screenshot below is describing the Global XenApp / PVS Architecture of the project ( Web Interfaces, DataStore, UPM, EdgeSight components are not present because not concerned).

 

 

To optimize network performances, we've used a multihomed network configuration to separate streaming and production workloads.

As we were relying on two interfaces, we've also ensured that vDisk access and Streaming we separated on the Provisioning Services Servers side.

The screenshot below is describing the conceptual network configuration.

This configuration is very important, because the root cause of the freezes is as far as we've found the Multihoming.

We did not find many documentation about PVS and multihoming, except "Use a dedicated interface when feasible" or using the Configuration Wizard to dedicate an interface for streaming.

During our investigations, we found that the "browstat status" was issuing unexpected results on  Provisioned Devices.

Actually, we could see that the results on the Production vLan were not correct and were binding to the streaming VLan.

Then we decided to search deeper on this issue and tried to disable Microsoft services on the streaming VLAN Interface, as shown on the screenshot below.

 

After testing these settings, we've found that disabling both on the Streaming VLAN Interface was solving our issue and decided to apply this workaround until the appropriate fix will be provided.

Important Note : As this workaround could impact the "Enable Automatic Password Support" option, we've decided to disable it on our Provisioning Servers (in the Provisioning Services Console / server Properties of Each PVS Server) while waiting for the hotfix to be released.

Tags:
Categories:

5 comment(s) so far...


Gravatar

Re: Windows SMB Network Stack randomly freezing on Provisioned Target Devices

Hello,

Yes, you can only have 1 interface with Microsoft services bound to it.

Here is what I found. The streaming interface is only for the stream. From the visios, I can't tell if you're PVS servers are also on two networks. If so, you'll need to make a few changes:
Disable MS services on all but production NIC
Make sure register w/ DNS is unchecked for all but the production NIC
When configuring the Wizard, include BOTH the production and streaming NIC in the list
Make sure TFTP is bound to the production NIC (and option 67 set accordingly)
PXE boot from the Streamed network
PVS Authentication will happen via the production NIC which is why the streaming network needs to be routeable
Streaming will occur on your streamed network


All-in-all, it's just like setting up a dedicated iSCSI interface

Joe


By Joe Shonk on   9/19/2009 4:40 PM
Gravatar

Re: Windows SMB Network Stack randomly freezing on Provisioned Target Devices

Dear Joe,

In my Case, yes PVS Servers have also TWO NICs, one in the Production VLAN and One in the Streaming VLAN.

PVS Services (TFTP, PXE and DHCP) are dedicated and only running within the Streaming VLAN which is not routed and does not have DNS Servers.

In configuration Wizard, I've only set the streaming interface.

All was working fine (even Password Changes) except the bug causing SMB stack to stall randomly.

If Microsoft services are disabled on the streaming Interface, then the problem is solved.

However as PVS is using "File and Printer Sharing" to renew the password, I guess it should be done through the streaming network (as PVS Servers are seing the devices through this network), that's why I've decided to disable the option.

I'm waiting for support feedback about the workaround, a possible hotfix (as they've seen incorrect behaviour in dumps) and confirmation of the Password Change thing.

I'll update the post when I'll get the answer.

By Pierre Marmignon on   9/19/2009 4:51 PM
Gravatar

Re: Windows SMB Network Stack randomly freezing on Provisioned Target Devices

I think you're incorrect about have the File and Print services bound the the streaming nic. If F&P is needed, then run that service over your production NIC. Again, Client for MS services should ever be bound to 1 NIC. Strange things happens otherwise. It's a common mistake admins make when setting up second NIC for iSCSI services, etc.

Joe

By Joe Shonk on   9/19/2009 5:08 PM
Gravatar

Re: Windows SMB Network Stack randomly freezing on Provisioned Target Devices

Dear Joe,

Yes You're right, that's always better to disable them.

What is important in disabling it in this environment is to know how it'll impact PVS Automatic Password Change, because I've seen it not working on a different setup when this option was disabled.

Do you have any feedback on it ?

Pierre

By Pierre Marmignon on   9/19/2009 5:10 PM
Gravatar

Re: Windows SMB Network Stack randomly freezing on Provisioned Target Devices

Hi All,

I'm working on a POC of Citrix PVS and I would like to understand how to activate and use 2 network cards on my XenApp target device for dedicated VLAN's on your XenApp target device ?
Do i have to set my ICA Listener on the "Production VLAN" before i make a capture?
How can I set my network Configuration on both cards? do i have to use 2 DHCP scope?
As you can see I'm a really confused about the conceptual network configuration you metionned so any help would be very helpfull.

Best Regards,

Jimmy

By Jimmy on   11/27/2009 11:27 AM