1847253 Members
4142 Online
110263 Solutions
New Discussion

fsck error

 
SOLVED
Go to solution
John McDen
Regular Advisor

fsck error

I had to reduce the FS so I did
1. unmount FS
2. lvreduce -L (size) /dev/vg00/lv42

Now when I fsck it's giving error..

fsck -F vxfs -n /dev/vg00/lv42
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 = 487424, off = 0, len = 8192

what should I do ??? Please Help
New to HP
9 REPLIES 9
A. Clay Stephenson
Acclaimed Contributor

Re: fsck error

You should have done an fsadm -F vxfs -b to reduce the size of the filesystem BEFORE shrinking the LVOL.
If it ain't broke, I can fix that.
John McDen
Regular Advisor

Re: fsck error

can something be done now.. ??
New to HP
Kevin Wright
Honored Contributor
Solution

Re: fsck error

I think at this point you need to make a new FS and restore the mount point from backup

newfs /dev/vg01/rlvol

mount and restore.
A. Clay Stephenson
Acclaimed Contributor

Re: fsck error

If you haven't done anything with the space, you might try lvextending to the original size then run an fsck. You might then be able to shrink your filesystem and the LVOL.

I hope that you did step zero (backup) before you started this.
If it ain't broke, I can fix that.
John McDen
Regular Advisor

Re: fsck error

Kevin

you mean newfs /dev/vg00/lv42

Clay

or can I just remove the FS and recreate a new one and restore the data on it?

New to HP
A. Clay Stephenson
Acclaimed Contributor

Re: fsck error

If you have a good backup, you can centainly do a newfs on it and restore the data. That would be your safest and best option at this point.
If it ain't broke, I can fix that.
Helen French
Honored Contributor

Re: fsck error

Hi John:

If you decide to recreate the file system, then I would suggest you to recreate the LV too:

# lvremove /dev/vg00/lv42
# lvcreate -L new_size -n /dev/vg00/lv42
# newfs -F vxfs/hfs /dev/vg00/rlv42
# mount /dev/vg00/lv42 /mount_point
# restore data.

HTH,
Shiju
Life is a promise, fulfill it!
MANOJ SRIVASTAVA
Honored Contributor

Re: fsck error

Hi John

I think that will be the best way to about it , ercreate it fresh and reload the backups , moreover one more word of caution , why do u have this on vg00 , and you may be playing with fire as this volume groups also holds the OS.


Manoj Srivastava
John McDen
Regular Advisor

Re: fsck error

Thanks everybody for your help, I decided to newfs and I have also successfully restored my data...

New to HP