You can add a storage path to
a storage group by using the ALTER STOGROUP statement.
About this task
When you add a storage path
for a multipartition database environment, the storage path must exist
on each database partition. If the specified path does not exist on
every database partition, the statement is rolled back.
Procedure
- To add storage paths to a storage group, issue the following
ALTER STOGROUP statement:
ALTER STOGROUP sg ADD '/hdd/path1', '/hdd/path2', ...
where
sg is
the storage group and
/hdd/path1,
/hdd/path2,
... are the storage paths being added.
Important: All the
paths that you assign to a storage group should have similar media
characteristics: underlying disks, latency, device read rate, and
size. If paths have non-uniform media characteristics, performance
might be inconsistent.
- After adding one or more storage paths to the storage group,
you can optionally use the ALTER TABLESPACE statement to rebalance
table spaces to immediately start using the new storage paths. Otherwise,
the new storage paths are used only when there is no space in the
containers on the existing storage paths. To determine all of the
affected permanent table spaces in the storage group, run the following
statement:
SELECT TBSP_NAME
FROM table (MON_GET_TABLESPACE(' ', -2))
WHERE TBSP_USING_AUTO_STORAGE = 1
AND TBSP_CONTENT_TYPE IN ('ANY','LARGE')
AND STORAGE_GROUP_NAME = 'sg'
ORDER BY TBSP_ID
Once the table spaces have been
identified, you can perform the following statement for each of the
table spaces listed:
ALTER TABLESPACE tablespace_name REBALANCE
where
tablespace_name is
the table space.