(Click to open topic with navigation)
This topic provides instructions to upgrade Moab Accounting Manager to the latest release version using the RPM upgrade method. It includes instructions for migrating your database schema to a new version if necessary.
Because many system-level files and directories are accessed during the installation, the instructions in this guide should be executed with root privileges.
You will see that the instructions execute commands as the root user. Please note that the same commands will work for a non-root user with the sudo command.
3.28.1 Upgrade Steps
Do the following:
Do the same as needed for the MAM GUI Host and each MAM Client Host.
See 3.21 Preparing for RPM Upgrades for more information.
You must complete all the previous upgrade steps in this topic before upgrading MAM Server. See the list of steps at the beginning of this topic.
On the MAM Server Host, do the following:
[root]# systemctl stop mam.service
[root]# zypper update moab-accounting-manager
[root]# systemctl start mam.service
The migration scripts must be run as the mam user.
For example, if you are migrating from Moab Accounting Manager version 7.2, you must run six migration scripts: the first to migrate the database schema from 7.2 to 7.3, the second to migrate from 7.3 to 7.5, the third to migrate the database schema from 7.5 to 8.0, the fourth to migrate the database schema from 8.0 to 8.1, the fifth to migrate the database schema from 8.1 to 9.0, and the sixth to migrate the database schema from 9.0 to 9.1.
[root]# su - mam [mam]$ /usr/share/moab-accounting-manager/migrate_7.2-7.3.pl [mam]$ /usr/share/moab-accounting-manager/migrate_7.3-7.5.pl [mam]$ /usr/share/moab-accounting-manager/migrate_7.5-8.0.pl [mam]$ /usr/share/moab-accounting-manager/migrate_8.0-8.1.pl [mam]$ /usr/share/moab-accounting-manager/migrate_8.1-9.0.pl [mam]$ /usr/share/moab-accounting-manager/migrate_9.0-9.1.pl
Verify that the resulting database schema version is 9.1.
[mam]$ mam-shell System Query
Name Version Description
----------------------- ------- ------------------
Moab Accounting Manager 9.1 Commercial Release
Verify that the executables have been upgraded to 9.1.1.
[mam]$ mam-server -v
Moab Accounting Manager version 9.1.1
3.28.2.A Upgrade Remote MAM GUI
If you are using the MAM GUI and the MAM GUI Host is different from the MAM Server Host, then do the following on the MAM GUI Host:
[root]# zypper update moab-accounting-manager
3.28.2.B Upgrade Remote MAM Web Services
If you are using MAM Web Services and the MAM Web Services Host is different from the MAM Server Host, then do the following on the MAM Web Services Host:
[root]# zypper update moab-accounting-manager
[root]# systemctl restart apache2.service
3.28.2.C Upgrade Remote MAM Clients
If you are have any MAM Client Hosts that are different from the MAM Server Host or MAM GUI Hosts, then do the following on each MAM Client Host:
[root]# zypper update moab-accounting-manager