Openstack日誌查看

Openstack的日誌全部放在了systemctl裏面。
首先查看各個組件的服務名

sudo systemctl status "devstack@*"

看到看到Cinder的服務名爲:[email protected]

[email protected] - Devstack [email protected]
   Loaded: loaded (/etc/systemd/system/[email protected]; enabled; vendor preset: enabled)
   Active: active (running) since 三 2019-10-30 14:11:04 CST; 5h 8min ago
 Main PID: 7109 (cinder-volume)
   CGroup: /system.slice/system-devstack.slice/[email protected]
           ├─7109 /usr/bin/python /usr/local/bin/cinder-volume --config-file /etc/cinder/cinder.conf
           └─7252 /usr/bin/python /usr/local/bin/cinder-volume --config-file /etc/cinder/cinder.conf

再查看日誌:

sudo journalctl -a -u [email protected] | grep  "ERROR"
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章