v4.1.4: Can two vault servers point to the same db?

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
kha
Posts: 221
Joined: Fri Sep 12, 2008 8:25 am

v4.1.4: Can two vault servers point to the same db?

Post by kha » Wed May 13, 2009 1:12 pm

I am trying to install my new Vault Server on the new separated physical box, and I don't want to get rid of the old one yet because I want to keep it just in case the new one doesn't work right, I still have the old one to fail back to. Of course, I want to keep the SQL server the same, the SQL server is on another separated stand-alone box.

I remember when we install the Vault Server, it looks for sgvaultuser username and sgmaster db from the SQL server. I don't remember exactly how it reacts if sgmaster db is existing on the SQL server. So, my question is that, is it workable the way I want to do (above proposal)? Will it cause any conflict?
Last edited by kha on Thu May 14, 2009 8:49 am, edited 1 time in total.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: v4.1.4: Can two vault server point to the same db?

Post by lbauer » Wed May 13, 2009 2:25 pm

We don't support using two Vault servers against the same SQL Server database at the same time, as this can cause unexpected behavior.

However, you can install Vault on the new machine, pointing it at the SQL Server location and it will upgrade the database (if you're upgrading) and also configure the Vault server connection/user login to SQL Server.

If you need to go back to the old box, then reinstall Vault on the old machine pointing it to SQL Server location.

Note: If you are upgrading, then if you go back to the old Vault Server machine, you'll need to install the upgraded version, as an older version of Vault can't work with a newer version of the database.
Linda Bauer
SourceGear
Technical Support Manager

kha
Posts: 221
Joined: Fri Sep 12, 2008 8:25 am

Re: v4.1.4: Can two vault server point to the same db?

Post by kha » Wed May 13, 2009 3:20 pm

lbauer wrote:Two Vault servers can't (or shouldn't) commit transactions to the same SQL Server database at the same time, as this can cause database corruption.
However, you can install Vault on the new machine, pointing it at the SQL Server location and it will upgrade the database (if you're upgrading) and also configure the Vault server connection/user login to SQL Server.
If you need to go back to the old box, then reinstall Vault on the old machine pointing it to SQL Server location.
Note: If you are upgrading, then if you go back to the old Vault Server machine, you'll need to install the upgraded version, as an older version of Vault can't work with a newer version of the database.
I should have mention that I won't have two vault servers operate at the same time. Before we have the new Vault Server operates, we would have to stop the Vault Server IIS. We will use the same Vault Server version for both old and new Vault Server. I will leave everything untouch on SQL server, and just add another Vault server box (same version) and shut down the old Vault server box before turnning on the new Vault Server. Is that still ok?

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: v4.1.4: Can two vault server point to the same db?

Post by lbauer » Thu May 14, 2009 7:37 am

Yes. As I said earlier, installing Vault on the new server and pointing to the database location should take care of any configuration issues.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply