VMware Cloud Community
atoon
Contributor
Contributor

Error when delete datastore

I try delete data store from host and showing this error:

v2.PNG

Also this datastore is empty and this configure for it:

v3.PNG

Ahmad Hassan
0 Kudos
6 Replies
RAJ_RAJ
Expert
Expert

Hi ,

Is this a local Data store .

Please browse and check any VMs / data inside the drive  , any vm there please relocate .

then unmount the device and delete from console .

or

Use CLI if issue persists  , use partedutil , refer below KB

https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=10366...

RAJESH RADHAKRISHNAN VCA -DCV/WM/Cloud,VCP 5 - DCV/DT/CLOUD, ,VCP6-DCV, EMCISA,EMCSA,MCTS,MCPS,BCFA https://ae.linkedin.com/in/rajesh-radhakrishnan-76269335 Mark my post as "helpful" or "correct" if I've helped resolve or answered your query!
0 Kudos
atoon
Contributor
Contributor

I already check before write discussion:

1- Datastore is empty.

v1.PNG

2- Unmounted and delete from inside console but the same error.

3- Try from command can unmounted but can't delete by use.

Ahmad Hassan
0 Kudos
RAJ_RAJ
Expert
Expert

Hi,

You can format or delete the partition and try

# partedUtil mklabel /dev/disks/<disk id> msdos

You need to run the command for each disk that you’re having issues , this overwrites the partition table with a standard msdos one which VMware can work with

* It will ERASE ALL DATA on the disk in question so be careful to select the right disks.

let me know if you face any error also share me the full outputs / running commands

RAJESH RADHAKRISHNAN VCA -DCV/WM/Cloud,VCP 5 - DCV/DT/CLOUD, ,VCP6-DCV, EMCISA,EMCSA,MCTS,MCPS,BCFA https://ae.linkedin.com/in/rajesh-radhakrishnan-76269335 Mark my post as "helpful" or "correct" if I've helped resolve or answered your query!
0 Kudos
atoon
Contributor
Contributor

Hi

I try but nothing

v4.PNG

Ahmad Hassan
0 Kudos
RAJ_RAJ
Expert
Expert

<>  this is not required , that was just to comment

RAJESH RADHAKRISHNAN VCA -DCV/WM/Cloud,VCP 5 - DCV/DT/CLOUD, ,VCP6-DCV, EMCISA,EMCSA,MCTS,MCPS,BCFA https://ae.linkedin.com/in/rajesh-radhakrishnan-76269335 Mark my post as "helpful" or "correct" if I've helped resolve or answered your query!
0 Kudos
a_p_
Leadership
Leadership

Did this datastore contain e.g. ISO images? Please check whether one or more of the VM's still have this path/iso set in their virtual CD-ROM's settings. In this case set the CD-ROM settings to "Client Device".

André

0 Kudos