...
The following step upgrades cluster nodes (and if run locally storage nodes too). This step takes about 20 minutes on a reasonably good network connection.
Code Block | ||
---|---|---|
| ||
[squirro@clusternode01 ~] sudo yum upgrade -y |
5. Resolve configurations
The Squirro packages attempt to upgrade *.ini and *.conf configuration files automatically. However if you have made local modifications, the upgrade results in *.rpmnew files that you would need to merge manually. We recommend
- backing up the previous *.ini and *.conf files to *.ini.orig and *.conf.orig,
- renaming the *.ini.rpmnew and *.conf.rpmnew files to *.ini and *.conf respectively
- inspecting all the *.orig files individually and porting any settings manually
Use the following scripts to look for and resolve unresolved configuration files on each cluster node:
Code Block | ||
---|---|---|
| ||
# 1. First remember all *.rpmnew because we are about to rename them, but we want to remember the list for step 3 below sudo su FILES_TO_RESOLVE=`ls /etc/squirro/*.ini.rpmnew /etc/nginx/conf.d/*.conf.rpmnew /etc/monit.d/*.rpmnew 2> /dev/null | sed -e "s/\.rpmnew//"` # 2. Back up original config files and make the *.rpmnew files the real configuration files # (\cp and \rm are used to avoid interactive alias of the commands and to ensure that the config file retains the ownership of the original config file) for CONFIG_FILE in ${FILES_TO_RESOLVE}; do \cp ${CONFIG_FILE} ${CONFIG_FILE}.orig; \cp ${CONFIG_FILE}.rpmnew ${CONFIG_FILE}; \rm ${CONFIG_FILE}.rpmnew; done # 3. Finally merge the commands. Exit vim via :q<enter>:q<enter> to accept a new config files verbatim for CONFIG_FILE in ${FILES_TO_RESOLVE}; do vim -O ${CONFIG_FILE}.orig ${CONFIG_FILE}; done |
6. Reboot
Reboot every cluster node like so:
Code Block | ||
---|---|---|
| ||
[squirro@clusternode01 ~] sudo reboot |
7. Start the new services
This is only necessary in single-node clusters in which monit is tasked with monitoring services.
Code Block | ||||
---|---|---|---|---|
| ||||
[squirro@clusternode01 ~] sudo monit -g all-manual start |
New Features
Dashboard
Search
...