Operating System - HP-UX
1835844 Members
2772 Online
110085 Solutions
New Discussion

Re: Howto hot-remove SCSI device safely in HP-UX

 
SOLVED
Go to solution
OPM Marienborg
Advisor

Howto hot-remove SCSI device safely in HP-UX

We are currently using a portable tape-drive to do ignite-tapes etc. My question follows, is it possible to remove the tape drive while the system is powered on? We tried doing that the other day and the system crashed. Is there a command to tell the system to release/unbind a HW-path?

thanks,
6 REPLIES 6
Andrew Rutter
Honored Contributor
Solution

Re: Howto hot-remove SCSI device safely in HP-UX

hi,

There is no command to release the hardware path as far I know, and you should be able to remove the external tape drive quite easily without problem.

The only reason the system may have crashed is if the system was using or thought it was using the device, ie something still had a hold on a process associated with the device.

Of course if you need to remove the device it must be last on the bus, not in the middle of a daisy chain, preferably on its own aswell. This could cause it to crash if the bus hung due to terminating other devies aswell unexpectedly.

one thing you could do is check the processes running if it is on its own bus, prior to removal.

Also check status of drive with

#mt -t stat
and if necessary make sure it is offline

#mt -t offline

of course removing the drive physically will still leave any device files present, and you will have an no_hw in ioscan output.


Andy


paolo barila
Valued Contributor

Re: Howto hot-remove SCSI device safely in HP-UX

Yes, just check that is not working.

If you want you can remove the special files:

# ioscan -fnC tape

sample output:

Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 0 0/0/1/0.4.0 stape CLAIMED DEVICE HP C1537A


# rmsf -H 0/0/1/0.4.0

I would anyway do "rmsf" only to change the tape.

Paolo

share share share
Steven E. Protter
Exalted Contributor

Re: Howto hot-remove SCSI device safely in HP-UX

Shalom,

Removing scsi devices sometimes produces an lbolt in /var/adm/syslog/syslog.log

If its caused by removing a device its okay. If it is caused by another device it means disk failure and should be followed up on.

Your crash may be caused by a missing patch.

vi /var/rc.config.d/savecrash

Make sure the variable in the file is set to 1.

Then if there is a subsequent crash you will get a crash dump in /var/adm/crash

You will be able post crash to run q4 analysis and your friendly, local HP response center will be able to provide you a list of patches to install.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
OPM Marienborg
Advisor

Re: Howto hot-remove SCSI device safely in HP-UX

Thanks, I'll try this next time.
Devender Khatana
Honored Contributor

Re: Howto hot-remove SCSI device safely in HP-UX

Hi,

One reason for crash could be that the device was switched on while removed?

There is no need to remove device file for the device before physically removing it.

Ensure the device to be powered down when attaching/detaching not the server.

HTH,
Devender
Impossible itself mentions "I m possible"
Carl Munnelly
Frequent Advisor

Re: Howto hot-remove SCSI device safely in HP-UX

What type of card is the tape drive connected to is it a self terminating SCSI card.

Crash could be caused if not self terminating as SCSI termination would be broken and system would panic.