Adding a chunk to a dbspace or blobspace
You add a chunk when a dbspace, blobspace, or sbspace is becoming full or requires more disk space.
About this task
To add a chunk using onspaces:
Procedure
- On UNIX™, you must
be logged in as user informix or root to add a chunk.
On Windows™, users in the Informix-Admin group can add a chunk.
- Ensure that the database server is in online, administration, or quiescent mode, or the cleanup phase of fast-recovery mode.
- Allocate disk space for the chunk, as described in Allocate disk space.
- To add a chunk, use the -a option of onspaces.
If the storage space is mirrored, you must specify the path name of both a primary chunk and mirror chunk.
If you specify an incorrect path name, offset, or size, the database server does not create the chunk and displays an error message. Also see What to do if you run out of disk space.
- After you create the chunk, you must perform a level-0 backup of the root dbspace and the dbspace, blobspace, or sbspace that contains the chunk.
Example
onspaces -a blobsp3 -p /dev/raw_dev1 -o 200 -s 10240 -m /dev/raw_dev2 200
onspaces -a dbspc3 \\.\e: -o 5200 -s 5120
You can also define information that Informix® can use to automatically extend 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 will run out of space and when it will run out of space.