星期二, 4月 12, 2016

VMware ESXi log 小記

VMware ESXi log 小記
今天因為工作的關係, 觀察一下 VMware ESXi 的 log 相關資訊

Log 的位置參考

# ls /var/log
Xorg.log              fdm.log               sdrsinjector.log      vmamqpd.log           vobd.log
auth.log              hostd-probe.log       shell.log             vmauthd.log           vprobe.log
boot.gz               hostd.log             smbios.bin            vmkdevmgr.log         vprobed.log
clomd.log             hostprofiletrace.log  storagerm.log         vmkernel.log          vpxa.log
configRP.log          ipmi                  swapobjd.log          vmkeventd.log         vsanvpd.log
dhclient.log          lacp.log              sysboot.log           vmksummary.log
esxcli.log            osfsd.log             syslog.log            vmkwarning.log
esxupdate.log         rhttpproxy.log        usb.log               vmware

這邊可以發現都是連結
對應到 /scratch/log 目錄

# ls -l /var/log/Xorg.log
lrwxrwxrwx    1 root     root            21 Mar 24 10:16 /var/log/Xorg.log -> /scratch/log/Xorg.log

/scratch 目錄則是會對應到 datastore

# ls -l /scratch
lrwxrwxrwx    1 root     root            49 Mar 24 10:16 /scratch -> /vmfs/volumes/56f2c737-bc8f7045-9ca1-f8b156b89290

設定參考

# esxcli system syslog config get
  Default Network Retry Timeout: 180
  Local Log Output: /scratch/log
  Local Log Output Is Configured: false
  Local Log Output Is Persistent: true
  Local Logging Default Rotation Size: 1024
  Local Logging Default Rotations: 8
  Log To Unique Subdirectory: false
  Remote Host: <none>

~ enjoy it

沒有留言: