I've added a new mount option to an existing map auto_*. I've tried:
svcadm -v restart svc:/system/filesystem/autofs:default
svcadm -v refresh svc:/system/filesystem/autofs:default
but when checking via "mount," it still shows it's mounted before the service restart/refresh and the newly added option is not shown in the output. /etc/mnttab does not show either.
Also this is within a non-global Solaris zone if it makes a difference.
How do I make sure automount picks up the new mount options right away?
Edited by: ACORCL on Feb 12, 2013 4:52 PM
Have you made configuration changes in /etc/auto_* files? For autofs to work you have do these config. and then try automount -v to see whether your req. files system is mounting. You have to restart the services once config changes are made.
mnttab shows file system mounted using /etc/vfstab.
Yes. I restarted/refresh autofs after making a change to auto_* file (adding "llock" option to an existing mount).
I just ran "automount -v" and its output shows that mount point is remounted. However, "mount" output shows
mount_point on NFS_share list_of_options_here on Tue Feb 12 08:47:32 2013 <== which is still 9 hours ago
From where I cannot find the "llock" mount option I added in auto_* file in the "list_of_options_here" above.
If you have any suggestions, please let me know.
Thanks for the replies.
Here is the auto_* file that was changed:
erp01 -rw,bg,vers=3,proto=tcp,hard,intr,rsize=32768,wsize=32768,llock filer:/vol/erp/&
I added the option "llock" and restarted also refreshed autofs service.
As for remounting, I thought I read it some where before that auto-mounted volumes should not be manually unmounted/remounted. Is it true?