Removing Inaccessible NFS datastore in vSphere 6.7.0
Hi,
I have a NFS datastore that is no longer accessible. Didn't have anything on it but I can't unmount it. When I do I get the message:
The resource 'BU1' is in use.
Cannot remove datastore 'BU1' because "system swap is enabled on it". Correct the problem and retry the operation.
I don't recall putting anything on it, much less enabling it for system swap. ?
6.7.0 w/ VCSA.
--Ben
VMware
Last Comment
Ben Conner
8/22/2022 - Mon
Mr Tortu(r)e
Hi,
in fact it seems to be actually used by something, preventing unmount or remove
Some things to check which could help :
- ESX / Configure / advanced settings > look at syslog.global.logdir and mostly scratchconfig settings
If this last one point t your nfs datastore, change it and reboot ESX, then unmount/remove datastore
- ESX / Configure / VM / Swap file location
- ESX / Configure / System / System Swap
...
What is the precise error message? is it really system swap is enabled on it ? I never seen this one, generally it is more ressource/device is busy generic message
Ben Conner
ASKER
Hi,
Sorry for the delay; injured spouse.
The exact error message is: "The resource 'BU1' is in use.
Cannot remove datastore 'BU1' because "system swap is enabled on it". Correct the problem and retry the operation."
System Swap file has:
Can use datastore: 970Pro
Can use host cache
Can use datastore specified by host for swap files
VM Swap file location is:
Virtual machine directory
The syslog.global.logdir value is [] /scratch/log
The ConfiguredScratchLocation and CurrentScratchLocation both point to /vmfs/volumes/5bca7765-e61b9be8-a031-ac1f6b19f7c0
which isn't the location of the missing NFS volume (ds:///vmfs/volumes/6a3eed65-7142512f/).
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
in fact it seems to be actually used by something, preventing unmount or remove
Some things to check which could help :
- ESX / Configure / advanced settings > look at syslog.global.logdir and mostly scratchconfig settings
If this last one point t your nfs datastore, change it and reboot ESX, then unmount/remove datastore
- ESX / Configure / VM / Swap file location
- ESX / Configure / System / System Swap
...
What is the precise error message? is it really system swap is enabled on it ? I never seen this one, generally it is more ressource/device is busy generic message