Networking Forums

Networking Forums > Computer Networking > Linux Networking > autofs not unmounting nfsd mounts

Reply
Thread Tools Display Modes

autofs not unmounting nfsd mounts

 
 
Jack Snodgrass
Guest
Posts: n/a

 
      09-13-2006, 01:29 PM
I am trying to set up a NAS box that has several drives.
When they are not is use, I want to unmount them. I set up
an autofs entry and started autofs and everything work fine
on the nas box.

BUT if I have another box autofs mount the drive controlled
by the nas box, the drive on the nas box never gets unmounted
by autofs even though it's not being actively used.

For example I have
nas:/dev/sda3 in the auto.misc file as store.
on the nas box, I can ls /misc/store and have /dev/sda3
mounted automatically. after 60 seconds, it is unmounted.


Now... on web, I have in the auto.misc directory
store -type=nfs,rw nas:/misc/store

if I ls -lart /misc/store, the request is made to
nas:/misc/store and /dev/sda3 is mounted... everyting
is fine.

.... after 60 seconds, the web box unmounts /misc/store
and does not show it mounted... BUT... /dev/sda3 remains
mounted on the nas box... and never unmounts... no boxes
on the system are using it, so it should get unmounted...

the autofs process on the web box is making the autofs stuff
on the nas box think that it's active an it's not. The nas
box posts a message in the log:
authenticated unmount request from web.private.net:799 for /misc/store
(/misc/store)
but the device is never umounted by autofs....

Does this make sense to anyone... anyone have any ideas? I want
to be able to unmount the devices that are not being used and
spin them down to reduce heat / noise on my nas box.

Thanks - jack

--
D.A.M. - Mothers Against Dyslexia

see http://www.jacksnodgrass.com for my contact info.

jack - Grapevine/Richardson
 
Reply With Quote
 
 
 
 
Jack Snodgrass
Guest
Posts: n/a

 
      09-13-2006, 03:46 PM
On Wed, 13 Sep 2006 13:29:32 +0000, Jack Snodgrass wrote:

> I am trying to set up a NAS box that has several drives.
> When they are not is use, I want to unmount them. I set up
> an autofs entry and started autofs and everything work fine
> on the nas box.
>
> BUT if I have another box autofs mount the drive controlled
> by the nas box, the drive on the nas box never gets unmounted
> by autofs even though it's not being actively used.
>
> For example I have
> nas:/dev/sda3 in the auto.misc file as store.
> on the nas box, I can ls /misc/store and have /dev/sda3
> mounted automatically. after 60 seconds, it is unmounted.
>
>
> Now... on web, I have in the auto.misc directory
> store -type=nfs,rw nas:/misc/store
>
> if I ls -lart /misc/store, the request is made to
> nas:/misc/store and /dev/sda3 is mounted... everyting
> is fine.
>
> ... after 60 seconds, the web box unmounts /misc/store
> and does not show it mounted... BUT... /dev/sda3 remains
> mounted on the nas box... and never unmounts... no boxes
> on the system are using it, so it should get unmounted...
>
> the autofs process on the web box is making the autofs stuff
> on the nas box think that it's active an it's not. The nas
> box posts a message in the log:
> authenticated unmount request from web.private.net:799 for /misc/store
> (/misc/store)
> but the device is never umounted by autofs....
>
> Does this make sense to anyone... anyone have any ideas? I want
> to be able to unmount the devices that are not being used and
> spin them down to reduce heat / noise on my nas box.
>
> Thanks - jack
>


a bit of a follow up... my log shows:
Sep 13 09:21:36 nas mountd[1591]: authenticated mount request from fw.private.net:923 for /myth/store (/myth/store)
Sep 13 09:21:46 nas mountd[1591]: authenticated unmount request from fw.private.net:934 for /myth/store (/myth/store)
Sep 13 09:51:58 nas automount[2267]: rm_unwanted: /myth/store
Sep 13 09:51:58 nas automount[2267]: expired /myth/store

so it does look like it's working... but there is a 30 minute unmount
period and not a 60 second one like I have specified..... 30 minutes is
better than nothing, but I'd prefer the faster one.

jack

--
D.A.M. - Mothers Against Dyslexia

see http://www.jacksnodgrass.com for my contact info.

jack - Grapevine/Richardson
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS Mounts not visible Ignoramus14968 Linux Networking 5 03-10-2008 05:44 PM
Unmounting NFS directory when it is not available Ignoramus3938 Linux Networking 2 03-20-2007 03:22 AM
Unmounting NFS Server munish.nr@gmail.com Linux Networking 3 03-04-2006 01:05 PM
smbumount does not seem to be unmounting R Kannan Linux Networking 3 03-09-2005 10:15 PM
How to mount from Linux NFS client to Allegro NFSd vadiraj_kulkarni@mailcity.com Linux Networking 2 10-17-2003 12:50 PM



1 2 3 4 5 6 7 8 9 10 11