VMware Cloud Community
levykhtn
Contributor
Contributor
Jump to solution

Problem with Update Manager

My system is running on VMware vSphere 5.1 U1 (newest).

I tried to update the ESX host (State host) but it failed with error message:

Stage patches to entity rvc-esx-01

The host returns esxupdate error code:15. The package manager transaction is not successful. Check the Update Manager log files and esxupdate log files for more details.

I checked the esxupdate.log and there are many error messages as follow. Please help me to identify the trouble.

Thank so much.

2013-05-28T06:48:27Z esxupdate: HostInfo: DEBUG: Checking file system on altbootbank...

2013-05-28T06:48:27Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/dosfsck', '-a', '-v', '/dev/disks/naa.600508b1001cfd08a4849f06984fd8a2:5']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

2013-05-28T06:48:27Z esxupdate: HostInfo: DEBUG: dosfsck exits with 1

Output:dosfsck 2.11 (12 Mar 2005)

dosfsck 2.11, 12 Mar 2005, FAT32, LFN

Checking we can access the last sector of the filesystem

Boot sector contents:

System ID "MSDOS5.0"

Media byte 0xf8 (hard disk)

  512 bytes per logical sector

  4096 bytes per cluster

  2 reserved sectors

First FAT starts at byte 1024 (sector 2)

  2 FATs, 16 bit entries

  128000 bytes per FAT (= 250 sectors)

Root directory starts at byte 257024 (sector 502)

  512 root directory entries

Data area starts at byte 273408 (sector 534)

  63929 data clusters (261853184 bytes)

32 sectors/track, 64 heads

  0 hidden sectors

  511968 sectors total

FATs differ but appear to be intact. Using first FAT.

/imgdb.tgz

  Contains a free cluster (39115). Assuming EOF.

/imgdb.tgz

  File size is 32029 bytes, cluster chain length is 0 bytes.

  Truncating file to 0 bytes.

/s.v00

  File size is 119879581 bytes, cluster chain length is 109858816 bytes.

  Truncating file

2013-05-28T06:48:27Z esxupdate: esxupdate: ERROR: An esxupdate error exception was caught:

2013-05-28T06:48:27Z esxupdate: esxupdate: ERROR: Traceback (most recent call last):

2013-05-28T06:48:27Z esxupdate: esxupdate: ERROR: File "/usr/sbin/esxupdate", line 216, in main

2013-05-28T06:48:27Z esxupdate: esxupdate: ERROR: cmd.Run()

2013-05-28T06:48:27Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-1065491/bora/build/esx/release/vmvisor/sys/lib/python2.6/site-packages/vmware/esx5update/Cmdline.py", line 144, in Run

2013-05-28T06:48:27Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-1065491/bora/build/esx/release/vmvisor/sys/lib/python2.6/site-packages/vmware/esximage/Transaction.py", line 243, in InstallVibsFromSources

2013-05-28T06:48:27Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-1065491/bora/build/esx/release/vmvisor/sys/lib/python2.6/site-packages/vmware/esximage/Transaction.py", line 345, in _installVibs

2013-05-28T06:48:27Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-1065491/bora/build/esx/release/vmvisor/sys/lib/python2.6/site-packages/vmware/esximage/Transaction.py", line 388, in _validateAndInstallProfile

2013-05-28T06:48:27Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-1065491/bora/build/esx/release/vmvisor/sys/lib/python2.6/site-packages/vmware/esximage/HostImage.py", line 639, in Stage

2013-05-28T06:48:27Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-1065491/bora/build/esx/release/vmvisor/sys/lib/python2.6/site-packages/vmware/esximage/Installer/BootBankInstaller.py", line 672, in StartTransaction

2013-05-28T06:48:27Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-1065491/bora/build/esx/release/vmvisor/sys/lib/python2.6/site-packages/vmware/esximage/Installer/BootBankInstaller.py", line 302, in Recover

2013-05-28T06:48:27Z esxupdate: esxupdate: ERROR: InstallationError: ('', 'There was an error checking file system on altbootbank, please see log for detail.')

2013-05-28T06:48:27Z esxupdate: esxupdate: DEBUG: <<<

2013-05-28T06:48:32Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-q', '-g', '/UserVars/EsximageNetTimeout']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

2013-05-28T06:48:32Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-q', '-g', '/UserVars/EsximageNetRetries']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

2013-05-28T06:48:32Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-q', '-g', '/UserVars/EsximageNetRateLimit']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

2013-05-28T06:48:32Z esxupdate: esxupdate: INFO: ---

