Can't figure out how to automount with subdirectories


 
Thread Tools Search this Thread
Operating Systems Solaris Can't figure out how to automount with subdirectories
# 1  
Old 04-14-2009
Can't figure out how to automount with subdirectories

I want to be able to mount 3 directories. But two are a subdirectories of the first.

/opt/gnu sunpefs02:/export/home/sunpefs02-5/replication/8600finland/gnu
/opt/gnu/bin sunpefs02:/export/home/sunpefs02-5/replication/8600finland/gnu/bin-sparc-SunOS
/opt/gnu/lib sunpefs02:/export/home/sunpefs02-5/replication/8600finland/gnu/lib-sparc-SunOS

The problem I have is, I can only get /opt/gnu to work by itself, or /opt/gnu/bin and /opt/gnu/lib by themselves.

When I put all three, I get an error starting up the automounter that says there is a hierarachical problem.

How do I get all three to mount?
Smilie
# 2  
Old 04-15-2009
Sun OS verison? kernel patch level?
uname -a
cat /etc/release
cat /etc/vfstab
# 3  
Old 04-15-2009
This is the NFS rule...

We cannot export either a parent directory or a subdirectory of an already exported directory that resides within the same file system.If you intention is to export parent directory why do need one more export for directory which resided under parent directory?
# 4  
Old 04-15-2009
I was trying to mimic how our overseas group mounted the paths to some GNU tools, because we are replicating the environment at our site.

I found syntax that allows me to do what seems like a hierarchical mount, but maybe it isn't quite.

The syntax in my "auto_gnu" file goes like this.

gnu <path to remote share> /bin <path to remote bin share> /lib <path to remote lib share>

This is ALL on the same line. And it works!

The reason WHY this was done is because /gnu is where the top level gnu tools are, and "bin" is just an empty folder to use as a mount point. What they did at our remote site was use these environment variable options like "$CPU" and "$ARCH" (something like that - Look it up, it is part of the automount docs) such that the automounter will mount the bin directory based on the cpu and architecture. So, if you login to a sparc, it automounts sparc-bin to /gnu/bin, if you login to linux, it automounts linux-bin to the /gun/bin directory. So the directory structure looks the same from all architectures, and the automounter is determing which platform bin directory to mount to /gnu/bin.

It is very convoluted. I mainly wanted to learn about the automounter and try to get this pseudo hierarchical mount working, which I did with the above syntax.

Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Automount issue

Hi there, I have a strange problem, I have a NFS server running AIX 7.1 TL3 SP3, let's call it server A. I have another AIX 7.1 TL3 SP3 server, let's call it server B, that's automounting a filesystem from server A. When server B is automounting the filesystem from server A, I can't see any... (3 Replies)
Discussion started by: ce9888
3 Replies

2. Red Hat

Need help with automount.. is not working!!

When i export the directory where the data really is, i can specify which hosts can mount it. On the remote server i create a mount point directory and then mount it to the source servers directory (that has the data). I need to run my script on Server X , i would login there and type in the... (11 Replies)
Discussion started by: bkilaru
11 Replies

3. Red Hat

Automount in RHEL

Hello experts, On my RHEL box when i mount a nfs file system using autofs, the df -t shows the file system as nfs only. For which mounts does it report the filesystem as autofs. ?? I actually want to see the filesystem getting reported as autofs instead of nfs. Pls guide me I... (1 Reply)
Discussion started by: achak01
1 Replies

4. Shell Programming and Scripting

Help with change significant figure to normal figure command

Hi, Below is my input file: Long list of significant figure 1.757E-4 7.51E-3 5.634E-5 . . . Desired output file: 0.0001757 0.00751 0.00005634 . . . (10 Replies)
Discussion started by: perl_beginner
10 Replies

5. Red Hat

Automount through Autofs

I am trying to automount one of my NFS share to my client machine but it is not mounting here is the scenario : My server machine ip : 192.168.1.100 My client machine ip is : 192.168.1.102 on client machine i have configured the /etc/auto.master file : /share(My mount point) ... (0 Replies)
Discussion started by: Vaibhav.T
0 Replies

6. AIX

Help on Unconfiguring Automount

Hi All, Please help. I need an advise on how to Unconfigure automount please. Many Thanks. (2 Replies)
Discussion started by: EngnrRG
2 Replies

7. UNIX for Dummies Questions & Answers

automount question

Hello, I was reading about automounting on Solaris10 and faced with the following sentence: "When the automount daemon is initialized on the server, no exported directories are mounted by the clients." What does it mean? Could you please explain? What is "exported directories" ? Thanks (8 Replies)
Discussion started by: XNOR
8 Replies

8. UNIX for Advanced & Expert Users

AutoMount

Hi All How do I do a auto mount to a directory in a different unix server. I am using Solaris. Please advise!! TIA Jana (7 Replies)
Discussion started by: janavenki
7 Replies

9. UNIX for Advanced & Expert Users

Automount

My site has a few sun solaris server including out NIS server and NFS server on solaris machines. we also have few suse linux and redhat linux machine. All our home directory is on our NFS server(sun Solaris) and this is automounted through /etc/auto_master and /etc/auto_home this worked fine... (1 Reply)
Discussion started by: hassan2
1 Replies

10. UNIX for Advanced & Expert Users

automount

I install an external disk on my sun solaris 8 this went fine and I was able to access all filesystem on the disk. the new disk is mounted on /local then 6 hours later files under /local/files was 1 byte in size at the same time I received the following error message in... (4 Replies)
Discussion started by: hassan2
4 Replies
Login or Register to Ask a Question