Solved

SunOs and Solaris NFS mount problem

Posted on 1997-04-25
3
1,579 Views
Last Modified: 2013-12-16
I'm trying to remount a directory from a SunOs 4.1.3 machine
onto a machine running Solaris 2.5.1
I used to be mounted fine, but since then I'm encountering the following error:
mount xxx.xxx.xxx.xxx:/home/public /public
nfs mount: xxx.xxx.xxx.xxx:/home/public: access denied

I've already tried running exportfs -a and ensured that
the client's ip is present in the /etc/exports file

Any help ?
0
Comment
Question by:chrisvo
  • 2
3 Comments
 
LVL 2

Expert Comment

by:pxh
ID: 1812082
sounds like a easy thing to do. I have exactly the same done here. we would need to look more careful into details and also I do not really understand how to understand

"...used to be mounted fine, but since then I'm encountering the following ..."

Do you mean you could ever mount it that very way? What is "since then"?

For now I can only advice you to enter "exportfs" (without options) on the SunOS machine and also let me know the output. Also inform me how you presicely tried to do the mounting on the Solaris system.

I notice one difference between your and my approach: I use hostnames instead of IP numbers. It is more comfortable, but I wouldn't think that it is resposible for your prob. until I lokked into it.

Peter

0
 
LVL 4

Accepted Solution

by:
jlms earned 50 total points
ID: 1812083
Solaris 2.5 (and I guess 2.5.1) start by default the automounter, this makes the directory /home not accesible (check the permissions and you will notice that they are 555 meaning nobody can write to it).

So follow this steps:
-Stop the automounter:
/etc/init.d/autofs stop
-Check that you can mount the remote disks.
-Change the name of the script that starts the automounter in /etc/rc2.d (I don't have the name now, but is something like Snnautofs where nn is a number of two digits, tha only thing you hvae to do is rename it so it does not begin with "S").

  Another option could be to configure the automounter to handle the directory you want to mount, but if it is the only one you need to sure you should not bother (unless you want to learn a little bit more of Solars :) ).
0
 
LVL 4

Expert Comment

by:jlms
ID: 1812084
If the automounter is really the problem, the advice to modify a /etc/rc2.d file may still not be the best, just imagine the automounter IS needed...

It is really better to comment out the line

/home           auto_home

in /etc/auto_master. Then type "automount" to make it reread the config and then also enter "umount /home"!

That should do the job on the Solaris 2.x system.

However, let's carefully read the question! Chrisvo is trying to mount to /public on the Solaris 2.5.1 system  and it should be irrelevant that he has a path /home/public on the SunOS 4.1.3 system.

I would also like to add that the automounter is not much more difficult to configure as the vfstab file and I would rather recommand to use it. However only if a manual mounting has been shown to work.

JMHO

Peter (pxh@mpe-garching.mpg.de)

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now