Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* munged /dev files
@ 2002-11-15  0:05 Mike Robinson
  2002-11-15  4:34 ` Stuart Fuller
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Robinson @ 2002-11-15  0:05 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: munged /dev files
  2002-11-15  0:05 munged /dev files Mike Robinson
@ 2002-11-15  4:34 ` Stuart Fuller
  2002-11-15  6:01   ` Adam Price
  0 siblings, 1 reply; 4+ messages in thread
From: Stuart Fuller @ 2002-11-15  4:34 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: munged /dev files
  2002-11-15  4:34 ` Stuart Fuller
@ 2002-11-15  6:01   ` Adam Price
  2002-11-19 17:32     ` Mike Robinson
  0 siblings, 1 reply; 4+ messages in thread
From: Adam Price @ 2002-11-15  6:01 UTC (permalink / raw)


In news:rgt1ra.pap.ln@cc49395-b.wodhvn01.mi.comcast.net
,Stuart Fuller <stufuller@usa.net> 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






^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: munged /dev files
  2002-11-15  6:01   ` Adam Price
@ 2002-11-19 17:32     ` Mike Robinson
  0 siblings, 0 replies; 4+ messages in thread
From: Mike Robinson @ 2002-11-19 17:32 UTC (permalink / raw)


"Adam Price" <adam+usenet@pappnase.co.uk> wrote in message news:<ar22ia$eitms$1@ID-138239.news.dfncis.de>...
> In news:rgt1ra.pap.ln@cc49395-b.wodhvn01.mi.comcast.net
> ,Stuart Fuller <stufuller@usa.net> 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-11-19 17:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-15  0:05 munged /dev files Mike Robinson
2002-11-15  4:34 ` Stuart Fuller
2002-11-15  6:01   ` Adam Price
2002-11-19 17:32     ` Mike Robinson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox