1757003 Members
2306 Online
108858 Solutions
New Discussion юеВ

lvol3 corrupted...help?

 
Coolmar
Esteemed Contributor

lvol3 corrupted...help?

I get the following when I try and mount -a my filesystems:

vxfs mount: /dev/vg01/lvol3 is corrupted. needs checking

So I then run:
fsck -F vxfs -o full -y /dev/vg01/rlvol3

Which gives me:
log replay in progress
pass0 - checking structural files
pass1 - checking inode sanity and blocks
pass2 - checking directory linkage
warning - no lost+found directory for fileset 999
pass3 - checking reference counts
pass4 - checking resource maps
OK to clear log? (ynq)y
set state to CLEAN? (ynq)y

Then I try and remount and it says the first error again. Any ideas?
4 REPLIES 4
Geoff Wild
Honored Contributor

Re: lvol3 corrupted...help?

Do a vgdisplay -v /dev/vg01 and then a diskinfo on all the disks (diskinfo /dev/rdsk/cXtXdX).

Are they all okay?

What about a lvdisplay -v /dev/vg01/lvol3 |more

any errors?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
A. Clay Stephenson
Acclaimed Contributor

Re: lvol3 corrupted...help?

You seem to missing a lost+found directory which must exist prior to running fsck. You are in something of a catch-22 because orphaned data have been detected. Try running with -o full,nolog. I woulkd also explicity mount this filesystem in verbose mode so that more will be reported.
If it ain't broke, I can fix that.
Senthil Kumar .A_1
Honored Contributor

Re: lvol3 corrupted...help?

Hi,

I think Clay is right.

Why don't you first create a lost+found dir and then execute your fsck. To create lost+found dir, do the following..

cd /
mklost+found

Now you can fsck as you prefer.

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Coolmar
Esteemed Contributor

Re: lvol3 corrupted...help?

Nothing worked...I basically had to remove the lv and then re-create it again and restore the data.

Thanks guys!