Monday, October 31, 2016

Windows 2003 SAN Migration from one storage to another.

Good day!

Welcome back!!! and Happy Diwali to all!!!

Recently we had a request to migration SAN from existing storage to a new Storage.As the SAN was pretty old SAN level migration didn't work and we manually had to do xcopy.

If anyone thinks this is pretty easy well to be frank nope, lot of risk involved with no support from MS and also remember drive details are in registry in the form of Signature, so if you change drive letter like we do in Windows 2008 and expect Cluster disk to come online it will fail.

Prerequisites before you start:

1.Take Full Back of both the Nodes
2.Take Registry backup on both the Nodes
3.Take System state backup for both the Nodes.
Note: if anyone things taking system state backup can we restore a Windows 2003, well absolutely and we have done it 2 times successful.
4. Make sure you have the password for Cluster Service account it is set under.Usually 2003 cluster are always set under Service accounts.
5. Make sure you have 2003 resource toolkit is installed and navigate to make sure you can see Clusterrecovery.exe under C:\program files\Windows Resource Kits\Tools.

Steps to perform:

Note: All these steps should be performed by login in on the Node with Cluster Service Account.
If your security doesn't allow to login using the Service Account then make sure you have ID which is part of Local Administrative group before you proceed.

1. Request storage team to assign Luns to both nodes
2. On confirmation that you can see the disk on all Nodes,Shutdown the passive node
3. Format the disk on the active node and assign a drive letter
4. Go to Cluster Admin, right click and add a disk resource and give some dummy name and select the defaults and click and select the new Formatted drive letter and finish it.
5. Bring the disk online and then power on the passive node online
6.Try failing over the disk to another node to make sure you can see the disk on the other node as well.
7. Make sure you do some read/write operations on the disk on the node which is active and confirm that the same can be seen on the other Node.
8. After confirmation disk looks good then perform the xopy from Source to destination disk and after completion make sure all the contents and folders are the same as Source disk.

Command we used:

xcopy Source_drive: destination_drive: /e/v/c/h/k/o/y

9. Now navigate to the clusterrecovery.exe and run it.It will ask you to connect to Cluster, in-case you have stopped the cluster make sure its running and online.After connecting when click next you will see a window asking if you want to replace a disk,Click next and in the final window you need to select Source disk and destination disk what you want to replace it with and Click Finish.
10.What this tool will do is update registry signature of the new disk.
11. Now if you open cluster admin, you will see that new Disk is renamed with the drive letter the old disk had and the old disk is commented as lost.
12. Right click the lost disk in clusteradmin and delete it.
13. Go to disk management and remove the drive letter Q to old disk and change the new Disk to Q.If you get a warning saying reboot is needed to take effect just say ok and be patient it will take sometime and then will show Q assigned to new SAN disk.
14.Verify in Cluster, try failing over to see if Q works fine and both nodes.
15. Last just reboot both the nodes and finally node fail over testing
16. We did 2 Clusters and above steps worked both the time.

The disk we performed had Shared drive, no issue reported after disk replacement and even shares showed up just fine.
Quorum was replaced that worked with no issues.
On google some reported disk signatures issues and had to do some registry fix etc was so not sure under what scenarios, but the steps above is what i have followed and was successful to migrate close to 6 drives.

Hopefully this will help someone, until next one you all have good day!!!!!!!!!!!!

Friday, October 14, 2016

Roaming Profiles, Terminal Server Profiles and Profile Versions

Good day All,

Welcome back, it been some time i did my last posting.. quite busy these days with so many things going on..

We are in the process of rolling out Folder Redirection for our Citrix users so during the process i had lot of confusions on Roaming profile and Terminal Server profile which loads when and why there are different version etc....

So i did some homework and thought to share the same so it may help someone else too..

Please the the screenshot below not sure how many of them understood



Let me tell you i didn't understand fully either and started to try different combinations to really understand this chart.

Before i post the result, the question why would you care??? well if you one of those users you need to implement Citrix UPM or Roaming Profiles Or if you introducing Windows 2012 R2 or Windows 2016 Citrix App Servers then yes you should have this knowledge because if no proper care taken you will hear lot of Profile corruption and also document missing in Profile issues.

