Operating System - HP-UX
1833553 Members
3353 Online
110061 Solutions
New Discussion

"Something is Wrong with /var Filesystem"

 
SOLVED
Go to solution
frueyang
Occasional Advisor

"Something is Wrong with /var Filesystem"

hello, my workstation is HP B180L, and the version of OS is HPUX 10.20 .
Yesterday I found the /var filesystem can't be mounted. Then I perform a fsck operation
#
# fsck /dev/vg00/lvol8
vxfs fsck: file system had I/O error(s) on meta-data
log replay in progress
vxfs fsck: file system had I/O error(s) on meta-data
a full file system check is required
#

Then, I perform a full fsck.

#
# fsck -o full,nolog /dev/vg00/lvol8
vxfs fsck: file system had I/O error(s) on meta-data.
vxfs fsck: file system had I/O error(s) on meta-data.
pass0 - checking structural files
pass1 - checking inode sanity and blocks
vxfs fsck: fsck read failure bno = 154720, off=0, len=8192
#

What's the problem? What can I do?
7 REPLIES 7
Balaji N
Honored Contributor

Re: "Something is Wrong with /var Filesystem"

that read error suggests could be a problem with your disk.

what does pvdisplay -v and lvdisplay -v see if there is something fishy.
also do a dd on the disk to see if all the blocks are readable.

hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
frueyang
Occasional Advisor

Re: "Something is Wrong with /var Filesystem"

Thanks a lot!

However I'm not familiar with command 'dd',cound you tell me how to use command 'dd' if I want to save my data from /var at possible?
Balaji N
Honored Contributor

Re: "Something is Wrong with /var Filesystem"

dd if= of=/dev/null bs=2048k

this is to just check if your disk has any bad sectors or if ur disk is completely readable. i guess you already have a backup. if not use, fbackup or tar.

-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Stefan Farrelly
Honored Contributor

Re: "Something is Wrong with /var Filesystem"


Ive had just this problem myself recently. After exhaustive checking the filesystem was lost, I had to newfs it. All data was lost.

The consensus was a hardware error developed on the disk which caused the corruption of your filesystem and its now lost. sorry.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Ravi_8
Honored Contributor

Re: "Something is Wrong with /var Filesystem"

Hi,

did you do the fsck in single user mode or in multi user mode. advise you to do in single user mode.

can you check the disk with
#dd if=/dev/rdsk/cxtxdx of=/dev/null bs=1024k

if you get any I/O error then disk is in prolem
never give up
shajitht_1
Occasional Contributor
Solution

Re: "Something is Wrong with /var Filesystem"

HI
You can verify the file system using dd if=/dev/vg00/rlvol8 of=/dev/null bs=64k.

as per ur query u r notable to do fsck on the filesystem and hence not able mountit also . in this case you can try the following .

take backup of the file system using

dd if=/dev/vg00/rlvol8 of=/dev/rmt/0m bs=64k

(hope dat drive device is 0m)
create a new filesystem using newfs .

newfs /dev/vg00/rlvol8

now restore it from backup.

dd if=/dev/rmt/0m of=/dev/vg00/rlvol8 bs=64k

now do fsck on the same logical volume and try to mount it . but the chances are only 50%

regards



Cheryl Griffin
Honored Contributor

Re: "Something is Wrong with /var Filesystem"

Stefan is correct, "I/O error(s) on meta-data" means filesystem corruption as the result of a hardware defect. You need to have the disks in vg00 checked.
Cheryl
"Downtime is a Crime."