From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,b35418a3aae4b483 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-11-19 09:32:21 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: mike@dvfmv.com (Mike Robinson) Newsgroups: comp.unix.tru64 Subject: Re: munged /dev files Date: 19 Nov 2002 09:32:21 -0800 Organization: http://groups.google.com/ Message-ID: References: NNTP-Posting-Host: 12.18.140.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1037727141 14068 127.0.0.1 (19 Nov 2002 17:32:21 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 19 Nov 2002 17:32:21 GMT Xref: archiver1.google.com comp.unix.tru64:9141 "Adam Price" wrote in message news:... > In news:rgt1ra.pap.ln@cc49395-b.wodhvn01.mi.comcast.net > ,Stuart Fuller said: > > Mike Robinson wrote: > > > >> Greetings, > >> > >> I think I managed to corrupt my /dev/rmt0h file (got the order > >> reversed in a tar command). The tape is a DEC TLZO7-DA at SCSI id 5. > >> From looking at some older posts, I think the fix is to remove the > >> existing rmt file, then run MAKEDEV tz5. Is that correct, and is a > >> reboot required? > >> > >> Thanks, > >> Mike > > > > Yes, and No. > > > > Note that when you remove the existing rmt file, remember that there > > are several of them (rmt0h, nrmt0h, rmt0l, nrmt0l, etc.; look for > > /dev/*rmt*) and you should remove all of them before running MAKEDEV. > > > > Stu > Nooooo... *rmt0* otherwise wou will remove all the other tape devices > on the system rmt1 rmt2 etc.... > > Oh and I assume that the current tape drive is on bus 0 otherwise you need > to do a little work for that. (8 * bus + target) > > If you already did the rm *rmt* thing then scsimgr -scan_all should sort > you out. > Hope this helps > Adam Stu & Adam, Thanks for the tips. Running MAKEDEV tz5 did "complain" about the other files existing, but did create a new rmt0h. I think I may have to remove all the rmts, as I think my other tape is fouled up too. Without having removed anything yet, running scsimgr -scan_all produced the message: "ITPSA1: SCSI Bus was reset" 5 times in the Console log, and nothing to stdout. From reading the man page for scsimgr, it looks like if I remove *rmt*, then run scsimgr -scan_all, scsimgr will call MAKEDEV and create the proper dev files. Which Adam has pointed out. I'm guessing that after running scsimgr -scan_all, I would then need to run scsimgr -sync in lieu of rebooting? Thanks again, Mike