Netscaler : Excessive appfw* Files in /tmp Causing High Root Disk Usage (/)

book

Article ID: CTX694986

calendar_today

Updated On:

Description

  •  You might observe high root directory usage on your NetScaler appliance like below:

root@NS1# df -h
Filesystem      Size    Used   Avail Capacity  Mounted on
/dev/md0        389M    376M    5.0M    99%    /
devfs           1.0K    1.0K      0B   100%    /dev
procfs          4.0K    4.0K      0B   100%    /proc
/dev/ada0s1a    1.5G    1.2G    246M    83%    /flash
/dev/ada0s1e     14G     11G    2.1G    84%    /var
/dev/ada1p1      24G    2.1G     20G     9%    /var/crash

  • This is happening because a large number of appfw* temporary files within the /tmp directory aren't being deleted as they should be.

e.g.

drwx------  2 root  wheel   512B Apr 24 18:00 appfwGMrPtJ/
drwx------  2 root  wheel   512B Apr 24 19:00 appfwxBgQ0L/
drwx------  2 root  wheel   512B Apr 24 20:00 appfw5lkQAx/
drwx------  2 root  wheel   512B Apr 24 21:00 appfwI2BPEY/
drwx------  2 root  wheel   512B Apr 24 22:00 appfwWbv8gF/
drwx------  2 root  wheel   512B Apr 24 23:00 appfwSUY4E1/

  • As part of the resolution for NSHELP-40137, a mechanism has been implemented to ensure that appfwXXXXX temporary files in the /tmp directory are reliably cleaned up across all error scenarios.

This issue has been addressed in the following NetScaler versions:

    •     13.1 60.x+
    •     14.1 51.x+

 

NSHELP-40137:

The Auto_update_signature process on a secondary NetScaler might fail to delete temporary directories (located at /tmp/appfwXXXXX) when encountering errors during temporary file creation. However, this process functions correctly on the primary NetScaler. This issue occurs due to insufficient disk space in the /tmp partition. 

Cause

The Auto_update_signature process on a secondary NetScaler might fail to delete temporary directories (located at /tmp/appfwXXXXX) when encountering errors during temporary file creation. However, this process functions correctly on the primary NetScaler. This issue occurs due to insufficient disk space in the /tmp partition. 

Resolution

To address this issue, manually remove the accumulated appfw* files from the /tmp directory. After that, upgrade your NetScaler appliance to a fixed build (version 13.1 build 60.x or later, or 14.1 build 51.x or later) to prevent this issue from reoccurring.

Issue/Introduction

You may observe high root directory usage on NetScaler. This is due to an accumulation of appfw temporary files that haven't been deleted correctly in some cases.