Re: How do I remote mount an nfs file system?

From: Dr. David Kirkby (drkirkby_at_ntlworld.com)
Date: 07/17/03


Date: Thu, 17 Jul 2003 00:36:59 +0100

Jerry Jorgenson wrote:
>
> On Wed, 16 Jul 2003 21:34:18 +0100, Dr. David Kirkby wrote:
>
> > I'm trying to mount an nfs file system on a Sun (called sparrow) running
> > Solaris onto an Octane called owl, running Irix 6.5.16. I was hoping to
> > put an entry in /etc/fstab, but can't seem to get it to work.
> >
> > I can mount the file system using the mount command okay:
> >
> > owl 22# mount sparrow:/export/home /sparrow owl 23# df Filesystem
> > Type blocks use avail %use Mounted on /dev/root
> > xfs 35272480 6557424 28715056 19 / sparrow:/export/home nfs
> > 70579520 56229104 14350416 80 /sparrow
> >
> > That works, but what am I supposed to put in /etc/fstab to perform this
> > task, so it happens at boot time, without me specifying it every time?
> >
> > Currently I have this:
> >
> > owl 10% more /etc/fstab
> > /dev/root / xfs rw,raw=/dev/rroot 0 0 sparrow:/export/home /sparrow nfs
> > rw 0 0

<snip>

> Hi David,
>
> The entry looks like this:
>
> sparrow:/export/home /sparrow nfs
> nosuid,rw,rsize=16384,wsize=16384,vers=3,bg 0 0
>
> Note: You may have to user vers=2 depending on your Solaris version.
>
> The rsize and wsize may be different, use snoop -P to figure it out.
>
> There are some tuning guides in the SGI knowledge base for kernel
> parameters.
> These don't stop functionality, but they do improve performance.
>
> Significant improvements in NFS were made in IRIX 6.5.17. Upgrading
> would be a good idea.
>
> Also, make sure that you have the main NFS subsystems installed. There is
> some NFS client capability in the foundation disk, but the real NFS is on
> the ONC/NFS disks.
>
> Jerry

Thanks, this has been solved, even using much shorter entry in
/etc/fstab.

I was typing

owl # mountall
rather than
owl # mount /sparrow

I thought from the man page of mountall that it would perform all the
mounts in /etc/fstab - it is also less typing. But clearly that was
not the case.

I've just rebooted the SGI and found the Sun's file system has mounted
okay.

I did install the NFS subsystem.

I've only had the machine a week and its only a home computer, so I
don't think I'll be poking around with kernel parameters just yet.
Performance is not an issue anyway. My main machine is a Sun, so
within reason I'm not too bothered about the Octane's (2 x 195 MHz)
performance.

I can't upgrade to 6.5.17, as I don't have a contract (its a home
computer) and these are the latest CDs I have.

I bought the machine to test some open-source software I wrote. It has
been very useful in this respect, as SGI compiler treats

char foo;

as foo being unsigned. This is different from just about all the other
systems I had been using, so I found a portability issue. Easily
solved by declaring foo to

signed char foo;

AIX also behave the same, but IBM's compiler was not as helpful as
SGI's in indicating the problem.

-- 
Dr. David Kirkby,
Senior Research Fellow,
Department of Medical Physics,
University College London,
11-20 Capper St, London, WC1E 6JA.
Tel: 020 7679 6408 Fax: 020 7679 6269
Internal telephone: ext 46408
e-mail davek@medphys.ucl.ac.uk


Relevant Pages

  • [SLE] NFS volumes at boot
    ... I want to attach some NFS volumes at boot time. ... The client machine has the ... following entry in /etc/fstab: ...
    (SuSE)
  • Re: How do I get NFS locking to work?
    ... I am unable to use monotone properly over an NFS mount because ... this options into your kernel or kernel-module. ... And the /etc/exports entry on 172.25.1.11 is ... Also on you client machine add the option "lock" to the fstab setup. ...
    (Debian-User)
  • Re: Problems with fstab entry for nfs
    ... I have a problem with a fstab entry for the nfs. ... the equivalent mount works fine. ... On the NFS server, you have to have the mountpoints set up ...
    (comp.os.linux.misc)
  • nfs_client_enable="YES" usage
    ... Since I always mount my NFS dirs manually I started wondering about how usefull the entry in /etc/rc.conf was. ... Is the entry in rc.conf only needed when mounting a nfs dir at boot? ...
    (freebsd-questions)
  • [SLE] NFS - what did I miss?
    ... I have posted several times a problem wherein the nfsserver will not load ... at boot time. ... I've spoken to others on other lists that have the same problems. ... But so far I haven't see anything regaring any NFS ...
    (SuSE)