SharePoint world of ECM and Information Management

April 2008 - Posts

Renaming server PC with Sharepoint

Usually all Sharepoint development happens on virtual environment. There are several advantages of this, like

  • creating snapshots of your system to mitigate system restore when you broke your environment
  • creating Sharepoint farm on the single PC, when you can easily run different virtual systems and setup sharepoint farm there

But when you are cloning your existed sharepoint system you end up with absolutely the same sever, including the same server name name. And this is the only problem. However, renaming server name with the installed Sharepoint is not trivial as you could expect.

There are several items which should be renamed - server name, database name, Sharepoint references. And the situation became complex when your Sharepoint sites use Sharepoint Search - in this case you need rename MSSQL$MICROSOFT##SSEE database.

Actually, I failed with renaming Sharepoint Search DB, and decided to turn search off before system renaming.

The follow steps should be done to rename server with installed Sharepoint

  1. Go to the Sharepoint Central Administration > Operations > Services on Server  and stop "Windows SharePoint Services Search"
  2. To go the Control Panel -> System and rename your server (save your old name somewhere). Don't restart your system
  3. If you have MS SQL Server installed on the same box you need to rename in too - go to "SQL Server Management Studio" and execute the following script

    EXEC sp_dropserver '<old_name>'
    GO
    EXEC sp_addserver '<new_name>', 'local'
    GO

  4. Update Sharepoint references to the PC name calling the next command: stsadm -o renameserver -oldservername <old server name> -newservername <new server name>
  5. Restart your PC
  6. If you try to open Central Administration after restarting PC it will try to open the site with the old server name. You need to recreate your Central Administration site for the new server name calling the following command(any port address): psconfig -cmd adminvs -provision -port 1800 -windowsauthprovider "onlyusentlm"
  7. Now if you restart IIS and try to open your Central Admin site it will successfully open your site with new server name
  8. Go to the "Application Management" and remove Central Administration Web Site with old server name

That's all. Now you have the clone of your virtual server with the new server name.

Update: Guideline how to rename content database: http://blogs.technet.com/wbaer/archive/2008/06/16/renaming-content-databases.aspx

 

Mirror: Renaming server PC with Sharepoint

8 random facts

Last 3 weeks were a bit tough, didn't have enough time to blog

I moved back to the Sydney from long client engagement at Canberra government, had 2 short-term engagement in Sydney and was tagged by Mitch Denny regarding 8 random facts.

So, it's my turn

  1. I'm half Russian half Pole - my family roots start from Kraków (Poland), but I was born in Russia.
  2. At high school I took the third place at the sport sniper competition over all regional schools
  3. The first PC I ever seen were  Commodore Amiga. I was so stunned and I understood that it's exactly what I wanna do all my life.
  4. The first game I wrote were Sokoban, it were developed on basic with ZX-Spectrum. (somewhere between 1990-1992)
  5. I have some problems with vestibular apparatus - it feel myself dizzy even in cab
  6. I was an active FIDO user (NET5063:27.12)and used TMail + GoldED, also I run BBS with Quake game content
  7. I took the 3rd place at the regional Quake-2 contest at year 2001
  8. I was fired from one of my first jobs for failing the project deadline (8 years ago).

Mirror:  8 random facts

Posted: Sun, Apr 13 2008 18:58 by Michael | with no comments
Filed under: