<p>
Ok, I think I figured it out...
</p>
<p>
When I ran "netstat -p|grep <hostname>", I got this:
</p>
<p>
tcp 0 0 <localname>:727 <hostname>:sunrpc TIME_WAIT -
</p>
<p>
So, there's a problem when trying to contact the server itself, but it pings with zero packet loss. I suspect there's a problem with the NFS part of the NAS we're using.
</p>
<p>
On Fri, 6 Feb 2009 00:33:42 +0000, Will wrote:
</p>
<p>
</p>
<blockquote style="border-left: 2px solid #1010ff; padding-left: 5px; margin-left: 5px; width: 100%">
<p>
Yup, tried that and it's still not working.
</p>
<p>
I completely forgot about strace though, I'll be sure to give that a try.
</p>
<p>
On Thu, 5 Feb 2009 15:55:46 -0800 (PST), Brendan Ford wrote:
</p>
<blockquote style="border-left: 2px solid #1010ff; padding-left: 5px; margin-left: 5px; width: 100%">
<!-- DIV {margin:0px;} -->
<div style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-size: 12pt">
<div>
<span style="font-family: arial,helvetica,sans-serif">Yeah, it's never that simple :(</span><br />
<span style="font-family: arial,helvetica,sans-serif">Have you tried it at the commandline without the variables?</span><br />
<span style="font-family: arial,helvetica,sans-serif">EG:</span><br />
<span style="font-weight: bold"> mount MyNas:/shared /nas</span><br />
</div>
<div style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-size: 12pt">
<br />
<span style="font-family: arial,helvetica,sans-serif">I kinda doubt that will do it too because if the command itself is faulty, you would expect to get an error back right away.</span> <span style="font-family: arial,helvetica,sans-serif"> </span><br />
<span style="font-family: arial,helvetica,sans-serif">Also, try running the mount with <span style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-weight: bold">strace </span>to hopefully see where it is hanging.<br />
</span><span style="font-family: arial,helvetica,sans-serif">Are you able to see the share using a filemanager GUI?</span><br />
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt">
<font face="Tahoma" size="2">
<hr />
<strong><span style="font-weight: bold">From:</span></strong> Will <br />
<strong><span style="font-weight: bold">To:</span></strong> LILUG Mailing List <br />
<strong><span style="font-weight: bold">Sent:</span></strong> Thursday, February 5, 2009 6:08:11 PM<br />
<strong><span style="font-weight: bold">Subject:</span></strong> Re: [Lilug] NAS mounting problem<br />
</font><br />
Nope, that doesn't seem to be doing it...<br />
<br />
On Thu, 5 Feb 2009 13:28:29 -0800 (PST), Brendan Ford wrote:<br />
<blockquote style="border-left: 2px solid #1010ff; padding-left: 5px; margin-left: 5px; width: 100%">
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt">
<div>
Will,<br />
Depending on your shell, the colon immediately after your variable can be causing something other than what you expect. Try enclosing the HOSTNAME in curlies to avoid this confusion:<br />
<br />
<span style="font-family: Courier New,courier,monaco,monospace,sans-serif"> mount -t nfs -o hard,intr,nfsvers=2 ${HOSTNAME}:$SHARE $MOUNTPOINT</span><br />
<br />
I hope that helps,<br />
-Frd<br />
</div>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt">
<br />
<div style="font-family: arial,helvetica,sans-serif; font-size: 13px">
<font face="Tahoma" size="2">
<hr />
<strong><span style="font-weight: bold">From:</span></strong> Will <br />
<strong><span style="font-weight: bold">To:</span></strong> lilug@lilug.org<br />
<strong><span style="font-weight: bold">Sent:</span></strong> Thursday, February 5, 2009 3:56:49 PM<br />
<strong><span style="font-weight: bold">Subject:</span></strong> [Lilug] NAS mounting problem<br />
</font><br />
Ok, so I've run into a bit of a problem...<br />
<br />
We're running a streaming video server at my job, and rather then pay the<br />
company we got it from for a 2 terabyte upgrade, we wanted to use a NAS. (I<br />
know, it's a very bad idea, but it beats forking over tons of money for<br />
something as simple as a hard disk)<br />
<br />
The machine is running a 2.4 kernel, with some version of Red Hat. The NAS<br />
is running windows server 2003.<br />
<br />
When I tried to mount the NAS through samba, I discovered that the kernel<br />
doesn't have smbfs support built in, so I tried using NFS instead. The<br />
problem is, whenever I use the mount command, it just hangs. Here's the<br />
relevant line from the script I wrote:<br />
<br />
mount -t nfs -o hard,intr,nfsvers=2 $HOSTNAME:$SHARE $MOUNTPOINT<br />
<br />
I tried various versions of NFS, but it still doesn't seem to work. I also<br />
tried just passing "mount $HOSTNAME:$SHARE $MOUNTPOINT", but that didn't<br />
work either. Whenever I run
the command, it just hangs, and I have to open<br />
up another terminal and run killall on my script.<br />
<br />
The NAS can be pinged from the machine, so it's accessible from the<br />
network. The variables I'm specifying are correct as well.<br />
<br />
Anybody have a clue what may be going on?<br />
<br />
_______________________________________________<br />
Lilug mailing list<br />
<a rel="nofollow" href="mailto:Lilug@lilug.org" target="_blank">Lilug@lilug.org</a><br />
<a rel="nofollow" href="http://lists.lilug.org/listinfo.cgi/lilug-lilug.org" target="_blank">http://lists.lilug.org/listinfo.cgi/lilug-lilug.org</a><br />
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<p>
</p>
</blockquote>
<p>
</p>