Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products

VxFlex OS: The root Directory Fills up Due to Large Localhost_access.log Files

Summary: The root directory fills up, causing issues due to large localhost_access logs which are kept in the /opt/emc/scaleio/gateway/logs/ directory.

This article applies to   This article does not apply to 

Symptoms

Add a new virtual machine (VM) that makes REST calls to the VxFlex OS GW.

The root directory/file system has filled up. The root directory shows 100% full when the following command runs:
df -h
Alternately, use the following command to see the amount of storage a particular directory is using:
du -hs [subdirectory name]
In this case, it would be:
du -hs /opt/emc/scaleio/gateway/logs/

Cause

External products and programs to the VxFlex OS GW are making multiple REST calls to this VM causing large localhost_access.log files to be created.

Resolution

Setup FlexOS Gateway Catalina localhost_access LogRotation

  1. Modify the server.xml file located here: /opt/emc/scaleio/gateway/conf/server.xml 
    • Modify the end of the file, the localhost_access logger from:
      <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
       prefix="localhost_access_log" suffix=".log"
       pattern="%h %l %u %t &quot;%r&quot; %s %b" />
    • To:
      <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
       prefix="localhost_access" suffix=".log" rotatable="false"
       pattern="%h %l %u %t &quot;%r&quot; %s %b" />
  2. Save the file.
  3. Stop and restart gateway service using:
systemctl stop scaleio-gateway
systemctl start scaleio-gateway

Create the LogRotate Configuration

  1. Go to vi /etc/logrotate.d/scaleio-gateway
  2. Add the following to the file:
/opt/emc/scaleio/gateway/logs/localhost_access.log {
  copytruncate
  daily
  rotate 7
  compress
  missingok
}

Clean up the old logs

  1. Go to rm -rf /opt/emc/scaleio/gateway/logs/localhost_access_log.*.txt
  • New logs are written to /opt/emc/scaleio/gateway/logs/localhost_access.log
  • New logs are rotated every day for 7 days with localhost_access.log.1.gz to 7.gz

Affected Products

PowerFlex Software

Products

PowerFlex Software, VxFlex Product Family