1826380 Members
4196 Online
109692 Solutions
New Discussion

Auto detect SCSI DAT

 
SOLVED
Go to solution
Christophe MESTDACH
Occasional Advisor

Auto detect SCSI DAT

Excuse-me for my English but I'm French.

Is there possible to auto detect a new SCSI DAT under HP-UX 11.11 without reboot or use of SAM ?

Thanks in advance.
7 REPLIES 7
Mark Greene_1
Honored Contributor

Re: Auto detect SCSI DAT

ioscan -f

and then

insf -e to build the device special file if not present.


mark
the future will be a lot like now, only later
Chris Watkins_1
Respected Contributor

Re: Auto detect SCSI DAT

As long as the stape driver is in the kernel, it shouldn't be a problem.

# ioscan
# insf -e
# ioscan -funC tape

Last command should show the hardware.
Not without 2 backups and an Ignite image!
Jeff Schussele
Honored Contributor

Re: Auto detect SCSI DAT

Bon jour Christophe,

Run

ioscan -fnC tape

This will detect the new device

Then run

insf

This will install the device files. The -e is not required & is used to reinstall device files if they've been removed.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jannik
Honored Contributor
Solution

Re: Auto detect SCSI DAT

HPUX is not PAP, but you could run a script every minut or 10 minuts:

#!/usr/bin/ksh
ioscan
insf -e

run it though crontab. But why not just run you ioscan and insf everytime U connect your DAT?
jaton
Christophe MESTDACH
Occasional Advisor

Re: Auto detect SCSI DAT

I am currently migrating an application HP-UX 9.07 under HP-UX 11.11.

This application will be then installed on 120 B2600/785 machines.

These machines will not be to install with the same software :

- 40 machines will be to install with :
HP-UX 11.11
Ingres 2.5
FTAM
OTS
OPENVIEW 6.0

- 40 machines will be to install with :
HP-UX 11.11
OTS
OPENVIEW 6.0

- 40 machines will be to install with :
HP-UX 11.11
X25
OTS
OPENVIEW 6.0

My customer does not want that I use a Ignite-ux server to install the whole of the machines.

For each type of machine, I thus created an bootable DVD using the command make_sys_image.

The users of these machines can install readers of DAT SCSI.

It is necessary that the detection of this reader DAT SCSI is done automatically.

Jeff Schussele
Honored Contributor

Re: Auto detect SCSI DAT

Yes - the system will detect the tape drive, if it has a bootable tape inserted, at the BCH (Boot Console Handler) prompt

BCH> sea ipl

It will show the tape as sequential access device & then you can direct the system to boot from it.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Chris Watkins_1
Respected Contributor

Re: Auto detect SCSI DAT

It is not going to happen automatically, if you mean for
it to be autodetected as a boot device. You would have
to use the commands mentioned above to search and then boot.

If you setup to boot automatically from tape (or DVD),
then it would require intervention later to boot from disk.

If you're talking about auto-detection once the system is up
and running, and a tape drive is added, then you can write a
script, as mentioned already, to perform an ioscan on preset
intervals, (via cron) and do the insf command.
Not without 2 backups and an Ignite image!