OK - I only have one tape drive but a real problem these days backing up. I ***may*** have connected the SCSI connector to the 'other' external connector when shifting stuff around in the rack.
# cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: MegaRAID Model: LD 0 RAID5 69G Rev: 4.10 Type: Direct-Access ANSI SCSI revision: 02 Host: scsi0 Channel: 04 Id: 06 Lun: 00 Vendor: PE/PV Model: 1x3 SCSI BP Rev: 1.1 Type: Processor ANSI SCSI revision: 02 Host: scsi0 Channel: 05 Id: 06 Lun: 00 Vendor: SEAGATE Model: ULTRIUM06242-XXX Rev: 1514 Type: Sequential-Access ANSI SCSI revision: 03 Host: scsi0 Channel: 05 Id: 06 Lun: 01 Vendor: SEAGATE Model: ULTRIUM06242-XXX Rev: 1514 Type: Sequential-Access ANSI SCSI revision: 03
How do I get it 're-parse' the scsi system so it only indicates one ULTRIUM tape drive? Me suspects this is why I am having backup issues.
Craig
Craig White wrote:
OK - I only have one tape drive but a real problem these days backing up. I ***may*** have connected the SCSI connector to the 'other' external connector when shifting stuff around in the rack.
# cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: MegaRAID Model: LD 0 RAID5 69G Rev: 4.10 Type: Direct-Access ANSI SCSI revision: 02 Host: scsi0 Channel: 04 Id: 06 Lun: 00 Vendor: PE/PV Model: 1x3 SCSI BP Rev: 1.1 Type: Processor ANSI SCSI revision: 02 Host: scsi0 Channel: 05 Id: 06 Lun: 00 Vendor: SEAGATE Model: ULTRIUM06242-XXX Rev: 1514 Type: Sequential-Access ANSI SCSI revision: 03 Host: scsi0 Channel: 05 Id: 06 Lun: 01 Vendor: SEAGATE Model: ULTRIUM06242-XXX Rev: 1514 Type: Sequential-Access ANSI SCSI revision: 03
How do I get it 're-parse' the scsi system so it only indicates one ULTRIUM tape drive? Me suspects this is why I am having backup issues.
Try:
echo "scsi remove-single-device 0 5 6 1" > /proc/scsi/scsi
This should remove the drive at LUN 1
Also have a look at the 'Rescan SCSI bus' section at http://www.garloff.de/kurt/linux/
James Pearson
On Fri, 2005-10-21 at 11:54 +0100, James Pearson wrote:
Craig White wrote:
OK - I only have one tape drive but a real problem these days backing up. I ***may*** have connected the SCSI connector to the 'other' external connector when shifting stuff around in the rack.
# cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: MegaRAID Model: LD 0 RAID5 69G Rev: 4.10 Type: Direct-Access ANSI SCSI revision: 02 Host: scsi0 Channel: 04 Id: 06 Lun: 00 Vendor: PE/PV Model: 1x3 SCSI BP Rev: 1.1 Type: Processor ANSI SCSI revision: 02 Host: scsi0 Channel: 05 Id: 06 Lun: 00 Vendor: SEAGATE Model: ULTRIUM06242-XXX Rev: 1514 Type: Sequential-Access ANSI SCSI revision: 03 Host: scsi0 Channel: 05 Id: 06 Lun: 01 Vendor: SEAGATE Model: ULTRIUM06242-XXX Rev: 1514 Type: Sequential-Access ANSI SCSI revision: 03
How do I get it 're-parse' the scsi system so it only indicates one ULTRIUM tape drive? Me suspects this is why I am having backup issues.
Try:
echo "scsi remove-single-device 0 5 6 1" > /proc/scsi/scsi
This should remove the drive at LUN 1
Also have a look at the 'Rescan SCSI bus' section at http://www.garloff.de/kurt/linux/
---- now that's what I'm talking about ;-)
Thanks - at this point, I will wait until office clears out tonight - doesn't seem to be the thing you want to try to S & G's at the beginning of the day (desparation is a relative thing - they are functioning, just backup isn't happening).
Craig
Quoting Craig White craigwhite@azapple.com:
OK - I only have one tape drive but a real problem these days backing up. I ***may*** have connected the SCSI connector to the 'other' external connector when shifting stuff around in the rack.
# cat /proc/scsi/scsi Attached devices:
Host: scsi0 Channel: 05 Id: 06 Lun: 00 Vendor: SEAGATE Model: ULTRIUM06242-XXX Rev: 1514 Type: Sequential-Access ANSI SCSI revision: 03 Host: scsi0 Channel: 05 Id: 06 Lun: 01 Vendor: SEAGATE Model: ULTRIUM06242-XXX Rev: 1514 Type: Sequential-Access ANSI SCSI revision: 03
How do I get it 're-parse' the scsi system so it only indicates one ULTRIUM tape drive? Me suspects this is why I am having backup issues.
Hm, reboot? ;-)
However, it might not help. Some hardware likes to be seen on more than one LUN. I used to have one ancient 8mm Exabyte tape drive that would report it has about 8 LUNs. Go figure.
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
Craig White craigwhite@azapple.com wrote:
OK - I only have one tape drive but a real problem these days backing up. I ***may*** have connected the SCSI connector to the 'other' external connector when shifting stuff around in the rack. # cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: MegaRAID Model: LD 0 RAID5 69G Rev: 4.10 Type: Direct-Access ANSI SCSI revision: 02 Host: scsi0 Channel: 04 Id: 06 Lun: 00 Vendor: PE/PV Model: 1x3 SCSI BP Rev: 1.1 Type: Processor ANSI SCSI revision: 02 Host: scsi0 Channel: 05 Id: 06 Lun: 00 Vendor: SEAGATE Model: ULTRIUM06242-XXX Rev: 1514 Type: Sequential-Access ANSI SCSI revision: 03 Host: scsi0 Channel: 05 Id: 06 Lun: 01 Vendor: SEAGATE Model: ULTRIUM06242-XXX Rev: 1514 Type: Sequential-Access ANSI SCSI revision: 03 How do I get it 're-parse' the scsi system so it only indicates one ULTRIUM tape drive? Me suspects this is why I am having backup issues.
2 Options ...
1. If the devices are not in use, merely "rmmod" the SCSI stack (st, sd, host, mod_scsi/scsi_mod) and then re-probe (modprobe st).
2. You can rescan the SCSI bus in a variety of ways (even a few more with kernel 2.6). There are countless scripts usable for SCSI, FireWire, etc... available via a Google search ("Linux SCSI rescan").