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