Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
Search Forums:



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 09-11-2007
Registered User
 

Join Date: Sep 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
fsck! How to run Full File System Check

Dear all

I am new for HP-UX.
I have HP rp2470 running HP-UX 10.x
When i run fsck in a root, the output is as below:


Code:
#:root> fsck
fsck: /dev/vg00/rlvol1: mounted file system

continue (y/n)? y
** /dev/vg00/rlvol1
** Last Mounted on /stand
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
45 files, 0 icont, 38040 used, 45693 free (77 frags, 5702 blocks)
vxfs fsck: /dev/vg00/lvol3 is currently mounted
vxfs fsck: /dev/vg00/lvol4 is currently mounted
vxfs fsck: /dev/vg00/lvol6 is currently mounted
vxfs fsck: /dev/vg00/lvol7 is currently mounted
vxfs fsck: file system had I/O error(s) on meta-data.
log replay in progress
full file system check required, exiting ...
vxfs fsck: /dev/vg00/lvol5 is currently mounted


Then if i run fsck -y, the output as below:


Code:
#:root> fsck -y
fsck: /dev/vg00/rlvol1: mounted file system
vxfs fsck: /dev/vg00/lvol3 is currently mounted
vxfs fsck: /dev/vg00/lvol4 is currently mounted
vxfs fsck: /dev/vg00/lvol6 is currently mounted
vxfs fsck: /dev/vg00/lvol7 is currently mounted
vxfs fsck: file system had I/O error(s) on meta-data.
log replay in progress
pass0 - checking structural files
pass1 - checking inode sanity and blocks
vxfs fsck: fsck read failure bno = 1566, off = 0, len = 8192
file system check failure, aborting ...
vxfs fsck: /dev/vg00/lvol5 is currently mounted

Plz help me explain these output and tell me How to run a full file system check to correct this I/O error(s) on meta-data as above.

Thanks for your support

Last edited by Yogesh Sawant; 04-10-2011 at 10:06 AM.. Reason: added code tags
Sponsored Links
    #2  
Old 09-11-2007
blowtorch's Avatar
AFK
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,351
Thanks: 0
Thanked 2 Times in 2 Posts
Running fsck on mounted filesystems is not recommended. If you do need a full fsck, umount the filesystem first. If it is one of the system required filesystems (such as /var), shutdown the system, boot to single user mode, then run fsck on all the filesystems and then reboot to full multi-user mode.

When running the full fsck, the command to run is "fsck -o full -y /dev/..."
Sponsored Links
    #3  
Old 09-12-2007
Registered User
 

Join Date: Sep 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
fsck -o full! Error message

Thanks blowtorch!

I have tried to run fsck -o full and there is a error message like the following:


Code:
#:root> fsck -o full /dev/vg00/lvol8
vxfs fsck: file system had I/O error(s) on meta-data.
log replay in progress
pass0 - checking structural files
pass1 - checking inode sanity and blocks
vxfs fsck: fsck read failure bno = 1566, off = 0, len = 8192
file system check failure, aborting ...

Could you plz tell me what is the meaning of the above out put? And How to fix it?

Thanks a lot

Last edited by Yogesh Sawant; 04-10-2011 at 10:07 AM.. Reason: added code tags
    #4  
Old 09-12-2007
Registered User
 

Join Date: Oct 2005
Posts: 154
Thanks: 1
Thanked 1 Time in 1 Post
try including the filesystem type...


Code:
/usr/sbin/fsck -F vxfs -o full -y /dev/vg00/lvol8


Last edited by Yogesh Sawant; 04-10-2011 at 10:07 AM.. Reason: added code tags
Sponsored Links
Closed Thread

Tags
fsck

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Full file system? meyerder Solaris 0 05-13-2006 11:44 AM
fsck on a mounted file system? GKnight UNIX for Dummies Questions & Answers 1 11-16-2005 10:39 AM
File System Check (fsck) mawalton UNIX for Dummies Questions & Answers 1 09-17-2004 03:54 PM
File system full? Bend Solaris 8 01-08-2004 03:22 PM
file system full hopeless UNIX Desktop for Dummies Questions & Answers 1 04-17-2002 07:10 PM



All times are GMT -4. The time now is 11:27 PM.