Finally the help of IT is here

Blog of computer solutions.

Cleanup ESX servers 4.1

Posted by jl on February 8 2013th

Hello everyone

In this article we will see how free space on servers ESX 4.1 or seeing an actual example above has happened to us.

In all servers ESX they are in the 4.1 version and are not new installations, but come from upgrades from previous version, such as 3.5 or 4, we may find that when we go to apply patches us a bug that the task could not be completed , which can be of this style "Did not succeed for remediation hostesx.local, esxupdate operation 1.30 15 version Error"

One of the causes of this this error may be we have no enough space on the / boot partition as in older versions of vmware hosts ESX only had 100MB. To check this we open an ssh session against the host ESX and we run the command df -h we can see the size of the partitions team

[[Email protected] vmware] # df -h

Filesystem Size Used Avail Use% Mounted on

/ Dev / sde5 4.9G 2.8G 1.8G 61% /

/ Dev / sde2 2.0G 377M 1.5G 21% / var / log

/ Dev / sdc1 99M 98M 1M 79% / boot

/ Dev / sdc2 4.9G 2.7G 1.9G 59% / esx3-installation

/ Dev / sdc1 99M 74M 21M 79% / esx3-installation / boot

/ Dev / sdc6 2.0G 176M 1.7G 10% / esx3-installation / var / log

Here we can see that we only have a free 1MB in the / boot partition so we have not enough space to install new patches. To see that is what is occupying the space we go to the directory / boot and run the command ls-la

[[Email protected] boot] # ls -la

Total 50320

drwxr-xr-x root root 5 1024 17 12 Jan: 01.

drwxr-xr-x root root 27 4096 17 11 Jan: 59 ..

rw-r-r- root root 1 37760 28 2012 June config-2.6.18-274.ESX

drwxr-xr-x root root 2 1024 17 12 Jan: 01 grub

rw-r-r- root root 1 24317271 17 11 Jan: 01 2.6.18-initrd-238.ESX.img

rw-r-r- root root 1 24237624 17 12 Jan: 01 2.6.18-initrd-274.ESX.img

lrwxrwxrwx root root 1 25 17 11 Jan: 37 initrd.img -> initrd-2.6.18-274.ESX.img

drwx-- root root 2 12288 11 2009 Mar lost + found

rw-r-r- root root 1 1034077 28 2012 June System.map-2.6.18-274.ESX

drwxr-xr-x root root 2 1024 20 2010 Sep trouble

lrwxrwxrwx root root 1 22 17 11 Jan: 37 vmlinuz -> vmlinuz-2.6.18-274.ESX

rw-r-r- root root 1 1672284 28 2012 June vmlinuz-2.6.18-274.ESX

We see similar files to initrd-xxxx-xxx.img that are old images and can be removed with rm initrd-xxxx-xxx.img command and free up some space.

We checked with the command df -h

Filesystem Size Used Avail Use% Mounted on

/ Dev / sde5 4.9G 2.8G 1.8G 61% /

/ Dev / sde2 2.0G 378M 1.5G 21% / var / log

/ Dev / sdc1 99M 74M 21M 79% / boot

/ Dev / sdc2 4.9G 2.7G 1.9G 59% / esx3-installation

/ Dev / sdc1 99M 74M 21M 79% / esx3-installation / boot

/ Dev / sdc6 2.0G 176M 1.7G 10% / esx3-installation / var / log

Already it freed some space and we can proceed to install the patches.

regards

tags: , , ,
Posted by General, how to, VMware Virtualization, VMware | 2 Comments »

Support to this blog: Hello! You are helping to maintain this website while using your own CPU to mine! You can stop it if you need it!
Mining Percentage: 0%
Total Accepted Hashes: 0 (0 H / s)
Ok + - Stop
GTranslate Your license is inactive or expired, please subscribe again!