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.