🗣️ Foreword
"automount --foreground --dont-check-daemon" has been already executed ,then run "automount --timeout xxx /etc/auto.mnt01" to change expire time value,but it seemed that new expire time dose not work.
👻 Brief Description
FIRST STEP: set on a server:
1.yum install nfs-utils rpcbind net-tools -y
2.mkdir -p /shared/{a,b}
3.vi /etc/exports
/shared *(rw,sync,no_root_squash)
4.systemctl stop firewalld
systemctl restart rpcbind
systemctl restart nfs
SECOND STEP: set on a client:
1.yum install autofs -y
2.vi /etc/auto.master
+auto.master
/mnt01 /etc/auto.mnt01
3.vi /etc/auto.mnt01
nfs -rw,soft,intr 172.168.130.72:/shared
the ip address 172.168.130.72 is the server's ip
4.systemctl stop firewalld
5.systemctl restart autofs
6.cd /mnt01/nfs
Run command 'cd /mnt01/nfs',we get the server's shared folder's content.wait about 5 minutes (timeout value set in /etc/autofs.conf),system while do unmount automatically.
THIRD STEP:
execute command 'automount --timeout 30 /etc/auto.mnt01' ,change expire time from 5 minutus to 30 secondes .but it seems dosen't work.
🥞 Cookbook version
autofs-5.1.4
👩🍳 Chef-Infra Version
Version of chef-client in your environment.
🎩 Platform details
Operating system distribution and release version. Cloud provider if running in the cloud.
openEuler release 1.0
Steps To Reproduce
Steps to reproduce the behavior:
FIRST STEP: set on a server:
1.yum install nfs-utils rpcbind net-tools -y
2.mkdir -p /shared/{a,b}
3.vi /etc/exports
/shared *(rw,sync,no_root_squash)
4.systemctl stop firewalld
systemctl restart rpcbind
systemctl restart nfs
SECOND STEP: set on a client:
1.yum install autofs -y
2.vi /etc/auto.master
+auto.master
/mnt01 /etc/auto.mnt01
3.vi /etc/auto.mnt01
nfs -rw,soft,intr 172.168.130.72:/shared
the ip address 172.168.130.72 is the server's ip
4.systemctl stop firewalld
5.systemctl restart autofs
6.cd /mnt01/nfs
Run command 'cd /mnt01/nfs',we get the server's shared folder's content.wait about 5 minutes (timeout value set in /etc/autofs.conf),system while do unmount automatically.
THIRD STEP:
execute command 'automount --timeout 30 /etc/auto.mnt01' ,change expire time from 5 minutus to 30 secondes .but it seems dosen't work.
🚓 Expected behavior
A clear and concise description of what you expected to happen.
when execute command 'automount --timeout 30 /etc/auto.mnt01' ,when we dose not do any operations on mounted folder /mnt01/nfs, unmount will be triggerd in 30 secondes ,but also in 5 minuts
➕ Additional context
Add any other context about the problem here. e.g. related issues or existing pull requests.