Command: scan

Args: ['scan']

Options: {'nosigcheck': None, 'retry': 5, 'loglevel': None, 'cleancache': None, 'viburls': None, 'meta': ['http://172.29.137.20:9084/vum/repository/hostupdate/csco/csco-VEM-5.1.0-metadata.zip', 'http://172.29.137.20:9084/vum/repository/hostupdate/vmw/vmw-ESXi-5.1.0-metadata.zip'], 'proxyurl': None, 'timeout': 30.0, 'cachesize': None, 'hamode': True, 'maintenancemode': None}

2013-05-28T06:48:32Z esxupdate: BootBankInstaller.pyc: INFO: Unrecognized value "title=Loading VMware ESXi" in boot.cfg

2013-05-28T06:48:32Z esxupdate: BootBankInstaller.pyc: INFO: /altbootbank/boot.cfg: bootstate changed from 0 to 3

2013-05-28T06:48:33Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/bootOption', '-rp']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

2013-05-28T06:48:33Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/bootOption', '-ro']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

2013-05-28T06:48:33Z esxupdate: downloader: DEBUG: Downloading http://172.29.137.20:9084/vum/repository/hostupdate/csco/csco-VEM-5.1.0-metadata.zip to /tmp/tmprZ4JfI...

2013-05-28T06:48:33Z esxupdate: Metadata.pyc: INFO: Unrecognized file vendor-index.xml in Metadata file

2013-05-28T06:48:33Z esxupdate: downloader: DEBUG: Downloading http://172.29.137.20:9084/vum/repository/hostupdate/vmw/vmw-ESXi-5.1.0-metadata.zip to /tmp/tmpytjFZI...

2013-05-28T06:48:33Z esxupdate: Metadata.pyc: INFO: Unrecognized file vendor-index.xml in Metadata file

2013-05-28T06:48:33Z esxupdate: BootBankInstaller.pyc: INFO: Unrecognized value "title=Loading VMware ESXi" in boot.cfg

2013-05-28T06:48:33Z esxupdate: BootBankInstaller.pyc: INFO: /altbootbank/boot.cfg: bootstate changed from 0 to 3

2013-05-28T06:48:33Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/usr/sbin/vsish', '-e', '-p', 'cat', '/hardware/bios/dmiInfo']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

2013-05-28T06:48:33Z esxupdate: esxupdate: INFO: All done!

2013-05-28T06:48:33Z esxupdate: esxupdate: DEBUG: <<<

1 Solution

Accepted Solutions
admin
Immortal
Immortal
Jump to solution

yes run the below command now.

dosfsck -a -w /vmfs/devices/disks/naa.600508b1001cfd08a4849f06984fd8a2:5

View solution in original post

5 Replies
admin
Immortal
Immortal
Jump to solution

To resolve the issue, you must repair the altbootbank partition.

To repair the altbootbank partition:

  1. Run this command to determine the the device for /altbootbank:

    vmkfstools -P /altbootbank

    You should see an output similar to:

    mpx.vmhba32:C0:T0:L0:5
  2. Run this command to repair the altbootbank partition:

    dosfsck -a -w /dev/disks/device_name

    For example:

    dosfsck -a -w /dev/disks/mpx.vmhba32:C0:T0:L0:5
levykhtn
Contributor
Contributor
Jump to solution

Thank you for the reply.

This is the the output

~ # vmkfstools -P /altbootbank

vfat-0.04 file system spanning 1 partitions.

File system label (if any):

Mode: private

Capacity 261853184 (63929 file blocks * 4096), 105230336 (25691 blocks) avail

UUID: c3afa17c-69ca2560-de9d-f3795f3c5b91

Partitions spanned (on "disks"):

        naa.600508b1001cfd08a4849f06984fd8a2:5

Is Native Snapshot Capable: NO

I cannot see any mpx.vmhba32:C0:T0:L0:5 or something like that.

Is it naa.600508b1001cfd08a4849f06984fd8a2:5?

admin
Immortal
Immortal
Jump to solution

yes run the below command now.

dosfsck -a -w /vmfs/devices/disks/naa.600508b1001cfd08a4849f06984fd8a2:5

levykhtn
Contributor
Contributor
Jump to solution

Wow, it works like a charm.

Thank so much.

0 Kudos
admin
Immortal
Immortal
Jump to solution

Good to hear that!!

Please mark my post as "helpful" or "correct" if I've helped resolve or answered your query!

0 Kudos