Please follow these upgrade instructions in our Administration Guide:
https://severalnines.com/docs/administration.html#upgrading-clustercontrol
[DEPRECATED - DON'T READ BELOW]
We have built an automatic upgrade script which is available under our Git repository:
https://github.com/severalnines/s9s-admin.git
IMPORTANT CHANGE! Port 9500 must be opened on the Controller. The Apache Server needs to connect to the Controller on localhost:9500/127.0.0.1:9500.
To upgrade to the latest version, clone the Git repo in ClusterControl host:
$ git clone https://github.com/severalnines/s9s-admin.git
If you already have that clone, it is very important you update it:
$ cd s9s-admin
$ git pull
Navigate to the s9s_upgrade_cmon script folder:
$ cd s9s-admin/ccadmin
Start the upgrade process:
./s9s_upgrade_cmon --latest
The script will compare the current ClusterControl version with the latest version available at our download site and perform the upgrade in all hosts if necessary. For safety precaution, it will backup ClusterControl on every host (default backup path will be /$HOME/s9s_backup/s9s_backup_[date & time]) before performing any upgrade.
Other Parameters
To force upgrade, even though the script detects installed ClusterControl version is already up-to-date, specify the --force (-f) option:
./s9s_upgrade_cmon --latest --force
By default, the upgrade will skip CMON and dcps databases backup as in some cases this behavior can eaten up a lot of disk space. You may instruct the script to perform the DB backup during the upgrade by using --backup-db option (-n) and make sure you have sufficient free space beforehand:
./s9s_upgrade_cmon --latest --backup-db
You can restore back your ClusterControl to the original version by with --restore and --backupdir option:
./s9s_upgrade_cmon --restore=all --backupdir=/tmp/s9s_backup_0-0-0-00/
If you are using non-default installation path (default is /usr/local/cmon for Debian/Ubuntu and /usr for Redhat/CentOS), you can use the topdir option (-t) to specify the custom path as example below:
./s9s_upgrade_cmon --latest --topdir=/opt/cmon
It is also possible to define custom backup path to override the default path during upgrade/backup process using backupdir option (-d) as example below:
./s9s_upgrade_cmon --latest --backupdir=/root/backup/s9s_backup
or
./s9s_upgrade_cmon --backup=all --backupdir=/root/backup/s9s_backup
So, your restoration process (if needed) will be using the custom backup path as well:
./s9s_upgrade_cmon --restore=all --backupdir=/root/backup/s9s_backup
Option restore and backup can take 3 arguments:
- all - restore/backup all hosts (ClusterControl controller host and agent hosts)
- controller - restore/backup controller host only
- agent - restore/backup all agent host only
**For sudoers, kindly run the command with 'sudo'.
Comments
32 comments
Hi
Thanks for a tip. The issue was lack of disk space, now it`s ok. But I have now two instances of CC: old one working well, and new one empty! How to import old settings?
KR
Strange, mysql is running and accessible by the user cmon.
@principe - hold on, trying to reproduce this.
Hi guys
I`ve tried to upgrade old 1.3.6 CC but it fails. How can I get new CC on already running cluster (Percona and 1.3.6 CC)?
KR
Stopping cmon: ok
Starting cmon: Checking for default config file at /etc/cmon.cnf: found
Deprecated parameter: nodaemon
To start cmon in nodaemon mode: ./cmon -d
found pidfile /var/run/cmon.pid with pid 23372
Going to daemonize.. - cmon will write a log in /var/log/cmon.log from now
Starting cmon : ok
@principe - can you do on the controller:
service cmon restart
What do you get then?
Hi Principe,
Did you install garbd, haproxy, keepalived from scripts or from the UI?
Best regards
Johan
I'm having the same issue as Principe. Logs look fairly similar.
Hey,
I tried to update software with automatic scripts but for some reason it only shows status but won't start updating:
./s9s_upgrade_cmon --latest
===================================
Collecting Information
** Current CMON version: 1.2.4
** Latest CMON version: 1.2.4a
** Latest CCUI version: 1.2.4
ClusterControl is already up-to-date.
How can I update from 1.2.4 to 1.2.4a?
Hi,
Can you post the /var/log/cmon.log from any of the problematic agents?
Also can you do on the same problematic node you get the /var/log/cmon.log from:
ps -ef |grep cmon
If you don't want to put it here, please open a support ticket.
Best regards
Johan
Hi, simply solved rolling back to the previous version and evertything now works without problems.
Thanks for your help
Regards
Principe
Hi,
That is fine. The UI and the CMON API (a RESTful API) is still on 1.2.4, but the ClusterControl server needed a patch (fixes for the comments above saying upgrade did not work) and became 1.2.4a .
Best regards
Johan
Tried updating to 1.24 but it seems to fail a bit:
./s9s_upgrade_cmon --latest
===================================
Collecting Information
Warning: Using unique option prefix pass instead of password is deprecated and will be removed in a future release. Please use the full name instead.
Warning: Using unique option prefix pass instead of password is deprecated and will be removed in a future release. Please use the full name instead.
Warning: Using unique option prefix pass instead of password is deprecated and will be removed in a future release. Please use the full name instead.
Warning: Using unique option prefix pass instead of password is deprecated and will be removed in a future release. Please use the full name instead.
** Current CMON version: 1.2.3d
** Latest CMON version: 1.2.4
New version found.
** Proceed with upgrading? (Y/n): Y
Warning: Using unique option prefix pass instead of password is deprecated and will be removed in a future release. Please use the full name instead.
===================================
Backup CMON controller
Creating backup directory: /tmp/s9s_backup_2013-11-20-11_33_22 [ OK ]
Backup CMON schema Warning: Using unique option prefix pass instead of password is deprecated and will be removed in a future release. Please use the full name instead.
[ OK ]
Backup CMON cron [ OK ]
Backup CMON web app [ OK ]
Backup ClusterControl web app [ OK ]
Backup ClusterControl schema Warning: Using unique option prefix pass instead of password is deprecated and will be removed in a future release. Please use the full name instead.
[ OK ]
Backup CMON share directory [ OK ]
Backup CMON configuration files [ OK ]
Backup CMON log file [ OK ]
Backup CMON init.d [ OK ]
Backup my.cnf [ OK ]
Backup S9S binary cp: omitting directory `/usr/bin/s9s_repo'
[ Backup S9S binary ]
[ ERROR ]
Upgrade failed. Unfortunately, the detected backup is incomplete. Kindly proceed with manual restoration.
Hi,
That is strange, i can't reproduce this upgrading from 1.2.3 to 1.2.4, what version did you upgrade from?
Thanks,
Johan
Hi David,
It seems like you executed the script under /usr/bin directory. Try again by removing /usr/bin/s9s_repo directory and restart again the script from other location (it is recommended to run the script from your $HOME)
Regards,
Ashraf
I'm going from 1.2.2 using the same upgrade process as above. Hostnames and IPs have been modified.
Any suggestions for me?
Regards
Hi,
Please do:
./s9s_upgrade_cmon --latest --force
Make sure you have the latest s9s_upgrade_cmon first:
cd s9s-admin
git pull
cd ccadmin
./s9s_upgrade_cmon ...
@Ashraf Sharif: This was actually straight from /root/s9s-admin/ccadmin/
The problem was an empty directory /usr/bin/s9s-repo
Deleted the directory and the script continued and upgraded successfully.
Hey,
I did. Now UI says:
|
ClusterControl UI version:
| 1.2.4
|
|
ClusterControl Server Version:
| 1.2.4a
|
|
CMON API Version:
| 1.2.4
|
How do I update rest?
Did you restart cmon on the controller?
service cmon restart
Wait a few minutes, then what do you see in Manage -> Processes (please send screen shot + /var/log/cmon.log from the controller)?
Best regards
Johan
Hi, I upgrade the new version and everything seems to be done. The only think that I don't understand is the message "Agent is not responding for .... ", this message is for garbd, haproxy, and keepalived hosts, for cluster nodes it's all right.
I try to run service cmon restart but it continue to show me this message.
What I can do? Any suggestions?
Thanks
Principe Orazio
From 1.2.3 with this command:
To upgrade to the latest version, clone the Git repo in ClusterControl host:
$ git clone https://github.com/severalnines/s9s-admin.git
If you already have that clone, it is very important you update it:
$ cd s9s-admin
$ git pull
Navigate to the s9s_upgrade_cmon script folder:
$ cd s9s-admin/ccadmin
Start the upgrade process:
./s9s_upgrade_cmon --latest
Hi, I installed all of them from the UI during the trial period
Hi,
It looks quite fine (there is no mysql server running on 192.168.2.11?) .
Can you go to Manage -> Processes and take a screenshot of it?
Best regards
Johan
Hi,
Did you update the UI?
BR
johan
Hi,
For the new UI, you need to install it by go to http://cluster_control_ip/install . Enter required details like MySQL root password, email address, password and most importantly take note the ClusterControl API Access Token. Click "Install" and follow the integration wizard. Once completed, you can access the new UI accessible at https://cluster_control_ip/clustercontrol.
For example of upgrade, you can refer to our blog post here: http://www.severalnines.com/blog/how-upgrade-clustercontrol.
I have done what described up in this page:
./s9s_upgrade_cmon --latest
Can you do on the controller:
mysql -ucmon -p -h127.0.0.1
use cmon;
select * from cmon.ext_proc \G
select * from cmon.hosts \G
Best regards
Johan
Hi,
Did you mean version 1.1.36? Can you clone again the git repo and restart the upgrade process with following command:
$ ./s9s_upgrade_cmon --latest 2>&1 | tee upgrade.log
And attach the upgrade.log to us via support ticket.
Please sign in to leave a comment.