VMware Cloud Community
joemailey
Contributor
Contributor

Can't update any hosts

I'm getting a lot of different codes when I try to update hosts:

The host returns esxupdate error codes: 15. Check the Update Manager log files and esxupdate log files for more details.

The host returns esxupdate error codes: 5. Check the Update Manager log files and esxupdate log files for more details.

The host returns esxupdate error codes: 10. Check the Update Manager log files and esxupdate log files for more details.

I've no idea how to update a my host using update manager, I've attached the esxupdate.log, I hope someone can point me in the right direction.

I'm not sure what to do or how to fix it.

Reply
0 Kudos
16 Replies
Troy_Clavell
Immortal
Immortal

you have patch data in your patch repository?  How are you trying to update this host?  There are a lot of "Failed scanning package data: Downloading metadata failed"

In vCenter go to Home--Update Manager, and cofirm all the settings.

the below is your patch store?

esxadmin.antrim.gov.uk:9084

Reply
0 Kudos
joemailey
Contributor
Contributor

From what I can tell nothing has changed in the update manager and yes what you quoted is my patch store.

I'm not sure what to check or how to proceed, any advice tips would be great.

Reply
0 Kudos
marcelo_soares
Champion
Champion

Check the ESX firewall at Configuration > Advanced Settings > Security Profile. There is a rule for Update Manager on the outgoing connections. Try to enable it and try a rescan/remediate again.

Marcelo Soares
joemailey
Contributor
Contributor

It is already ticked.

update use to work prefectly fine until today, now it is refusing to work.

I get esxupdate error codes 10 & 5 when I try a scan now of a host.

Reply
0 Kudos
joemailey
Contributor
Contributor

When I click on patches under update manager on a host and check patch details, alot of them come up as missing:

patchdetails.png

Reply
0 Kudos
bulletprooffool
Champion
Champion

Joe - try elimintae Update Manager form the equation and see what happens?

quick guide here:

http://www.get-virtual.info/2011/03/24/436/

One day I will virtualise myself . . .
joemailey
Contributor
Contributor

I think the issue is caused because I have a volume that is at 100% use I done a vdf -h and it says my /dev/sde5 volume is full:

vdf -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sde5             4.9G  4.9G     0 100% /
/dev/sdd1             1.1G   97M  930M  10% /boot
/dev/sde2             2.0G   83M  1.8G   5% /var/log
/vmfs/devices         1.8T     0  1.8T   0% /vmfs/devices
/vmfs/volumes/4ab3ab16-3c3b12aa-b006-0024e83fcd83
                      1.8T  657G  1.1T  36% /vmfs/volumes/Storage1 (2)
/vmfs/volumes/4ab3afd4-03fc26e9-de2c-0024e83fcd85
                      1.7T  601G  1.1T  35% /vmfs/volumes/Storage2
/vmfs/volumes/4ce2c91a-3661b618-3a1b-0024e83fcd85
                      1.8T  354G  1.5T  19% /vmfs/volumes/Dell DAS 1
/vmfs/volumes/4d94b24f-3a42f36c-c0a7-0024e83fcd85
                      1.8T  1.0T  837G  55% /vmfs/volumes/DAS esxstorage 2

I looked at the KB article http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=100356...

It told me to run this command: du -cshP /vmimages /var/core /root /var/log which out putted the following:

[root@esx3 ~]# du -cshP /vmimages /var/core /root /var/log
193M    /vmimages
4.0K    /var/core
76K     /root
48M     /var/log
241M    total

How can I fix this?

Reply
0 Kudos
marcelo_soares
Champion
Champion

Good catch. The KB is telling you to look for huge file utilization under the folders on the du command, which surely is not happening. Include the /tmp folder on the du command. If it is using much space (i.e 1GB) send a list of the files you see inside it.

Marcelo Soares
Reply
0 Kudos
ArvindChaudhar1
Enthusiast
Enthusiast

Dear Jeom,

all the temporary files created in "/" partition by default. since "/" partition is full it will not allo any activity to happen not only update.

It is recomended that create seperate "/tmp"  and "/var/log" partition for such activities so that "/" can be left with some free space so that host can perform all required tasks.

-Arvind

Reply
0 Kudos
joemailey
Contributor
Contributor

I don't have a seperate /tmp partition.

anyway to create one after the install?

Reply
0 Kudos
joemailey
Contributor
Contributor

I've cleared the tmp directory but it only frees up a small amount of space.

Filesystem            Size  Used Avail Use% Mounted on
/dev/sde5             4.9G  4.2G  388M  92% /

Is there anyway to say put the /tmp on a data store or something, so it can use as much space as it wants and stop causing me errors?

Reply
0 Kudos
ArvindChaudhar1
Enthusiast
Enthusiast

Dear Joem,

You are using ESX server, pls add addinional disk, create patition amd modify your fstab accordingly, login in single usermode and move data from "/" patition to new partitions like "/var/log" and "/tmp" created on new disk.

reboot the server and perform update activity.

Note - if you are running any VM, then you need to perform vMotion First.

-Arvind

Reply
0 Kudos
joemailey
Contributor
Contributor

Can I reinstall ESX4 without losing datastores and my VMs?

Reply
0 Kudos
Troy_Clavell
Immortal
Immortal

migrate all guests off the ESX host in question, put it in maintenance mode, pull the host out of vCenter inventory, pull fiber connections, rebuild, plug back in fiber and then add host back to the cluster.  All the guests, which reside on shared storage will be fine.

Reply
0 Kudos
joemailey
Contributor
Contributor

My host has 2 local datastorea

Basically store 1 & store 2, then there is a DAS(direct attached storage) attached to the host, which has few more guests.

Can I move all guests to the DAS then rebuild?

Reply
0 Kudos
Troy_Clavell
Immortal
Immortal

....Can I move all guests to the DAS then rebuild?

yes, that is an option. This DAS device, I'm assuming it's shared, so if you have Storage vMotion you can move the guests with no downtime, otherwise you'll have to power down the guests and cold migrate them to the DAS

Reply
0 Kudos