From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 1020c6,817a9d2fdb273acf X-Google-Thread: fa528,817a9d2fdb273acf X-Google-Attributes: gid1020c6,gidfa528,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!k21g2000cwa.googlegroups.com!not-for-mail From: "Doug Freyburger" Newsgroups: comp.unix.admin,comp.unix.tru64 Subject: Re: Marking a bad sector in AdvFS on Digital Unix Date: 2 Jan 2007 11:14:42 -0800 Organization: http://groups.google.com Message-ID: <1167765281.998652.195630@k21g2000cwa.googlegroups.com> References: NNTP-Posting-Host: 65.174.243.142 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1167765287 10555 127.0.0.1 (2 Jan 2007 19:14:47 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 2 Jan 2007 19:14:47 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: k21g2000cwa.googlegroups.com; posting-host=65.174.243.142; posting-account=nAtQ1QwAAAD-1ubqhIYMCFcPXJDWvtpZ Xref: g2news2.google.com comp.unix.admin:2748 comp.unix.tru64:609 Frank J. Perricone wrote: > Frank J. Perricone wrote: > > > During a regularly scheduled defrag of our Digital Unix 4.0d system's AdvFS > > partitions, a bad sector was found. We renamed the file, then recovered > > what we could from it and rebuilt the database it contained into a new file > > with the old filename, so our system is up and all is well. > > > However, every night I get this error message in my defrag results: > > > defragment: Defragmented domain 'root_domain' > > defragment: Can't move file /dlc/database/inv/baditr.datafile > > defragment: Error = I/O error > > defragment: Can't defragment domain 'db_domain' > > defragcron: could not defragment domain 'db_domain' > > > It's doing no harm I can see (and, after a few weeks, no more bad sectors > > have cropped up, so it doesn't seem that this is more than an isolated > > failure on the disk). However, I've been unable to figure out how to get > > rid of it. I can't delete the bad data file and wouldn't want to if I > > could, as I don't want that sector used by anything else. I've tried > > dismounting and running verify but it reported no problems and made no > > changes. > > > Any suggestions? > > Bump. Anyone? It's been too long since I did a lot of Tru64/DU/Ultrix support to remember all of the things that verify does. SCSI drives maintain spare blocks so they can redirect traffic from failed spots. If that feature is set to automatic the spares may all be used and you have a bad drive. if that feautre is manual you need to use a utility that scans the entire surface. I know the Solaris "format" does that but I don't know if the DU "verify" does that. Your worst case is to relocate the domain off of that device, replace the disk, and move the domain back onto the new device. As to deleting the bad file, you could probably use "unlink" but that would leave the blocks allocated and eventually an fsck would put them back in lost+found.