Contents

Citrix Netscaler - Space Issue on /var and /flash partitions

Website Visitors:

Space issue on /flash partition

Netscaler ADC 12.1 does not save the configuration. When clicked on the save icon in the browser, it prompts whether you want to save running configuration. Nothing happens when you click yes. From the putty session, when you run “save config” command, it outputs “ERROR:” and no error message is displayed on the putty console.

Solution:

Login to your netscaler through putty and check the free space of /flash directory. Run df -h command on the shell prompt to find the free space. If the free space in flash is less than 70%, you have to delete some files in it.

You will find files for multiple netscaler software release versions in /flash directory. Leave the one with your current netscaler version and delete other gz files. Ensure that the files present in this location are the ones applicable to the current version of the NetScaler software on your appliance. For example, if you are on Netscaler 12.1 60.19 version, in /flash directory, remove older netscaler version gz files. These files will be with the naming convention, ns-12.1-48.13.gz or ns-12.1-51.19.gz etc… Remove these files. But dont delete ns-12.1-60.19.gz file as it is the current version in this example.

Note: Remove only the older versions of the kernel. The /flash directory should contain the files that the current version or build of NetScaler software release is using and the kernel.gz file. Do not remove these files from the /flash directory.

Source: CTX133587

Check the free space of /flash directory again. If free space is less than 70%, save the configuration. It should save the configuration without any issues. If above solution did not clear space, follow below steps to clear more space on /flash partition.

Click here to view the same details from Citrix support

Clear space on /flash

To free space in the /flash directory in a NetScaler appliance, complete the following procedure:

  1. Open the command line interface of the appliance.

  2. Switch to the shell prompt.

  3. Run the following command to check the availability of space on the appliance:
    df –h
    If the capacity for the /flash directory is more than 90 percent or very low, you must delete few of the files from this folder.

  4. Run the following commands to view the contents of the /flash directory:
    cd /flash
    ls –l

  5. You might find multiple files for various versions of NetScaler software release. Ensure that the files present in this location are the ones applicable to the current version of the NetScaler software on your appliance. Run the following command to remove any other files from the appliance: rm <filename>

    Note: Remove only the older versions of the kernel. The /flash directory should contain the files that the current version or build of NetScaler software release is using and the kernel.gz file. Do not remove these files from the /flash directory.

    Source: how-to-free-space-in-the-flash-directory-in-a-netscaler-appliance

Space issue on /flash partition - alternate solution

This solution will work only if the VPX is deployed in AWS.

Backup your current license file on the netscaler. This is mandatory step.

If you have deployed NetScaler in AWS, navigate to /flash/nsconfig folder and remove .AWS folder. Run below commands for the same.

1
2
cd /flash/nsconfig
rm -rf .AWS

You can also do the same from WinScp software. You have to enable “Show hidden files” option in WinScp. Goto winscp–options–preferences–panels option and check the box for “Show hidden files (Ctrl+Alt+H)” option. Navigate to /flash/nsconfig folder and remove .AWS folder if you prefer to remove this folder from GUI.

After removing this .AWS folder you might loose licenses in your netscaler. You will have license file on the netscaler, but it won’t work. From the license backup file, get the mac address, and search for the license file in your citrix.com, licenses option. Modify that license, select hostid or mac address mistake option. Get the mac address from your netscaler. In the citrix.com portal, under hostid column, enter this mac address from netscaler and download the license file. Upload it to netscaler.

Clear space on /var partition

To clear /var directory:

https://docs.citrix.com/en-us/citrix-adc/current-release/system/troubleshooting-citrix-adc/how-to-free-space-on-var-directory.html

/var/nstrace - This directory contains trace files.This is the most common reason for HDD being filled on the Citrix ADC appliance. This is due to an nstrace being left running for indefinite amount of time. All traces that are not of interest can and should be deleted. To stop an nstrace, go back to the CLI and issue stop nstrace command.

/var/log - This directory contains system specific log files.

/var/nslog - This directory contains Citrix ADC log files.

/var/tmp/support - This directory contains technical support files, also known as, support bundles. All files not of interest should be deleted.

/var/core - Core dumps are stored in this directory. There will be directories within this directory and they will be labeled with numbers starting with 1. These files can be quite large in size. Clear all files unless the core dumps are recent and investigation is required.

/var/crash - Crash files, such as process crashes are stored in this directory. Clear all files unless the crashes are recent and investigation is required.

/var/nsinstall - Firmware is placed in this directory when upgrading. Clear all files, except the firmware that is currently being used.

Space issue on /var folder could be one of the issue if you are not able to login to the Netscaler GUI.

Want to learn more on Citrix Automations and solutions???

Subscribe to get our latest content by email.

If you like our content, please support us by sponsoring on GitHub below: