Rebalancing a file system

You can rebalance your file system after adding or removing disks. Perform a rebalance operation by using the db2cm command (db2cluster command for AIX systems).

Before you begin

Important: To run the db2cm utility as the root user, ensure the DB2INSTANCE environment variable is set to the instance owner.

Ensure that the file system is mounted before running this command. Otherwise, only the System Administrator (or the Db2® cluster services administrator on AIX) can rebalance a file system.

About this task

To rebalance file systems, you need to re-stripe data on disk across all disks in the file system. The instance owner can perform this task only if the instance owner created the file system. Otherwise only the System Administrator (or Db2 cluster services administrator on AIX) can rebalance a file system.

Procedure

  • Use the db2cm command to rebalance the file system:
    db2cm -cfs -rebalance -filesystem filesystem-name
  • Use the db2cluster command for AIX systems:
    db2cluster -rebalance -filesystem filesystem-name