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
Important: The newly added chunk (and its
associated mirror, if one exists) is available immediately. If you
are adding a chunk to a mirrored storage space, you must also add
a mirror chunk.
To add a chunk using onspaces:
Procedure
Example
The following example adds a 10-megabyte mirror chunk
to blobsp3. 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.
onspaces -a blobsp3 -p /dev/raw_dev1 -o 200 -s 10240 -m /dev/raw_dev2 200
The
next example adds a 5-megabyte chunk of raw disk space, at an offset
of 5200 KB, to dbspace dbspc3.
onspaces -a dbspc3 \\.\e: -o 5200 -s 5120
You can also define information that OneDB 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.