Adding a chunk to an sbspace
You can add a chunk to an sbspace or temporary sbspace.
About this task
You can specify a metadata area for a chunk, let the database server calculate the metadata area, or use the chunk for user data only.
To add a chunk to an sbspace using onspaces:
Procedure
- Ensure that the database server is online, administration, or quiescent mode, or in the cleanup phase of fast-recovery mode.
- Use the onspaces -a option to create
the sbspace chunk.
- After you add a chunk to the sbspace, the database server writes the CHRESERV and CHKADJUP log records.
- Perform a level-0 backup of the root dbspace and the sbspace.
- Use onstat -d and oncheck -pe to monitor the amount of free space in the sbspace chunk.
Example
This example adds a 10-megabyte mirror chunk to sbsp4.
An offset of 200 KB for both the primary and mirror chunk is specified.
If you are not adding a mirror chunk, you can omit the -m option.
The -U option specifies that the new chunk contains user data
exclusively.
onspaces -a sbsp4 -p /dev/rawdev1 -o 200 -s 10240 -m /dev/rawdev2 200 -U
You can also define information that OneDB can use to automatically expand the size of a chunk when additional storage space is required for an application. If you have extendable chunks, you are not required to add new chunks or spend time trying to determine which storage space (dbspace, temporary dbspace, sbspace, temporary sbspace, or blobspace) will run out of space and when it will run out of space.