Skip to contentSkip to conversation

expire after kill -HUP ?

DISCUSSION Donald Buczek 2 participants 5 messages Nov 30, 2013 – Dec 2, 2013 Kernel automounter

lore
Share & tools
lore
#0 lore raw

Hello,

autofs-5.0.8
kernel 3.8.2

I've noticed, that in our installation mounts stop expiring after we send the daemon a SIGHUP to notify it about map updates.
Debug log from the daemon seems to confirm that, the regular "st_expire: state 1 path... " messages no longer appear after the HUP is received and processed ("re-reading master map"...).

Maybe the signal goes to the st_queue_handler task?

Regards
Donald Buczek

Signature · 3 lines
Donald Buczek
[email protected]
Tel: +49 30 8413 1433
maintainer
#1 lore raw
Quoted 10 lines · Donald Buczek

Hello,

autofs-5.0.8
kernel 3.8.2

I've noticed, that in our installation mounts stop expiring after we send the daemon a SIGHUP to notify it about map updates.

I don't see that here.

Quoted 2 lines

Debug log from the daemon seems to confirm that, the regular "st_expire: state 1 path... " messages no longer appear after the HUP is received and processed ("re-reading master map"...).

There have been a couple of changes in that area, I'll have a look around. Can you give a bit more detail about the problem like:
does it happen the very first time every time.
are there specific changes that trigger the behaviour.
does it happen if no changes are actually made.
what sort of activity is happening when the problem occurs.

and a look at the log would probably be useful.

Quoted 1 line

Maybe the signal goes to the st_queue_handler task?

The signal goes to the main thread and the thread is responsible for adding tasks to the task queue as needed.

That's pretty much only for readmap and program exit, but alarms (which trigger the expire runs) are cleared and set at various places, mostly at the start and end of expire run.

Quoted 11 lines

Regards
Donald Buczek

Signature · 3 lines
Donald Buczek
[email protected]
Tel: +49 30 8413 1433
#2 lore raw

Hello,

sorry, I kept it short because I hoped, you might be able to reproduce it easily.

The output of http://owww.molgen.mpg.de/~buczek/autofs-demo/AAA_test.sh is in http://owww.molgen.mpg.de/~buczek/autofs-demo/AAA_test.log. Clearly the expiry stops after the first HUP. Maps not changed. The two config files are also in http://owww.molgen.mpg.de/~buczek/autofs-demo/.

Thank you !
Donald

Am 01.12.2013 08:21, schrieb Ian Kent:

Quoted 38 lines
Quoted 9 lines · Donald Buczek

Hello,

autofs-5.0.8
kernel 3.8.2

I've noticed, that in our installation mounts stop expiring after we send the daemon a SIGHUP to notify it about map updates.

I don't see that here.

Quoted 2 lines

Debug log from the daemon seems to confirm that, the regular "st_expire: state 1 path... " messages no longer appear after the HUP is received and processed ("re-reading master map"...).

There have been a couple of changes in that area, I'll have a look around. Can you give a bit more detail about the problem like:
does it happen the very first time every time.
are there specific changes that trigger the behaviour.
does it happen if no changes are actually made.
what sort of activity is happening when the problem occurs.

and a look at the log would probably be useful.

Quoted 1 line

Maybe the signal goes to the st_queue_handler task?

The signal goes to the main thread and the thread is responsible for adding tasks to the task queue as needed.

That's pretty much only for readmap and program exit, but alarms (which trigger the expire runs) are cleared and set at various places, mostly at the start and end of expire run.

Quoted 10 lines

Regards
Donald Buczek

Signature · 3 lines
Donald Buczek
[email protected]
Tel: +49 30 8413 1433
Signature · 3 lines
Donald Buczek
[email protected]
Tel: +49 30 8413 1433
maintainer
#3 lore raw
Quoted 9 lines · Donald Buczek

Hello,

sorry, I kept it short because I hoped, you might be able to reproduce it easily.

