Re: NFS mount on AIX 5.2

From: Steve Bassler (sbassle_at_alleghenyenergy.com)
Date: 12/08/03


Date: 8 Dec 2003 05:57:31 -0800


"Andreas Schulze" <b79xan@gmx.de> wrote in message news:<br1ig8$c0o7@news-1.bank.dresdner.net>...
> "Steve Bassler" <sbassle@alleghenyenergy.com> schrieb im Newsbeitrag
> news:9f303a71.0312051034.1d96d9d5@posting.google.com...
> > Steve Bassler <bassmstr.delete.this.to.reply@adelphia.net> wrote in
> message news:<oprzovjgn6w038d5@news>...
> > > On Thu, 4 Dec 2003 08:20:16 +0100, Andreas Schulze <b79xan@gmx.de>
> wrote:
> > >
> > > > "Steve Bassler" <bassmstr.delete.this.to.reply@adelphia.net> schrieb
> im
> > > > Newsbeitrag news:oprzmwddcgw038d5@news...
> > > >> On Wed, 3 Dec 2003 16:19:56 +0100, Andreas Schulze <b79xan@gmx.de>
> > > >> wrote:
> > > >>
> > > >> > "Steve Bassler" <sbassle@alleghenyenergy.com> schrieb im
> Newsbeitrag
> > > >> > news:9f303a71.0312021054.352b9715@posting.google.com...
> > > >> >
> > > >> >> I have just installed my first AIX 5.2 system. I have an
> NFS-mounted
> > > >> >> common directory which I would like to mount at system boot time.
> The
> > > >> >> /etc/filesystems entry reads:
> > > >> >>
> > > >> >> /Common:
> > > >> >> dev = "/Common"
> > > >> >> vfs = nfs
> > > >> >> nodename = NFSServer
> > > >> >> mount = true
> > > >> >> options = ro,bg,soft,intr,retry=5,retrans=3
> > > >> >> account = false
> > > >> >>
> > > >> >> This is exactly what we use for AIX 4.3.3 and 5.1 and it works
> fine,
> > > >> >> but I cannot get it to work with 5.2. When I boot, the filesystem
> > > >> >> does not mount. After the boot, I can mount it manually with just
> a
> > > >> >> "mount /Common" command.
> > > >> >>
> > > >> >> Am I doing something wrong? Did AIX 5.2 change something?
> > > >> >>
> > > >> >> Thanks,
> > > >> >> Steve
> > > >> >>
> > > >> >
> > > >> > Hallo Steve,
> > > >> >
> > > >> > try
> > > >> > # alog -ot boot
> > > >> > to see what is happening during boot.
> > > >> >
> > > >> > Regards,
> > > >> > Andreas
> > > >> >
> > > >>
> > > >> Hello Andreas,
> > > >>
> > > >> I did, and it simply says something like "Performing all automatic
> > > >> mounts." (I don't have it here in front of me, so I'm not sure of
> the
> > > >> exact wording.) But it showed nothing unusual at all.
> > > >>
> > > >> Thanks,
> > > >> Steve
> > > >
> > > > Hallo Steve,
> > > >
> > > > I see. Question: why do you limit the number of retries for the mount
> to
> > > > five? Default is 10000 IIRC. So if there should be some sort of timing
> > > > problem you might simply try remove the limitation on retries first
> and
> > > > watch what's happening then. With intr and bg set, this should not
> > > > result in problems. If increasing the number of retries works (i.e.
> the
> > > > fs is mounted) you are on the right track. Then you might reduce the
> > > > value to 5000, then 2500 ... you are getting the idea.
> > > >
> > > > HTH,
> > > > Andreas
> > > >
> > >
> > > Hi Andreas,
> > >
> > > Thanks for the ideas. We chose the retries value at random, because we
> > > needed to limit the impact on production machines if the remote host
> > > became unavailable. (It did once, and we took a lot of heat when
> systems
> > > became unresponsive.) I'll try with larger values and see what happens.
> > >
> > > Again, thanks!
> > > Steve
> >
> > Hi Andreas,
> >
> > I increased the retries to 2000 (the default is 1000) and also set it
> > to hard mount, but still no success. Here is the current
> > /etc/filesystems entry:
> >
> > /Common:
> > dev = "Common"
> > vfs = nfs
> > nodename = NFSServer
> > mount = true
> > options = ro,bg,hard,intr,retry=2000,retrans=3
> > account = false
> >
> > Any other thoughts?
> >
> > Steve
>
> Hallo Steve,
>
> that still sounds like a timing problem. Two things come to my mind. There
> seems to be sth. missing at the time when the server tries to mount. Firstly
> you should check where in the inittab the /etc/rc.nfs is called. Make sure
> that the rc.tcpip is called at the right time for nfs (portmapper for rpc!).
>
> Secondly, Question: are you using DNS or a local /etc/hosts to resolve
> "NFSServer" during boot? Should you use DNS I would suggest to change the
> resolver to /etc/hosts first. Alternatively you might mount the nfs mounts
> at the very end of your inittab via some rc.local. As you can mount manually
> after boot this might be the most promising way out.
>
> Last thought: while I am not aware of some particular hot or emergency fix
> for 5.2 nfs filesets there where quite some for the nfs.client. Make sure,
> you've got the latest fixlevel installed.
>
> HTH,
> Andreas

I believe we've found the problem. Apparently in AIX 5.2, IBM moved
the automatic mount of NFS filesystems from rc.net to rc.nfs. As part
of our standard security customizations, we disable NFS on all servers
that are not actually NFS hosts, by running "rmnfs -B". This does not
prevent us from manually mounting NFS filesystems from other hosts.
It does remove rc.nfs from /etc/inittab, which before AIX 5.2 was not
a problem. Now it is. We're looking into alternatives. We may end
up just running the mount command to mount nfs filesystems in a
startup script.

Thanks for all your help.

Steve



Relevant Pages

  • Re: nfs mount through fstab
    ... I cannot mount nfs filesystems through fstab ... can mount the filesystem manually ... /etc/fstab entry is incorrect. ...
    (linux.redhat)
  • Re: NFS mount on AIX 5.2
    ... 9f303a71.0312080557.11a291b6@posting.google.com, "Steve Bassler" ... > the automatic mount of NFS filesystems from rc.net to rc.nfs. ... > prevent us from manually mounting NFS filesystems from other hosts. ... Another solution might be to remove the bos.nfs.server fileset but keep the ...
    (comp.unix.aix)
  • Re: exported nfs drive not mounting after reboot
    ... I have some nfs mount points defined between Aix servers and after a reboot they do not automatically re-mount. ... Do you have other nfs filesystems on this machine that do mount? ...
    (AIX-L)
  • RE: Book on Pre-MATH for cryptography and cryptanalysis. Reply
    ... He'll be witnessing contrary to eager Mohammar until his mount ... When did Haji finish the matrix across the ... Somebody wildly reduce against Steve when the ...
    (sci.crypt)
  • Re: DOS app very slow on VPC7 4 Mac
    ... My Win '98 is on a 'product recovery CD' for the IBM ... Using your VPC7 Win98 container I was able to mount the Cd ... >Is the floppy disk image you refer to above the win98emergency boot ... Steve Jain, Virtual Machine MVP ...
    (microsoft.public.mac.virtualpc)