UNSOLVED

andrewjmoser

updated

10 years ago

1

7529

May 6th, 2016 12:00

VVOLS Datastore not writable

Having an issue with the Unity VSA, Followed the installation instructions and documents on this site to set everything up for VVOL's File.  I can get everything created except the datastore when it is presented, it's not writable.   I get an error any time I try to copy a file or anything to it that basically says "cannot write file".

I saw the post below under troubleshooting to change the settings for NFS mount limits, heap size, and heap max.   I only have 3 NFS mounts on my hosts now, so I don't think this would apply, but I did it anyway, rebooted my 6 hosts, still having the same problem.   I tried removing the datastore, removing the VSA from the storage providers in Vcenter, re-registering and create the data store again, still no luck.


Everything is Vsphere 6.0U2, using VCSA.  I can scrap VVOLs and setup straight NFS on Unity and mount datastores with no issue, only when I try VVOLS does this happen, any ideas?

File VVol creation failure—Failed to create directory

When deploying a File VVol in vSphere and the VMware limit of eight maximum NFS datastore mounts is exceeded, vSphere returns a vague error message such as:

Cannot complete file creation operation.Operation failed, diagnostics report: Hostsvc::osfs::CreateDirectory : Failed to create directory new-vm1 (Cannot Create File.

This error message is less intuitive than the vSphere error that displays when deploying an NFS datastore that exceeds this limit: NFS has reached the maximum number of supported volumes.

For instructions on increasing the limit of eight maximum NFS mount in vSphere, refer to the following VMware Knowledge Base article:https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2239

  • chenw87

    43 Posts

    4378

    0

    Posted May 23rd, 2016 07:00

    Can you check the Host Access tab of the datastore and ensure your host has been provided with read/write, allow root access?

  • 4378

    0

    Posted June 7th, 2016 10:00

    The hosts have all been added for access and on the appropriate networks.  Unless I am missing something with VVOL's, I don't have an option to specifically allow root access like you would with NFS.

  • maniemc

    169 Posts

    4378

    0

    Posted June 7th, 2016 21:00

    what is the capacity you are seeing for this VVOL ? If it is zero, the time is not connect on VSA and need to be fixed (along with ESX).

    Also is this vvol via NFS or Block? If NFS works, there is no reason vvol will not work other than time issue.

  • Rainer_EMC

    6 Operator

    8645 Posts

    4378

    0

    Posted June 8th, 2016 08:00

    For NFS you can also just do a showmount –e from any Unix/Linux host

  • AndreD Dell

    Moderator

    239 Posts

    4378

    1

    Posted June 8th, 2016 08:00

    Hi Andrew,

    A few assumptions here:

    - This is the VSA community edition. If not, you are asking the wrong people / wrong place.

      If this is a VSA Professional Edition, you should open an SR for this.

    - From your notes here, seems like we are talking file vVOLs, not block.

    So I have just created a few file vVOLs here on different systems (and I have created a dummy folder on them from the VMware side to test access), just to see what steps you may have missed.

    A few things to look at (I don’t know exactly what you are using to test write access, but here goes):

    - Like Wen stated:

      The hosts were provided access when the vVOL Datastore was created on the Unity side?

      In Unity Unisphere, check Storage > VMware > datastores > datastore properties > host access tab

      Your hosts should be listed here with the file protocol on the right column

    - In the vSphere Web Client, the VASA provider was added correctly and shows online and active (you accepted the certificate pop up, etc).

      https://cUVSA_IP:8443/vasa/version.xml (no restrictions on this port)

    - In vSphere, in the datastores section, does the datastore show up normal or with a red "inaccessible" or "inactive" symbol?

      What about in your specific host > related objects > datastores?

    - If you go into the datastore directly (datastores > Manage > files) can you create a dummy folder or you also get the write error here?

    - If all config is ok (including Mani’s point above), remove the storage provider and add again without touching anything else (leave the datastore mounted on the hosts). Refresh / rescan. See how it goes.

  • 4378

    0

    Posted June 8th, 2016 11:00

    I started over from scratch today to make sure all the ideas so far have been tried, so this is basically a fresh install. I unregistered the old VSA from Vcenter, made sure any datastore was removed, and then removed all the hosts from the VSA, deleted it, and redeployed. Here is what I have after doing that.

    -This is for Community Edition.

    -All VVOL’s, no block.

    -All 6 hosts have access to the VMware Datastore for File. It shows File and FC in the right column, but only using File, I’m guessing that is a carryover from the physical device OS. I also made sure to ignore the networks I am not using for storage communication (Vmotion VLAN in my case) on each host.

    -VASA provider shows online and active, there are no port restrictions, cert was accepted.

    -Vcenter shows the volume after I add it, but it shows zero bytes for capacity, free space, provisioned space. It does not show inaccessible however. There is an alarm on the datastore from Vsphere HA trying to write its files to it, which it can’t since it’s not writable.

    -NTP server is setup identical on all hosts and VSA, time is same on everything.

    Going to the datastore and trying to create a folder, or upload a file, fails with the original errors in my post.

    Andy

  • maniemc

    169 Posts

    4378

    0

    Posted June 8th, 2016 19:00

    Andy,

    Can you check and compare the local time on both ESX and VSA?

    In VSA you can enable ssh and login as service, "date" command will show the local time.

  • Rainer_EMC

    6 Operator

    8645 Posts

    2454

    0

    Posted June 9th, 2016 03:00

    See here for a good blog showing step-by-step a successful install and config http://blog.mdschneider.me/unityvsa-part-1-html5-ftw/

  • 4378

    0

    Posted June 9th, 2016 07:00

    The time is within 1s of each other, they are pointed to the same time server.

  • maniemc

    169 Posts

    2554

    0

    Posted June 9th, 2016 21:00

    so the other known cause could be either PE (Protocol Endpoint) or VASA 2.0 registration. try to delete all and recreate again. If still fails, unity vsa logs and esx logs need to be reviewed.