Fügen Sie eine neue virtuelle Maschine (VM) hinzu, die REST-Aufrufe an das VxFlex OS-GW durchführt.
Das Stammverzeichnis/Dateisystem ist voll. Das Stammverzeichnis wird als zu 100 % voll angezeigt, wenn der folgende Befehl ausgeführt wird:
df -h
Alternativ können Sie den folgenden Befehl verwenden, um die Speichermenge anzuzeigen, die ein bestimmtes Verzeichnis verwendet:
du -hs [subdirectory name]
In diesem Fall wäre es:
du -hs /opt/emc/scaleio/gateway/logs/
Externe Produkte und Programme für das VxFlex OS-GW führen mehrere REST-Aufrufe an diese VM aus, wodurch große localhost_access.log Dateien erstellt werden.
Richten Sie localhost_access-Protokollrotation für den FlexOS-Gateway Catalina ein
- Ändern Sie die server.xml-Datei, die sich hier befindet:
/opt/emc/scaleio/gateway/conf/server.xml
- Ändern Sie das Ende der Datei, die localhost_access der Protokollierung von:
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".log"
pattern="%h %l %u %t "%r" %s %b" />
- Zu:
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access" suffix=".log" rotatable="false"
pattern="%h %l %u %t "%r" %s %b" />
- Speichern Sie die Datei.
- Stoppen Sie den Gateway-Service und starten Sie ihn neu mit:
systemctl stop scaleio-gateway
systemctl start scaleio-gateway
Erstellen der LogRotate-Konfiguration
- Gehen Sie zu
vi /etc/logrotate.d/scaleio-gateway
- Fügen Sie Folgendes zur Datei hinzu:
/opt/emc/scaleio/gateway/logs/localhost_access.log {
copytruncate
daily
rotate 7
compress
missingok
}
Bereinigen Sie die alten Protokolle
- Gehen Sie zu
rm -rf /opt/emc/scaleio/gateway/logs/localhost_access_log.*.txt
- Es werden neue Protokolle geschrieben.
/opt/emc/scaleio/gateway/logs/localhost_access.log
- Neue Protokolle werden 7 Tage lang täglich mit
localhost_access.log.1.gz to 7.gz