Skip to contentSkip to conversation

Autofs Negative cache

DISCUSSION Ondrej Valousek 2 participants 3 messages Sep 14, 2009 Kernel automounter

lore
Share & tools
lore
#0 lore raw

Hi Ian,

Can we expect someday autofs in RHEL-5 to have a working negative cache? Seems like it still does not work in the last update (5.4):

Sep 14 09:14:57 dorado_v1 automount[16281]: handle_packet_missing_indirect: token 132, name test, request pid 16183
Sep 14 09:14:57 dorado_v1 automount[16281]: attempting to mount entry /proj/test
Sep 14 09:14:57 dorado_v1 automount[16281]: file map not found
Sep 14 09:14:57 dorado_v1 automount[16281]: lookup_mount: lookup(yp): looking up test
Sep 14 09:14:57 dorado_v1 automount[16281]: ioctl_send_fail: token = 132
Sep 14 09:14:57 dorado_v1 automount[16281]: failed to mount /proj/test
Sep 14 09:14:58 dorado_v1 automount[16281]: handle_packet: type = 3
Sep 14 09:14:58 dorado_v1 automount[16281]: handle_packet_missing_indirect: token 133, name test, request pid 16183
Sep 14 09:14:58 dorado_v1 automount[16281]: attempting to mount entry /proj/test
Sep 14 09:14:58 dorado_v1 automount[16281]: file map not found
Sep 14 09:14:58 dorado_v1 automount[16281]: lookup_mount: lookup(yp): looking up test
Sep 14 09:14:58 dorado_v1 automount[16281]: ioctl_send_fail: token = 133
Sep 14 09:14:58 dorado_v1 automount[16281]: handle_packet: type = 3
Sep 14 09:14:58 dorado_v1 automount[16281]: handle_packet_missing_indirect: token 134, name test, request pid 16183
Sep 14 09:14:58 dorado_v1 automount[16281]: failed to mount /proj/test
Sep 14 09:14:58 dorado_v1 automount[16281]: attempting to mount entry /proj/test
Sep 14 09:14:58 dorado_v1 automount[16281]: file map not found
Sep 14 09:14:58 dorado_v1 automount[16281]: lookup_mount: lookup(yp): looking up test
Sep 14 09:14:58 dorado_v1 automount[16281]: ioctl_send_fail: token = 134
Sep 14 09:14:58 dorado_v1 automount[16281]: failed to mount /proj/test
Sep 14 09:14:58 dorado_v1 automount[16281]: handle_packet: type = 3
Sep 14 09:14:58 dorado_v1 automount[16281]: handle_packet_missing_indirect: token 135, name test, request pid 16183

Thanks,
Ondrej

maintainer
#1 lore raw
Quoted 4 lines · Ondrej Valousek

Hi Ian,

Can we expect someday autofs in RHEL-5 to have a working negative cache? Seems like it still does not work in the last update (5.4):

You'll need to be a bit more specific about what is wrong.

What is your impression of what is actually happening below?

Be aware that the negative caching cannot be done in the 2.6 kernel module so we will always get lookups coming to the daemon. Also, some things such as "cd" always cause multiple call backs so we will see multiple requests although the actual map lookup and mount attempt should be eliminated. Are you saying that maybe I'm checking too late during the call back?

Quoted 41 lines
Sep 14 09:14:57 dorado_v1 automount[16281]:
handle_packet_missing_indirect: token 132, name test, request pid 16183
Sep 14 09:14:57 dorado_v1 automount[16281]: attempting to mount entry
/proj/test
Sep 14 09:14:57 dorado_v1 automount[16281]: file map not found
Sep 14 09:14:57 dorado_v1 automount[16281]: lookup_mount: lookup(yp):
looking up test
Sep 14 09:14:57 dorado_v1 automount[16281]: ioctl_send_fail: token = 132
Sep 14 09:14:57 dorado_v1 automount[16281]: failed to mount /proj/test
Sep 14 09:14:58 dorado_v1 automount[16281]: handle_packet: type = 3
Sep 14 09:14:58 dorado_v1 automount[16281]:
handle_packet_missing_indirect: token 133, name test, request pid 16183
Sep 14 09:14:58 dorado_v1 automount[16281]: attempting to mount entry
/proj/test
Sep 14 09:14:58 dorado_v1 automount[16281]: file map not found
Sep 14 09:14:58 dorado_v1 automount[16281]: lookup_mount: lookup(yp):
looking up test
Sep 14 09:14:58 dorado_v1 automount[16281]: ioctl_send_fail: token = 133
Sep 14 09:14:58 dorado_v1 automount[16281]: handle_packet: type = 3
Sep 14 09:14:58 dorado_v1 automount[16281]:
handle_packet_missing_indirect: token 134, name test, request pid 16183
Sep 14 09:14:58 dorado_v1 automount[16281]: failed to mount /proj/test
Sep 14 09:14:58 dorado_v1 automount[16281]: attempting to mount entry
/proj/test
Sep 14 09:14:58 dorado_v1 automount[16281]: file map not found
Sep 14 09:14:58 dorado_v1 automount[16281]: lookup_mount: lookup(yp):
looking up test
Sep 14 09:14:58 dorado_v1 automount[16281]: ioctl_send_fail: token = 134
Sep 14 09:14:58 dorado_v1 automount[16281]: failed to mount /proj/test
Sep 14 09:14:58 dorado_v1 automount[16281]: handle_packet: type = 3
Sep 14 09:14:58 dorado_v1 automount[16281]:

handle_packet_missing_indirect: token 135, name test, request pid 16183

Thanks,
Ondrej

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

#2 lore raw
Quoted 3 lines

You'll need to be a bit more specific about what is wrong.

Ok, my fault - I thought autofs would say something like "negative cache hit" if the key is found in the negative cache, After more detailed log inspection I could see that the actual mount requests are suppressed by the negative caching. Sorry for the noise....

Ondrej