onspaces -s: Change status of a mirrored chunk

Use the onspaces -s option to change the status of a mirrored chunk in a dbspace, a non-primary chunk within a noncritical dbspace, a blobspace, or an sbspace.

Read syntax diagramSkip visual syntax diagram
Syntax:

>>-onspaces -s--+-dbspace---+-- -p--pathname-- -o--offset------->
                +-blobspace-+                               
                '-sbspace---'                               

>--+- -D-+--+-----+--------------------------------------------><
   '- -O-'  '- -y-'   

This command has an equivalent SQL administration API function.

Element Purpose Key considerations
-D Indicates that you want to take the chunk down None.
-o offset Indicates, in kilobytes, the offset into the disk partition or unbuffered device to reach the chunk Restrictions: Unsigned integer. The starting offset must be equal to or greater than 0. The starting offset plus the chunk size cannot exceed the maximum chunk size.The offset must be a multiple of the page size.

The maximum offset is 4 terabytes.

For more information, see allocating raw disk space on UNIX, in the chapter on managing disk space in the HCL Informix® Administrator's Guide.

-O Indicates that you want to restore the chunk and bring it online None.
-p pathname Indicates the disk partition or unbuffered device of the chunk The chunk can be an unbuffered device or a buffered file. When you specify a path name, you can use either a full path name or a relative path name. However, if you use a relative path name, it must be relative to the directory that was the current directory when you initialized the database server.

For path name syntax, see your operating-system documentation.

-s Indicates that you want to change the status of a chunk Restrictions: You can only change the status of a chunk in a mirrored pair or a non-primary chunk within a noncritical dbspace.

For more information, see changing the mirror status in the HCL Informix Administrator's Guide.

-y Causes the database server to respond yes to all prompts automatically None.
blobspace Names the blobspace whose status you want to change Syntax must conform to the Identifier segment; see the HCL Informix Guide to SQL: Syntax. For more information, see changing the mirror status in the HCL Informix Administrator's Guide.
dbspace Names the dbspace whose status you want to change Syntax must conform to the Identifier segment; see the HCL Informix Guide to SQL: Syntax. For more information, see changing the mirror status in the HCL Informix Administrator's Guide.
sbspace Names the sbspace whose status you want to change Syntax must conform to the Identifier segment; see the HCL Informix Guide to SQL: Syntax. For background information, see changing the mirror status in the HCL Informix Administrator's Guide.

Copyright© 2019 HCL Technologies Limited