Automatically Resizable Partitions

Use Replication Server partitions that automatically grow or shrink according to usage.

An automatically resizable partition consists of separate partition files. With an automatically resizable partition, you need not manually increase the partition size or create a new partition when consumption from storing stable queue messages increases, and you need not manually reduce the partition size to conserve disk space if consumption decreases.

Instead, Replication Server responds immediately and automatically grows by creating a new partition file when consumption reaches 80% of the total capacity of the partition. You can set the individual partition file size according to your requirements, and you can set a limit to the total size of the partition according to the available disk space. Replication Server does not create a new partition file, even if consumption for the entire partition reaches 80% capacity, if Replication Server calculates that a new file exceeds the limit for the total size of the partition.

In addition, Replication Server automatically conserves disk space if consumption of the partition drops, by removing the last partition file that was added in a automatically resizable partition, if the file becomes empty. To improve response time and replication performance in case there are rapid fluctuations in disk consumption, Replication Server delays the shrinking of the partition until the total partition usage without the last partition file is lower than 50%.

Use create auto partition path to:
create auto partition path logical_name 
on 'physical_path'
with auto expand size = size
max size = max_size
For example, to create the auto_uxp logical partition path on the UNIX device named /usr/user1, with an initial partition file size of 100MB, and automatically add a new 100MB partition file to auto_uxp every time the partition file reaches 80% usage, and limit the total size for all the partition files that Replication Server can create automatically to102,400MB, enter:
create auto partition path  auto_uxp on '/usr/user1' 
with auto expand size=100 max size=102400

You can create multiple automatically resizable partitions but each partition must have a unique physical path or logical name, and sufficient disk space.

Replication Server names the partition files that it automatically creates according to the "logical_name"_"partition_number" format, where partition_number is a ten-digit number that Replication Server generates automatically and increases sequentially from 0000000001 to 2147483647 with each file that Replication Server adds. Replication Server can automatically grow or shrink partitions only with partition files named using this format. All other partitions must be manually managed by Replication Server administrators.
Warning!  Do not manually delete files in the partition physical location with names that follow the logical name_partition number format as the partition files may contain data, unless the partition file has not been used by Replication Server. You can use admin disk_space to check if Replication Server is using the partition file. Consult the system administrator or technical support.
To manage automatically resizable partitions, use:

See the Replication Server Reference Manual for descriptions and examples of all the commands and the stored procedure.

There are several restrictions and guidelines to consider when you create and manage automatically resizable partitions .