Operating System - HP-UX
1851385 Members
2771 Online
104058 Solutions
New Discussion

DDS tape change scsi id on hpux 11.31

 
Boris PIRC
Visitor

DDS tape change scsi id on hpux 11.31

How can I change scsi id of dds tape on v 11.31
with ioscan -fnCtape new device was CLAIMED but if I want to write or read from device I recived cannot open /dev/rmt/0m

How can I do this with out of reboot system??
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: DDS tape change scsi id on hpux 11.31

I think what you're asking is to change the name of the device file, like from /dev/rmt/whatever to /dev/rmt/0m. Well, it's just that simple: rename it.

mv /dev/rmt/whatever /dev/rmt/0m

Also do all the associated device files like /dev/rmt/whatevern to /dev/rmt/0mn so that everything is consistent.


Pete

Pete
Peter Nikitka
Honored Contributor

Re: DDS tape change scsi id on hpux 11.31

Hi,

please check
- the device names reported by your ioscan: is /dev/rmt/0m found here?
- is there medium in the drive?
- does a 'mt -f status' report the same error?

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Boris PIRC
Visitor

Re: DDS tape change scsi id on hpux 11.31

I changed scsi id from 2 to new scsi id 3.
Then I did insf -H (new path )
and ioscan -fnCtape to checked new device file and it look ok.
tape 3 0/1/1/1.2.0 stape NO_HW DEVICE HP C5683A for old device

and for new device
tape 0 0/1/1/1.3.0 stape CLAIMED DEVICE HP C5683A

but if I want to use new device file for tape on scsi id 3 which was 3 (claimed )
i got error
cannot open /dev/rmt/0mn

Only rebot can help.How can I fix this witout reboot.
Aneesh Mohan
Honored Contributor

Re: DDS tape change scsi id on hpux 11.31

Hi,

Please do

#ioscan -fnCtape
#insf -eC tape
#ioscan -funCtape -- Now you can see the claimed one

Move the rewind and non-rewind device files
like /dev/rmt/xmn /dev/rmt/0mn so on.

Aneesh
Siddhartha Sinha
Occasional Advisor

Re: DDS tape change scsi id on hpux 11.31

run insf -e or insf -d stape and the new device file will be created. use that device. It will be /dev/rmt1

Or if u want to use previous device

do rmsf -H on the old path and rerun ioscan and insf again