Veritas-bu

Re: [Veritas-bu] Linux tape discovery / cleanup

2008-03-06 11:05:52
Subject: Re: [Veritas-bu] Linux tape discovery / cleanup
From: Peter DrakeUnderkoffler <pcd AT xinupro DOT com>
To: Paul Keating <pkeating AT bank-banque-canada DOT ca>
Date: Thu, 06 Mar 2008 10:46:16 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lots of data on Google for this.


You can remove/add scsi devices at different levels.  You can always
remove (unload) the module for the SCSI/FC driver and reload it as long
as you take care of all the dependencies.

You can be far more precise with /proc/scsi/scsi for removing a device
with:

echo "scsi remove-single-device #1 #2 #3 #4" > /proc/scsi/scsi

where:

 #1 = controller number
 #2 = channel number
 #3 = SCSI id
 #4 = LUN number

and to add if you know all the particulars:

echo "scsi add-single-device #1 #2 #3 #4" > /proc/scsi/scsi

If you are running a 2.6 kernel version of redhat (RHv4 or v5), you
can also use the /sys/class/scsi_host/host#/ routines.

There may be needed tasks performed in /etc/modprobe.conf or /etc/modules.conf
as well as making a new boot image (initrd with the command mkinitrd).  These
changes do require a reboot.

Thanks
Peter


Peter DrakeUnderkoffler
Xinupro, LLC
617-834-2352



Paul Keating wrote:
> Hey Folks.
>  
> First foray into enterprise linux using RHEL.
>  
> when adding or removing tape devices, can you add new, or cleanup
> disconencted devices in any sane way?
> I've been rebooting to see new devices, or if presenting new and
> disconnecting old, it looks like the old dev files are hanging around in
> addition to the new ones being created.
>  
> ??
> 
> ====================================================================================
> 
> La version française suit le texte anglais.
> 
> ------------------------------------------------------------------------------------
> 
> This email may contain privileged and/or confidential information, and the 
> Bank of
> Canada does not waive any related rights. Any distribution, use, or copying 
> of this
> email or the information it contains by other than the intended recipient is
> unauthorized. If you received this email in error please delete it 
> immediately from
> your system and notify the sender promptly by email that you have done so. 
> 
> ------------------------------------------------------------------------------------
> 
> Le présent courriel peut contenir de l'information privilégiée ou 
> confidentielle.
> La Banque du Canada ne renonce pas aux droits qui s'y rapportent. Toute 
> diffusion,
> utilisation ou copie de ce courriel ou des renseignements qu'il contient par 
> une
> personne autre que le ou les destinataires désignés est interdite. Si vous 
> recevez
> ce courriel par erreur, veuillez le supprimer immédiatement et envoyer sans 
> délai à
> l'expéditeur un message électronique pour l'aviser que vous avez éliminé de 
> votre
> ordinateur toute copie du courriel reçu.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org

iD8DBQFH0BHIl+lekZRM55oRArlCAJ4wPiU99hi+h4pyAG2yyQz+LJYSVwCg3QEj
KEyUGHUVDP1GtXBVU40QadI=
=C5TV
-----END PGP SIGNATURE-----
_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
<Prev in Thread] Current Thread [Next in Thread>