Sometimes you can get the following error while try to access a directory in HP-UX:
# cd /DATA
sh: /DATA: The specified directory is not valid.
This error is caused because the file system is corrupted and you need run fsck on it.
First of all, umount the FS:
# umount /DATA
And them, run the fsck:
# fsck -y -o full /dev/vgLOG/lvol1on clear? (ynq)y
UX:vxfs fsck: WARNING: V-3-20836: file system had I/O error(s) on meta-data.
log replay in progress
pass0 - checking structural files
pass1 - checking inode sanity and blocks
fileset 999 primary-ilist inode 177502 marked bad, allocation flags (0x0001)
fileset 999 primary-ilist inode 177502 has invalid number of blocks (7309)
fileset 999 primary-ilist inode 177502 has invalid block map
fileset 999 primary-ilist inode 177502 failed validation clear? (ynq)y
fileset 999 primary-ilist inode 177859 marked bad, allocation flags (0x0001)
fileset 999 primary-ilist inode 177859 has invalid number of blocks (24850)
fileset 999 primary-ilist inode 177859 has invalid block map
fileset 999 primary-ilist inode 177859 failed validation clear? (ynq)y
fileset 999 primary-ilist inode 178243 marked bad, allocation flags (0x0001)
fileset 999 primary-ilist inode 178243 has invalid number of blocks (6417)
fileset 999 primary-ilist inode 178243 has invalid block map
fileset 999 primary-ilist inode 178243 failed validation clear? (ynq)y
fileset 999 primary-ilist inode 178793 marked bad, allocation flags (0x0001)
fileset 999 primary-ilist inode 178793 failed validation clear? (ynq)y
pass2 - checking directory linkage
pass3 - checking reference counts
pass4 - checking resource maps
fileset 999 au 2 imap incorrect - fix (ynq)y
fileset 999 au 2 iemap incorrect - fix (ynq)y
au 42 emap incorrect - fix? (ynq)y
au 42 summary incorrect - fix? (ynq)y
au 59 emap incorrect - fix? (ynq)y
au 59 summary incorrect - fix? (ynq)y
au 60 emap incorrect - fix? (ynq)y
au 60 summary incorrect - fix? (ynq)y
au 61 emap incorrect - fix? (ynq)y
au 61 summary incorrect - fix? (ynq)y
au 62 emap incorrect - fix? (ynq)y
au 62 summary incorrect - fix? (ynq)y
au 63 emap incorrect - fix? (ynq)y
au 63 summary incorrect - fix? (ynq)y
fileset 999 iau 2 summary incorrect - fix? (ynq)y
free block count incorrect 2153192 expected 2202289 fix? (ynq)y
free extent vector incorrect fix? (ynq)y
OK to clear log? (ynq)y
set state to CLEAN? (ynq)y
After that, you can mount the FS again.
# umount /DATA
Print
del.icio.us
Facebook
Twitter
Google Bookmarks
Add to favorites
email