Hi all
I have installed Enhanced AutoFS on one of my servers running HP-UX 11.11. I configured the /etc/auto.direct.cifs map file as per the admin guide. The CIFS filesystem mounts correctly using autofs, but when the CIFS filesystem is unmounted after the inactivity period has expired, the filesystem is not unmounted correctly.
Here is the output which I got in the trace file /var/adm/automountd.log after switching on tracing for autofs:
Jun 25 14:02:43 (thread 21) UNMOUNT REQUEST:
Jun 25 14:02:43 (thread 21) dev=4300000f rdev=0 direct
Jun 25 14:02:43 (thread 21) get_devid(): Got devid 0x40000003 from mnttab file
Jun 25 14:02:43 (thread 21) get_devid(): Got devid 0x40000001 from mnttab file
Jun 25 14:02:43 (thread 21) get_devid(): Got devid 0x40000008 from mnttab file
Jun 25 14:02:43 (thread 21) get_devid(): Got devid 0x40000007 from mnttab file
Jun 25 14:02:43 (thread 21) get_devid(): Got devid 0x40000009 from mnttab file
Jun 25 14:02:43 (thread 21) get_devid(): Got devid 0x40000004 from mnttab file
Jun 25 14:02:43 (thread 21) get_devid(): Got devid 0x4000000a from mnttab file
Jun 25 14:02:43 (thread 21) get_devid(): Got devid 0x40000006 from mnttab file
Jun 25 14:02:43 (thread 21) get_devid(): Got devid 0x40000005 from mnttab file
Jun 25 14:02:43 (thread 21) get_devid(): Got devid 0x43000000 from mnttab file
Jun 25 14:02:43 (thread 21) get_devid(): Got devid 0x43000001 from mnttab file
Jun 25 14:02:43 (thread 21) get_devid(): Got devid 0x43000002 from mnttab file
Jun 25 14:02:43 (thread 21) get_devid(): Got devid 0x43000003 from mnttab file
Jun 25 14:02:43 (thread 21) get_devid(): Got devid 0x4300000e from mnttab file
Jun 25 14:02:43 (thread 21) get_devid(): Got devid 0x4300000f from mnttab file
Jun 25 14:02:43 (thread 21) unmount /FTP/CIFS OK
Jun 25 14:02:43 (thread 21) UNMOUNT REPLY : status=0
But the cifslist command still shows the filesystem as mounted:
=========================================================================
server dmc_plz_csfs01:
=========================================================================
Remote Username: CIFSGUEST Local Username: root
Share: \\DMC_PLZ_CSFS01\CIFS
rw /FTP/CIFS
The problem is that when the CIFS filesystem needs to be mounted the next time a user accesses the /FTP/CIFS mountpoint and does an ll the output is:
. not found
The entry in the cifs trace is as follows
Successful initial mount:
06-25 15:11:45.991 [2] ipcserverstub: connectServer(0,3): dmc_plz_csfs01 (null s
tring) (null string) -1 0
06-25 15:11:45.991 [0] Establishing connection to server dmc_plz_csfs01: connect
Timeout: 5000, requestTimeout: 60000
06-25 15:11:45.992 [2] ipcserverstub: connectUser(0,3): dmc_plz_csfs01 CIFSGUEST
0 0
06-25 15:11:45.993 [2] user: setting up session with encrypted password
06-25 15:11:45.994 [10] cifs trace: cifsSessionSetup()
06-25 15:11:45.994 [10] smb: startCommand: 4
06-25 15:11:46.009 [10] cifs trace: [4] rval = 0/0
06-25 15:11:46.009 [0] Server OS: Windows NT 4.0
06-25 15:11:46.010 [0] Server LM: NT LAN Manager 4.0
06-25 15:11:46.010 [2] userConnectProc: smbUsername=CIFSGUEST, unixUid=0, cstatu
s=2, server=dmc_plz_csfs01, smbUid=2049
06-25 15:11:46.011 [2] ipcserverstub: connectShare(0,3): dmc_plz_csfs01 \\dmc_pl
z_csfs01\CIFS (null string)
06-25 15:11:46.011 [2] ipcserverstub: mountShare(0,3): dmc_plz_csfs01 \\dmc_plz_
csfs01\CIFS /FTP/CIFS
06-25 15:11:46.019 [2] ipcserver: closing client connection
Failing second mount:
06-25 15:11:47.735 [2] ipcserver: accepted client connection
06-25 15:11:47.737 [2] ipcserverstub: connectServer(0,3): dmc_plz_csfs01 (null s
tring) (null string) -1 0
06-25 15:11:47.738 [0] Establishing connection to server dmc_plz_csfs01: connect
Timeout: 5000, requestTimeout: 60000
06-25 15:11:47.738 [2] ipcserverstub: connectUser(0,3): dmc_plz_csfs01 CIFSGUEST
0 0
06-25 15:11:47.739 [2] ipcserverstub: connectShare(0,3): dmc_plz_csfs01 \\dmc_pl
z_csfs01\CIFS (null string)
06-25 15:11:47.740 [2] ipcserverstub: mountShare(0,3): dmc_plz_csfs01 \\dmc_plz_
csfs01\CIFS /FTP/CIFS
Anybody know what the problem could be?