Petri.co.il forums by Daniel Petri  

Petri.co.il forums Home Forums Start Page Forums Frequently Asked Questions FAQ Member List Members List
Go Back   Petri.co.il forums by Daniel Petri > Client Operating Systems > Windows 2000 Pro, XP Pro
Petri.co.il is happy to award Virtual the title of Most Valuable Member !!!
Register Calendar Calendar Search Petri.co.il forums by Daniel Petri Search Today's Posts Mark Forums Read

Notices

IDEALSTOR
LOGONSERVER environment variable

LOGONSERVER environment variable

this thread has 26 replies and has been viewed 8828 times

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 5th January 2009, 09:02
charlsteve's Avatar
charlsteve charlsteve is offline
Junior Member
Staying around
 
 Join Date: Mar 2007
  6 month star 12 month star
 Posts: 243
 Reputation: charlsteve is on a distinguished road (11)
Default LOGONSERVER environment variable

I want to know the effect of having incorrect LOGONSERVER environment variable in a windows XP or windows 2003 machine. When I say incorrect, it is pointing to other site DC instead of local domain controller. Also want to know at what all places this environment variable will be used in windows XP.

Please let me know if I need to provide any more details for better understanding.

Thanks,
Sitaram
  #2  
Old 5th January 2009, 10:19
Stonelaughter's Avatar
MVM Stonelaughter Stonelaughter is offline
Senior Member
MVM
 
 Join Date: Sep 2004
  6 month star 12 month star
 Location: Nottingham UK
 Posts: 2,162
 Reputation: Stonelaughter is just really niceStonelaughter is just really niceStonelaughter is just really niceStonelaughter is just really nice (395)
Default Re: LOGONSERVER environment variable

I think you have it the wrong way around. The "Logonserver" environment variable is set when you log on to the name of the server which processed your logon.
__________________


Tom
For my own and your protection, I do not provide support by private message under any circumstances. All such messages will be deleted and ignored.

Anything you say will be misquoted and used against you
  #3  
Old 5th January 2009, 13:24
charlsteve's Avatar
charlsteve charlsteve is offline
Junior Member
Staying around
 
 Join Date: Mar 2007
  6 month star 12 month star
 Posts: 243
 Reputation: charlsteve is on a distinguished road (11)
Default Re: LOGONSERVER environment variable

I understood that, Stonelaughter. I have a requirement where I have to switch hole active directory infrastructure to Disaster Recover site, which means that, I will be shutting down all DC's of current site and making DR servers online. During this process, all desktops will be running and the LOGONSERVER environment variable will be set to local DC which I had to shutdown. After switching to DR site, if the client still tries for local DC, then it will be a problem.

So, I just want to understand, what all processes that will make use of this variable. If it is not a problem, then I want to change the LOGONSERVER to DR site DC manually.

Thanks,
Sitaram
  #4  
Old 5th January 2009, 14:01
gforceindustries's Avatar
gforceindustries gforceindustries is offline
Senior Member
Wrote the book
 
 Join Date: Sep 2008
  6 month star 12 month star
 Location: Leics, UK
 Posts: 3,808
 Reputation: gforceindustries has a spectacular aura aboutgforceindustries has a spectacular aura about (198)
Default Re: LOGONSERVER environment variable

Switching to DCs at a different site is something you'd do out of hours isn't it? When your users aren't logged on.
__________________
Gareth Howells

BSc (Hons)

Any advice is given in good faith and without warranty.

Please give reputation points if somebody has helped you.

"For by now I could have stretched out my hand and struck you and your people with a plague that would have wiped you off the Earth." (Exodus 9:15) - I could kill you with my thumb.

"Everything that lives and moves will be food for you." (Genesis 9:3) - For every animal you don't eat, I'm going to eat three.
  #5  
Old 5th January 2009, 15:05
charlsteve's Avatar
charlsteve charlsteve is offline
Junior Member
Staying around
 
 Join Date: Mar 2007
  6 month star 12 month star
 Posts: 243
 Reputation: charlsteve is on a distinguished road (11)
Default Re: LOGONSERVER environment variable

Incase of disaster, we need to do it immediately irrespective of time.
  #6  
Old 5th January 2009, 15:07
gforceindustries's Avatar
gforceindustries gforceindustries is offline
Senior Member
Wrote the book
 
 Join Date: Sep 2008
  6 month star 12 month star
 Location: Leics, UK
 Posts: 3,808
 Reputation: gforceindustries has a spectacular aura aboutgforceindustries has a spectacular aura about (198)
Default Re: LOGONSERVER environment variable

True. In that case, you would just get users to reboot their machines if they experience problems.
__________________
Gareth Howells

BSc (Hons)

Any advice is given in good faith and without warranty.

Please give reputation points if somebody has helped you.

"For by now I could have stretched out my hand and struck you and your people with a plague that would have wiped you off the Earth." (Exodus 9:15) - I could kill you with my thumb.

"Everything that lives and moves will be food for you." (Genesis 9:3) - For every animal you don't eat, I'm going to eat three.
  #7  
Old 5th January 2009, 16:27
Stonelaughter's Avatar
MVM Stonelaughter Stonelaughter is offline
Senior Member
MVM
 
 Join Date: Sep 2004
  6 month star 12 month star
 Location: Nottingham UK
 Posts: 2,162
 Reputation: Stonelaughter is just really niceStonelaughter is just really niceStonelaughter is just really niceStonelaughter is just really nice (395)
Default Re: LOGONSERVER environment variable

Changing "Logonserver" environment variable would achieve nothing. Like GF said, when you have to do this for a disaster, have the users reboot. They will log on to whichever DC is available, and logonserver will be set correctly.

Changing "logonserver" manually would address I estimate about 1% of the problems you would experience when the servers went down. Rebooting would address all of them.
__________________


Tom
For my own and your protection, I do not provide support by private message under any circumstances. All such messages will be deleted and ignored.

Anything you say will be misquoted and used against you
  #8  
Old 11th January 2009, 20:44
Smart-X Smart-X is offline
Junior Member
It's not a coincidence
 
 Join Date: Dec 2008
  6 month star 12 month star
 Posts: 110
 Reputation: Smart-X is on a distinguished road (20)
Default Re: LOGONSERVER environment variable

Having the DRP backup the primary site without getting client machines to reboot is a legitimate request.

As far as I know, Windows operating system does not use the LOGONSERVER environment variable. It is calculated upon logon and is primarily used by legacy applications, scripts, batch scripts and other application that does not use API calls such as dsGetDCName to retrieve the DC.

When you actually take the primary site offline (and switch to the DRP site), do you experience any problems that you think might be related to the LOGONSERVER environment variable?
__________________
Smart-X
  #9  
Old 12th January 2009, 00:20
Stonelaughter's Avatar
MVM Stonelaughter Stonelaughter is offline
Senior Member
MVM
 
 Join Date: Sep 2004
  6 month star 12 month star
 Location: Nottingham UK
 Posts: 2,162
 Reputation: Stonelaughter is just really niceStonelaughter is just really niceStonelaughter is just really niceStonelaughter is just really nice (395)
Default Re: LOGONSERVER environment variable

Quote:
Originally Posted by Smart-X View Post
Having the DRP backup the primary site without getting client machines to reboot is a legitimate request.
Indeed it is; however to my knowledge such a capability was not implemented in Windows up to XP/2003.

In my experience, when the DC which the users authenticated to goes down, so does their ability to do anything. When the DNS server they were talking to goes down, so does their ability to do anything. When the file server they were using goes down (for roaming profiles, MyDocs and shared data) so does their ability to do anything.

Reconfiguring their environment at the back end to give them new DNS servers, a new DC and a DR File server and then asking them to reboot seems to me to be a perfectly reasonable DR plan and would have them up and running reasonably quickly.
__________________


Tom
For my own and your protection, I do not provide support by private message under any circumstances. All such messages will be deleted and ignored.

Anything you say will be misquoted and used against you
  #10  
Old 12th January 2009, 21:04
Smart-X Smart-X is offline
Junior Member
It's not a coincidence
 
 Join Date: Dec 2008
  6 month star 12 month star
 Posts: 110
 Reputation: Smart-X is on a distinguished road (20)
Default Re: LOGONSERVER environment variable

It depends on the DR site scenario and file system distribution between the two sites.

To my knowledge, Windows 2000 will get over a non-reachable Domain Controller without having to reboot (Even if this is the DC used for authentication at logon) Previous operating system will require reboot.

Regarding DNS, you should configure at least two DNS servers - one (or two) in the primary site and another one (or two) in the DR site.

Regarding file system (Shared data, roaming profiles, My Documents, etc.), it depends which method of file system distribution you are using. Basically, there are two major alternatives:
1. A cluster of two or more nodes which uses a storage system that replicates between the two sites.
2. Two separate file servers which replicate the information.

If you use the first method - than your clients probably access the file system using the cluster's logical name, so nothing should be changed when the primary site fails.

If you use the second method - you should configure your clients to use the file system through DFS links only. This way, even if one of the file servers fail, you will still be able to use the file system since client requests will be directed to the available server. (There will be a pause when client are accessing the FS right after the server they where using failed).

BTW, DFS is also smart enough to direct clients to their nearest file server according to their site.

__________________
Smart-X
Closed Thread


Go Back
Petri.co.il forums by Daniel Petri > Client Operating Systems > Windows 2000 Pro, XP Pro


Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Differences between installing a software in local environment and domain environment hamed89156 Windows Server 2000 / 2003 6 18th December 2008 12:25
RSM script sometimes not setting a variable JeremyW General Scripting 8 24th November 2008 14:31
Creating table name from a variable bertv General Scripting 2 29th October 2008 11:19
Date Variable for yyyymmdd Michael19ave DOS Command Shell 4 7th November 2007 20:19
Get user's OU and set it as a system variable arisap General Scripting 2 1st September 2005 16:36



All times are GMT +3. The time now is 06:33.

Steel Blue Style vBulletin Style ©2006 vBEnhanced Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
 

Valid XHTML 1.0!   Valid CSS!

Copyright 2005 Daniel Petri