How do we avoid it, well you should look at introducing folder redirection , that way Users My documents, desktop etc move along with User on any version of Windows they log in


Roaming Profile set for a User when logs on Windows 7:

A user when logs to a Windows 7 desktop/laptop gets a V2 profile created.

Roaming Profile set for a User when logs  on Windows 10:

A user when logs to a Windows 10 desktop/laptop gets a V5 profile created.


Roaming Profile V2 user logs to Windows 10 desktop/laptop:

A V2 Roaming Profile user when logs to a Windows 10 desktop/laptop then a new V5 profile will be created


Roaming Profile V5 user logs to Windows 7 desktop/laptop:

A V5 Roaming Profile user when logs to a Windows 7 desktop/laptop then a new V2 profile will be created



Roaming profile user on Windows 7 and launching Citrix\RDP on 2008\2012:


A V2 roaming profile user when launches Citrix or RDP on Windows 2008\2012 then same V2 profile will be loaded when no hotfix and registry changes are done.

A V2 roaming profile user when launches Citrix or RDP on Windows 2012 R2 then  V4 profile will be created if hotfix installed and registry changes are done.


Roaming profile user on Windows 10 and launching Citrix\RDP on 2008\2012:

Roaming Profile user on Windows 10 will have a V5 profile, so when he launches Citrix or RDP on Windows 2008\2012 then V2 profile will be created and loaded when no hotfix and registry changes are done.

A V5 roaming profile user when launches Citrix or RDP on Windows 2012 R2 then  V4 profile will be created and loaded if hotfix installed and registry changes are done.


Roaming Profile with TS Profile:

A V2 roaming Profile user if TS profile is attached then when launching Citrix or RDP on Windows 2008 then a new V2 TS profile will be created and loaded

A V2 roaming Profile user if TS profile is attached then when launching Citrix or RDP on Windows 2012 then a new V4 TS profile will be created if hotfix is installed and registry change are done.

A V5 roaming Profile user if TS Profile is attached then when launching Citrix or RDP on Windows 2008 then a new V2 profile will be created and loaded

A V5 roaming Profile user if TS profile is attached then when launching Citrix or RDP on Windows 2012 then a new V4 TS profile will be created and loaded if hotfix is installed and registry change are done.


Only TS Profile :

A new User with TS profile configured logs to a Citrix or RDP on Windows 2008 , then V2 profile will be created

A new User with TS profile configured logs to a Citrix or RDP on Windows 2012 , then V4 profile will be created if hotfix is installed and registry change is done ,if not it will search for any exsisting V2 profile to load or Will create a new V2 profile and will load.


Hotfix links:

Windows 8/Server 2012 (KB 2887239)
Windows 8.1/Server 2012 R2 (KB 2887595)

Registry Changes:

  1. Locate and then tap or click the following registry subkey: 
    HKEY_LOCAL_MACHINE\System\CurrentControlset\Services\ProfSvc\Parameters
  2. On the Edit menu, point to New, and then tap or click DWORD Value.
  3. Type UseProfilePathExtensionVersion
  4. Press and hold or right-click UseProfilePathExtensionVersion, and then tap or click Modify.
  5. In the Value data box, type 1, and then tap or click OK.
  6. Exit Registry Editor
Last Step: Make sure to reboot the Server. If anyone has question on which Server you going to do? well all the Server where you will RDP or Citrix App will be published .

I wanted to end with a example let say we have a new User, Roaming Profile has been set and the requirement is he will log to Windows 7 laptop, Windows 10 laptop and also will launch Citrix Application on Windows 2008, Windows 2012 how many profile will get created????? if hotfix and registry change is done on Windows 2012

If anyone say 3 then yup you got the concept right.. let me elaborate..

When User logs to Windows 7 he will get a V2 profile.
When the same User logs to Windows 10 he will get a V5 Profile
Same user When launch Citrix App on Windows 2008 then already created V2 profile will load.
Same user When launch Citrix App on Windows 2012 then new V4 profile will be created and loaded.

Hopefully this help some, until next one you all have a good day!!!!!!!!!!!!!!!!!!!!!!!!