fsck doesn't work - not even run? (463 Views)
Reply
Occasional Advisor
Morhoo
Posts: 6
Registered: ‎11-03-2009
Message 1 of 14 (463 Views)
Accepted Solution

fsck doesn't work - not even run?

Hi,

please consider, I'm pretty new to HP-UX, thanks.

Our server (rp7420 with HP-UX 11.31) has crashed due to disk write error (not boot partition). So I replaced damaged device with the new one of the same size and performed dd copy 1:1 to restore data - vxfs partition "/dev/vg01/lvol1" mounted as "/data" and some raw devs. After reboot system wrote this error: "vxfs mount: V-3-21268: /dev/vg01/lvol1 is corrupted. needs checking". So I wanted to run fsck command to fix filesystem, logged as root, but to my surprise nothing happened. No error, no output, no result. Just like if it wouldn't run. I'm sure I was able to run fsck many times before and I tried many variants of parameters, no deal. Any suggestions how to fix FS without using fsck? Or better, how to repair fsck to run properly? Thanks for every advice.

Add: Disc was replaced directly by HP technician. Unfortunately that server is not further under any support licence from HP. I just wonder why fsck is failing to run now and has no response.

Thanks
HP Pro
melvyn burnard
Posts: 6,068
Registered: ‎04-06-1997
Message 2 of 14 (463 Views)

Re: fsck doesn't work - not even run?

when you say "does nothing", what do you get?
Just a prompt back?
If so, sounds like you have an empty executable file.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Acclaimed Contributor
Torsten.
Posts: 23,277
Registered: ‎10-02-2001
Message 3 of 14 (463 Views)

Re: fsck doesn't work - not even run?

From where did you restore the data? Sure it isn't corrupted too?

Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Occasional Advisor
Morhoo
Posts: 6
Registered: ‎11-03-2009
Message 4 of 14 (463 Views)

Re: fsck doesn't work - not even run?

This is example of output:

root@rp7420:/usr/sbin> mount -a
vxfs mount: V-3-21268: /dev/vg01/lvol1 is corrupted. needs checking
mount: /dev/vg00/lvol8 is already mounted on /var
mount: /dev/vg00/lvol7 is already mounted on /usr
mount: /dev/vg00/lvol6 is already mounted on /opt
mount: /dev/vg00/lvol5 is already mounted on /home
mount: /dev/vg00/lvol4 is already mounted on /tmp
mount: /dev/vg00/lvol1 is already mounted on /stand
root@rp7420:/usr/sbin> fsck -m /dev/vg01/lvol1
root@rp7420:/usr/sbin>

fsck seems to do noting.
Occasional Advisor
Morhoo
Posts: 6
Registered: ‎11-03-2009
Message 5 of 14 (463 Views)

Re: fsck doesn't work - not even run?

Source of restore was damaged disc itself. Data may be truly corrupted, but why fsck behaves like that? Could it be damaged too?

Thanks.
Acclaimed Contributor
Dennis Handly
Posts: 25,058
Registered: ‎03-06-2006
Message 6 of 14 (463 Views)

Re: fsck doesn't work - not even run?

>Could it be damaged too?

Which disk was damaged?
What does "ls -l /sbin/fs_wrapper" show?

This seems to look at /sbin/lib/mfsconfig.d and /usr/lbin/fs/*.
Honored Contributor
Bill Hassell
Posts: 14,205
Registered: ‎05-29-2000
Message 7 of 14 (463 Views)

Re: fsck doesn't work - not even run?

Since the data seems to be corrupted, you may want to run newfs on one of the vg01 lvols (or create a new small lvol), then run fsck on the (empty) filesystem. If fsck works OK, the dd copy may not have worked correctly or may have copied bad data. Was the source disk for dd part of a mirrored pair? You may have to restore from your backup tapes.
Occasional Advisor
Morhoo
Posts: 6
Registered: ‎11-03-2009
Message 8 of 14 (463 Views)

Re: fsck doesn't work - not even run?

root@rp7420:/> ls -l /sbin/fs_wrapper
-r-xr-xr-x 1 bin bin 0 Nov 3 18:23 /sbin/fs_wrapper

(zero size??)

root@rp7420:/>ls -l /sbin/lib/mfsconfig.d
total 64
-r--r--r-- 1 bin bin 695 Jan 12 2007 cachefs
-r--r--r-- 1 bin bin 984 Feb 15 2007 hfs
-rw-r--r-- 1 root sys 0 Nov 4 02:51 ls
-r--r--r-- 1 bin bin 924 Jan 12 2007 vxfs
-r--r--r-- 1 bin bin 3448 Jun 26 2007 vxfs5.0

root@rp7420:/>ls -l /usr/lbin/fs
total 32
dr-xr-xr-x 2 bin bin 8192 Dec 5 2007 hfs
dr-xr-xr-x 2 bin bin 8192 Dec 5 2007 vxfs
dr-xr-xr-x 2 bin bin 96 Dec 5 2007 vxfs5.0

Bad disk was standalone and was not mirrored. I can use backup tape, but i can't create new filesystem as long as fsck doesn't work at all. :-(
Acclaimed Contributor
Torsten.
Posts: 23,277
Registered: ‎10-02-2001
Message 9 of 14 (463 Views)

Re: fsck doesn't work - not even run?

I would start over - remove LVOL and VG, pvcreate the disks, create the VG and LVOL again, then the file system. Restore your data now.

Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Acclaimed Contributor
Dennis Handly
Posts: 25,058
Registered: ‎03-06-2006
Message 10 of 14 (463 Views)

Re: fsck doesn't work - not even run?

>-r-xr-xr-x 1 bin bin 0 Nov 3 18:23 /sbin/fs_wrapper
>(zero size??)

Yes, that's enough to explain why nothing happens. Do you have another machine where you can try extracting fs_wrapper?

Was it the root disk that went bad?
HP Pro
melvyn burnard
Posts: 6,068
Registered: ‎04-06-1997
Message 11 of 14 (460 Views)

Re: fsck doesn't work - not even run?

>-r-xr-xr-x 1 bin bin 0 Nov 3 18:23 /sbin/fs_wrapper
>(zero size??)

This is what I was referring to.
It exists, and is executable, but is zero in size so "does nothing"
Somehow you have managed to corrupt system files.
Try to recover or install one from another server, or from your media.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Occasional Advisor
Morhoo
Posts: 6
Registered: ‎11-03-2009
Message 12 of 14 (460 Views)

Re: fsck doesn't work - not even run?

OK, problem is successfully solved!

HP Czech Support sent me new fs_wrapper executable and it works! Corrupted filesystem has been recovered using fsck and all data are fine and accessible. How fs_wrapper got damaged is still a bit misery to me, but replacement of file was fortunately enaugh to make it work.

I would like to thanks you all for your time and suggestions. I really appreciate it!

Thanks.

Ondrej Ilek.
Acclaimed Contributor
Dennis Handly
Posts: 25,058
Registered: ‎03-06-2006
Message 13 of 14 (460 Views)

Re: fsck doesn't work - not even run?

>I would like to thanks you all for your time and suggestions.

If you are happy with the answers you were given, please read the follow on how to assign points:
http://forums.itrc.hp.com/service/forums/helptips.do?#33
Occasional Advisor
Morhoo
Posts: 6
Registered: ‎11-03-2009
Message 14 of 14 (460 Views)

Re: fsck doesn't work - not even run?

OK, its minimum i can do to express my gratitude. :-)
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.