While installing ESXI 6 update 2 on a Dell R410 I found that I could not create a datastore using the VSphere UI. assumed this was something to do with the Windows partition that was previously used on that disk so I decided I’d drop back into the CLI and delete the existing partition manually.
Here’s how you do this:
- Open VSphere.
- Go to Configuration
- Click Security templates on the left
- Click Properties
- Select SSH
- Click Options
- Click start
- Connect to your host using PuTTY or any other SSH client
- Move to the /dev/disks directory
cd /dev/disks/
- List the files here
ls
- Match the identifier with the datastore that you cant create in VSphere.
For example: naa.6d4ae5208f875700172a910c5402c983 - Run partedUtil to delete that partition.
partedUtil mklabel /dev/disks/naa.6d4ae5208f875700172a910c5402c983 msdos
- Go back into VSphere and create the datastore.
- Now disable the SSH service to clean up and close the security vulnerability that you’ve opened.
I hope that helps someone. It worked for me perfectly.
Thank you so much for this. I was ready to pull my hair out with this error.
Thank you for sharing your experience!!! You save me lots of time 🙂
thanks you are great.
Thanks
Very good. Thank you very much!!
Cheers! Worked like a charm.
thanks! you are the best
Thank you!! This was just what I needed, quick and easy!
Thank you man! I thought is a disk error, and was near throwed it away, until i find your post! It worked very well. Thank you again!
How was the cane made? Who made it?
Thank you so much for this lesson. It work for me perfectly 🙂
Very nice write up, saved me a lot of time figuring it out by myself. This happened to me when I reconfigured a raid set without removing the datastore from VMware before reconfiguring. Somehow the identifiers get left behind. This fixes that in 1 minute. Perfect.
Worked for me too, thank you.
With this fix I was able to add my 3.6TB array on my new (old) Dell server.
Thank you very much!
That fix it right up, Thanks!!!
You tha MAN! Just put a new 500GB SSD in my primary host and suddenly couldn’t create datastores…this fixed it up. Thank you!!
thanks dude
Solution worked well TYVM digitaldarragh :0) for sharing this solution with us
worked like a champ!
Thanks for this, tried to add a 10TB disk that had previously been part of a raid to an ESXi box and got this error, this fix cured it instantly. Much appreciated.
Nice! Thanks
It worked for me . Thanks for your help
Thanks you for sharing but unfortunately i have below error on command
Error: Read-only file system during write on /dev/disks/naa.600508b1001cf93ad5dbf49f3d71e213
WriteNewPtable: Unable to commit to device /dev/disks/naa.600508b1001cf93ad5dbf49f3d71e213
Hamid.karimnejad@outlook.com
Thanks
Thank you!
Thank you! =D