> Source: [sk165258](https://support.checkpoint.com/results/sk/sk165258)

# sk165258 - "df: '/var/log': Value too large for defined data type" error after enlarging a partition with XFS filesystem

| Property | Value |
|----------|-------|
| Solution ID | sk165258 |
| Date Created | 2020-02-17 |
| Last Modified | 2023-12-14 |
| Technical Level | General |
| Products | Security Gateway, Security Management Server |
| Versions | R82.10, R82, R81.20, R82.10, R82, R81.20 |
| OS | Gaia |

## Symptoms

- * The error appears "`df: '/var/log': Value too large for defined data type`" when logging in to the Gaia command line or when running the "`df`" command manually.

* This issue started after using the "`lvm_manager`" command ([sk95566](https://support.checkpoint.com/results/sk/sk95566)) to enlarge a partition with the XFS filesystem to more than 8TB.

* Several other utilities for managing storage may not work (e.g., "`lvm_manager`", "`xfs_info`", and more)

  Example output from the "`lvm_manager`" command:

  ```
  
  df: '/var/log': Value too large for defined data type
  (standard_in) 1: parse error
  (standard_in) 1: parse error
  (standard_in) 1: parse error
  /bin/lvm_manager: line 56: [: ==: unary operator expected
  ```

* CPUSE fails to verify, install, or uninstall package because it does not detect enough free disk space.

## Cause

By default, if the XFS filesystem size is up to 1TB, then 25% of the filesystem blocks are allocated for inodes.

After enlarging the XFS filesystem to more than 8TB, the number of inodes becomes greater than 2\^32. This causes some of Gaia OS utilities (like "df") to not be able to handle the inode fields.

Note - When installing Gaia OS, usually the default is a small filesystem (\< 1TB).

## Solution

This problem was fixed. The fix is included in:

* [Check Point R81](https://support.checkpoint.com/results/sk/sk166715)
* [Jumbo Hotfix Accumulator for R80.40](https://sc1.checkpoint.com/documents/Jumbo_HFA/R80.40/Default.htm) starting from Take 83
* [Jumbo Hotfix Accumulator for R80.30](https://sc1.checkpoint.com/documents/Jumbo_HFA/R80.30/Default.htm) starting from Take 219
* [Jumbo Hotfix Accumulator for R80.20](https://sc1.checkpoint.com/documents/Jumbo_HFA/R80.20/Default.htm) starting from Take 187

<br />

If you cannot install the required Jumbo Hotfix or cannot upgrade to R81 (or higher), then as a workaround, you can to reduce the number of inodes in the filesystem, after verifying there are enough free inodes to clear:

1. Download the **[fix_xfs_filesystem.tar](https://support.checkpoint.com/results/download/103168)** to your computer.

2. Transfer the TAR package from your computer to the Gaia OS server to some directory (for example, */var/log/*).

3. Connect to the command line on the Gaia OS server.

4. Log in to the Expert mode.

5. Go to the directory with the TAR package:

   `cd /var/log/`
6. Unpack the TAR package:

   `tar -xvf fix_xfs_filesystem.tar`
7. Go to the "fiXFS" directory:

   `cd fiXFS`
8. Run the script:

   `./fiXFS.sh`
9. Follow the instructions on the screen.

   Example output:

   ```
   Please choose the partition you want to fix:
   1. lv_current
   2. lv_log
   
   2
   
   Modifying maxpct value of /dev/vg_splat/lv_log from 25 to 1
   meta-data=/dev/mapper/vg_splat-lv_log isize=512    agcount=336, agsize=32768000 blks
            =                       sectsz=512   attr=2, projid32bit=1
            =                       crc=1        finobt=0 spinodes=0
   data     =                       bsize=4096   blocks=11010048000, imaxpct=25
            =                       sunit=0      swidth=0 blks
   naming   =version 2              bsize=4096   ascii-ci=0 ftype=1
   log      =internal               bsize=4096   blocks=64000, version=2
            =                       sectsz=512   sunit=0 blks, lazy-count=1
   realtime =none                   extsz=4096   blocks=0, rtextents=0
   inode max percent changed from 25 to 1
   ```

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
