Mass Upgrade

carlo_gra

Verified User
Joined
Aug 7, 2007
Messages
56
Hello! :)

Hi have lot of servers (about 30) all with same hardware and daemon's version.

Is there a method to easly upgrade all servers?

For example, it's possibile to upgrade one of them and after make binary diff and copy them into other machines?

Thanks
 
I remember a linux desktop client that would post commands to multiple windows. You could ssh into all 30 servers and run a command and it will go to all 30 servers.
 
If using konsole and you have multiple ssh tabs open, right click on the tab and select send to all terminals.
 
What are you trying to upgrade?

I've about 30servers all with DirectAdmin.
Goal is to upgrade one of this and after to copy all updated binary to the other 29 servers (only copy, not to launch upgrade command from one server to the others).

It's possible?
 
copy all updated binary to the other 29 servers

You may be able to do that if you want. I don't know how safe that is. But using a Linux desktop is faster since there would be no copying after the binary is built and you don't have to worry about figuring out all the files that need to be copied. Using the Linux Konsole you can upgrade all servers at the same time, upgrading 30 takes the same amount of time as to upgrade 1.
 
You may be able to do that if you want. I don't know how safe that is. But using a Linux desktop is faster since there would be no copying after the binary is built and you don't have to worry about figuring out all the files that need to be copied. Using the Linux Konsole you can upgrade all servers at the same time, upgrading 30 takes the same amount of time as to upgrade 1.


But there's a specific command to copy only binary that where changed?
"rdiff" can help me?
 
Depending on what you are upgrading sometimes its not just the binary that is upgraded. Sometimes configuration files are upgraded as well and if you don't have the updated configuration file the the binary might not run.
 
Using the Linux Konsole you can upgrade all servers at the same time, upgrading 30 takes the same amount of time as to upgrade 1.
[/quote]
If you're going to do that you should have a local copy of the repositories for your OS distribution software and DirectAdmin software. Otherwise you're going to put a heck of a load on both your connection and the repository servers. And probably update slowly in the process.

Jeff
 
If using konsole and you have multiple ssh tabs open, right click on the tab and select send to all terminals.
thanks for that hint, Floyd. I've been using a KDE desktop for about five years now, and I never noticed that ;).

Jeff
 
Back
Top