Operating System - HP-UX
1847723 Members
5921 Online
110265 Solutions
New Discussion

bdf command doesn't show filesystems!!

 
SOLVED
Go to solution
Carles Viaplana
Valued Contributor

bdf command doesn't show filesystems!!

Hello,

when I execute bdf command I haven't any output:

# bdf
#

But they're accessible!

Do you have any idea?
This system belongs to a cluster, does this issue related with?

Note that OS is HP-UX B.11.11.

Thanks in advance for your help.
Regards,

Carles
17 REPLIES 17
A. Clay Stephenson
Acclaimed Contributor

Re: bdf command doesn't show filesystems!!

Does df work? If it too fails, I suspect you have a missing/corrupt mnttab. Being a cluster member shouldn't matter. At the very least, vg00 is not under MC/SG and it should display.
If it ain't broke, I can fix that.
Geoff Wild
Honored Contributor

Re: bdf command doesn't show filesystems!!

What about mount - does that work?

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.
Steven E. Protter
Exalted Contributor

Re: bdf command doesn't show filesystems!!

Shalom Carles,

If you have an nfs mount done before filesystem mount or high in the /etc/fstab file bdf will hang waiting for the nfs mount to return data if the nfs connection is cut off.

I suspect that the cluster and volume groups may be misconfigured.

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
Carles Viaplana
Valued Contributor

Re: bdf command doesn't show filesystems!!

Hello Clay,

df fails too and /etc/mnttab is empty. I also checked if /usr/sbin/syncer is running:

# ps -ef | grep /usr/sbin/syncer
root 431 1 0 Nov 9 ? 10:33 /usr/sbin/syncer
root 970 29101 2 19:18:20 pts/ta 0:00 grep /usr/sbin/syncer
#

If I'm right, this process should update mnttab automatically. Can I kill process and restart again executing "/usr/sbin/syncer&"?

Thanks for your help.
Regards,

Carles

CAS_2
Valued Contributor

Re: bdf command doesn't show filesystems!!

run

mount -p
mount -a
bdf
Carles Viaplana
Valued Contributor

Re: bdf command doesn't show filesystems!!

Hello,

First at all, thanks for all your replies.

In fact, I haven't any nfs on this system, but problem could be due cluster issue.

I had some problems with a package (I couldn't switch it to other node). After halting and running again on same node all packages work fine again.

As a package mount an ummount filesystems it uses, problem could be caused when I tried to switch package to other node. Maybe it hungs mnttab.

Any idea about how can I fix it?
Regards,

Carles
Carles Viaplana
Valued Contributor

Re: bdf command doesn't show filesystems!!

Hello again,

Here you're output from mount -p command:

# mount -p
mount: file system table may be corrupt
#

Regards,

Carles
Jeff Schussele
Honored Contributor

Re: bdf command doesn't show filesystems!!

Hi Carles,

Well, your problem is your /etc/mnttab file.
It should never be empty when the system is up & running. It should always conatain *at least* the LVs from vg00.
I suspect you'll need to reboot the system to clear this up.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Carles Viaplana
Valued Contributor

Re: bdf command doesn't show filesystems!!

Hello again,

My apologies. I remembered we have 3 nfs filesystems mounted there and remote system was rebooted few days ago.

Could it cause filesystem issue?
Is there any way to resolve it without rebooting?

Regards,

Carles
James R. Ferguson
Acclaimed Contributor

Re: bdf command doesn't show filesystems!!

Hi Carles:

Try issuing :

# mount all

This should recreate your 'etc/mnttab'.

Regards!

...JRF...
Geoff Wild
Honored Contributor
Solution

Re: bdf command doesn't show filesystems!!

mv /etc/mnttab /etc/mnttab.bad

mount


Should fix it.


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.
Devender Khatana
Honored Contributor

Re: bdf command doesn't show filesystems!!

Hi,

The file is overwritten by syncer, mount and unmount. As syncer is not allready doing it you can try it through other two methods.

HTH,
Devender
Impossible itself mentions "I m possible"
Yogeeraj_1
Honored Contributor

Re: bdf command doesn't show filesystems!!

hi Carles,

i will also suggest that you verify, check and backup your /etc/fstab

While troubleshooting, it will be also wise not to mount your remote file systems.

good luck!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Carles Viaplana
Valued Contributor

Re: bdf command doesn't show filesystems!!

Hi all,

I tried to mount filesystems directly:

# mount -a
mount: file system table may be corrupt
#

On the other hand, filesystems mounted from packages aren't into /etc/fstab file. If I execute mount -a command they won't be mounted/updated.

Thanks for your help.
Regards,

Carles
Arunvijai_4
Honored Contributor

Re: bdf command doesn't show filesystems!!

Hi Carles,

You can do # mount all, before doing that move your corrupted /etc/mnttab

-Arun

P.S Assign points to the people who answered.

"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: bdf command doesn't show filesystems!!

Do this:

# mv /etc/mnttab /etc/mnttab
# sync
# sleep 120
# bdf

It will work.

--
Muthu
Easy to suggest when don't know about the problem!
Carles Viaplana
Valued Contributor

Re: bdf command doesn't show filesystems!!

I just moved /etc/mnttab file and then I mount all filesystems. After this all filesystems (mounted from /etc/fstab file or from packages) appeares as usual.

Thanks to all for your help.

Regards,

Carles