ESXi Update ไม่ได้ ขึ้นข้อความ “No space left on device”

สำหรับการอัพเดต ESXi ให้เป็นเวอร์ชั่นใหม่ผ่าน SSH ตัวอย่างเช่น

sxcli software profile update -p ESXi-xxxx

และขึ้นข้อความดังต่อไปนี้

[InstallationError]
 [Errno 28] No space left on device
       vibs = VMware xxxx

วิธีแก้ไข ให้ทำการรันคำสั่งเพิ่มขนาดของ swap ดังนี้

# Host swap - DS1 = Datastore Name
esxcli sched swap system set -n ds1 -d y
esxcli sched swap system get

# Example
[root@localhost:~] esxcli sched swap system get
   Datastore Active: false
   Datastore Enabled: false
   Datastore Name:
   Datastore Order: 0
   Hostcache Active: false
   Hostcache Enabled: true
   Hostcache Order: 1
   Hostlocalswap Active: false
   Hostlocalswap Enabled: true
   Hostlocalswap Order: 2

[root@localhost:~] esxcli sched swap system set -n datastore1 -d y

[root@localhost:~] esxcli sched swap system get
   Datastore Active: true
   Datastore Enabled: true
   Datastore Name: datastore1
   Datastore Order: 0
   Hostcache Active: false
   Hostcache Enabled: true
   Hostcache Order: 1
   Hostlocalswap Active: false
   Hostlocalswap Enabled: true
   Hostlocalswap Order: 2

จากนั้น ลองรันอัพเดตอีกครั้งนะครับ