Storage vMotion does not rename files?

A while back I posted that 5.0 U2 re-introduced the renaming behavior for VM file names. I was just informed by our excellent Support Team that unfortunately the release notes missed something crucial and Storage vMotion does not rename files by default. In order to get the renaming behavior you will have to set an advanced setting within vCenter.. This is how you do it:

  • Go to “Administration”
  • Click on “vCenter Server Settings”
  • Click “Advanced Settings”
  • Add the key “provisioning.relocate.enableRename” with value “true” and click “add”
  • Restart vCenter service or vCenter Server

Now the renaming of the files during the SvMotion process should work again!
All of you who need this functionality, please make sure to add this advanced setting.

storage vmotion does not rename files

Be Sociable, Share!

    Comments

    1. Hi Duncan,

      Great post!
      Does this advanced option also work for ESXi 5.1?

    2. Joyce says:

      Hi Duncan,
      Informative as usual.
      Had a really unusal Interview for a Job. I was asked if I follow any Virtualization Blogs I said Yes Yellow-Bricks. Next Question was ok “then what is the Latest topic he blogged about last night.
      I said apologies but I did not read the blog this morning. To which they said Do you actually follow the blog.”
      Then i was asked if i follow you on Twitter…. I do but – I didnt get the Job lol but I enjoyed it. :)

    3. plopi says:

      So great, I was missing the feature !

      Thanks for the tip.

    4. Troy Clavell says:

      tested multiple times in the lab… fix works! Thank you sir!

    5. Fouad says:

      Hey,
      That fix was missing me. Somoene did it try on 5.0 U1 ?

    6. Arjan says:

      We talked about this today during a vSphere Design workshop training. I just told this feature was back in u2 and half an hour later you posted this…. Made me look bad ;-)
      I shared the link to your site so they can take this action in account if needed. Thanks for the information

    7. Marco says:

      I was also beating my head against the wall because it did not work despite of U2…now it does. Many thanks :-)

    8. udubplate says:

      It is extremely disappointing that this wasn’t returned to being enabled by default. There is really no logical reason someone wouldn’t want it to behave like that.

    9. karlochacon says:

      same thing it should be enable by default…

    10. Andi says:

      Hi,

      is this advanced settings supported? As it is not possible to delete the key from the advanced settings I am not sure if I want to use it in my production environment…

      Regards
      Andi

    11. Rubeck says:

      Excellent question, Andi.. ;-)

      /Rubeck

    12. thatITguy says:

      So when I add this value, it gets changed from “provisioning.relocate.enableRename” to “config.provisioning.relocate.enableRename”, is this the expected behaviour? When trying to script this with powershell it also fails unless I add the “config.” in front
      Example: get-advancedsetting -entity $defaultVIServer -name “provisioning.relocate.enableRename” | set-advancedsetting -value true -confirm:$false

    13. Sri says:

      Does this Key “provisioning.relocate.enableRename” works for VMware VirtualCenter 5.0.0 build-455964 version ?

    14. Daniel Baby says:

      Hi Duncan,
      thank you for this hint. But global question: Is it today (vSphere 5.1) not possible to edit Advanced Parameters within the WebClient? I get always a white caracters on white Screen ;-(

    15. Todd says:

      I am trying to figure out what is the importance of the renaming feature?
      I think I am missing something
      Please elaborate.

      Todd

      • If you rename your VM in vCenter the filename on the VMFS doesn’t change. Just imagine something happens with your VM and you need to troubleshoot it on the command-line how do you know which one it is? So people use SvMotion to rename the virtual machine files by moving it to a different datastore.

        This functionality was removed, but now introduced again.

    16. Christian says:

      Can anyone come up with a good reason why it was removed in the first place?
      I’m thinking there must be a (good?) reason – and if there is, what are the drawbacks of re-enabling the feature?

    17. Dave says:

      Worked for all files except the .nvram file. Is that expected behavior?

    18. Sascha says:

      Hi,
      it’s not working with vCenter 5.1 (Build 947673). Doesn’t matter if the value is set or not. :-(

    19. Chris Horn says:

      Hey Duncan – looks like this change made it in to ESXi 5.1 Update 1. Good stuff!

    20. Andy says:

      In the documentation it says that the original problem was due to a limitation in Storage DRS in vCenter 5.0 that needed the files and folders to remain the same on moves to keep track of servers SDRS stats. Somehow they figured out to use a UUID or other form of ID in the U2 release (no needed to track folder/file names). Then they used the same old code block for SDRS from 5.0 and broke it again in 5.1! LOL Obviously 5.1 U1 fixes it… again.

    Speak Your Mind

    *