VMware Cloud Community
VmwareProfile
Contributor
Contributor

Cannot delete a directory like 6gf7dsyf8k9 in /vmfs/volumes/

Hello,

Whith vSphere client I have mount a NFS share on my ESXi 4.0 to implement a backup script.

2 days after my NFS share disapear from the vSphere Client. I try to mount it again and i've have an error like :"Cannot Open Volume: vmfs/volumes/6gf7dsyf8k9"

I have reboot the ESXi many times, reboot my remote NFS server many times ... nothing

With Putty and WinSCP, i tried to remove this directory before to mount my NFS share again, but i can't delete it, i can't change the proprietary, i can't change the right.

So i'm blocked ...

Do you know how to solve my issue ?

Thank you very much.

Tom

Reply
0 Kudos
11 Replies
bulletprooffool
Champion
Champion

Have you read this thread?

http://communities.vmware.com/thread/224513

One day I will virtualise myself . . .
Reply
0 Kudos
VmwareProfile
Contributor
Contributor

Hi bulletprooffool

I tried to execute /usr/sbin/services.sh restart but there's issue again

I tried a stop and delete but it's the same.

An other idea

Reply
0 Kudos
Joshua_Mally
Enthusiast
Enthusiast

Run the following cmd

  1. vmware-cmd –l

Check if any .vmx file is present. if yes, backup the .vmx file and .vmdk files of the VM

Delete lock files and *vswp files from under the directory and then deleting the dir

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!!

-Josh

Trying to learn

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!! -Josh Trying to learn 🙂
Reply
0 Kudos
VmwareProfile
Contributor
Contributor

Hello Joshua,

vmware-cmd isn't supply with ESXi. I try to launch it from a windows with CLI tools but there's a version error. And it doesn't exist in /bin ESXi directory

Have you an other solution to check my volumes ?

Tom

Reply
0 Kudos
VmwareProfile
Contributor
Contributor

I success execute vmware-cmd on my ESXi from an windows computer but there's no progress. I can't add a NFS share due to the presence of a corrupted directory in /vmfs/volumes

Please help me to remove this F* directory !

Tom

Reply
0 Kudos
krowczynski
Virtuoso
Virtuoso

Try to log on with e.g. WinSCP to the Server and delete this directory.

MCP, VCP3 , VCP4
Reply
0 Kudos
nirvy
Commander
Commander

What is the output of esxcfg-nas -l

Reply
0 Kudos
VmwareProfile
Contributor
Contributor

Hi

@nirvy : the result is:

/vmfs/volumes # esxcfg-nas -l

Error performing operation: Cannot open volume: /vmfs/volumes/961b192a-86f36d0d

/vmfs/volumes #

@krowczynski : I already try to remove the directory from WinSCP : Failed. And I can't chmod the directory

Reply
0 Kudos
Joshua_Mally
Enthusiast
Enthusiast

Cannot open volume...hmmm

Are u sure NFS port is oprn in the ESX firewall???... make sure its open...

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!!

-Josh

Trying to learn

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!! -Josh Trying to learn 🙂
nirvy
Commander
Commander

can you ping your NFS server from ESXi, using vmkping <ip address>

VmwareProfile
Contributor
Contributor

Oh I'm stupid ...

My problem is solved now.

The problem happened from my NFS server, not from my ESX. My confusion is due to the presence of this strange directory in /vfms/volume who finally disapear when I'm stopped my NFS server.

So I just check my NFS server and ... the User Mapping Service was down ...

Very sorry and thanks for your help. I check "Helpfull Answer" for all of you.

Tom

Reply
0 Kudos