1753312 Members
5545 Online
108792 Solutions
New Discussion юеВ

Re: fsck query

 
SOLVED
Go to solution
himacs
Super Advisor

fsck query

Hi Admins,

My one of the mount point showing IO error

bdf: /pcard16: I/O error

I have unmounted the Lv and tried to remount but ended up with below error.

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

Now m going to fire fsck .Please let me know the correct syntax and i want to know any data loss will occur bcoz of fsck.

Regards
himacs
3 REPLIES 3
Lashin
Advisor

Re: fsck query

hi.,

1.unmount the file system
2 fsck -F vxfs /dev/vg01/rlvol1
(if the filesystem type is vxfs ,otherwise use the correct filesystem type. do fstyp /dev/vg01/lvol1 to find out the filesystem type.)
3.try to mount the file system.
P Arumugavel
Respected Contributor
Solution

Re: fsck query

hi,

Lashin's steps are exactly right.

If the filesystem needs full fsck, then syntax is

#fsck -F vxfs -o full,nolog /dev/vg01/rlvol1

Rgds...
Ismail Azad
Esteemed Contributor

Re: fsck query

Hi,

Fsck can be done in two ways as mentioned. In lashin's post you will be doing an intent log "playback" which means only the pending transactions will be checked. The full fsck is done as mentioned in the second post to "completely scrutinize" the filesystem by bypassing the intent log structure.

The second fsck command mentioned will be used for extremely corrupted filesystems.

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....