VMware Cloud Community
hyvokar
Enthusiast
Enthusiast

Cannot remove unmounted datastore

Hello!

We are running 2x esxi5.0 hosts with vcsa5.1.

We have been moving stuff out from our old HP EVA datastore to new ones. I still have one datastore I cannot delete from vcenter.

I can mount, unmount and browse the datastore, but for some reason, it cannot be removed. It gives me an error Call "HostDatastoreSystem.RemoveDatastore" for object "datastoreSystem-85" on vCenter Server "MyvCenter01" failed. And the Tasks say "An error occurred during host configuration".

There should be no active data on the datastore (last writes more than year ago).

Any advices how to troubleshoot this on?

Also, as a workaround, is there any harm done, if I simply unmount the datastore and after that unpresent and delete it from EVA ?

Thanks in advance

--kari

0 Kudos
3 Replies
vmroyale
Immortal
Immortal

Try connecting directly to the host(s) with the vSphere Client and then remove. Also make sure to follow the instructions in VMware KB: Unmounting a LUN or detaching a datastore/storage device from multiple ESXi 5.x hosts

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
0 Kudos
hyvokar
Enthusiast
Enthusiast

Hi!

When I log in to esx1 host, and try to remove the datastore, I get an error

Call "HostDatastoreSystem.RemoveDatastore" for object "ha-datastoresystem" on ESXi "esx1" failed.

Connected via ssh to esx1 host:

~ # ls /vmfs/devices/disks/ |grep naa.600508b400107d9a0000e000006e0000

naa.600508b400107d9a0000e000006e0000

naa.600508b400107d9a0000e000006e0000:1

~ # partedUtil getptbl "/vmfs/devices/disks/naa.600508b400107d9a0000e000006e0000"

Error: Can't have a partition outside the disk!

Unable to read partition table for device /vmfs/devices/disks/naa.600508b400107d9a0000e000006e0000

~ # partedUtil getptbl "/vmfs/devices/disks/naa.600508b400107d9a0000e000006e0000:1"

unknown

78324 255 63 1258290997

So can I just delete the partition

partedUtil delete "/vmfs/devices/disks/naa.600508b400107d9a0000e000006e0000:1"

and do I have to do this on both esxi hosts ?

0 Kudos
hyvokar
Enthusiast
Enthusiast

~ # partedUtil delete "/vmfs/devices/disks/naa.600508b400107d9a0000e000006e0000:1" 1
Error: Unable to open /dev/disks/naa.600508b400107d9a0000e000006e0000:1 - unrecognised disk label.
Unable to construct disk from device /vmfs/devices/disks/naa.600508b400107d9a0000e000006e0000:1

~ # partedUtil delete "/vmfs/devices/disks/naa.600508b400107d9a0000e000006e0000" 1
Error: Can't have a partition outside the disk!
Unable to construct disk from device /vmfs/devices/disks/naa.600508b400107d9a0000e000006e0000

Ok, so I'm a bit lost here. 

0 Kudos