Jump to content
 English      
HP.com New Zealand home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
     Forums advanced search
HP.com New Zealand home
IT Resource Center Forums > HP-UX > LVM and VxVM

fsck doesn't work - not even run?

» 

IT Resource Center

» Login
» Register
» My profile
» Search knowledge base
» Forums
» Patch database
» Download drivers, software and firmware
» Warranty check
» Support Case Manager
» Software Update Manager
» Training and Education
» More maintenance and support options
» Online help
» Site map

Member icons
 
 HP moderator  HP moderator
 Expert in this area  Expert in this area
Member status
ITRC Pro ITRC Pro
250 points
ITRC Graduate ITRC Graduate
500 points
ITRC Wizard ITRC Wizard
1000 points
ITRC Royalty ITRC Royalty
2500 points
ITRC Pharaoh ITRC Pharaoh
7500 points
Olympian Olympian
20000 points
1-Star Olympian 1-Star Olympian
40000 points
2-Star Olympian 2-Star Olympian
80000 points
»  How to earn points
»  Support forums FAQs
Question status
Magical answer Magical answer
Message with a response that solved the author's question
Favorites status
Add to my favorites Add to my favorites
Delete from my favorites Delete from my favorites
This thread has been closed Thread closed
 

Content starts here
   Create a new message    Receive e-mail notification if a new reply is posted  Reply to this message
Author Subject: fsck doesn't work - not even run?      Add to my favorites
Morhoo
Nov 3, 2009 20:26:54 GMT   

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
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click here


Sort Answers By: Date or Points
HP moderator melvyn burnard Expert in this area This member has accumulated 20000 or more points
Nov 3, 2009 20:55:07 GMT  10 pts

when you say "does nothing", what do you get?
Just a prompt back?
If so, sounds like you have an empty executable file.
Torsten. Expert in this area This member has accumulated 40000 or more points
Nov 3, 2009 22:06:19 GMT    Unassigned

From where did you restore the data? Sure it isn't corrupted too?
Morhoo
Nov 3, 2009 23:13:42 GMT    N/A: Question Author

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.
Morhoo
Nov 3, 2009 23:19:03 GMT    N/A: Question Author

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

Thanks.
Dennis Handly This member has accumulated 40000 or more points
Nov 4, 2009 00:02:22 GMT  10 pts

>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/*.
Bill Hassell Expert in this area This member has accumulated 40000 or more points
Nov 4, 2009 00:34:04 GMT  5 pts

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.
Morhoo
Nov 4, 2009 02:21:08 GMT    N/A: Question Author

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. :-(
Torsten. Expert in this area This member has accumulated 40000 or more points
Nov 4, 2009 05:48:05 GMT  3 pts

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.
Dennis Handly This member has accumulated 40000 or more points
Nov 4, 2009 07:12:44 GMT  10 pts

>-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 moderator melvyn burnard Expert in this area This member has accumulated 20000 or more points
Nov 4, 2009 08:42:05 GMT  10 pts

>-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.
Morhoo
Nov 4, 2009 11:40:39 GMT    N/A: Question Author

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.
Dennis Handly This member has accumulated 40000 or more points
Nov 4, 2009 11:55:42 GMT  1 pts

>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
Morhoo
Nov 4, 2009 12:50:20 GMT    N/A: Question Author

OK, its minimum i can do to express my gratitude. :-)
 
Create a new message    Receive e-mail notification if a new reply is posted   Reply to this message
 
 
Printable version
Privacy statement Using this site means you accept its terms
© 2009 Hewlett-Packard Development Company, L.P.