Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ซอฟต์แวร์ >> เครื่องเสมือน

System Logs บน ESXi Host ถูกเก็บบน Non-Persistent Storage

เมื่อติดตั้ง VMware ESXi บน SD Card หรือ USB Stick (หรือเมื่อใช้ Boot from SAN) ไอคॉनเครื่องหมายเตือนสีเหลืองจะแสดงข้างชื่อโฮสต์ใน vCenter Client Console และคำเตือนต่อไปนี้ปรากฏบนแท็บ Summary:

System logs on host ny-esxi21.woshub.com are stored on non-persistent storage.

System Logs บน ESXi Host ถูกเก็บบน Non-Persistent Storage

คำเตือน esx.problem.syslog.nonpersistent หมายถึงระบบเขียน Logs (Scratch) ไปที่อุปกรณ์ USB ที่ไม่ถาวร (Non-persistent) และหากรีสตาร์ทโฮสต์ Logs จะไม่ถูกบันทึก ดังนั้น หากมีปัญหากับโฮสต์ จะไม่สามารถตรวจสอบ Logs หรือส่งข้อมูลให้ทีมสนับสนุนทางเทคนิค VMWare ได้ เพื่อลบคำเตือน ต้องเปลี่ยนพาธการจัดเก็บ Log ไปยัง Local Disk หรือ VMFS Datastore (หรือตั้งค่า Syslog Server) ในการตั้งค่า ESXi Host

คู่มือนี้อ้างอิง HTML5 vSphere 6.7 Client ใหม่ ใน vSphere เวอร์ชันก่อนหน้า ตั้งค่าเหมือนกัน แต่ชื่อตัวเลือกหรือส่วนอาจแตกต่าง

  1. เปิด vSphere Client และเลือก ESXi Host ที่มีคำเตือนใน Hosts & Clusters
  2. ไปที่แท็บ Configure และคลิก Advanced System Settings System Logs บน ESXi Host ถูกเก็บบน Non-Persistent Storage
  3. ในรายการ Advanced Settings คลิก Edit และพิมพ์ Syslog.global.logDir ในฟิลด์ Filter จะเห็นว่าโฟลเดอร์ [] /scratch/log ถูกใช้เก็บ ESXi Logs System Logs บน ESXi Host ถูกเก็บบน Non-Persistent Storage
  4. เปลี่ยนพาธในตัวแปร Syslog.global.logDir เป็น [yourVMFSdatastorename] /systemlogs System Logs บน ESXi Host ถูกเก็บบน Non-Persistent Storage ต้องสร้างโฟลเดอร์ /systemlogs บน VMFS Datastore ไว้ก่อน มิฉะนั้นจะได้ Error: A general system error occurred: Internal error System Logs บน ESXi Host ถูกเก็บบน Non-Persistent Storage
  5. หากฟิลด์ Syslog.global.logDir ว่าง ให้ตรวจสอบค่าของพารามิเตอร์ ScratchConfig.CurrentScratchLocation มันแสดงพาธไปยัง Scratch Partition ที่มี Logs

สามารถเปลี่ยนพาธ Log ด้วย PowerCLI Command Prompt:

get-vmhost ny-esxi21 | Get-AdvancedSetting -Name "Syslog.global.logDir" | Set-AdvancedSetting -Value "[HQVMFSDatastore1] /system_log_folder_name"

ยังสามารถเปลี่ยนค่า Syslog.global.logDir ด้วย Host Profiles ได้ สามารถนำ Profile นี้ไปใช้กับ ESXi Hosts ทั้งหมดใน Datacenter

System Logs บน ESXi Host ถูกเก็บบน Non-Persistent Storage