Upgrading a Db2 server to Db2 pureScale environment
Upgrading to Db2 pureScale environment on Linux® and UNIX requires that you first upgrade to Db2 version 12.1 and then convert to Db2 pureScale environment.
Before you begin
- Ensure that you have root access.
- Ensure that you meet the Installation requirements for Db2 database products.
- Review upgrade recommendations and disk space requirements. Refer to Best practices for upgrading Db2 servers and Disk space requirements for Db2 server upgrades.
- Perform pre-upgrade tasks. Refer to Pre-upgrade tasks for Db2 servers.
Restrictions
- Only automatic storage table spaces are supported in a Db2 pureScale environment and all the table spaces must be on an IBM® Storage Scale storage path.
- Additional upgrade restrictions apply. Refer to Upgrade restrictions for Db2 servers. Review the complete list.
About this task
Scenario 1
About this task
Procedure
To upgrade a Db2 server to Db2 version 12.1 pureScale environment:
- Log on to the Db2 server as root.
-
Install Db2
version 12.1.
Run the db2setup command and select the Install New option on the Install a Product panel to install a new copy of Db2 version 12.1. Do not create an instance.
- Run the db2ckupgrade command from the new Db2 installation path to verify that your databases and instance are ready for upgrade.
-
Upgrade your Db2
version 9.7 or version 10.1
instances.
Refer to Upgrading Db2 11.5 and 11.1 instances.
- Upgrade your databases. Refer to Upgrading databases.
- Run the db2cluster_prepare command to set up IBM Storage Scale storage path. Refer to Setting up IBM Storage Scale file system for a Db2 pureScale environment.
- Create a new automatic storage enabled Db2 version 12.1 database on the IBM Storage Scale storage path.
- Load the data into the new database using the db2move with the copy option.
- Run the db2checkSD command to verify that your database is ready to be upgraded to a Db2 pureScale environment.
- Convert the instance to a Db2 version 12.1 pureScale environment. Refer to Converting your existing Db2 instances to a Db2 pureScale environment.
Scenario 2
About this task
Procedure
To upgrade a Db2 server to Db2 version 12.1 pureScale environment:
- Log on to the Db2 server as root.
-
Install Db2
version 12.1.
Run the db2setup command and select the Install New option on the Install a Product panel to install a new copy of Db2 version 12.1. Create an ESE instance.
- Run the db2cluster_prepare command to set up IBM Storage Scale storage path. Refer to Setting up IBM Storage Scale file system for a Db2 pureScale environment.
- Create a new automatic storage enabled Db2 version 12.1 database on the IBM Storage Scale storage path.
- Convert the table spaces to use automatic storage. Use a redirected restore operation with the TRANSPORT and SET TABLESPACE CONTAINERS command and specify the USING AUTOMATIC STORAGE parameter, to move all the schemas to the new database. Refer to Converting table spaces to use automatic storage.
- Run the db2checkSD command to verify that your database is ready to be upgraded to a Db2 pureScale environment.
- Convert the instance to a Db2 version 12.1 pureScale environment. Refer to Converting your existing Db2 instances to a Db2 pureScale environment.
Scenario 3
About this task
Procedure
To upgrade a Db2 server to Db2 version 12.1 pureScale environment:
- Log on to the Db2 server as root.
- Run the ALTER DATABASE command with the ADD STORAGE ON storage-path option to enable your database for automatic storage.
-
Install Db2
version 12.1.
Run the db2setup command and select the Install New option on the Install a Product panel to install a new copy of Db2 version 12.1. Create a Db2 Enterprise Server Edition instance.
- Run the db2cluster_prepare command to set up IBM Storage Scale storage path. Refer to Setting up IBM Storage Scale file system for a Db2 pureScale environment.
- Run the db2ckupgrade command from the new Db2 installation path to verify that your databases and instance are ready for upgrade.
- Take a full offline backup of your database.
- Do a redirected restore of the backup database into the Db2 version 12.1 instance. Convert the table spaces to automatic storage and move the table spaces to IBM Storage Scale storage path. Refer to Converting table spaces to use automatic storage.
- Run the db2checkSD command to verify that your database is ready to be upgraded to a Db2 pureScale environment.
- Convert the instance to a Db2 version 12.1 pureScale environment. Refer to Converting your existing Db2 instances to a Db2 pureScale environment.