
SCSxx05/SCSxx20 User Guide 8: Commands
8-15
To mount a file system at boot time, the /etc/fstab file must have an entry that is
associated with the directory to mount. Following is an example of how to use
this facility to automatically mount an NFS file on the SCS.
In /etc/fstab the following entry must be present:
/dev/device /dir/to/mount ftype parameters fs_freq fs_passno
where
/dev/device
The device to be mounted. In the case of mounting an NFS
file system, the entry should be in the form of
server name:/dir/exported, where server name is the
name of the NFS file server, and the /dir/exported is the
exported directory found on the NFS server.
/dir/to/mount
The location at which the file system should be mounted on
the SCS. This directory has to be defined on the SCS, or it
will not work.
ftype
The file system type. For an NFS-mounted file system, use
nfs.
parameters
These are the parameters that are passed to the mount
command. They are in a comma-delimited format.
fs_freq
This is used by dump to determine whether a file system
needs to be dumped.
fs_passno
The fsck program uses this to determine the order to check
disks at boot time.
An example of an entry in /etc/fstab is as follows:
erh62:/export/var/test /var/test nfs rw,/jointfilesconvert/254244/bg,intr,soft 0 0
To manually test whether the system will automatically mount a file system at
boot time, enter the following command to manually mount the file:
mount –a
This command reads the /etc/fstab file and mounts all of the entries in the file
that are not already mounted. Once the system verifies the /etc/fstab file, you
must configure the SCS to have the portmap service and the netfs script
executed when the system boots.
To do this, execute the chkconfig command for both. The following commands
configure the SCS:
chkconfig –add portmap
chkconfig –add netfs
The system is now configured to start the portmap service and make sure the
NFS file system is mounted when the system boots.
Mounting File Systems Dynamically Using autofs
autofs is a kernel module that allows the SCS to dynamically mount file systems
only when needed. An example would be to have all of the user’s home
directories on an NFS-mounted disk. When the user logs into the SCS, the
system immediately mounts the user’s directory instead of at boot.
Comentários a estes Manuais