1834149 Members
2323 Online
110064 Solutions
New Discussion

Re: automount an cdrom

 
SOLVED
Go to solution
Stephan_K
HPE Pro

automount an cdrom

Hi to All,

I want to mount an cdrom via the new automounter (autofs) and it should be umounted after an short period.
I put this entry in /etc/auto.direct
/cdrom -fstype=cdfs,ro :/dev/dsk/c0t1d0
The mount of /cdrom works now. But the automatic umount takes several hours after using it.
Does someone have ideas ?

TIA.
Regards
Stephan
I am an HPE employee.
12 REPLIES 12
Pete Randall
Outstanding Contributor

Re: automount an cdrom

Stephan,

There's a -t option which specifies the duration in minutes that the filesystem should remain mounted when not in use.

See man automount.

HTH,
Pete

Pete
Pete Randall
Outstanding Contributor

Re: automount an cdrom

Stephan,

Sorry, that's duration in seconds, not minutes.

Pete

Pete
Stephan_K
HPE Pro

Re: automount an cdrom

Hi Pete,

I found the option, but where/how to use it ?

Beside, the default is 5 minutes, why does it take several hours here ?
Regrads
Stephan
I am an HPE employee.
Helen French
Honored Contributor

Re: automount an cdrom

Hi Koch:

It seems like a patch problem to me. If you are using HP-UX 11.00, then apply this patch - PHNE_25626 (s700_800 11.00 ONC/NFS General Release/Performance Patch). That may solve your issue.

Also apply the latest system patches and it's dependencies from HP-ITRC custom patch manager.

HTH,
Shiju
Life is a promise, fulfill it!
Pete Randall
Outstanding Contributor

Re: automount an cdrom

Hi Stephan,

I would guess that either it's a patch issue, as Shiju suggested, or it's still in use. Try fuser and see if someone's still using it.

Pete

Pete
Kevin Wright
Honored Contributor
Solution

Re: automount an cdrom

If you have GlancePlus running on this box, that is probably the reason. Glance scans mount points every few minutes to get statistics and can cause automounted directories to remain mounted when not in use. Stop glance for a little while to test it.
Stephan_K
HPE Pro

Re: automount an cdrom

Hi,

Kevin found the reason. It was Glance which keeps the automounted filesystems mounted. Does anyone have idea to prevent this ?
Regards
Stephan
I am an HPE employee.
Kevin Wright
Honored Contributor

Re: automount an cdrom

Sorry, but I was never able to fix the problem. I have the latest nfs patches, perhaps its the version of Glance. Maybe if you have software support you could call HP, then let me know what they have to say.
Pete Randall
Outstanding Contributor

Re: automount an cdrom

Stephan (and Kevin),

My 11.0 N class server does not exhibit this problem. Glance version is C.02.40.000.
PHNE_22642 1.0 ONC/NFS General Release/Performance Patch
is the most recent NFS patch that I have. There do not appear to be any Glance patches.

HTH,
Pete

Pete
Kevin Wright
Honored Contributor

Re: automount an cdrom

I have the problem on 10.20, with Glance version C.02.60.000, NFS patch PHNE_22288.

Pete Randall
Outstanding Contributor

Re: automount an cdrom

Stephan,

I think an upgrade of your Glance software is in order. The December application CD has C.03.50.00. If you can install that, I think your problem will go away.

Good luck,
Pete

Pete
Stephan_K
HPE Pro

Re: automount an cdrom

Hi to ALL,

I opened an Call an the investigation by the Lab tokk a while ....

The result is:
Glance prevents umounting the filesystem/cdrom ! They fixed this problem for normal filesystems (autofs) but not for cdfs Filesystems.
The workaround for this should be:

"The workarounds available for the customer is to make the autofs timeout to
be less than 4 minutes, or else to configure the cd as an indirect mount so
it is not directly under /. This makes a difference because then the type
returned to mwa is autofs, which is ignored for the statvfs calls, not cdfs
which is not ignored. "

Perhaps this information helps somebody else.
Regards

Stephan
I am an HPE employee.