Lorky`s Blog - Techno ressources and general informations for everyone !

Note

All blog links are archived here.

Issue

Error when lauching the Exchange 2013 setup. setupui.exe crash with a reference to CLR20r3

1

2

Cause

A firewall state could cause that problem. In my case a GPO setting was the problem.

3

Workaround

Desactivate the GPO or reactivate the firewall, and voila the setup should start.

Continue Reading...

Symptoms

SYSVOL empty but share existant. NETLOGON share non-existant GPO's console list all old GPO, but can't display any detail on all GPO.

Scenario

First DC (DC#1) in Windows 2003
Second DC (DC#2) in Windows 2008R2
Each are Global Catalogue.
DC#1 is old, no longer in the backup schedule. DC#2 got all FSMO's role and is the primary DC.
Problem;
The datastore die. We restore the the system-state from DC#2, and we find ourselft faced with the FAQ that the SYSVOL is empty.
From the tape we found that the SYSVOL was not replicating, so it seem an issue that the SYSVOL does not replicating when you have a 2003 and you DCPROMO an 2008's DC.

How to

First step done is that;

`To complete an authoritative restore, stop the FRS service, configure the BurFlags registry key, and then restart the FRS service. To do so:`
` ``1.Click Start, and then click Run. `
`2.In the Open box, type cmd and then press ENTER. `
`3.In the Command box, type net stop ntfrs. `
`4.Click Start, and then click Run. `
`5.In the Open box, type regedit and then press ENTER. `
`6.Locate the following subkey in the registry: `
**`HKEY_LOCAL_MACHINESystemCurrentControlSetServicesNtFrsParameters`**
**`Backup/RestoreProcess at Startup`**
` `
`7.In the right pane, double click BurFlags. `
`8.In the Edit DWORD Value dialog box, type D4 and then click OK. `
`9.Quit Registry Editor, and then switch to the Command box. `
`10.In the Command box, type net start ntfrs. `
`11.Quit the Command box. `
`When the FRS service is restarted, the following actions occur:`
`•The value for the BurFlags registry key is set back to 0. `
`•An event 13566 is logged to signal that an authoritative restore is started. `
`•Files in the reinitialized FRS replicated directories remain unchanged and become authoritative on direct replication. Additionally, the files become indirect replication partners through transitive replication.`
`•The FRS database is rebuilt based on current file inventory. `
`•When the process is complete, an event 13516 is logged to signal that FRS is operational. If the event is not logged, there is a problem with the FRS configuration.`

 

After that test, the folder was still empty.
So the final test was simple.
I created the scripts folder in the c:windowsSYSVOLSYSVOLdomain.nameSCRIPTS and shared it to NETLOGON and runned : DCGPOFIX
That reset/recreate the default domain policy, and after you just need to erase all old GPO that are still empty in your console.

 

Thanks everyone !

 

nb; Article published in the TNWiki there too : http://social.technet.microsoft.com/wiki/contents/articles/17478.directory-service-netlogon-missing-after-a-restore.aspx

Continue Reading...

Hi everyone

For the second times in less than 4 years I saw a Equallogic dying...

untitled2

The first time the SAN was running on a 4.x firmware. One disk spread the corruption to the whole unit.  Following Dell advice we updated everything, as the 5.0.x firmware resolved that case.

 

Another similar crash, the SAN is on 5.0.x firmware and now they tell us that this bug was actually corrected on 5.2.5's firmware. How come no release note or anything. The only detail we got is that the bug happen when the array is full of seagate hdd, why seagate hdd ? I have no idea either.

 

So if you use a Equallogic, update it if you can to 5.2.5. I know 6.1 is out but not supported for some hypervisors, so please check your hypervisor HCL before gooing up too much.

 

And be sure to be subscribed to the maintenance pack, else you can't get new firmware....

 

So be sure to have a good backup... because the SAN actually does not boot with a fail array (no GUI) so only thing left to do in the CLI it's a "reset" wich clear the whole RAID50 directly. After the GUI work when you resetup the member configuration.

 

******** UPDATE *********

I now know more the truth behind the firmware 5.2.8. The rebuild was too long on some HDD model, so the SAN do a disk image of another disk to it in place of the rebuild. The disk firmware is there to allow that.

Continue Reading...

Hi everyone

Today I will post about a big bug. Seem a easy's one, but it took 2 Tier 3 support technician from Citrix and 1 dev from Citrix to get a workaround :-) (Not to forget the support case with Wyse !)

I got a workaround, no fix !

WHAT WAS WORKING:

In XenDesktop 4 with a Desktop Appliance the Keyboard Layout in the Virtual Desktop is handled as (Server Default)'s always.

The setup;
- The user profile, with Citrix UPM (like a roaming profile) is configured with a French Canada's profile.
- The default's one in the Preload's section is configured with French Canada too.
- The Wyse/Desktop Appliance/Endpoint Device with a Citrix Receiver got configured with any Keyboard Layout.

So the client connect from anywhere in the world, and the keyboard layout in it's Virtual Desktop is the one from it's profile.

BUG:

If you update the Virtual Desktop to install the Citrix VDA's Agent and Core Service to version 5 and more, it now do a keyboard importation from the device.

Seem a easy's one you will told me, but what if Wyse didn't coded the right Keyboard Layout for like French Canada ?

Bug like that appear;

Untitled3

 

So you clearly see the bug, the French (Canada) got bypassed by that "Canadian Multilingual Standard". So you will tell me, wait, you did put that setting in the Wyse, but no !

Untitled5

WORKAROUND...

The one I did myselft before contacting the support...;

A script in the start-up menu in the All Users: (I call the .bat that way to hide the windows)

Set oWshShell = CreateObject("WScript.Shell")
oWshShell.Run "c:Import.bat", 0, True

Import.bat:

reg import c:kb.reg
rundll32.exe shell32,Control_RunDLL intl.cpl,,/f:"c:kb.txt"

-There the first line do import the correct Preload key
-Now the second line simulate a click in the control panel to change the setting

kb.reg:

Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USERKeyboard LayoutIMEtoggle] [-HKEY_CURRENT_USERKeyboard LayoutPreload] [-HKEY_CURRENT_USERKeyboard LayoutSubstitutes] [-HKEY_CURRENT_USERKeyboard LayoutToggle]

[HKEY_CURRENT_USERKeyboard Layout]

[HKEY_CURRENT_USERKeyboard LayoutIMEtoggle]

[HKEY_CURRENT_USERKeyboard LayoutIMEtogglescancode]

[HKEY_CURRENT_USERKeyboard LayoutPreload] "1"="00001009"

[HKEY_CURRENT_USERKeyboard LayoutSubstitutes]

[HKEY_CURRENT_USERKeyboard LayoutToggle] "Hotkey"="3" "Language Hotkey"="3" "Layout Hotkey"="3"

[HKEY_CURRENT_USERControl PanelDesktop] "MultiUILangageId"="00001009"

kb.txt:

[RegionalSettings]
LanguageGroup=1
InputLocale = 0c0c:00001009

OK, BUG#2 after that.  Because, if my workaround would had work at 100% I would had not call the support...

In the initial login the script work and that all ok, the users see nothing wrong. The bug come after a period, the VDA's agent seem to refresh it's settings.

So in the day, usually 3-4 hours after the bad keyboard come out again. The bug appear less, because some users works in TS session like from XenApp, so their keyboard is ok. Some users see the bug when they try to edit some local text or in some local app.

WORKAROUND #2

You erase the wrong keyboard layout folder from there;

HKEY_LOCAL_MACHINESYSTEMCURRENTCONTROLSETCONTROLKEYBOARD LAYOUTS

Seem to work, but WAIT, in the refresh period the bad keyboard layout come back agains ! ark.

So, in the final the correct workaround is to set the correct ACL for the folder, only domain admin read, every other including SYSTEM with DENY's flag. (so you does not erase it)

Thanks everyone, I hope it will help other.

As clearly we CAN'T stop that importation with the new VDA,s agent 5 and more and that leave the Virtual Desktop easy to break by Receiver or Appliance that does not follow the correct key to use.

Continue Reading...

ssh_cli

If you got that error it mean one thing, your SAN Equalogic got a too recent firmware for your Citrix XenServer 5.5. The XenServer take all SSH's session and does not free them, so if HA is enable the VM will sometime load up, could be right now, in 15 minutes or in 1 hour. If HA is not there, then you will have to retry manually.

Firmware 5 > cause that error. Only workaroung is to cron a script like that in your hypervisor.

 

#!/bin/sh

ps -u root -f | grep "ssh
grpadmin@GroupIPAddress" | while read psline;
do
pid=`echo \$psline | awk '{print \$2}'`
ppid=`echo \$psline |
awk '{print \$3}'`

if test \$ppid -eq '1' ; then

kill \$pid
fi

done

 

If HA is there, that will leave you error like that;

Untitled

Be aware that it cause too bug in the % of space reported from the SAN. As it report it in GB, but the XenServer expect MB.

 

Upgrading to 5.6 > is the only solution !

Continue Reading...