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
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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
2. UNIX for Advanced & Expert Users
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
3. UNIX for Advanced & Expert Users
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
4. UNIX for Dummies Questions & Answers
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
5. AIX
Hi All,
Please help. I need an advise on how to Unconfigure automount please.
Many Thanks. (2 Replies)
Discussion started by: EngnrRG
2 Replies
6. Red Hat
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
7. Shell Programming and Scripting
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
8. Red Hat
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
9. Red Hat
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
10. AIX
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
LEARN ABOUT NETBSD
fincore
FINCORE(1) BSD General Commands Manual FINCORE(1)
NAME
fincore -- query in-core status of file pages
SYNOPSIS
fincore [-qs] file ...
DESCRIPTION
The fincore utility queries and displays in-core status of specified files.
Note that the result can already be stale when being output due to other activities in the system. Thus it should be used only for advisory
purposes.
The fincore utility accepts the following options.
-q The quiet mode. Outputs nothing unless the file has in-core pages.
-s The summary mode. Only shows number of pages.
EXAMPLES
The following example shows that /bin/cat and /bin/cp are fully cached in-core while the other executables are not in-core. numbers shown in
the default output are page indexes in the file of each in-core pages.
% fincore /bin/c*
/bin/cat: 0 1 2 3
/bin/chio:
/bin/chmod:
/bin/cp: 0 1 2 3 4 5
/bin/cpio:
/bin/csh:
% fincore -s /bin/c*
/bin/cat: 4 / 4 in-core pages (100.00%)
/bin/chio: 0 / 5 in-core pages (0.00%)
/bin/chmod: 0 / 3 in-core pages (0.00%)
/bin/cp: 6 / 6 in-core pages (100.00%)
/bin/cpio: 0 / 36 in-core pages (0.00%)
/bin/csh: 0 / 41 in-core pages (0.00%)
SEE ALSO
mincore(2)
AUTHORS
The fincore utility is written by YAMAMOTO Takashi.
CAVEATS
The concept of page cache is an implementation detail of the kernel. The fincore utility works using some assumptions on the current imple-
mentation. Thus it might stop working in a future version of NetBSD.
BUGS
The amount of CPU time the current implementation of fincore utility would take is roughly proportional to the file sizes. Ideally it should
be proportional to the number of in-core pages.
BSD
January 5, 2012 BSD