VMware Cloud Community
insearchof
Expert
Expert
Jump to solution

NFS Datastore inaccessible

Vcenter 6.7

ESXi hosts 6.7

Cluster

HA mode

Lost a NFS datastore

On My VM's the datastore shows as inaccessible.   These VMs have no files on this datastore matter of fact the datastore is empty no files at all.

I tried to unmount the datastore but it fails with in use errors

I shutdown the VMS that had this inaccessible datastore made no difference.

How do IU get ride of this datastore?

0 Kudos
1 Solution

Accepted Solutions
insearchof
Expert
Expert
Jump to solution

Thanks Guys

All good now.

Many VMs had cdrom mounted to iso files that were on the bad datastore

Once changed the cdrom to host device the inaccessible datastore was not longer there.

The two VMS that still had NFS01

Once I added the updated NFS01 back and migrated those two vm's to the NFS01 datastore I only had one datastore on the VMS

This has been resolved.

Thanks again

View solution in original post

0 Kudos
9 Replies
abhilashhb
VMware Employee
VMware Employee
Jump to solution

Since there are no error details.

Here are two KB's that might help you. If you haven't tried them already.

VMware Knowledge Base

VMware Knowledge Base

Abhilash B
LinkedIn : https://www.linkedin.com/in/abhilashhb/

0 Kudos
insearchof
Expert
Expert
Jump to solution

esxcli storage nfs list

Volume Name  Host       Share           Accessible  Mounted  Read-Only   isPE  Hardware Acceleration

-----------  ---------  --------------  ----------  -------  ---------  -----  ---------------------

NFS06        10.2.8.50  /volume1/NFS06        true     true      false  false  Not Supported

NFS05        10.2.8.47  /volume1/NFS05        true     true      false  false  Not Supported

NFS04        10.2.8.46  /volume1/NFS04        true     true      false  false  Not Supported

NFS02        10.2.8.51  /volume1/NFS02        true     true      false  false  Not Supported

NFS03        10.2.8.48  /volume1/NFS03        true     true      false  false  Not Supported

NFS01        10.2.8.13  /volume1/NFS01       false     true      false  false  Unknown

Need to remove the last one in the list

0 Kudos
abhilashhb
VMware Employee
VMware Employee
Jump to solution

What error are you receiving when you try to remove it?

Try this KB - VMware Knowledge Base

Abhilash B
LinkedIn : https://www.linkedin.com/in/abhilashhb/

0 Kudos
insearchof
Expert
Expert
Jump to solution

I was able to remove the datastore from each esxi host using this

esxcli storage nfs remove -v NFS01

Now all ESXI hosts do not have that NFS datastore.

My problem is it still is in the Datastore cluster

When I go to datastore Clusters and select my datastore cluster I still see NFS01

How to I remove it from the datastore cluster..????

when I select unmount  datastore I get an empty list which means the esxi hosts do not have the datastore any longer.

0 Kudos
insearchof
Expert
Expert
Jump to solution

Guys

I found that several VM's had a cdrom mounted which was pointing to the datastore

After I changed the cdrom to host client all the the NFS01 datastore disappeared from them

I only have two VM's that show this datastore still

Once I can figure out how to remove them from the VM then I will be able to move forward with getting my VMs but online.

Any ideas on how to remove the datastore at the VM level?

Thanks

Tom

0 Kudos
scott28tt
VMware Employee
VMware Employee
Jump to solution

What part of the VM files could possibly be on that datastore?

Seems like you’ve sorted ISOs, but do those VMs have snapshots?


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos
insearchof
Expert
Expert
Jump to solution

Scott

That datastore was corrupted had to rebuild the volume on the nas device which wiped all files.  The Hard drives where fine.  Just lost the Volume

I had to use the replica VM from my Veeam B&R to bring up the VMs' The replicas are stored on the internal drives of the ESXI host as a safety feature.  Good thing.

They have replicas from when the get backed up and those files are on the internal disks

Those two VMs' are they only ones that have that datastore

Do not know where else to look 

0 Kudos
berndweyand
Expert
Expert
Jump to solution

could be a snapshot and an storage vmotion afterwards ?

inspect the location of all vmdk of these vm and the location of the vmx-file

0 Kudos
insearchof
Expert
Expert
Jump to solution

Thanks Guys

All good now.

Many VMs had cdrom mounted to iso files that were on the bad datastore

Once changed the cdrom to host device the inaccessible datastore was not longer there.

The two VMS that still had NFS01

Once I added the updated NFS01 back and migrated those two vm's to the NFS01 datastore I only had one datastore on the VMS

This has been resolved.

Thanks again

0 Kudos