Operating System - HP-UX
1835243 Members
2443 Online
110078 Solutions
New Discussion

Re: kernel mount tables out-of-date

 
Pyers Symon
Advisor

kernel mount tables out-of-date

We have a problem where we need to update the kernel image of the mount tables. In essence the kernel thinks that a file system is mounted when in actual fact it isn't.
ie umount /appl/bbbb/s3
nfs umount: nfs_unmount: /appl/bbbb/s3: not mounted
umount: return error 1.

BUT /etc/mnttab, which is constantly being updated by syncer, still has that mount entry in it. So we cannot mount the file system again since mnttab thinks it is already mounted :-(
mount -F nfs filer03g:/vol/pj3/qt_bbbb_pa/s3 /appl/bbbb/s3
mount: filer03g:/vol/pj3/qt_bbbb_pa/s3 is already mounted on /appl/bbbb/s3

We need to clear out the kernel's view of what is mounted - preferably without a reboot!
I have looked at setmnt but am not happy with that since it does not mention whether it updates the kernel view. (also it is marked as obsolete)

HP-UX 11.11
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: kernel mount tables out-of-date

Shalom,

I'd suggest shutting down the automount service if running and running fuser -cuk /appl/bbbb/s3

This may be of assistance in correcting the problem.

Or remove the /etc/mnttab file and immediately mount the NFS mount:

mount -F nfs filer03g:/vol/pj3/qt_bbbb_pa/s3 /appl/bbbb/s3



SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pyers Symon
Advisor

Re: kernel mount tables out-of-date

Many thanks. We edited mnttab and removed the mount line. Then raced syncer and won!
Pyers Symon
Advisor

Re: kernel mount tables out-of-date

Aaargghhh. We now have a near-duplicate mnttab entry for the file system. Don't think it will matter ....