12.3.11

SAP Note 24552 - BRRESTORE/SAPDBA: not enough space in file system

Symptom:

When trying to restore a backup, BRRESTORE reports that there is not enough space in certain file systems.
BR360E/BR360W Not enough disk space in ... for restore/verification, missing ... MB.
The same can occur in SAPDBA in the functions:
"Reorganize tablespace and data files" and
"Move/rename data files of a tablespace"

Cause and prerequisites

To create a file, UNIX does not only need the exact space in the size of the file but also another relatively small amount of space for the file system administration.
This additional space cannot be determined exactly before the file is created. However, you definitely have to take it into account when you check the available space because otherwise errors can occur when storing due to a lack of space.

BRRESTORE and SAPDBA therefore assume that in addition to the total size of the files that are to be saved (fsize), a reserve space (res) needs to be available for the file system administration.

In some cases this could be a little more than the actual space required. For this reason, it is possible that in a very tightly calculated file system this space is not available, although the files were or still are included in the system before restore (during backup) or during reorganization (check of space).
Thus, BRRESTORE and SAPDBA only provide a warning if the assumed reserve space does not exist. As a general rule you should not set up your file systems too closely to the exact size of the individual data files.
If an error occurs, the Restore or reorganization is terminated.

Depending on the release, the following values are rlevant for the space check:
-------------------------------------------------------------------

new insp. method (in 3.1I as of BRRESTORE Patch 12 or SAPDBA-Patch 22,
in 4.0B as of BRRESTORE Patch 24 or SAPDBA-Patch 69,
in 4.5A as of BRRESTORE Patch 20 or SAPDBA-Patch 42,
in 4.5B as of BRRESTORE Patch 1 or SAPDBA-Patch 1
and in general as of SAPDBA/BRRESTORE 4.6A):

Freespache: free
Reserve: res = free/1024

Ideal situation: fsize <= free - res
Warning: free - res < fsize <= free
Error (Termination): free < fsize

old insp. method (til SAPDBA/BRRESTORE 4.5B except in the a.m. patches):

Freespace: free
Reserve (til 4.0A): res = fsize/1024 + 1MB
(as of 4.0B): res = fsize/1024

Ideal situation: fsize + res <= free
Warning: free < fsize + res <= free + 10MB.
Error: free + 10MB < fsize + res

Caution with Unix installations:
--------------------------------
If disks for database files are re-formatted (file systems are created again), then the space reserved for Superuser Root and the number of Inodes should be kept at a minimum. For this refer to the SAP Installation Guide:
"R3 Intallation on Unix: OS Dependencies"

Solution
Set up greater file systems.

No comments:

Post a Comment