If you have configured your SP with automounter support, you can use the automount daemon to provide automounting control for other file systems in your network. Each file system you want managed by automount requires an automount map file and an entry in the /etc/auto.master map file identifying the file system and its map file.
You must make sure the directory you are controlling with the automount daemon exists as a local directory on each processor and is not a symbolic link to another directory. Otherwise, the automount daemon will not start successfully.
The process to add additional file systems requires you to stop and start the automount daemon on all nodes. To do so, all activity with files and directories currently controlled by the automount daemon must be stopped. This includes all activity in users' home directories if the automount daemon is controlling the /u file system. You should plan to add all additional file systems to the automounter at a time when this would not adversely affect your system schedule or disrupt users.
The examples in this section illustrate the process for adding additional file systems and show how to provide automount support for automounting the /vol file system.
The steps in this process are:
The easiest way to create an automount map file is to copy an existing one and modify it for the new file system. The map can reside in any directory you like. The map for the /u file system is /etc/auto/maps/auto.u. It may be convenient for you to keep all of your automount map files in this maps directory.
cp /etc/auto/maps/auto.u /etc/auto/maps/auto.vol
inst.images images1:/inst.images techlib filesrv1:/share/& local $HOST:/afs/site.edu/share/local
This example results in the following mounts for AIX 4.3.0 and earlier levels:
This example results in the following mounts for AutoFS systems:
Add an entry to the automount master map file /etc/auto.master so that when the automount daemon is restarted it will also control the file system being added. The entry may contain default mount options for all the directories listed in the automount map file.
Add the following entry to /etc/auto.master:
/vol /etc/auto/maps/auto.vol -ro,soft,rsize=4096,wsize=4096
This will tell the automount daemon to use the /etc/auto/maps/auto.vol file when controlling access to directories within the /vol file system. The specified mount options will be used for each directory mount.
If you are using file collections to distribute your map files, add the new map so that it can be distributed and managed by the file collection programs. If you have placed your map file in the /etc/auto/maps directory, you do not need to do anything for this step. The user.admin file collection already distributes all files in the /etc/auto/maps directory. However, if you have not placed your map file in the /etc/auto/maps directory, you will need to add the map to a file collection that is resident on all the systems you require. The user.admin collection is a good choice because it is resident on the control workstation, boot-install servers, and all processor nodes. See SP file collection summary for a complete list of file collections provided by the SP.
Add auto.vol to the user.admin file collection so that it can be distributed to all boot-install servers and nodes. To do this, edit the file collection list file /var/sysman/sup/user.admin/list and add the following entries to request an upgrade of this new map and to refresh the daemon after the upgrade:
upgrade ./etc/auto/maps/auto.vol execute /etc/amd/refresh_amd (./etc/auto/maps/auto.vol)
If you are using file collections to distribute your map files, check to see if you have a scan file for the file collection containing the new map.
If you are using the user.admin file collection to distribute your map, check if the file /var/sysman/sup/user.admin/scan exists on the control workstation or any boot-install servers. If the scan file does exist, you will need to update it. On each processor that has a scan file for the collection, enter:
supper scan user.admin
You can wait for the scheduled supper update to update the file collection as specified in the crontabs file on each processor node. Or, if you want to distribute the map immediately, use a remote command to run the supper update command first on each boot-install server and then on each node.
To distribute the user.admin file collection with the new map file immediately, run the following command first on each boot-install server and then on each node:
supper update user.admin
In order for the automounter to recognize the update to the /etc/auto.master file and handle the new file system, the automounter must be stopped and restarted. The daemon must be stopped at a time when no users are accessing files or directories under automount control. Plan this step for a time that is not disruptive to your users.
The cleanest and safest way to stop and restart the automounter is to reboot all the systems where this new map will reside.
If it is not possible to reboot the systems, then do the following to stop the automount daemon on AIX older systems:
kill -term process_id
To stop AutoFS on systems with AIX 4.3.1 or later:
stopsrc --g autofs
Restart the automount daemon by running the following command:
/etc/auto/startauto