Avatar of Paul Wagner
Paul Wagner
Flag for United States of America asked on

Best Practices For Provisioing Services VHD Storage?

We currently have this architecture:
- 2 PVS servers
- 1 File server
The PVS servers connect to the VHD images on a single mapped network drive on the file server.
current layout

We have been experiencing network latency issues which I believe are due to the file server. I will have to shut down all of the VDAs in order to reboot the file server. This is a single point of failure for us. Bad News Bears...

This brings me to the question(s):
What is a best practice for ensuring fast and redundant VHD access for the PVS servers?

I have heard of placing a VHD on one PVS server and then replicating that to an identical folder on the other PVS servers. That way, there is less network activity. Is this something you guys do? What about replication file servers? Problems with either of those options?

I want to make sure my next architecture change is ready for 2017 and beyond (i.e.- new versions of XenDesktop and PVS)
CitrixVirtualization* PVSWindows Server 2012

Avatar of undefined
Last Comment
Paul Wagner

8/22/2022 - Mon
Cliff Galiher

With SMB3, Microsoft supported clustering file servers as storage with separate computer nodes. In 2012, that means shared storage. With server 2016, with the right hardware and datacenter licenses, you can use storage spaces direct So shared storage isn't even a requirement.

Regardless though, multiple fine servers is not an inexpensive endeavor. Nor is using a fike server at all for multiple compute nodes. Fast disks, caches, no 2008/R2 licenses...you can't skimp. Or performance will just suck, and it probably isn't just the network at fault.
ASKER CERTIFIED SOLUTION
Carl Webster

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Paul Wagner

ASKER
@Cliff - At this time, we will continue to use Windows Server 2012 Datacenter for all server deployments. Are you saying that my best option is to deploy shared storage through file servers rather than put the VHD files on the PVS servers with replication?

@Carl - The robocopy script is manual, correct? I assume you prefer that to eliminate DFS-R as a possible point of failure...
So, how does that look once it is in place? You take one VHD, put it into maintenance mode, update the image, robocopy and then put into production on each PVS server?
Carl Webster

Yes, robocopy script is manual.

Create a maintenance version, make changes, promote to test, test the changes, promote to production and run robocopy script. Script will only copy over the new or changed files which for versions, will be very small files. Exclude *.lok files and the WriteCache folder.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Paul Wagner

ASKER
Sounds good. I searched your site for anything covering robocopy and didn't find it. Know of a good reference article for this?
Carl Webster

Cliff Galiher

Yes, your best option is shared storage. Replication itself introduces challenges in sync, proper lose balancing, and often increases administrative cost and other failure opportunities. I've ever seen a successful deployment survive real world ROI and DR analyses.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Paul Wagner

ASKER
@Carl - I don't think that document is the right one. I didn't see anything about robocopy, PVS or Citrix.
Carl Webster

I thought I had posted this link but it looks like it didn't make it from my phone.

http://vhorizon.co.uk/robocopy-script-to-replicate-citrix-pvs-vdisk-store/
Carl Webster

Your help has saved me hundreds of hours of internet surfing.
fblack61
Carl Webster

Paul Wagner

ASKER
That tool looks awesome, but if I'm reading the article right, it doesn't support intra-site replication.

I have a single farm, single site and two stores. From what I'm reading, the tool only works if I'm transferring to another site.
Carl Webster

Using the tool, administrators can easily replicate a vDisk (or vDisks) from one PVS server to all other servers in the same site, and all PVS servers in another farm and site (including the export and import of vDisks and versions).
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Paul Wagner

ASKER
Well, that seems to be conflicting information. It doesn't support intra-site replication, but it replicates from one PVS server to all others in the same site...

I'll give it a try on a non-production vhd and see how it goes.
Paul Wagner

ASKER
After making sure that I have mclipssnapin added to powershell, I still get "PCS Powershell Snap-In Not Found".

I am trying to run the GUI of the replication tool.
Carl Webster

If you are running 64-bit PoSH, did you add both the 32-bit and 64-bit DLLs
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Paul Wagner

ASKER
Yes, 32 and 64 bit are registered and the transacted installs completed successfully.

powershell
I can't run the GUI of the new tool powershell but the MCLI commands work so I'm pretty sure that the PVS snapin is working.
If I run the GUI command from the command prompt, I just get a notepad file that opens.
Carl Webster

I had no problem after following the directions in the script's help text.

vDisk Replication Tool GUI
Paul Wagner

ASKER
Ya, I've tried it every which way and still get "PVS Powershell Snap-In Not Found". I'm going to get with Citrix Support and see if there's a problem with my PVS install... I'll get back to you.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Paul Wagner

ASKER
@Cliff
Yes, your best option is shared storage
By shared storage, are you talking about a FC SAN kind of storage or using a file server that holds the vhd file(s) and is used by both PVS servers?

@Carl
I got a reply from Samuel Breslow, the tool's maker, and he said that I need to be using PVS 7.7 or newer. I'll be upgrading PVS later this year. In the meantime, I'm exploring your recommendations for placing a copy of the vhd on each pvs server and then use robocopy.
Carl Webster

You can install the 7.7 or later console on any prior 7.x PVS server to get the new PowerShell stuff.

http://carlwebster.com/using-new-citrix-provisioning-services-powershell-pvs-7-0-7-1-7-6-7-6-ltsr/

Shared Storage can be CIFS/SMB, FC, iSCSI, NFS, NAS or similar storage tech that allows Windows to see a common storage are or drive.
Paul Wagner

ASKER
Carl, this brings up a side question...
Should I just upgrade to a higher PVS version?
I was reading [url="https://www.citrix.com/blogs/2016/01/14/7-6-7-7-or-7-8-ltsr-to-the-rescue/"]this[/url] and Nick suggests going with 7.6 LTSR (although that was back in early '16), but what about all those cool features that came out later?!
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23