Operating System - HP-UX
1827384 Members
3981 Online
109963 Solutions
New Discussion

BDF reports Data when actually none

 
brian_31
Super Advisor

BDF reports Data when actually none

i do a bdf and df -k it shows that the mount point is 80% full (with about 20 G data). but when i cd to the mount point nothing is seen. i see lot vx_direrr for this filesystem. have i lost my data? why does bdf report the data?

Please help

Thanks

Brian
6 REPLIES 6
DCE
Honored Contributor

Re: BDF reports Data when actually none


Brian

are there also errors in the syslog?

Here is a thread on the same error message

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1033206

You may have to run fsck and/or patch the OS

A. Clay Stephenson
Acclaimed Contributor

Re: BDF reports Data when actually none

This does not sould good. It sounds as though the root directory for this filesystem (always inode 2) is corrupt. Unlike ls which displays directory information, bdf report filesystem statistics and it is entirely possible that yes, 80% of the free space is occupied but if the root directory is corrupt, it's rather difficult to access any of the metadata that will get you to those files.

I'm sure that you have a recent, verified backup of this filesystem. You may need it.
You can try to umount the filesystem and run fsck on it but this really sounds like you are going to have to run newfs (or mkfs) and restore from backup.
If it ain't broke, I can fix that.
brian_31
Super Advisor

Re: BDF reports Data when actually none

This is from dmesg...

vxfs: mesg 008: vx_direrr - /oracle/MNT/data1 file system inode 2 block 1727 error 6

Thanks

Brian.
A. Clay Stephenson
Acclaimed Contributor

Re: BDF reports Data when actually none

The Force was strong with me today, I knew inode 2 was bad. If The Force is with you then fsck may help but The Force tells me it's time to run newfs and pull out your backup.
If it ain't broke, I can fix that.
brian_31
Super Advisor

Re: BDF reports Data when actually none

Clay:

is this what i shd do?

umount

fsck -F vxfs -o full -y /dev/rdsk/lvolX

mount mntpt

Thanks

brian
A. Clay Stephenson
Acclaimed Contributor

Re: BDF reports Data when actually none

Yes, although I would do -o full,nolog but I think you are toast.
If it ain't broke, I can fix that.