[ubuntu-users] NFS
Ted Hilts
ehilts at mcsnet.ca
Wed Nov 10 18:53:52 UTC 2010
Tom H wrote:
> On Tue, Nov 9, 2010 at 11:03 PM, Ted Hilts <ehilts at mcsnet.ca> wrote:
>
>> Tom H wrote:
>>
>>> On Mon, Nov 8, 2010 at 11:24 PM, Ted Hilts <thilts at mcsnet.ca> wrote:
>>>
>>>> I can't seem to get a NFS up and running.
>>>>
>>>> There is a file "/etc/exports" and in that file "/media/dfc1...6cfe3".
>>>> The part after the "/media/" is the disk ID. Also, as sudo I created
>>>> "/ted-nfs" as the mount point. Then I did the command "sudo mount
>>>> 192.168.1.15:/media/dfc1...6cfe3/ /ted-nfs" and the command "sudo
>>>> exportfs ra". I did not use the machine IP addres in the "/etc/exports"
>>>> file but did use it in the command. All this occured on just one machine
>>>> (192.168.1.15) and I have not got past this problem and have also the
>>>> "clients" to worry about.
>>>>
>>>> In the man NFS examples I tried all 4 examples but nothing worked. For
>>>> example (not using "/etc/exports") I did the example:
>>>> "server:/export /mnt nfs defaults 0 0" by putting in the same server,
>>>> the export mount, etc to get "192.168.1.15:/media/dfc1...6cfe3/ /ted-nfs
>>>> nfs defaults 0 0" which failed. The error was just a list of options.
>>>>
>>> Assuming nfs is installed and running.
>>>
>>> Assuming nfsv4.
>>>
>>> Server: 192.168.1.15
>>>
>>> Client: 192.168.1.15
>>>
>>> Directory to export: /media/dfc1...6cfe3
>>>
>>> Mount point: /ted-nfs
>>>
>>> Set up
>>> $ sudo vi /etc/exports
>>> /media/dfc1...6cfe3 *(rw,fsid=0,no_subtree_check,no_root_squash)
>>> $ sudo exportfs -rav
>>> $ sudo vi /etc/fstab
>>> 127.0.0.1:/ /ted-nfs nfs noexec,nosuid 0 0
>>> $ sudo mount -a -t nfs
>>>
>>> Test
>>> $ showmount -e
>>> and
>>> $ sudo mount
>>> and
>>> $ ls /ted-nfs
>>>
>> After executing sudo exportfs -raw I got the response:
>> exporting *:/media/...cfe3
>>
>> After editing /etc/fstab I did the sudo mount -a -t nfs and got an error
>> message:
>> "mount.nfs: access denied by server while mounting 127.0.0.1:/"
>>
>> showmount -e gives the export list for cic2ext.
>>
>> sudo mount gives all the mounts including the nfs mounted on proc.
>>
>> ls /ted-nfs gives nothing.
>>
>> You are welcome to access this machine remotely.
>>
>
> Given the above, I'll assume that nfs is running (for now)...
>
> Do you have any entries in "/etc/hosts.allow" or "/etc/hosts.deny"?
>
> Do you have iptables running without allowing loopback access?
>
> I'd rather not access your box. Let's revisit the idea if the above
> doesn't help elucidate what's wrong.
>
>
Tom
Given the above, I'll assume that nfs is running (for now)...The responses seem to indicate nfs is working but I know very little about managing nfs.
Do you have any entries in "/etc/hosts.allow" or "/etc/hosts.deny"? I don't think so but I do have entries in /etc/hosts and well as /etc/samba/smb.conf. I checked and there are no entries in /etc/hosts.allow or /etc/hosts.deny.
Do you have iptables running without allowing loopback access? As far as I know I don't have iptables running at all. I checked using ps -A | grep "ip" and there is nothing with "ip" in it.
Awaiting you response. I am getting close to the time I have to put
cic2ext (192.168.1.15) back into production mode.
Thanks -- Ted Hilts
More information about the ubuntu-users
mailing list