vSphere: Removing An Inaccessible NFS Datastore


Ever came across the message: 

Step 1

Despite the fact, it seems to be mounted you can’t access the datastore. Here’s how you quickly can resolve this issue:

Enable it through the WebSphere Client: <target host> – Manage – Settings – Security Profile – Services; select ssh and Edit… to enable it

Step0

Log into ESXi via your terminal application using the ssh command ssh -l root <target host>

Step2

Run the  command  esxcli storage filesystem list (and optionally  esxcfg-nas -l afterwards)

Step1

Run the  command   esxcli storage filesystem unmount -u 62a6d60c-dc04dc3c (you need to copy the UUID of NFS Datastore from file system list) 

Step2

Change to the directory  cd /vmfs/volumes/ (doesn’t work directly when working with the full path in the command below – at least not in my case)

Run the  command   esxcli storage nfs remove -v NFS\ Datastore 

Step3

Remount your NFS Datastore using the vSphere Web Client and you’re done.

Have fun!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s