Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

Moving to a new DB server

Updated: 26 Apr 2011 | 6 comments
mmooney's picture
0 0 Votes
Login to vote
This issue has been solved. See solution.

Hey all,

I need to move my existing Altiris 7.0.x DB to a new DB server.  This is a horizontal move from one SQL 2008 server to another, so no upgrading or migration related issues to contend with, just a simple, straight-up move.

I know how to back up, move, and restore the SQL DB, but I'm not certain of the recommended procedure for pointing the NS at the new location.  Is there a config file I need to alter? I'm just not sure where to start.

Comments

jharings's picture
25
Apr
2011
2 Votes +2
Login to vote

The easiest way

Stop your SQL and Altiris services on the server (or servers if SQL is off box).
 

Create a COPY of your database and paste\move that copy to the new location.

Start up Altiris, and go to the database settings screen (Settings > All Settings; then Settings > Notification Server > Database Settings; then General (tab)), and point it to the new location.

You can then (at your leisure), remove the 'old' SQL database.

Jim Harings
HP Enterprise Services
1st Rule of Connect Club: Mark the post that helped you the most as a 'solution'. 2nd Rule of Connect Club:You must talk about Connect club.

mmooney's picture
25
Apr
2011
0 Votes 0
Login to vote

Sounds good

But which specific services on the Altiris server need to be stopped?  There are quite a few there.

jharings's picture
25
Apr
2011
1 Vote +1
Login to vote

I stop anything related to the NS install

The one in particular would be the Altiris Service. However any of those I have outlined could cause errors to be generated, which you'd have to deal with until you got the db back online.

In addition you may want to consider stopping the WWW and IIS Admin services, to stop those errors (clients trying to get to a webpage that is down) from showing up.

If you want to be minimalist in your approach, the Altiris Service and the Support Service (highlighted) are the two key ones. The Altiris service is "the" service, and the Support service will continually try an restart any stopped Altiris services. You should set the Support service to manul or disabled, so it doesn't try and start anything you've stopped.

 

Jim Harings
HP Enterprise Services
1st Rule of Connect Club: Mark the post that helped you the most as a 'solution'. 2nd Rule of Connect Club:You must talk about Connect club.

mmooney's picture
25
Apr
2011
0 Votes 0
Login to vote

Ok, that works.

Doesn't look too bad at all.

Once I've saved the change of SQL location should I restart the entire server, or just the services?

jharings's picture
25
Apr
2011
1 Vote +1
Login to vote

Just restart the services

Don't forget to start SQL on your old box.

At that point, the console should still be pointing to the OLD server location (that way your console will still function). Then navigate to the database setttings location, and change to the new location. Everything will sync up and then you should be all set.

At that point, and at your leisure, you can decommission the second box. The reason why I like this approach is if anything happens during the move, you can always "roll back" to the original install.

Jim Harings
HP Enterprise Services
1st Rule of Connect Club: Mark the post that helped you the most as a 'solution'. 2nd Rule of Connect Club:You must talk about Connect club.

Joe Bagnulo's picture
23
May
2011
1 Vote +1
Login to vote

JHarrings advice got me on

JHarrings advice got me on the right track, but for anyone else that isn't already a SQL DBA; here's a step by step of what i had to do on our 7.1 build on Win2008R2 & SQL2008R2:

I was unsuccesful when attempted a direct SQL to SQL copy, so I had to opt for the backup & restore option.

OLD Server
Stop all Altiris services, but leave SQL and services untouched.  Open SQL Manager, and login to the (local) server.
Right-click on the Altiris DB  (default is Symantec_CMDB) -> Tasks -> Back up..  Choose Full and choose/make note of the destination folder.

New Server:
Again stop all Altiris services, but leave SQL services running.  Open SQL Manager and right-click on the Databases folder and choose Restore Database. 
Copy the .BAK file created from the old server into the C drive of the new server.
Select to restore from Device: File 
add the copied .BAK file from the old server
Then select the check box next to the DB to confirm which one to restore.
Cross your fingers!

If restore was successful, resume JHarrings instruction:
Start all Altiris services on both servers again
Open the SMC web console -> Settings -> Notification Server -> Database settings:
Change the server name to the new server hostname, select the bullet to use an existing DB.

Depending on your security configuration, you may have to perform this last step on the new server.

All credit to Jim!  Just spelling it out for those of us that learn on the fly.