Operating System - HP-UX
1752815 Members
6168 Online
108789 Solutions
New Discussion юеВ

re: vxfs mount: /dev/vg01/xxxx is corrupted. needs checking

 
SOLVED
Go to solution
Gurcharan Sahota_2
Frequent Advisor

re: vxfs mount: /dev/vg01/xxxx is corrupted. needs checking

How do I get around this problem.

Tried running an lvreduce on the filesystem and now get the message '...is corrupted'.

The server is an RP3440, the storage is a MSL1000 array
10 REPLIES 10
Robert-Jan Goossens
Honored Contributor

Re: re: vxfs mount: /dev/vg01/xxxx is corrupted. needs checking

Hi,

If you have a good backup, recreate the filesystem from scratch and restore the data.

Regards,
Robert-Jan
Stf
Esteemed Contributor

Re: re: vxfs mount: /dev/vg01/xxxx is corrupted. needs checking

Try to make fsck on this lvol :

# fsck /dev/vg01/xxxx

Stf ;-)
Simon Hargrave
Honored Contributor

Re: re: vxfs mount: /dev/vg01/xxxx is corrupted. needs checking

You need to repair the filesystem with fsck.

fsck /dev/vg01/xxxx
Gurcharan Sahota_2
Frequent Advisor

Re: re: vxfs mount: /dev/vg01/xxxx is corrupted. needs checking

tried that,

root@bddev:/etc> fsck /dev/vg01/wbbcconv
fsck: /etc/default/fs is used for determining the file system type
vxfs fsck: cannot stat /dev/vg01/wbbcconv
Robert-Jan Goossens
Honored Contributor

Re: re: vxfs mount: /dev/vg01/xxxx is corrupted. needs checking

try the example below.

# bdf /app/oracle/dbappl
/dev/vg01/lvol4 614400 11027 565667 2% /app/oracle/dbappl
# umount /app/oracle/dbappl
# fsck -F vxfs -o full -y /dev/vg01/lvol4
log replay in progress
pass0 - checking structural files
pass1 - checking inode sanity and blocks
pass2 - checking directory linkage
pass3 - checking reference counts
pass4 - checking resource maps
OK to clear log? (ynq)y
set state to CLEAN? (ynq)y
# mount /app/oracle/dbappl

Regards,
Robert-Jan
Gary L. Paveza, Jr.
Trusted Contributor

Re: re: vxfs mount: /dev/vg01/xxxx is corrupted. needs checking

Is the filesystem mounted? If so, try umounting first.
Stf
Esteemed Contributor

Re: re: vxfs mount: /dev/vg01/xxxx is corrupted. needs checking

try :

# fsck -F vxfs -o full /dev/vg01/rlvol

Stf ;-)
Gurcharan Sahota_2
Frequent Advisor

Re: re: vxfs mount: /dev/vg01/xxxx is corrupted. needs checking

The filesystem is unmounted.

now get the following error

root@bddev:/> fsck -F vxfs -o full /dev/vg01/wdbcconv
file system is larger than device
vxfs fsck: cannot initialize aggregate
file system check failure, aborting ...

would it not be easier just to lvremove the lv?
Robert-Jan Goossens
Honored Contributor
Solution

Re: re: vxfs mount: /dev/vg01/xxxx is corrupted. needs checking

If you have a good backup of the data I would lvremove and lvcreate the filesystem.