Dropping storage paths
You can drop one or more storage paths from a storage group or you can move data off the storage paths and rebalance them.
Before you begin
- NOT_IN_USE
- The storage path has been added to the database but is not in use by any table space.
- IN_USE
- One or more table spaces have containers on the storage path.
- DROP_PENDING
- An ALTER STOGROUP stogroup_name DROP statement has been issued to drop the path, but table spaces are still using the storage path. The path is removed from the database when it is no longer being used by a table space.
If the storage path you dropped has data stored on it and is in the DROP_PENDING state, you must rebalance all permanent table spaces using the storage path before the database manager can complete the drop of the path.
To obtain information about table spaces on specific database partitions use the MON_GET_TABLESPACE administrative view.
Restrictions
- A storage group must have at least one path. You cannot drop all paths in a storage group.
- Dropping storage paths is not supported when using the IBM® Db2® pureScale® feature.
About this task
If you intend to drop a storage path, you must rebalance all permanent table spaces that use the storage path by using ALTER TABLESPACE tablespace-name REBALANCE, which moves data off the path to be dropped. In this situation, the rebalance operation moves data from the storage path that you intend to drop to the remaining storage paths and keeps the data striped consistently across those storage paths, maximizing I/O parallelism.
Procedure
What to do next
Query the ADMIN_GET_STORAGE_PATHS administrative view to verify that the storage path that was dropped is no longer listed. If it is, then one or more table spaces are still using it.