VMware Cloud Community
malefik
Enthusiast
Enthusiast

Do not create a folder (or files too) in vSAN Datastore.

Hello friends.

I have three hosts with identical configuration. I created a virtual datastore. Everything is OK.

But when I try to create a folder from the web client - it simply is not created and does not show any errors, but in the Recent Tasks appears only "Starting task". That's all.

If I try to do the same from the vSphere Client, it is also nothing happens - nothing is created and no errors.

If I try to upload the file to vSAN datastore, I get the error "File operation error".

If I try to upload a folder in vSAN datastore, I get the error "Call" FileManager.MakeDirectory "for object" FileManager "on vCenter Server failed."

P.S.: all the latest updates installed.

Thanks for the help!

0 Kudos
7 Replies
vThinkBeyondVM
VMware Employee
VMware Employee

Hi malefik,

  I had faced this when vSAN was in Beta. This is known issue, I am not aware weather this is fixed or not. 

I found in vSAN beta time frame that we can not create first level of directories/folders from web client or VI client on vSAN datastore. You will have to use below commands from SSH. Even in CLI you need to use osfs-mkdir or osfs-rmdir to create or delete first level directories in vSAN Datastore. I guess, first you create first level of folder, you can create second level of folders from UI.

SSH steps

To create:

  • change directory to /vmfs/volumes/vsanDatastore
  • run “/usr/lib/vmware/osfs/bin/osfs-mkdir <name-of-the-folder>”

To delete:

  • change directory to /vmfs/volumes/vsanDatastore
  • run “ls -l” in /vmfs/volumes/vsanDatastore to identify the folder you want to delete
  • run “/usr/lib/vmware/osfs/bin/osfs-rmdir <name-of-the-folder>” to delete the folder

This blog post would be helpful as well: http://www.yellow-bricks.com/2013/09/27/created-folder-vsan-datastore-delete/

Please try this out & let us know your experience. Also are you on latest release of vSAN.?


----------------------------------------------------------------
Thanks & Regards
Vikas, VCP70, MCTS on AD, SCJP6.0, VCF, vSphere with Tanzu specialist.
https://vThinkBeyondVM.com/about
-----------------------------------------------------------------
Disclaimer: Any views or opinions expressed here are strictly my own. I am solely responsible for all content published here. Content published here is not read, reviewed or approved in advance by VMware and does not necessarily represent or reflect the views or opinions of VMware.

0 Kudos
a_p_
Leadership
Leadership

Just to rule that out. Can you confirm that in addition to the ESXi hosts, vCenter Server is also runs with the latest build (i.e. at least Update 1)?

André

0 Kudos
malefik
Enthusiast
Enthusiast

Well, my friend, trying to create a folder to me the message: "Failed. Search vmkernel log and osfsd log for opID 'osfsIpc-1408792414.91'."

Versions of all the hosts 5.5U1 + patch ESXi550-201407001.

0 Kudos
a_p_
Leadership
Leadership

That's the version for the ESXi hosts, but which version of vCenter Server is he using?

André

0 Kudos
malefik
Enthusiast
Enthusiast

5.5.0-1891310-20140201-update01

0 Kudos
malefik
Enthusiast
Enthusiast

Friends, I have updated to vServer 5.5.0-1945270, but the problem remained. What are some tips?

0 Kudos
malefik
Enthusiast
Enthusiast

Found the cause of the problems: in the settings dvSwitch was specified MTU value 9000 Returned to defolt 1500, and it worked 🙂

Thanks everyone!

0 Kudos