VMware Cloud Community
shupike
Enthusiast
Enthusiast
Jump to solution

Can't remove NFS datastore from ESXi 6.5

Hello! Please help - I can't delete NFS datastore (vm20) from my ESXi 6.5 host. If I try to delete this datastore using Web client - it shows message "Failed to delete datastore vm20"; and even using SSH I can't remove this datastore:

esxcli storage nfs remove –v vm20

Error: Unknown command or namespace storage nfs remove –v vm20

What is a problem, how do you think? Thank you for advice.

 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
bryanvaneeden
Hot Shot
Hot Shot
Jump to solution

Hi @shupike ,

Do you still have any VM's, Templates, or ISO files or anything at all on the datastore? If you do please remove them from the datastore first. Pleaes also note that you might have a snapshot linked to this datastore (remove all snapshots on VM's that were present on that LUN before).

Also, please try the command: 

esxcli storage nfs remove --volume-name=vm20
Visit my blog at https://vcloudvision.com!

View solution in original post

2 Replies
bryanvaneeden
Hot Shot
Hot Shot
Jump to solution

Hi @shupike ,

Do you still have any VM's, Templates, or ISO files or anything at all on the datastore? If you do please remove them from the datastore first. Pleaes also note that you might have a snapshot linked to this datastore (remove all snapshots on VM's that were present on that LUN before).

Also, please try the command: 

esxcli storage nfs remove --volume-name=vm20
Visit my blog at https://vcloudvision.com!
shupike
Enthusiast
Enthusiast
Jump to solution

Great! 🙂 I used this command:

esxcli storage nfs remove --volume-name=vm20

Thank you very much!

0 Kudos