[svlug] Mounting drives

Skip Evans skip at bigskypenguin.com
Tue Jan 30 10:03:07 PST 2007


Hey Kevin & all,

Both your tests below checked out. portmap is 
running on the workstation and the server was able 
to telnet to it via port 111. (Why the heck would 
a Linux distro install without portmap???)

Then I tried something else. I just wrote a new 
file into the directory (they're all PHP source 
files) where the ones I could not write to after 
opening reside. It wrote that file fine.

But I noticed the owner of the file was '1000', 
and I don't know what that user is.

So as a test I changed all the file ownerships in 
the directory like so:

chown 1000 *

...and was then able to open, read and write all 
the files.

Any explanation would be greatly(!) appreciated, 
but at least until then this lets me get some work 
done for a client who is not happy with my lame 
excuses for why I can't modify his source code!

Thanks for the all help!

But one thing: why can the remote file systems be 
mounted without portmap, albeit very, very slowly?

Thanks again massive globules!

Skip



Kevin Smathers wrote:
> The next step is to verify that portmap is running, and if so that it is 
> reachable.  The service port is 111 which you should be able to connect 
> to from the remote host.  If the service isn't running then start it.  
> If it is running but you can't connect then check your firewall 
> configuration.  Port 111 should be open for both TCP and UDP.  If all 
> else fails then check the portmap configuration files; see 'man portmap' 
> for details, but basically you should check '/etc/hosts.allow' and 
> '/etc/hosts.deny'.
> 
> So something like:
> 
> # ps auwx | grep portmap
> 
> Should include /sbin/portmap.   Then from the server:
> 
> # telnet mylaptop 111
> 
> Should connect.  Use '^]' then close to exit.
> 
> 
> 
> 
> Skip Evans wrote:
>> Hey Kevin and all,
>>
>> Trying to mount the file systems, my client Xu machine gave this in 
>> response to dmesg:
>>
>> [17179863.300000] portmap: server localhost not responding, timed out
>> [17179863.300000] RPC: failed to contact portmap (errno -5).
>> [17179898.300000] portmap: server localhost not responding, timed out
>> [17179898.300000] RPC: failed to contact portmap (errno -5).
>> [17179898.548000] lockd_up: no pid, 4 users??
>> [17179933.548000] portmap: server localhost not responding, timed out
>> [17179933.548000] RPC: failed to contact portmap (errno -5).
>> [17179968.548000] portmap: server localhost not responding, timed out
>> [17179968.548000] RPC: failed to contact portmap (errno -5).
>> [17180003.548000] portmap: server localhost not responding, timed out
>> [17180003.548000] RPC: failed to contact portmap (errno -5).
>> [17185560.256000] lockd_down: no lockd running.
>>
>> So it is an issue with portmapper???
>>
>> What should I try next?
>>
>> Thanks!
>> Skip
>>
>> Kevin Smathers wrote:
>>  
>>> Check /var/log/messages and 'dmesg' on both machines and it may give 
>>> you a clue.  Could be that portmapper isn't running, or that 
>>> /etc/exports on the other machines doesn't list your new machine as 
>>> having access rights in a way that is easily resolvable.   In any 
>>> case, I don't see a problem with /etc/fstab so it is probably 
>>> somewhere else.
>>>
>>> Cheers,
>>> -kls
>>>
>>> Skip Evans wrote:
>>>    
>>>> Hey all,
>>>>
>>>> Just installed Xubuntu on my workstation here at the office, and 
>>>> copied the lines over from the old   /etc/fstab file to the new 
>>>> install:
>>>>
>>>> 192.168.0.100:/home /mnt/BSP_home           nfs     rw      0       0
>>>> 192.168.0.101:/home /mnt/VP_home            nfs     rw      0       0
>>>> 192.168.0.101:/usr /mnt/VP_usr             nfs     rw      0       0
>>>> 192.168.0.101:/usr/local/projects /mnt/VP_projects        nfs     
>>>> rw      0       0
>>>>
>>>> But they are not mounting at boot, and mount -a runs for a very long 
>>>> time before finally mounting them.
>>>>
>>>> If they are in fstab shouldn't they be mounted at boot?
>>>>
>>>> Why does mount -a take so long to mount them?
>>>>
>>>> I should say the two machines they are mounting are running FreeBSD 
>>>> 6.0.
>>>>
>>>> Thanks
>>>> Skip
>>>>         
>>>     
>>
>>   
> 
> 

-- 
Skip Evans
Big Sky Penguin, LLC
61 W Broadway
Butte, Montana 59701
406-782-2240
http://bigskypenguin.com
=-=-=-=-=-=-=-=-=-=
Check out PHPenguin, a lightweight and
versatile PHP/MySQL development framework.
http://phpenguin.bigskypenguin.com/




More information about the Svlug mailing list