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

# sk184453 - Root partition nearly full on VSX Gateway with many Virtual Systems 

| Property | Value |
|----------|-------|
| Solution ID | sk184453 |
| Date Created | 2025-12-29 |
| Last Modified | 2025-12-30 |
| Technical Level | General |
| Products | Security Gateway |
| Versions | R82, R81.20, R81.10 (EOS) |
| OS | Gaia |

## Symptoms

- * On VSX Gateways with many Virtual Systems (VSs), the root partition becomes almost full.

* The disk usage command (`du`) shows high consumption under the `/opt/CPviewExporter` directory, often several gigabytes.

  Example:
  `
  [Expert@GW:0]# du -h /opt/CPviewExporter/`  
  `
  13G /opt/CPviewExporter/
  `
* Each VS creates multiple rotated log files under `/opt/CPviewExporter`:

  `
  [Expert@GW:0]# cd /opt/CPviewExporter/; ls -lh *.log*`  

  `

  -rw-rw---- 1 admin root 201M Oct 14 09:34 otlp_cpview.vs0.log`  
  `
  -rw-rw---- 1 admin root 201M Nov 26 15:30 otlp_cpview.vs0.log.1`  
  `
  -rw-rw---- 1 admin root 201M Nov 30 10:29 otlp_cpview.vs0.log.2`  
  `
  ...
  `
* Each active VS creates its own `otlp_cpview.vsX.log` file and rotations.

## Cause

CPviewExporter / otlp_cpview is enabled and running on each VS to export CPView metrics.

The `rotatelogs` task rotates logs with:

* a fixed per-file size (default: 200M)

* a fixed number of rotated files for each VS.

On systems with many VSs and continuous metric collection, the cumulative size of all `otlp_cpview.vs*.log*` files under the `/opt/CPviewExporter` directory can grow to many gigabytes and consume a significant portion of the `/` partition.

## Solution

**Warnings**:

* The steps below modify only the file size limit used by the existing rotatelogs invocation. Make sure you choose a size that balances retention and disk space.
* Restarting CPviewExporter (step 5) interrupts metric export for all VSs.

**Procedure**:

Reduce the per-file log size (and/or number of rotations) for CPviewExporter logs so that the total disk usage under the `/opt/CPviewExporter` directory remains within acceptable limits.

1. Run this command on the VSX Gateway to edit the `cpview_exporter` script:  
   `[Expert@GW:0]# vi /opt/CPviewExporter/cpview_exporter`

2. Locate the `rotatelogs `command line, for example:   
   `/opt/CPshrd-R81.20/web/Apache/bin/rotatelogs -n 5 /opt/CPviewExporter/otlp_cpview.vs0.log `**200M**

3. Reduce the file size limit (for example, from 200M to 20M):   
   `... rotatelogs -n 5 /opt/CPviewExporter/otlp_cpview.vs0.log `**20M**

4. Save the file.

5. Restart CPviewExporter:

   * `[Expert@GW:0]# /opt/CPviewExporter/CPviewExporterCli.sh stop`
   * `[Expert@GW:0]# /opt/CPviewExporter/CPviewExporterCli.sh start`

---

# 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
