Okay if you want to mount mount -F nfs linxnet:/export/home/server to /mnt/sum then you want a line in the auto_direct file like this:
plus any options you may need to add.
The auto_master file lists all the other active automount tables.
So if you wanted a lot of different mounts under /mnt then you could make a new table call auto_mnt and add it into auto_direct:
Then the mount I mentioned above would go into auto_mnt as:
All this applies to the machine you want to NFS mount to, only the /etc/fstab file needs configuring on the NFS server.
Last edited by TonyFullerMalv; 03-24-2009 at 05:49 PM..
There are many servers and their directory structer should be exactly the same. To check the directory path for all servers, I wrote a script.
#! /bin/ksh
ARRAY_DIRECTORIES="/c/dev/custom/bin"
ARRAY_DIRECTORIES="/c/dev/db/custom/src"
ARRAY_ENV="remoteName200"
ARRAY_ENV="remoteName201"... (2 Replies)
I have the below script to check whether directory is exist or not , now I sure the directory /abc NOT exist , but when run the script , it still pop the result is "the directory exist" , could suggest what is wrong ? thx
ll -d /abc > /dev/null 2>&1
if
then
echo "the directory exist !!"
... (7 Replies)
Hi ALL.
Can anyone could help me.
Have you had a chance to experienced that when you list (ls) a directory from ordinary execution of command, you couldn't see the directory.
However, when you list it from the directory filename itself or even changing to directory (cd), it will show to you... (9 Replies)
Hi,
I know how to use the test command ( ...) to find a single given name file.
However, I have a case in which I have a directory with one file and one sub-directory. I know that the file starts with "fub".
The command doesn't work if i call the file "fub*" as it doesn't understand I meant a... (2 Replies)
HI folks,
can any one tell me how to check whether the file is existed in a directory or not .
let me tell you my requirement : if the file is existed i should display a one message or else i have to send a mail ..
i have the mail logic .. but I'm failed to check file existence .. please... (5 Replies)
Hi,
Im trying to add some validation into my shell script code that basically checks whether a directory exists before SFTP'ing a file to it. If the directory exists then it will add the file, if not then it should return some kind of message. This is the code I have written so far but with no... (1 Reply)
I'm brand new to AIX and I looked up how to print this file and it was working but now I'm not able to do it all of a sudden. the file name is rom1.txt so this is what i wrote in the command line and I know I'm in the right directory. In bold is what I seem to be messing up with.
prod @ root... (3 Replies)
Discussion started by: Dark0Prince
3 Replies
LEARN ABOUT X11R4
nfsmount.conf
NFSMOUNT.CONF(5) File Formats Manual NFSMOUNT.CONF(5)NAME
nfsmount.conf - Configuration file for NFS mounts
SYNOPSIS
Configuration file for NFS mounts that allows options to be set globally, per server or per mount point.
DESCRIPTION
The configuration file is made up of multiple sections followed by variables associated with that section. A section is defined by a
string enclosed by [ and ] branches. Variables are assignment statements that assign values to particular variables using the = operator,
as in Proto=Tcp. Sections are broken up into three basic categories: Global options, Server options and Mount Point options.
[ NFSMount_Global_Options ] - This statically named section defines all of the global mount options that can be applied to every NFS mount.
[ Server "Server_Name" ] - This section defines all the mount options that should be used on mounts to a particular NFS server. The
"Server_Name" strings needs to be surrounded by '"' and be an exact match of the server name used in the mount command.
[ MountPoint "Mount_Point" ] - This section defines all the mount options that should be used on a particular mount point. The
"Mount_Point" string needs to be surrounded by '"' and be an exact match of the mount point used in the mount command.
EXAMPLES
These are some example lines of how sections and variables are defined in the configuration file.
[ NFSMount_Global_Options ]
Proto=Tcp
The TCP protocol will be used on every NFS mount.
[ Server "nfsserver.foo.com" ]
rsize=32k
wsize=32k
A 33k (32768 bytes) block size will be used as the read and write size on all mounts to the 'nfsserver.foo.com' server.
[ MountPoint "/export/home" ]
Background=True
All mounts to the '/export/home' export will be performed in the background (i.e. done asynchronously).
FILES
/etc/nfsmount.conf
Default NFS mount configuration file
SEE ALSO nfs(5), mount(8),
9 Mar 2008 NFSMOUNT.CONF(5)