Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ESXi 6 NFS Datastore APD

Posted on 2016-10-03
14
Medium Priority
?
357 Views
Last Modified: 2016-10-04
We have a NFS share host on a Windows 2012 R2 server which host our LOG file and ISO images. Our Windows 2012 server was down for maintenance and now the datastore on all my host is listed as inactive and cannot unmount or anything else. Is there any other way to bring the datastore back online without a reboot which VMware support is stating is the only way to correct this. I am asking since this is impact 35 of my host.
0
Comment
Question by:compdigit44
  • 8
  • 6
14 Comments
 
LVL 124
ID: 41826705
We would not use Windows NFS to start with!

Once the NFS server is back online, normal NFS NAS it will automatically re-connect, as NFS polls.

NFS on Windows is available ? you have checked by connecting to it, with another server/device/workstation/client ?

can you unmount it , and re-mount it from an ESXi host ?

if you issue a refresh/re-scan, what does the log state ?
0
 
LVL 20

Author Comment

by:compdigit44
ID: 41826944
I cannot unmount and already tried a rescan not luck... Vmware says my only option is a reboot which I think is  B.S answser
0
 
LVL 124
ID: 41827120
host logs ?

what is the error ?
0
Automating Your MSP Business

The road to profitability.
Delivering superior services is key to ensuring customer satisfaction and the consequent long-term relationships that enable MSPs to lock in predictable, recurring revenue. What's the best way to deliver superior service? One word: automation.

 
LVL 20

Author Comment

by:compdigit44
ID: 41827197
Yes it is the ESXi host logs.. When I right click on the datastore everything is grayed out and I do not have the option to unmounted ....

And yes the NFS share is online and accessible...
0
 
LVL 124
ID: 41827208
do you get any errors in the logs ? why it cannot mount ?
0
 
LVL 20

Author Comment

by:compdigit44
ID: 41827212
OK I think I am on to something.. I have comfirmed that a reboot does bring the NFS share back online.

I was able to unmounts the NFS datastore then set it up again via Add Storage and it worked..

How can I script the unmounts of this datastore on all host then remount it.

HOw when I tried to manually unmounts the datastore from other host it states it cannont because the device is in use

Some VM are set to boot to specific ISO also I am not able to unmount the host log file since this is listed on each VM...

So it looks Like I will need to removed the mapping from all host and VM then try this... When 40 host and 120 Vm this is going to take a while
0
 
LVL 20

Author Comment

by:compdigit44
ID: 41827244
Here is what I am seeing in the VM kernel log for the NFS share the host the ESXi log files..

2016-10-03T23:11:49.337Z cpu29:9043435 opID=91b4f7c0)WARNING: NFS: 2208: Failed to get attributes (No connection)
2016-10-03T23:11:49.337Z cpu29:9043435 opID=91b4f7c0)NFS: 2264: Failed to get object 40 28b45cbd fa14778d 2a 10000 2a 10000 34d4aa4c 320b50 c0432038c5c48b5f 0 0 0 :No connection
0
 
LVL 124
ID: 41827245
ah, well datastore's in use, is anothe issue, isos, or Heartbeat datastores, VMware HA, but you also stated that this is your LOG mount.

and that cannot be changed without a reboot!

Don't think you've got much choice, because this is your LOG datastore.

But NFS should re-connect, but then this is Windoze!
0
 
LVL 20

Author Comment

by:compdigit44
ID: 41827254
If a VM has a datastore mounted it will not be able to be removed I presume. I tried change the log location on three host restarting the management services and still no go...

I feel like I am so close here
0
 
LVL 124
ID: 41827284
Restarting management agents is not going to cure the log location.

It only takes effect after a restart.

If a VM has a datatore mounted it's  busy!

and to be honest with you if you have to start kill (ing) all the services on a host which has production VMs in place, I would no longer be confident in it's production status!
0
 
LVL 20

Author Comment

by:compdigit44
ID: 41827294
Ugh... I was able to address my ISO mount location but the log location is my last hurdle. I do not recall have to reboot the host to setup the remote log location so why now???
0
 
LVL 124

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 total points
ID: 41827298
Log location only take affects after a reboot.

So if this is already set, trying to write to a location which does not exist, the host will think it's busy, and okay, you can change in advanced settings, but it will not change until a reboot.

or you kill all the services and restart them, and do you really want to kill your server with VMs running.

Migrate VMs, using vMotion and reboot host.

re-think log location in the future.... or address it if you need to restart a Windoze box! (which you'll need to do every month wit patching!)
0
 
LVL 20

Author Comment

by:compdigit44
ID: 41827311
on a test host running our dev VM's I try to stop and start the syslog service and now not able to.. how would I force kill it an restart it
0
 
LVL 20

Author Comment

by:compdigit44
ID: 41829000
Well I called VMware support and they did find one way to get around this issue for me without having to reboot all of my host. It was to kill the PID of the syslog service.

This whole issue have been an eye opener 1) I showed we how weak I am in Powercli since I had to connect to each host kill this process the reconnect the NFS share. 2) I have rebooted my NFS server before but it has never been down for as long as it was before so I need to research the NFS heartbeat keep alive settings..

In short I still have so much for to learn.... :o)
0

Featured Post

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
August and September have been big months for VMware—from VMworld last month to our new Course of the Month in VMware Professional - Data Center Virtualization. We reached out to Andrew Hancock, resident VMware vExpert, to have a more in-depth discu…
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question