Upgrading is handled by the host Operating System via the package manager. Depending on your package manager, your config files will have been preserved with your local changes since the last installation. Please see Changing the zone_key and negotiation_key for information on server-server authentication.
All servers in a Zone must be running the same version of iRODS. Using inconsistent versions within a Zone may work, but is not rigorously tested. First, upgrade the iRODS Catalog Provider, then upgrade all the iRODS Catalog Consumers.
It is best practice to stop an iRODS server before upgrading as it will allow the graceful completion of any ongoing transfers or requests.
Upgrades coming from the APT and YUM repositories require only that the server be restarted after upgrade. The package does not restart the server because any required database schema updates are applied before starting the server. A database schema update could be a relatively heavy operation and will require an amount of time on large installations (hundreds of millions of records) that should be handled within a declared maintenance window.
Before upgrading from iRODS 4.1.x to 4.2+, copy
With this file in place, the installation history of your deployment will be preserved in the 'previous_version' stanza.
Without this file in place, a dummy stanza will be inserted to allow the upgrade to complete successfully, but any previous deployment history will be lost.
Updating stale information in unused catalog columns
Since 4.2.4, iRODS populates no-longer-used database columns with known values. Prior to 4.2.4, the values had been populated or updated inconsistently and may have been empty strings or NULL.
After successfully upgrading from 4.2.3 or earlier, the administrator should manually run the script located at
This script updates the following columns in
R_DATA_MAIN to contain these known values:
It skips any rows with an "invalid"
resc_id value. A
resc_id is considered invalid if it does not exist in the
R_RESC_MAIN table or it maps to a known non-storage resource (i.e. coordinating resource).
The script has a
--dry-run option and can safely be interrupted and run again (it is only querying the database for values to update, and then updating them).
Non-package installs have been made available for development, testing, and backwards compatibility. The lack of managed update scripts, coupled with a growing array of possible plugin combinations, will make sustaining a non-package installation much more challenging.
It is possible that in the 5.0 timeframe, with the plans for a proper plugin registry, managing a non-package installation can be handled more gracefully.
From iRODS 3.3.x
Migrating from iRODS 3.3.x to iRODS 4.0+ is not supported with an automatic script. There is no good way to automate setting the new configuration options (resource hierarchies, server_config.json, etc.) based solely on the state of a 3.3.x system. In addition, with some of the new functionality, a system administrator may choose to implement some existing policies in a different manner with 4.0+.
For these reasons, the following manual steps should be carefully studied and understood before beginning the migration process to 4.0.x or 4.1.x. There is no migration path to 4.2+ without migrating to 4.0.x/4.1.x and then upgrading.
- Port any existing custom development to plugins: Microservices, Resources, Authentication
- Make a backup of the iCAT database, and all iRODS configuration files: core.re, core.fnm, core.dvm, server.config, custom rulefiles, server's .irodsEnv
- Declare a Maintenance Window
- Remove resources from resource groups
- Remove resource groups (confirm:
iadmin lrgreturns no results)
- Shutdown 3.3.x server(s)
- Make sure existing 3.3.x iCAT database is available (either
irodsctl dbstart, or externally managed database)
- Install iRODS 4.0+ packages: irods-icat and a database plugin package (e.g. irods-database-plugin-postgres)
- Patch existing database with provided upgrade SQL file (psql ICAT <
- If necessary, migrate 3.3.x in-place iCAT database to the system database installation. It is recommended to dump and restore your database into the system installation. This will allow the original database to be uninstalled completely, once the iRODS upgrade is confirmed. If you were already using an externally managed database and want to continue with that arrangement, this step is not necessary.
- For a new local system database installation, provide a database user 'irods', database password, and owner permissions for that database user to the new iCAT. If you are using an externally managed database, this step is not necessary as these values should already exist.
- Manually update any changes to 'core.re' and 'server_config.json'. Keep in mind immediate replication rules (
acPostProcForPut, etc.) may be superceded by your new resource composition.
./packaging/setup_irods.sh(recommended) OR Manually update all 4.0+ configuration files given previous 3.3.x configuration (.irodsEnv, .odbc.ini DSN needs to be set to either 'postgres', 'mysql', or 'oracle'). The automatic
./packaging/setup_irods.shscript will work only when targeting the system-installed database server or an externally managed database server (it will not know about the legacy 3.3.x location).
- Confirm all local at-rest data (any local iRODS Vault paths) have read and write permissions for the new (default) 'irods' unix service account.
- Start new 4.0+ iCAT server (
- On all resource servers in the same Zone, install and setup 4.0+. Existing configuration details should be ported as well ('server.config', 'core.re', Vault permissions).
- Rebuild Resource Hierarchies from previous Resource Group configurations (
iadmin addchildtoresc) (See Composable Resources)
- Install any custom plugins (Microservice, Resources, Authentication)
- Perform your conformance testing
- Sunset 3.3.x server(s)
- Close your Maintenance Window
- Share with your users any relevant changes to their connection credentials (possibly nothing to do here).
Migrating from in-place 3.3.x to a non-package production installation of 4.0+ is not recommended.