PowerCLI

 View Only
  • 1.  Rename Local Datastores of ESXi host

    Posted Aug 05, 2014 10:48 AM

    Hello,

    How to rename local datastores of ESXi 5.0 hosts.

    Is that simple; From vSphere Client > Right click local datastore > Rename?

    Or host needs to be in maintenance mode, or brought down, something like that?

    Thanks,

    Mihir



  • 2.  RE: Rename Local Datastores of ESXi host

    Posted Aug 05, 2014 11:40 AM

    Just rename like you described above and don't need to put in maintenance mode.



  • 3.  RE: Rename Local Datastores of ESXi host

    Broadcom Employee
    Posted Aug 05, 2014 11:50 AM

    . Agree with "Richardson". Yes, I confirm that, you need not to put host into Maintenance mode. Just rename as you specified. It will not have any impact on your datastores/VMs etc



  • 4.  RE: Rename Local Datastores of ESXi host

    Posted Aug 05, 2014 11:56 AM

    Hi,

    Yes you can rename VMFS or NFS datastore easily with the following steps

    You can change the name of an existing datastore.


    Procedure:

    1 Display the datastores.

    2 Right-click the datastore to rename and select Rename.

    3 Type a new datastore name.

    NOTE : If you use the vCenter Server system to manage your hosts, the new name appears on all hosts that have access to the datastore.



  • 5.  RE: Rename Local Datastores of ESXi host
    Best Answer

    Posted Aug 05, 2014 12:06 PM

    The ESXi host internally uses the datastore's UUID rather than it's "user friendly" name.

    Example: /vmfs/volumes/3dfd1a21-63969d0d-8d9b-004328272635/<vm-foldername>

    Therefore - as mentioned in the other replies - renaming a datstore can be done at any time without any impact on the functionality.

    André



  • 6.  RE: Rename Local Datastores of ESXi host

    Posted Aug 05, 2014 12:40 PM

    Thanks a lot.



  • 7.  RE: Rename Local Datastores of ESXi host

    Posted Aug 05, 2014 12:41 PM

    You're welcome.



  • 8.  RE: Rename Local Datastores of ESXi host

    Posted Aug 06, 2014 01:25 PM

    Or use PowerCLI

    get-datastore <datastorename> |Set-Datastore -Name <new name>