The output of http://owww.molgen.mpg.de/~buczek/autofs-demo/AAA_test.sh
is in http://owww.molgen.mpg.de/~buczek/autofs-demo/AAA_test.log.
Clearly the expiry stops after the first HUP. Maps not changed. The two config files are also in http://owww.molgen.mpg.de/~buczek/autofs-demo/.

Maybe I don't see it because I'm running with this patch ....
https://www.kernel.org/pub/linux/daemons/autofs/v5/patches-5.0.9/autofs-5.0.8-fix-task-manager-not-getting-signaled.patch

Can you give it a try please.

Quoted 45 lines

Thank you !
Donald

Am 01.12.2013 08:21, schrieb Ian Kent:

Quoted 38 lines
Quoted 9 lines · Donald Buczek

Hello,

autofs-5.0.8
kernel 3.8.2

I've noticed, that in our installation mounts stop expiring after we send the daemon a SIGHUP to notify it about map updates.

I don't see that here.

Quoted 2 lines

Debug log from the daemon seems to confirm that, the regular "st_expire: state 1 path... " messages no longer appear after the HUP is received and processed ("re-reading master map"...).

There have been a couple of changes in that area, I'll have a look around. Can you give a bit more detail about the problem like:
does it happen the very first time every time.
are there specific changes that trigger the behaviour.
does it happen if no changes are actually made.
what sort of activity is happening when the problem occurs.

and a look at the log would probably be useful.

Quoted 1 line

Maybe the signal goes to the st_queue_handler task?

The signal goes to the main thread and the thread is responsible for adding tasks to the task queue as needed.

That's pretty much only for readmap and program exit, but alarms (which trigger the expire runs) are cleared and set at various places, mostly at the start and end of expire run.

Quoted 10 lines

Regards
Donald Buczek

Signature · 3 lines
Donald Buczek
[email protected]
Tel: +49 30 8413 1433
#4 lore raw

Yeah, the patch fixed it. Thank you!

Donald

Quoted 58 lines · Ian Kent
Quoted 9 lines · Donald Buczek

Hello,

sorry, I kept it short because I hoped, you might be able to reproduce it easily.

The output of http://owww.molgen.mpg.de/~buczek/autofs-demo/AAA_test.sh
is in http://owww.molgen.mpg.de/~buczek/autofs-demo/AAA_test.log.
Clearly the expiry stops after the first HUP. Maps not changed. The two config files are also in http://owww.molgen.mpg.de/~buczek/autofs-demo/.

Maybe I don't see it because I'm running with this patch ....
https://www.kernel.org/pub/linux/daemons/autofs/v5/patches-5.0.9/autofs-5.0.8-fix-task-manager-not-getting-signaled.patch

Can you give it a try please.

Quoted 42 lines

Thank you !
Donald

Am 01.12.2013 08:21, schrieb Ian Kent:

Quoted 37 lines
Quoted 8 lines · Donald Buczek

Hello,

autofs-5.0.8
kernel 3.8.2

I've noticed, that in our installation mounts stop expiring after we send the daemon a SIGHUP to notify it about map updates.

I don't see that here.

Quoted 2 lines

Debug log from the daemon seems to confirm that, the regular "st_expire: state 1 path... " messages no longer appear after the HUP is received and processed ("re-reading master map"...).

There have been a couple of changes in that area, I'll have a look around. Can you give a bit more detail about the problem like:
does it happen the very first time every time.
are there specific changes that trigger the behaviour.
does it happen if no changes are actually made.
what sort of activity is happening when the problem occurs.

and a look at the log would probably be useful.

Quoted 1 line

Maybe the signal goes to the st_queue_handler task?

The signal goes to the main thread and the thread is responsible for adding tasks to the task queue as needed.

That's pretty much only for readmap and program exit, but alarms (which trigger the expire runs) are cleared and set at various places, mostly at the start and end of expire run.

Quoted 10 lines

Regards
Donald Buczek

Signature · 3 lines
Donald Buczek
[email protected]
Tel: +49 30 8413 1433
Signature · 3 lines
Donald Buczek
[email protected]
Tel: +49 30 8413 1433