VMware Cloud Community
jun55
Enthusiast
Enthusiast
Jump to solution

Change the location of the datastore

Hi,

I'm looking for the way to change the location of the datastore.

[Before]

Datastore A

ds:///vmfs/volumes/xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxx0

naa.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

[After]

Datastore A

ds:///vmfs/volumes/xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxx1

naa.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

The datastore name and naa id must be the same.

Is there any command to realize this?

0 Kudos
1 Solution

Accepted Solutions
Finikiez
Champion
Champion
Jump to solution

Hi!

There is no officially supported method to change VMFS UUID.

It's much-much easier just to re-attach vmdk to VM or just edit the path to it in VMX file.

View solution in original post

0 Kudos
4 Replies
admin
Immortal
Immortal
Jump to solution

Please provide more detailed information.....

Regards,

Randhir

0 Kudos
jun55
Enthusiast
Enthusiast
Jump to solution

Hi ranchuab,

Thank you for your reply.

I'd like to rename the mount point name.

In the esxi shell

As is,

drwxr-xr-t     /vmfs/volumes/xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxx0

lrwxr-xr-x     DatastoreA -> xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxx0

To be,

drwxr-xr-t     /vmfs/volumes/xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxx1

lrwxr-xr-x     DatastoreA -> xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxx1

Let me explain the situation.

The location of the disk file is defined in the vmx file like.

scsi0:1.fileName = "/vmfs/volumes/xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxx0/vm.vmdk"

However, the location of the datastore, /vmfs/volumes/xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxx0/vm.vmdk, does not exist due to various reasons.

The datastore is recreated in the same name. But the location info of datastore changed into different one, /vmfs/volumes/xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxx1, because of re-creation.

I don't want to modify the vmx file, so I'm thinking about change the location of the datastore.

Did I answer you question?

0 Kudos
Finikiez
Champion
Champion
Jump to solution

Hi!

There is no officially supported method to change VMFS UUID.

It's much-much easier just to re-attach vmdk to VM or just edit the path to it in VMX file.

0 Kudos
jun55
Enthusiast
Enthusiast
Jump to solution

Hi, Finikiez,

Thanks for your answer.

I gave up looking for it, and just ended up editing the vmx file.

0 Kudos