1836882 Members
1958 Online
110111 Solutions
New Discussion

Unable to Mount Volume

 
Brian Daly
New Member

Unable to Mount Volume

Hello.

One of my volumes /dev/vg00/lvol4 (/var) is corrupt and unmountable

if I try mount it I get -

vxfs mount: /dev/vg00/lvol4 is corrupted. needs checking

So I rebooted the machine in Single user mode and ran the following -

# fsck -F vxfs -y -o full /dev/vg00/lvol4

and this returned the following error -

log replay in progress
vxfs fsck: fsck read failure bno = 2123, off = 0, len = 1024
full file system check required, exiting ...

I thought the command I typed was to force a full file system check?

What's the next step to take?

Brian
7 REPLIES 7
Naveej.K.A
Honored Contributor

Re: Unable to Mount Volume

hi brian,

fsck /dev/vg00/lvol4 does a full filesystem check

regds
Naveej
practice makes a man perfect!!!
Jose Mosquera
Honored Contributor

Re: Unable to Mount Volume

Hi,

#umount [mountpoint]
#fsck â F vxfs â o full /dev/[vg]/[rlvol]
-or if your log area is corrupted-
#fsck â F vxfs â o full,nolog /dev/[vg]/[rlvol]
#mount [mountpo
Jose Mosquera
Honored Contributor

Re: Unable to Mount Volume

Pls take a look at the attached file.
I hope it is readable!

Rgds.
Franky_1
Respected Contributor

Re: Unable to Mount Volume

Hi Brian,

maybe you can try the raw device :


fsck -F vxfs -y -o full /dev/vg00/rlvol4

Regards

Franky
Don't worry be happy
Fabio Ettore
Honored Contributor

Re: Unable to Mount Volume

Hi Brian,

check if all extents have status 'current' in lvdisplay:

# lvdisplay -v /dev/vg00/lvol4

Usually 'fsck read failure' stands for a disk problem:

Open an hw call with HP and check disks of vg00, specially disk belongs to /usr.

Best regards,
Ettore
WISH? IMPROVEMENT!
Bill Hassell
Honored Contributor

Re: Unable to Mount Volume

The read failure is catastrophic and not something that fsck can fix. fsck is a directory structure fixer, not a disk hardware fixer. If a fsck needs to read a block that is unreadable or worse, a block that is beyond the end of the disk, there is no possible solution with fsck. Did someone attempt to reduce the size of lvol4 recently? If so, that caused the problem and it is pretty serious. lvreduce has NOTHING to do with the filesystem.

A logical volume looks like a disk to the filesystem and if it is reduced, data towards the end of the lvol is inaccessible. The only solution is to extend the lvol back to it's original size (hopefully the free extents were used by another volume being created or extended).

The correct way to reduce an lvol with a filesystem is to backup the entire lvol, then un-mount the lvol, use lvreduce to remove some space, run newfs on the raw lvol to create a new filesystem and then restore the data. Now you can mount it. /var is particularly difficult because it is always in use so all of this must take place in single user mode. Note that Online JFS will almost always fail to reduce a volume without data loss. The exception is the Online JFS ver 3.3 version but the lvols must first be converted to ver 4 volumes. (in other words, you should assume that lvreduce will always destroy any filesystem on the lvol)


Bill Hassell, sysadmin
Brian Daly
New Member

Re: Unable to Mount Volume

Thank you all for your help today.

Looks like I will have to remove the faulty disk and rebuild the system.

Unfortunately the machine that I am having problems with is not under support anymore
:(

Brian