Unable to update appliance; /var is 100% full

Description:

The appliance is unable to perform software updates, and there are no conflicting active jobs.

Symptom:

You may have an alert (see "bell" icon at the top right of the web interface) with a message 
like "Disk space usage threshold exceeded. Disk /var is 100% full (23 MB free)."

Resolution:

For CentOS 7 we will follow below steps:

The following steps change the YUM cached directory from /var to /backups.

1. SSH to the appliance and run:
     mkdir -p /backups/yumcache
     vim /etc/yum.conf

2. In the yum.conf, cursor to the beginning of the [main]->cachedir line.  

3. To preserve the original variable type:
     yy
     p
     0
     i
     #
     <escape>

4. Up arrow and cursor to the '/' that is the right of the "cachedir=" and type:
     c
     $
     /backups/yumcache/$basearch/$releasever
     <escape>
     :
     w
     q

5.  You should now be back at the command prompt.  Retry the update via the web interface, 
    unitrends-cli, or other method you were attempting.

For AlmaLinux 9 We have to do the following:

1. SSH to the appliance and run:
mkdir -p /backups/dnfcache
vi /etc/dnf/dnf.conf

2. Right after [main] add the following line:
cachedir=/backups/dnfcache
if it already existed change the path to "/backups/dnfcache" instead of /var/cache/dnf

3. save the file and run:
dnf makecache

4. Verify new cache files are being generated under /backups/dnfcache

5. Retry the update via the web interface, unitrends-cli, or other method you were attempting.

Note:  Validated for KB on 1/25/2022.  Used to update a CentOS7 UB appliance from 10.5.8-2 to 10.5.9-3.

 

Have more questions?

Contact us

Was this article helpful?
0 out of 0 found this helpful

Provide feedback for the Documentation team!

Browse this section