- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Which file has the bad block?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2005 11:34 AM
тАО01-09-2005 11:34 AM
Which file has the bad block?
I/O error: [block 9638460]: count 64512
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2005 03:39 PM
тАО01-09-2005 03:39 PM
Re: Which file has the bad block?
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2005 04:18 PM
тАО01-09-2005 04:18 PM
Re: Which file has the bad block?
$ cd
$ file `ls -lR`|more
this would show what are the file types (inside the directory). And any file its not able to read will give error.
One more way of trying would be,
$ cd
$ du *
this would give error for the subdirectory inside which there is some problem. You can boil down to the exact directory or file name.
I am not sure if the above two ways would exactly solve your problem, but its worth giving a try.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2005 10:05 PM
тАО01-09-2005 10:05 PM
Re: Which file has the bad block?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2005 01:41 AM
тАО01-10-2005 01:41 AM
Re: Which file has the bad block?
dd if=/dev/vgXXXX/rlvolYYY of=/dev/null bs=256k
If you see no I/O error messages, the error message refers to the tape. Fill in XXXX with the VG name and be sure to use the "r" logical volume for speed.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2005 10:07 AM
тАО01-10-2005 10:07 AM
Re: Which file has the bad block?
If you suspect that the file is "somewhere" within a whole mount point and you can only narrow it down to a whole mount point - you can cpio up the whole thing to /dev/null..
(see below)
- cpio will generate the error string "Corrupt Block" or "corrupt block" when reading a block in a file that can't be read. I remember seeing this very text in my database backups years ago (before Omniback rescued me with better software) and shreiking in horror like I'd just seen a ghost.
use the following to check out a mountpoint...
cd /mntpointa
find . -xdev -depth | cpio -oBdvmuxc > /dev/null 2> /tmp/logfile &
After it's done look for the error with vi.
open the file with
vi /tmp/logfile
type
:set ignorecase [Hit Enter ]
/corrupt [Hit enter ]
Should take you right to the file that's bad
(unless you've got file names or directories with the string "corrupt" as part of the name).
Ok, let's all now together wish that the bad is just a throwaway logfile and not a vital database file...
... W I S H ... W I S H ...
( think happy thoughts )
... W I S H ... W I S H ...
:-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2005 10:17 AM
тАО01-10-2005 10:17 AM
Re: Which file has the bad block?
Enjoy, Have FUN! H.Merijn