Could not power on VM: No space left on device. Failed to power on VM
An unexpected error was received from the ESXi host while powering on vm-##
hostd
) cannot start because the root partition is fullvpxa
) cannot start because the root partition is fulltmp
partitionThe root filesystem's file table is full. As a result, the file /dir could not be created by the application 'scp'
no space left on device
tmp
directory is filled with cimclient_root
* logs, (potentially thousands)vpxa
log may contain entries similar to:[YYYY-MM-DDTHH:MM:SS] 'Libs' 3076454304 warning] Cannot make directory /var/run/vmware/root/27591: No space left on device
[YYYY-MM-DDTHH:MM:SS] 'App' 3076454304 error] Exception: Failed to initialize authd server
[YYYY-MM-DDTHH:MM:SS] 'App' 3076454304 error] Backtrace:
[00] eip 0x909dd92
[01] eip 0x9043444
[02] eip 0x907f975
The virtual machine could not start. Make sure VMware ESXi is installed correctly and you have rights to run the software and to access all directories it uses, including directories in which the software is installed, directories containing the virtual disk and configuration files, and directories for temporary files.
error code -46
Configuration of host IP address is inconsistent on host <hostname>: address resolved to <IP Address> and <IPAddress>
/var/log/vmware/esxupdate.log
file, this error may appear during the ESXi host upgrade:Encountered error FileIOError: The error data is: Filename - None Message - I/O Error (28) on file : [Errno 28] No space left on device Errno - 10 Description - Unable to create, write or read a file as expected.
A general system error occurred: Failed to create journal file providerFailed to open "/var/log/vmware/journal/1269032951.9" for write
These issues may occur if there is not enough free disk space on the ESXi host or if there is not enough space on the VMFS volume.
To check the free space on an ESXi service console partitions:
# df -h
Filesystem Size Used Available Use% Mounted on
visorfs 1.3G 322.3M 1.0G 24% /
vmfs3 63.3G 570.0M 62.7G 1% /vmfs/volumes/4d71190d-########-####-########16ba
vfat 285.9M 135.5M 150.4M 47% /vmfs/volumes/3c3693e8-########-####-########6d3a
vfat 4.0G 2.7M 4.0G 0% /vmfs/volumes/4d71190d-########-####-########916ba
Review the Use% for each of the listed items. If any of the volumes listed are 100% full, they must be investigated to determine if space can be freed. The most important mount points to investigate on a default installation of ESXi are the /
and /var/log
mounts, as they can prevent proper operation of the ESXi host.
To check the Ramdisk space on a VMFS volume of an ESXi host:
# vdf -h
-----
Ramdisk Size Used Available Use% Mounted on
root 32M 6M 25M 20% --
etc 28M 2M 25M 7% --
opt 32M 0B 32M 0% --
var 48M 492K 47M 1% --
tmp 256M 0B 256M 0% --
iofilters 32M 0B 32M 0% --
shm 1024M 0B 1024M 0% --
crx 1024M 0B 1024M 0% --
configstore 32M 188K 31M 0% --
configstorebkp 32M 184K 31M 0% --
hostdstats 96M 3M 92M 3% --
For related information, see Troubleshooting ESXi datastore or VMFS volume that is full or near capacity.
Information may accumulate on disks for several reasons. Log files may grow after a substantial amount of messages are written to them. Content such as virtual machines or ISOs may be copied to the ESXi host, but placed in an inappropriate location. Coredumps from past outages may have accumulated.
To confirm this, review the size of these directories:
/vmimages/
directory is used to store operating system install files such as the VMware Tools or other ISO files./var/core/
and /root/
directories are used to store crash files for on the service console and the VMkernel./var/log/
directory is used to store the majority of the logs for the ESXi host./vmfs/volumes/
Datastores are used to store the virtual machine data.To review the space consumed by several of these common directories, run this command:
# du -ch /vmimages /var/core /root /var/log
12.0K /vmimages
4.0K /var/core
8.0K /root
4.0K /var/log/ntp
4.0K /var/log/vmware/journal
8.0K /var/log/vmware
556.0K /var/log
580.0K total
find
command to locate all files matching a given criteria./
that are larger than 100MB without traversing mount points, use the command:# find / -size +100000k -exec du {} \; | sort -r |head -n 10
4193280 ./dev/disks/mpx.vmhba0:C0:T0:L0:6
4193280 ./dev/disks/mpx.vmhba0:C0:T0:L0:5
263168 ./vmfs/volumes/aabbccdd-aabbccdd-8e66-000c29483b7a/.jbc.sf
263168 ./vmfs/volumes/aabbccdd-aabbccdd-868f-000c29483b7a/.jbc.sf
252288 ./tardisks/sb.v00
245876 ./tardisks/vim.v00
209715200 ./dev/disks/mpx.vmhba0:C0:T1:L0
209713153 ./dev/disks/mpx.vmhba0:C0:T1:L0:1
209453056 ./dev/lvm/aabbccdd-aabbccdd-b5d6-000c29483b7a
The following are a list of files that are safe to delete:
vmware#.log
files in the virtual machine's folder. /vmimages/
To delete the unnecessary files:
rm
command to permanently delete files:# rm /var/log/oldlogfile
rm: remove '/var/log/oldlogfile'? Y
Historical log files on an ESXi host may be required for reference in troubleshooting. They can be compressed and archived rather than being deleted.
To compress historic log files:
var/log/vmkwarning
and /var/log/vmkernel
log files:# tar czvf /tmp/vmkfiles.tgz var/log/vmkwarning.* var/log/vmkernel.*