VMware Cloud Community
drgarner
Contributor
Contributor

ESXi upgrade from v4.1 to v5.0

I tried to upgrade ESXi from v4.1 to v5.0 by booting the install disk and answering the questions to do an upgrade and preserve,  When it gets to 24% an error pops up (shown below).  Does anyone know how to get around this error so I can successfully upgrade from v4.1 to v5.0?  The v4.1 instance is working perfectly and does not have any issues.  Thanks in advance.

------   An unexpected error occurred ------

Error code: <very long string of alphanumeric characters>

See logs for details

OSError: [Errno 39] Directory not empty: '/vmfs/volumes/<long uid>/state.4681578'

Reply
0 Kudos
4 Replies
vmroyale
Immortal
Immortal

Check http://kb.vmware.com/kb/20071631

Brian Atkinson | vExpert | VMTN Moderator | Author of "VCP5-DCV VMware Certified Professional-Data Center Virtualization on vSphere 5.5 Study Guide: VCP-550" | @vmroyale | http://vmroyale.com
Reply
0 Kudos
drgarner
Contributor
Contributor

When I click the link I get:

We're sorry, but this Document is not currently available. Try again in a few minutes

Reply
0 Kudos
admin
Immortal
Immortal

Cause

This issue occurs when the /bootbank/state.XXXXXXXX directory is not empty.

Resolution

To resolve this issue, ensure the /bootbank/state.XXXXXXXX directory is empty.

To ensure the /bootbank/state.XXXXXXXX directory is empty:

  1. Log in to the ESXi Management console.
  2. Run the command:

    cd /var/log
  3. Using the grep command, find state.XXXXXXX and its corresponding directory within the vua.log file (replace XXXXXXX with the number indicated in the error)

    For example:

    grep state.31110473 vua.log
  4. Run these commands:

    cd /bootbank/
    run ls -l

    Note: The preceding commands may also be required on /altbootbank because this directory can also hold state.XXXXXXX.
  5. Run this command to change directory to state.XXXXXXX directory indicated in the /var/log/vua.log file:

    cd state.XXXXXXX
    For example:

    cd state.31110473
  6. Run this command:

    run ls -l
    You see an output similar to:

    -rwx------ 1 root root 18297 Jan 10 2011 local.tgz
  7. Note the name of the file within the state.XXXXXXX directory. For example, local.tgz.
  8. Run this command to move the file up one directory level:

    mv file_name ../
    Where file_name is the name of the file noted in Step 7.

    For example:

    mv local.tgz ../
  9. In vCenter Server, remediate the host.

    1. Select the ESXi host.
    2. Click the Update Manager tab.
    3. Click Remediate.
Reply
0 Kudos
vervoortjurgen
Hot Shot
Hot Shot

hi

do you need an upgrade? you can try just new installation if the host is empty ofcourse

or preserve just the datastore.

kind regards Vervoort Jurgen VCP6-DCV, VCP-cloud http://www.vdssystems.be
Reply
0 Kudos