PowerFlex: Rotkatalogen fylls på grund av Localhost_access.log filer – loggrotation
Summary: Rotkatalogen fylls, vilket orsakar problem på grund av stora localhost_access loggar som sparas i katalogen /opt/emc/scaleio/gateway/logs/.
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
Lägg till en ny virtuell maskin (VM) som gör REST-anrop till VxFlex OS GW.
Rotkatalogen/filsystemet har fyllts. Rotkatalogen är 100 % full när följande kommando körs:
Rotkatalogen/filsystemet har fyllts. Rotkatalogen är 100 % full när följande kommando körs:
df -hDu kan också använda följande kommando för att se hur mycket lagringsutrymme en viss katalog använder:
du -hs [subdirectory name]I det här fallet skulle det vara:
du -hs /opt/emc/scaleio/gateway/logs/
Cause
Externa produkter och program till VxFlex OS GW gör flera REST-anrop till den här virtuella datorn, vilket gör att stora localhost_access.log filer skapas.
Resolution
Konfiguration för FlexOS-gateway Catalina localhost_access LogRotation
- Ändra filen server.xml som finns här:
/opt/emc/scaleio/gateway/conf/server.xml- Ändra slutet på filen, localhost_access loggaren från:
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".log" pattern="%h %l %u %t "%r" %s %b" />
- Till:
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access" suffix=".log" rotatable="false" pattern="%h %l %u %t "%r" %s %b" />
- Ändra slutet på filen, localhost_access loggaren från:
- Spara filen.
- Stoppa och starta om gatewaytjänsten med:
systemctl stop scaleio-gateway
systemctl start scaleio-gateway
Skapa LogRotate-konfigurationen.
- Gå till
vi /etc/logrotate.d/scaleio-gateway - Lägg till följande i filen:
/opt/emc/scaleio/gateway/logs/localhost_access.log {
copytruncate
daily
rotate 7
compress
missingok
}
Rensa upp de gamla stockarna.
-
rm -rf /opt/emc/scaleio/gateway/logs/localhost_access_log.*.txt
- Nya loggar skrivs till
/opt/emc/scaleio/gateway/logs/localhost_access.log - Nya loggar roteras varje dag i 7 dagar med
localhost_access.log.1.gz to 7.gz
Affected Products
PowerFlex rack, VxFlex Product FamilyProducts
PowerFlex Software, VxFlex Product FamilyArticle Properties
Article Number: 000058582
Article Type: Solution
Last Modified: 24 Nov 2025
Version: 10
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.