1752822 Members
4079 Online
108789 Solutions
New Discussion юеВ

Re: bdf issue

 
Lenin Dasan S.
Occasional Contributor

bdf issue

when regular user issue a ' bdf ' command get the result as
' bdf: unable to lock /etc/mnttab after 100 tries
bdf: /etc/mnttab: Permission denied '

what could be the problem? any suggession?
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: bdf issue

Shalom,

bdf is trying to provide data on a stale NFS link.

Correct the NFS situation and the problem will be resolved.

/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.server stop
/sbin/init.d/nfs.core stop
/sbin/init.d/nfs.core start
/sbin/init.d/nfs.server start
/sbin/init.d/nfs.client start

If the system is an NFS server itself this might create issues.

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
Todd McDaniel_1
Honored Contributor

Re: bdf issue

I know in some cases, I have deleted the mnttab where I have had nfs mounts hang up to clear bdf hung processes and to restore bdf. We had a 3rd party product for monitoring that used bdf to track filesystem sizes... and it would hang whenever we had a stale nfs mount.

It restores it rather quickly so, type fast!

rm /etc/mnttab;bdf

Of course, the method detalied in the previous post is most desirable.
Unix, the other white meat.
Geoff Wild
Honored Contributor

Re: bdf issue

Do a mount

Do you see any stale nfs?

Are you on 11.31?

If yes, then you can issue a umount -f /some/nfs/mountpoit

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Prashanth.D.S
Honored Contributor

Re: bdf issue

Hi Lenin,

If your OS version is 11.23 then the issue seems to be fixed in PHKL_31500

( SR:8606365017 CR:JAGaf25654 )
Commands like mount, umount, df and sam which try to acquire
the lock on /etc/mnttab may hang. To reproduce the problem,
mount an NFS filesystem. Then stop the NFS service on the
NFS server, and execute bdf(1M). bdf(1M) will hang while
doing a stat, and any execution of mount or umount will....

Best Regards,
Prashanth
Roberto Arias
Valued Contributor

Re: bdf issue

Please Lenin try it:

>/etc/mnttab
mount -a
bdf


The file /etc/mnttab is database of Filesystem mounted, whith this you make the new database of this

regards
The man is your friend