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
onspaces -a sbsp4 -p /dev/rawdev1 -o 200 -s 10240 -m /dev/rawdev2 200 -UYou can also define information that Informix® 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.
When the CHUNK_OVERLAP_PROTECTION configuration parameter is enabled, the database server ensures that the new chunk does not overlap with other chunks. If the server finds that chunks overlap, the addition of the new chunk fails.