Skip to contentSkip to conversation

autofs and smb shares

DISCUSSION Amodiovalerio [Hypo] Verde 2 participants 2 messages Mar 31, 2004 – Apr 2, 2004 Kernel automounter

lore
Share & tools
lore
#0 lore raw

Hi,

I have a problem with autofs ( well I think is autofs related ).

Using fedora, kernel 2.6.4, autofs 4.1.1.

Set up a smb share and it works quite fine mounting and unmounting it.

The problem is that autofs seems not be able to umount the share when the share became unavailable ( like stopping sharing the directory ).

When I'm in the share, and share goes away, autofs won't umount it, also if timeout is expired.

(with previos version of autofs, I could see in message log all the timeouts, so I assume it will try to umount the share).

If I do an ls it just give me a "ls: testdir: Invalid slot" until I manually umount the share. ( I'm able to umount the share manually without forcing and without any error )

When I umount the share manually autofs will continue to works regular, so if I try to go in the share dir, and the share is not available, it just give me a "-bash: cd: testdir: No such file or directory", until the share became available and it mount.

Could someone help me to understand this behaviour ?

Amodiovalerio [Hypo] Verde

maintainer
#1 lore raw
Quoted 10 lines · Amodiovalerio [Hypo] Verde

Hi,

I have a problem with autofs ( well I think is autofs related ).

Using fedora, kernel 2.6.4, autofs 4.1.1.

Set up a smb share and it works quite fine mounting and unmounting it.

The problem is that autofs seems not be able to umount the share when the share became unavailable ( like stopping sharing the directory ).

But autofs doesn't know that you have stopped sharing it. Does smbfs know?

Quoted 3 lines

When I'm in the share, and share goes away, autofs won't umount it, also if timeout is expired.

And when your'e "in" the share it's busy as far as autofs is concerned. If that's what you mean?

Quoted 3 lines

(with previos version of autofs, I could see in message log all the timeouts, so I assume it will try to umount the share).

Don't understand this.
You can choose what you see in the log with "--verbose" or "--debug".

Quoted 4 lines

If I do an ls it just give me a "ls: testdir: Invalid slot" until I manually umount the share. ( I'm able to umount the share manually without forcing and without any error )

Is the mount point busy or not?
If it's not then autofs should umount it after the timeout.

Ian