Nonstop Database, HiRDB Version 9 System Operation Guide

[Contents][Index][Back][Next]

15.8.1 Automatic extension of an RDAREA

When a space shortage occurs in an RDAREA, its size of can be expanded by means of automatic addition of segments to the last HiRDB file comprising the RDAREA. This process is called RDAREA automatic extension. The following two methods are available for automatically extending an RDAREA:

  1. Method that automatically expands the HiRDB file system area
  2. Method that expands HiRDB files within the HiRDB file system area

The following figure illustrates RDAREA automatic extension.

Figure 15-1 RDAREA automatic extension

[Figure]

Explanation
When the addition of segments causes the HiRDB file system area to exceed its maximum allowed size, method 1 automatically expands the HiRDB file system area by the necessary size. This method can create a single HiRDB file in each HiRDB file system area. This single HiRDB file is then assigned as the last HiRDB file that comprises the RDAREA.
Method 2 expands or adds to the HiRDB file within the size of the HiRDB file system area, automatically increasing the HiRDB file system area up to its maximum allowed size.
Organization of this subsection
(1) RDAREAs eligible for automatic extension
(2) Automatic extension triggers
(3) Criteria for selecting an RDAREA automatic extension method
(4) Applying RDAREA automatic extension

(1) RDAREAs eligible for automatic extension

Automatic extension is available for the following RDAREAs:

Automatic extension is not available for an RDAREA that stores an abstract data type provided by a plug-in. However, in the case of the HiRDB Text Search Plug-in with the SGMLTEXT type, a portion of the index management area can be extended automatically.

(2) Automatic extension triggers

HiRDB automatically extends an RDAREA when either of the following automatic extension triggers occurs:

Automatic extension triggers can be specified using the pd_rdarea_extension_timing operand. For details, see the manual HiRDB Version 9 System Definition.

(3) Criteria for selecting an RDAREA automatic extension method

We generally recommend method 1 for automatically extending an RDAREA. Because method 1 automatically expands the HiRDB file system area to the maximum size of the HiRDB file (64 GB), it makes it easy to estimate the area size and extend the database.

However, because method 1 is subject to the following restrictions, select method 2 when method 1 cannot be used:

(4) Applying RDAREA automatic extension

When you perform automatic extension of an RDAREA, monitor the size of the following items:

Especially if you are using method 1, you must monitor the free space because you cannot set a maximum size for disk usage.

Additionally, we recommend that you reorganize the tables and indexes in the RDAREAs to prevent RDAREAs and HiRDB file system areas from becoming unnecessarily large. You can specify the pd_rdarea_warning_point operand to monitor the HiRDB file usage rate and extent count and issue a warning message. In this way, you can take the necessary action before automatic extension becomes impossible. For details about the pd_rdarea_warning_point operand, see the manual HiRDB Version 9 System Definition.

When size cannot be monitored
When size cannot be monitored, a space shortage in the HiRDB file system area or disk might cause an error shutdown if a space shortage occurs during RDAREA automatic extension. Therefore, either do not apply RDAREA automatic extension, or use a setting that initializes the area to be extended during automatic extension if any of the following conditions applies:
  • A method that automatically expands the HiRDB file system area is used.
  • The HiRDB file system area of an RDAREA is created in a regular file.
For details about how to initialize an area during automatic extension, see 15.8.3(2) Initializing a HiRDB file system area to be expanded during automatic extension.
Reference note
Relationship between RDAREAs and extents
An extent is a group of contiguous areas inside the HiRDB file system area. The following figure illustrates extents.
[Figure]
The maximum number of extents that a single HiRDB file can hold is 24. During automatic extension, if a free space is secured that is contiguous to the last allocated extent of the target HiRDB file, the number of extents is not increased. However, if non-contiguous free spaces are allocated, the number of extents increases. For example, in the above figure, the number of extents in HiRDB file A is 2. Extent information can be checked with the pdfls command.
When an RDAREA is deleted, re-initialized (assigned size reduction or with reconstruction operand), or consolidated, the assigned extents are deleted or their size is reduced. This causes fragmentation in the HiRDB file system area. Note that if an RDAREA is added, extended, or re-initialized from this state, multiple extents might be assigned to a single HiRDB file even without automatic extension.