So this comes from the site-cfg.h
#define SITE_ALLOWED_NETWORKS 127.0.0.1, 130.246.184., 130.246.41. , 130.246.187.
Steve
On Wed, 12 Mar 2003, D.Kant wrote:
> Ian...thanks!
> That worked a treat!!!!!!!
>
>
> The /etc/hosts.allow files on CE and SE looked like this:
>
> [root@hepbf4 /etc]# cat /etc/hosts.allow.orig
> ftp : 127.0.0.1, 138.37.51, 138.37.50
> sshd : ALL
> mountd : 127.0.0.1, 138.37.51, 138.37.50
> portmap : 127.0.0.1, 138.37.51, 138.37.50
>
> I changed them by "ADDING A DOT" to each IP address in the mountd and
> portmap lines
>
> [root@hepbf4 /etc]# cat /etc/hosts.allow
> ftp : 127.0.0.1, 138.37.51, 138.37.50
> sshd : ALL
> mountd : 127.0.0.1, 138.37.51., 138.37.50.
> portmap : 127.0.0.1, 138.37.51., 138.37.50.
>
> So I guess this was due to the site-cfg.h file which defined the allowed
> networks as:
>
> #define SITE_ALLOWED_NETWORKS 127.0.0.1, 138.37.51, 138.37.50
>
> I've now changed it appropriately.
>
> There is no need to have an explicit entry in /etc/fstab as
> "/etc/var/nfsmount run" knows which filesystems you want to mount.
>
> Dave.
>
>
>
>
>
>
> On Wed, 12 Mar 2003, Ian Stokes-Rees wrote:
>
> > I had the same sort of problem last week, and Pete Gronbech sorted it out,
> > but here is what I think he did:
> >
> > EXPORTING MACHINE (hostE):
> >
> > 1. Create relevant entry in /etc/exports
> > e.g. portmap : 127.0.0.1, 163.1.243., 163.1.244.
> > 2. Put "portmap <allowed-IP-addresses>" into /etc/hosts.allow
> > e.g. /opt/atlas *.physics.ox.ac.uk(ro,no_root_squash)
> > 3. Restart nfs, netfs, and nfslock services (service XXXX restart)
> >
> > MOUNTING MACHINE (hostM):
> >
> > 1. Add an entry to /etc/fstab
> > e.g. hostE:/opt/atlas /opt/atlas nfs
> > exec,dev,suid,ro,bg 0 0
> > 2. Try "showmount -e hostE" to get a list of exported file systems on the
> > exporting machine. If nothing comes up, you aren't going to be able to
> > proceed. Make sure all the services on the exporting machine are
> > started.
> > 3. Execute "mount hostE:/opt/atlas /local/mount/point". Make sure
> > "/local/mount/point" actually exists.
> >
> > You may need to start the nfs service, but I don't think so.
> >
> > Let me know if that works. The trick for us was the "portmap" entry in
> > /etc/hosts.allow.
> >
> > Cheers,
> >
> > Ian.
> >
> > --
> > Ian Stokes-Rees [log in to unmask]
> > Particle Physics, Oxford http://www-pnp.physics.ox.ac.uk/~stokes/
> >
> > -----Original Message-----
> > From: Dave Kant [mailto:[log in to unmask]]
> > Sent: 12 March 2003 12:54
> > To: [log in to unmask]
> > Subject: mount RPC : Unable to receive, error = Connection refused
> >
> >
> > Hello Everyone,
> >
> > I'm still having lots of mount errors between the CE and SE and haven't
> > found any solution to them. I've done some obvious checks and found that I
> > have no problem mounting filesystems from other machines! I've even re-done
> > the CE and SE installations!!
> >
> > Dave
> >
> > a) Both machines have the correct time
> > /etc/ntp.conf file has ntp server ntp0.qmul.ac.uk
> > /sbin/service xntpd restart
> >
> > b) /share mount point exists on CE
> > /flatfiles mount point exists on CE
> > /home mount point exists on SE
> >
> > c) /etc/exports file checked to make sure the CE and SE nodes can mount
> > and that permissions look ok (rw,no_root_squash)
> >
> > d) Attempted to mount manually
> > [root@hepbf2]mount -t nfs hepbf4.ph.qmul.ac.uk:/home /home
> > mount: RPC: Unable to receive; errno = Connection refused
> >
> > e) Attempted to mount a filesystem from another machine
> > YES...THIS WORKS on BOTH the CE and SE machines.
> >
> > [root@hepbf4 /tmp]# mount -t nfs hepbf1.ph.qmul.ac.uk:/mnt/disk2 /tmp/home
> > [root@hepbf4 /tmp]# df
> > Filesystem 1k-blocks Used Available Use% Mounted on
> > /dev/hda1 10080488 6482912 3085508 68% /
> > /dev/hda3 1517952 84 1440756 0% /share
> > /dev/hda4 16911576 24600 16027904 0% /home
> > heplcfg.ph.qmul.ac.uk:/opt/local/linux/6.2
> > 26011480 6097644 18592492 25%
> > /export/local/linux/6.2
> > hepbf1.ph.qmul.ac.uk:/mnt/disk2
> > 18808976 6405608 12212276 34% /tmp/home
> >
> >
> > [root@hepbf2 /root]# mount -t nfs hepbf1.ph.qmul.ac.uk:/mnt/disk2 /tmp/home
> >
> > [root@hepbf2 /root]# df
> > Filesystem 1k-blocks Used Available Use% Mounted on
> > /dev/hda1 8064272 1276216 6378404 17% /
> > /dev/hda3 1011960 16876 943676 2% /var
> > /dev/hda4 19433900 64 18446644 0% /flatfiles
> > heplcfg.ph.qmul.ac.uk:/opt/local/linux/6.2
> > 26011480 6097644 18592492 25%
> > /export/local/linux/6.2
> > hepbf1.ph.qmul.ac.uk:/mnt/disk2
> > 18808976 6405600 12212284 34% /tmp/home
> >
> >
> > f) banged my head against a wall
> > No..Didn't help :-(
> >
> >
> > #######################
> > LOOKING AT NFS DAEMONS
> > #######################
> >
> > On the CE
> > ==========
> > [root@hepbf4 /root]# /sbin/service nfs stop
> > Shutting down NFS mountd: [ OK ]
> > Shutting down NFS daemon: [ OK ]
> > Shutting down NFS services: [ OK ]
> > Shutting down NFS quotas: [ OK ]
> >
> > [root@hepbf4 /root]# /sbin/service nfs start
> > Starting NFS services: [ OK ]
> > Starting NFS quotas: [ OK ]
> > Starting NFS mountd: [ OK ]
> > Starting NFS daemon: [ OK ]
> >
> > On the SE
> > ===========
> > [root@hepbf2 /root]# /sbin/service nfs stop
> > Shutting down NFS mountd: [ OK ]
> > Shutting down NFS daemon: [ OK ]
> > Shutting down NFS services: [ OK ]
> > Shutting down NFS quotas: [ OK ]
> >
> > [root@hepbf2 /root]# /sbin/service nfs start
> > Starting NFS services: [ OK ]
> > Starting NFS quotas: [ OK ]
> > Starting NFS mountd: [ OK ]
> > Starting NFS daemon:
> >
> >
> > ############################
> > ## LOOKING AT /ETC/EXPORTS
> > ############################
> >
> > On CE
> > =====
> > [root@hepbf4 /root]# cat /etc/exports
> > /home *.ph.qmul.ac.uk(rw,no_root_squash)
> > /share/grid-security *.ph.qmul.ac.uk(rw,no_root_squash)
> >
> > On SE
> > ======
> > [root@hepbf2 /root]# cat /etc/exports
> > /flatfiles *.ph.qmul.ac.uk(rw,no_root_squash)
> >
> >
> > ##############################
> > ## WHATS REPORTED BY EXPORTFS?
> > ##############################
> >
> > On CE
> > =======
> > [root@hepbf4 /root]# exportfs
> > /share/grid-security
> > *.ph.qmul.ac.uk
> > /home *.ph.qmul.ac.uk
> >
> >
> > On SE
> > ========
> > [root@hepbf2 /root]# exportfs
> > /flatfiles *.ph.qmul.ac.uk
> >
> > #########################################
> > TRY MOUNTING THESE FILE SYSTEMS ########################################
> >
> > On CE
> > =====
> >
> > [root@hepbf4 /root]# /etc/obj/nfsmount run
> > mount: heplcfg.ph.qmul.ac.uk:/opt/local/linux/6.2 already mounted or
> > /export/local/linux/6.2 busy
> >
> > mount: according to mtab, heplcfg.ph.qmul.ac.uk:/opt/local/linux/6.2 is
> > already mounted on /export/local/linux/6.2
> >
> > mount: RPC: Unable to receive; errno = Connection refused
> >
> > [OK] nfsmount: Start
> >
> >
> > On SE
> > ======
> >
> > [root@hepbf2 /root]# /etc/obj/nfsmount run
> > mount: heplcfg.ph.qmul.ac.uk:/opt/local/linux/6.2 already mounted or
> > /export/local/linux/6.2 busy
> >
> > mount: according to mtab, heplcfg.ph.qmul.ac.uk:/opt/local/linux/6.2 is
> > already mounted on /export/local/linux/6.2
> >
> > mount: RPC: Unable to receive; errno = Connection refused
> > mount: RPC: Unable to receive; errno = Connection refused
> >
> > [OK] nfsmount: Start
> >
> >
> > #########################################
> > ## WHAT DOES MOUNT REPORT? #########################################
> >
> > On CE
> > =====
> > [root@hepbf4 /root]# mount
> > /dev/hda1 on / type ext2 (rw)
> > none on /proc type proc (rw)
> > none on /dev/pts type devpts (rw,gid=5,mode=620)
> > /dev/hda3 on /share type ext2 (rw)
> > /dev/hda4 on /home type ext2 (rw) heplcfg.ph.qmul.ac.uk:/opt/local/linux/6.2
> > on /export/local/linux/6.2 type nfs (ro,addr=138.37.51.119)
> >
> > On SE
> > ======
> > [root@hepbf2 /root]# mount
> > /dev/hda1 on / type ext2 (rw)
> > none on /proc type proc (rw)
> > none on /dev/pts type devpts (rw,gid=5,mode=620)
> > /dev/hda3 on /var type ext2 (rw)
> > /dev/hda4 on /flatfiles type ext2 (rw)
> > heplcfg.ph.qmul.ac.uk:/opt/local/linux/6.2 on /export/local/linux/6.2 type
> > nfs (ro,addr=138.37.51.119)
> >
>
> --
> --------------------------------------------------------------
> Department of Physics | Dr Dave Kant
> Queen Mary College | TEL/FaX: +44 (0)20 7882 5054
> Mile End Road London E1 4NS | e-mail : [log in to unmask]
> --------------------------------------------------------------
>
--
Steve Traylen
[log in to unmask]
http://www.gridpp.ac.uk/
|