ESXi show details about ramdisk usage

The command below will let you check the space that is free on the host for each of the ramdisk mount points. It also shows you the usage of inodes per ramdisk.

 system visorfs ramdisk list List the RAM disks used by the host. 
 ~ # esxcli system visorfs ramdisk list Ramdisk Name System Include in Coredumps Reserved Maximum Used Peak Used Free Reserved Free Maximum Inodes Allocated Inodes Used Inodes Mount Point ------------ ------ -------------------- --------- ----------- --------- --------- ---- ------------- -------------- ---------------- ----------- --------------------------- root true true 32768 KiB 32768 KiB 3916 KiB 4076 KiB 88 % 88 % 8192 8192 5257 / etc true true 28672 KiB 28672 KiB 504 KiB 712 KiB 98 % 98 % 4096 1024 527 /etc tmp false false 2048 KiB 196608 KiB 29620 KiB 65016 KiB 84 % 0 % 8192 8192 3770 /tmp hostdstats false false 0 KiB 1078272 KiB 94324 KiB 99624 KiB 91 % 0 % 8192 32 5 /var/lib/vmware/hostd/stats 

The comand below will give more details about a single ramdisk.

 vsish -e get /system/visorfs/ramdisks/[RAMDISK-NAME]/stats 

Example for root ramdisk

 ~ # vsish -e get /system/visorfs/ramdisks/root/stats VisorFS ramdisk { Min:32 MB Max:32 MB Number of pages used:979 Max number of pages used:1019 Mem group ID:157 Root inode:0 Dump on coredump:1 System:1 Mount point inode:-6 Root path:/ First inode of ramdisk:0 Max number of inodes:8192 Number of allocated/initialized inodes:8192 Number of used inodes:5263 Max number of used inodes:8192 } 

Example for tmp ramdisk

 ~ # vsish -e get /system/visorfs/ramdisks/tmp/stats VisorFS ramdisk { Min:2 MB Max:192 MB Number of pages used:7405 Max number of pages used:16254 Mem group ID:1014 Root inode:12288 Dump on coredump:0 System:0 Mount point inode:8 Root path:/tmp First inode of ramdisk:12288 Max number of inodes:8192 Number of allocated/initialized inodes:8192 Number of used inodes:3770 Max number of used inodes:8192 } 

This will help you to troubleshoot out of disk space or out of inodes issues on a ESXi.

In one of my next posts I will go into details how to troubleshoot inode issues on a ESXi.