[ubuntu-users] NFS

Ted Hilts ehilts at mcsnet.ca
Tue Nov 9 19:57:05 UTC 2010


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.
>>     
>
> Trying to understand and suggesting a simple setup/test.
>
> 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
>
>   
Tom

Just read your email.

I will have to take your instructions over to the Lucid machine 
192.168.1.15 which has the name cic2ext.  Later today I will be able to 
do the tests you specified.  After that I will email the results to 
you.  My emailer is Thunderbird which runs on Ubuntu 8.04 so I have to 
email you from Thunderbird and do the actual tests on cic2ext.  This 
gets clumsy because cic2ext is a production machine so I have to free it 
up for these tests and any other tests you might suggest. So if possible 
please stay with me on this.  I will let you know the results much later 
today. I have to also check using ps -A | grep "nfs" because if I 
remember right there is a list of several "nfs and then nfsx and another 
nfsxx" where x is a designation I don't remember.  I think "nfsv4" may  
have been one.  I  will get back to you  also  on this. 

Sorry to be so slow and I appreciate your help.

Thanks -- Ted Hilts





More information about the ubuntu-users mailing list