Skip navigation
VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
2,470 Views 11 Replies Last post: Mar 30, 2010 12:44 PM by esloof RSS
Gabrie Master vExpert 1,080 posts since
Jun 6, 2005
Currently Being Moderated

Nov 12, 2009 9:03 AM

Why can't nfs remount after disconnect?

Hi

 

Home environment with only one cable to my small NFS NAS. Strange thing is that when I pull the cable from the NAS and then plug it in again, the ESX hosts cannot reconnect. Only thing that works is to unmount and remount the NFS store on each host. I usually do it by command line with the esxcfg-nas option, but I'm surprised ESX can't recover from this. Why is that?

 

I also have a small iSCSI NAS and there are no problems reconnecting. Just do a rescan at cluster level and we're back.

 

 






http://www.GabesVirtualWorld.com

http://www.GabesVirtualWorld.com
 
DSTAVERT Guru User Moderators vExpert 10,090 posts since
Nov 30, 2003
Currently Being Moderated
1. Nov 12, 2009 1:35 PM in response to: Gabrie
Re: Why can't nfs remount after disconnect?

It is more about the NFS protocol than anything else.

-- David -- VMware Communities Moderator
DSTAVERT Guru User Moderators vExpert 10,090 posts since
Nov 30, 2003
Currently Being Moderated
3. Nov 12, 2009 2:10 PM in response to: Gabrie
Re: Why can't nfs remount after disconnect?

I use NFS and generally don't have issues. A lost connection usually re establishes itself when it is reconnected, without the need to rescan. I have had a recent incident where the NAS rebooted and when it cam back online not only did it reconnect but several of the VMs were still running. Very little activity of course.

 

NFS generally isn't that good at detecting connection dropouts since it is UDP. Not waiting for ACKs etc. I don't know what mechanism anyone uses for detecting lost connectivity or reconnection.

 

What are you using for NFS.

-- David -- VMware Communities Moderator
oreeh Guru 10,046 posts since
Nov 30, 2005
Currently Being Moderated
4. Nov 12, 2009 2:13 PM in response to: DSTAVERT
Re: Why can't nfs remount after disconnect?

FYI: ESX only uses NFS over TCP

DSTAVERT Guru User Moderators vExpert 10,090 posts since
Nov 30, 2003
Currently Being Moderated
6. Nov 12, 2009 2:27 PM in response to: Gabrie
Re: Why can't nfs remount after disconnect?

Sorry about the UDP reference. I have been using UDP with some LINUX backup testing all week.

 

 

The switch?

 

Have a look through the NFS FAQ's on sourceforge. See if there is anything you can relate to.

-- David -- VMware Communities Moderator
DSTAVERT Guru User Moderators vExpert 10,090 posts since
Nov 30, 2003
Currently Being Moderated
8. Nov 12, 2009 2:47 PM in response to: Gabrie
Re: Why can't nfs remount after disconnect?

The switch, the cable? What settings do you have available for NFS?

-- David -- VMware Communities Moderator
jasoncllsyste… Hot Shot 176 posts since
Mar 16, 2009
Currently Being Moderated
10. Nov 12, 2009 11:56 PM in response to: Gabrie
Re: Why can't nfs remount after disconnect?

 

Personally,  I have the experienced which NFS 'unmount' option go missing and after refresh on particular NFS datastore then only 'unmount' option display on the screen. I would said probably VCenter bug.

 

 

 

Regards,

Jas

MALAYSIA VMware Communities

http://www.malaysiavm.com

 

'If you found this or any other answer useful please consider allocating points for helpful or correct answers ***

Best Regards, Follow me on Twitter: jlchannel http://www.malaysiavm.com *** If you found this or any other answer useful please consider allocating points for helpful or correct answers ***
esloof Hot Shot vExpert 336 posts since
Nov 11, 2006
Currently Being Moderated
11. Mar 30, 2010 12:44 PM in response to: Gabrie
Re: Why can't nfs remount after disconnect?

NFS is a great storage solution within a VMware vSphere environment but when the connection to the NFS server is lost, you’re in big trouble. In most circumstances some virtual machines are still connected to the NFS Datastore and since it’s in use, you cannot delete and recreate it. I’ve tried this by using the vClient and trough the command line but didn’t succeed. In the end there’s no other alternative than rebooting the ESX host, or is there…. If you want to find out how to remount an NFS Datastore you better watch this online training.

 

http://www.screencast.com/users/esloof/folders/Online-Training

Bookmarked By (0)

Share This Page

Communities