Skip to content
Home » Oracle » How to Set TFA Repository Directory

How to Set TFA Repository Directory

Not enough space in Repository or TFA_BASE

TFA failed to collect diagnostics because of insufficient space of TFA repository.

[grid@primary01 grid]$ tfactl diagcollect -srdc dbrac -from "2023-12-12 10:00:00" -to "2023-12-12 13:00:00"
Enter the Database Name, if the incident was NOT specific to a database (e.g. Node Reboot/Eviction) choose ALL [Required for this SRDC] :
...
Not enough space in Repository or TFA_BASE in primary02

.------------------------------.
|          primary02           |
+----------------------+-------+
| Repository Parameter | Value |
+----------------------+-------+
'----------------------+-------'

FAILED

To solve this, we may raise the available size or set another repository for it.

tfactl print repository

Let's see the status of repository on each node.

[root@primary02 /]# tfactl print repository
.-----------------------------------------------------------------.
|                            primary01                            |
+----------------------+------------------------------------------+
| Repository Parameter | Value                                    |
+----------------------+------------------------------------------+
| Location             | /u01/app/grid/oracle.ahf/data/repository |
| Maximum Size (MB)    | 10240                                    |
| Current Size (MB)    | 914                                      |
| Free Size (MB)       | 9326                                     |
| Status               | OPEN                                     |
'----------------------+------------------------------------------'

.-------------------------------------------------------------------------.
|                                 primary02                               |
+----------------------+--------------------------------------------------+
| Repository Parameter | Value                                            |
+----------------------+--------------------------------------------------+
| Location             | /u01/app/grid/tfa/repository                     |
| Maximum Size (MB)    | 10240                                            |
| Current Size (MB)    | 0                                                |
| Free Size (MB)       | 10240                                            |
| Status               | CLOSED - FILESYSTEM SPACE LOW ( Less than 1 GB ) |
'----------------------+--------------------------------------------------'

As we can see, space (Free Size) is not a problem, but there's a mismatch in repository location. The first node points to the new TFA_BASE, whereas the second node points to the old one.

Even though it points to the old TFA_BASE, it still has enough space to store diagnostics. What's going on? Is it a bug?

tfactl set repositorydir

Nevertheless, we can make it clear by setting repository directory locally by root:

[root@primary02 /]# tfactl set repositorydir=/u01/app/grid/oracle.ahf/data/repository
Successfully changed repository
.----------------------------------------------------------------------.
| Repository Parameter      | Value                                    |
+---------------------------+------------------------------------------+
| Old Location              | /u01/app/grid/tfa/repository             |
| New Location              | /u01/app/grid/oracle.ahf/data/repository |
| Current Maximum Size (MB) | 10240                                    |
| Current Size (MB)         | 15                                       |
| Status                    | OPEN                                     |
'---------------------------+------------------------------------------'

Let's take a look again.

[root@primary02 /]# tfactl print repository
.-----------------------------------------------------------------.
|                             primary02                           |
+----------------------+------------------------------------------+
| Repository Parameter | Value                                    |
+----------------------+------------------------------------------+
| Location             | /u01/app/grid/oracle.ahf/data/repository |
| Maximum Size (MB)    | 10240                                    |
| Current Size (MB)    | 15                                       |
| Free Size (MB)       | 10225                                    |
| Status               | OPEN                                     |
'----------------------+------------------------------------------'

.-----------------------------------------------------------------.
|                             primary01                           |
+----------------------+------------------------------------------+
| Repository Parameter | Value                                    |
+----------------------+------------------------------------------+
| Location             | /u01/app/grid/oracle.ahf/data/repository |
| Maximum Size (MB)    | 10240                                    |
| Current Size (MB)    | 915                                      |
| Free Size (MB)       | 9325                                     |
| Status               | OPEN                                     |
'----------------------+------------------------------------------'

They're identical now.

Leave a Reply

Your email address will not be published. Required fields are marked *