Tips to check where your ESX/ESXi disk space has gone. This stemmed from not able to apply patches with Update Manager, due to lack of disk space.
Some key commands:
df -h
shows storage devices with percent used
du -cshP /vmimages /var/core /root /var/log
shows space used by each of these folders
find / -size +100M -exec du -h {} \; | lessshows files larger than 100 MB
tar czvf /tmp/vmkwarning-logs.tgz /var/log/vmkwarning*
tar czvf /tmp/vmkernel-logs.tgz /var/log/vmkernel.*
tar czvf /tmp/messages-logs.tgz /var/log/messages.*
tar commands to compress old log files
No comments:
Post a Comment