autofs reports "invalid path supplied for cmd(xxxx)" when restarting service with busy directories

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 8
    • autofs-5.1.4-74.el8 and later

Issue

  • Below messages are observed with active restart or start of autofs service, when there are busy mount(s).

    [...] autofs4:pid:xxxx:validate_dev_ioctl: invalid path supplied for cmd(0xc018937e)
    [...] autofs4:pid:xxxx:validate_dev_ioctl: invalid path supplied for cmd(0xc018937e)
    

Resolution

  • This issue has been tracked with Bug 2148872 and closed with ERRATA RHBA-2023:2970.
    Please update autofs to autofs-5.1.4-93.el8.

Diagnostic Steps

  • Restart the autofs service when mounts are busy.
systemctl stop autofs
systemctl start autofs
  • Status of autofs :
● autofs.service - Automounts filesystems on demand
   Loaded: loaded (/usr/lib/systemd/system/autofs.service; bad; vendor preset: disabled)
   Active: active (running) since Tue 2022-11-22 06:29:22 EST; 3s ago
 Main PID: 513571 (automount)
    Tasks: 5 (limit: 2756)
   Memory: 13.9M
   CGroup: /system.slice/autofs.service
           └─513571 /usr/sbin/automount --systemd-service --dont-check-daemon


[1]: Started Automounts filesystems on demand.
[...]: tree_mapent_mount_offset: mount offset /net/x.x.x.x/data_06/1data-sap_>
[...]: remount_active_mount: trying to re-connect to mount /net/x.x.x.x/data>
[...]: mounted offset on /net/x.x.x.x/data_06/1data-sap_RR14798>
[...]: remount_active_mount: re-connected to mount /net/x.x.x.x/data_06/1818>
[...]: re-connected to /net/x.x.x.x/data_06
[...]: remount_active_mount: re-connected to mount /net/x.x.x.x/data_06
[...]: re-connected to /net/x.x.x.x
[...]: remount_active_mount: re-connected to mount /net
[...]: st_ready: st_ready(): state = 0 path /net
  • Check the dmesg logs :
[17291625.396116] Key type dns_resolver registered
[17291625.665595] NFS: Registering the id_resolver key type
[17291625.666750] Key type id_resolver registered
[17291625.667765] Key type id_legacy registered
[17617028.264150] autofs4:pid:513543:validate_dev_ioctl: invalid path supplied for cmd(0xc018937e)
[17617028.283659] autofs4:pid:513543:validate_dev_ioctl: invalid path supplied for cmd(0xc018937e)

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments