Operating System - HP-UX
1833771 Members
2447 Online
110063 Solutions
New Discussion

bdf: unable to lock /etc/mnttab after 100 tries

 
SOLVED
Go to solution
logaraman
Regular Advisor

bdf: unable to lock /etc/mnttab after 100 tries

Hi ,

As a mormal user when i try bdf , i get the below error...

bdf: unable to lock /etc/mnttab after 100 tries
bdf: /etc/mnttab: Permission denied

Any suggestions.

8 REPLIES 8
TY 007
Honored Contributor

Re: bdf: unable to lock /etc/mnttab after 100 tries

Hello Logaraman,

As root, install Latest 'bdf' patch (does not require reboot).

HP-UX 11.00:
PHCO_33021 bdf(1M) cumulative patch; large file support

HP-UX 11.11:
PHCO_35028 bdf(1m) cumulative patch

HP-UX 11.23:
PHCO_32608 bdf(1m) patch

Thanks
Aneesh Mohan
Honored Contributor

Re: bdf: unable to lock /etc/mnttab after 100 tries


Hi ,

Login as root and do

# mv /etc/mnttab /etc/mnttab.old
# mountall

it may fix ur issue .

Aneesh
logaraman
Regular Advisor

Re: bdf: unable to lock /etc/mnttab after 100 tries

Hi Aneehs,

That did not work..

TY i am downloading the patch.. shall update once done...
TY 007
Honored Contributor

Re: bdf: unable to lock /etc/mnttab after 100 tries

Hello Logaraman,

>> downloading the patch.. shall update once done...

Had similar issue last time, latest bdf patch fix it :)

Thanks
whiteknight
Honored Contributor

Re: bdf: unable to lock /etc/mnttab after 100 tries


logaraman,

If you are using 11.23, make you install PHKL_31500 Sept04 base patch

( SR:8606365017 CR:JAGaf25654 )
bdf(1M) locks /etc/mnttab and holds the lock when the
filesystem is not responding.
Resolution:
bdf(1M) now locks /etc/mnttab only while creating a list of
mount entries. With the created list of entries, individual
stats are done on the filesystems. This avoids holding a
lock on /etc/mnttab even when a filesystem is not
responding.

WK
Problem never ends, you must know how to fix it
J. Bravo
Respected Contributor
Solution

Re: bdf: unable to lock /etc/mnttab after 100 tries

Hello:

Could you verify the permissions of bdf?, it should look like this:

ll /usr/bin/bdf
-r-sr-xr-x 1 root bin 56932 May 19 2005 /usr/bin/bdf

If it hasn't active the setuid bit, it's possible that for a normal user fails to lock mnttab.

Regards;

J. Bravo.
logaraman
Regular Advisor

Re: bdf: unable to lock /etc/mnttab after 100 tries

Hi bravo,

Thanks for the suggestion... it worked out,...


TY, i updated the patch but was facing the same issue
logaraman
Regular Advisor

Re: bdf: unable to lock /etc/mnttab after 100 tries

Bravo's suggestion worked out