Fedora 15 +scsi

Bill Perry wlperry at williamperry.com
Fri Oct 14 17:58:22 UTC 2011


I had an older box which I was using as the site backup machine. A 
friend gave me a HP DAT72 drive and I got it up and working on the 
Fedora 11 OS. I did backups and tested everything. The tape drive was 
accessed as /dev/st4. This box ran Samba and users copied their files to 
the this machine. I did backups using:
tar cvf /dev/st4 /home/<user> /home/<user>

Then I decided to upgrade. I swapped out the motherboard and got a 64 
bit cpu and upgraded the OS (complete new install). I now have Fedora 15 
running on the box.

The tape drive has been visible as /dev/st4 occasionally. And when it is 
I have used it to make a small backup and test the restore. But the 
/dev/st4 is not always visible and the file /dev/st4 usually disappears 
upon reboot. I don't know what I did to make it appear (if anything).

It almost looks like the device changed from /dev/st4 to /dev/st0. Is 
that possible?

Some more info:
#ls /dev/st*
/dev/st0  /dev/st0a  /dev/st0l  /dev/st0m  /dev/stderr  /dev/stdin  
/dev/stdout
#lsscsi
[0:0:0:0]    cd/dvd  PIONEER  DVD-RW  DVR-106D 1.08  /dev/sr0
[2:0:0:0]    disk    ATA      WDC WD2500JS-60M 10.0  /dev/sda
[2:0:1:0]    disk    ATA      ST2000DL003-9VT1 CC32  /dev/sdb
[3:0:0:0]    disk    ATA      ST2000DL003-9VT1 CC32  /dev/sdc
[3:0:1:0]    disk    ATA      ST2000DL003-9VT1 CC32  /dev/sdd
[4:0:4:0]    tape    HP       C7438A           V312  /dev/st0
# dmesg |grep tape
[   25.211496] st 4:0:4:0: Attached scsi tape st0
#cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
   Vendor: PIONEER  Model: DVD-RW  DVR-106D Rev: 1.08
   Type:   CD-ROM                           ANSI  SCSI revision: 05
Host: scsi2 Channel: 00 Id: 00 Lun: 00
   Vendor: ATA      Model: WDC WD2500JS-60M Rev: 10.0
   Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi2 Channel: 00 Id: 01 Lun: 00
   Vendor: ATA      Model: ST2000DL003-9VT1 Rev: CC32
   Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi3 Channel: 00 Id: 00 Lun: 00
   Vendor: ATA      Model: ST2000DL003-9VT1 Rev: CC32
   Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi3 Channel: 00 Id: 01 Lun: 00
   Vendor: ATA      Model: ST2000DL003-9VT1 Rev: CC32
   Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi4 Channel: 00 Id: 04 Lun: 00
   Vendor: HP       Model: C7438A           Rev: V312
   Type:   Sequential-Access                ANSI  SCSI revision: 03
#tar cvf /dev/st4 /root
tar: /dev/st4: Cannot open: No such device or address
tar: Error is not recoverable: exiting now
#tar cvf /dev/st0 /root
<does nothing  - just times out after a few minutes with the following 
message>
tar: /dev/st0: Cannot open: Input/output error
tar: Error is not recoverable: exiting now
#./rescan-scsi-bus.sh
Host adapter 4 (aic7xxx) found.
./rescan-scsi-bus.sh: line 31: [: too many arguments
Host adapter * (device_info) found.
Scanning hosts  4 * channels 0 for
  SCSI target IDs  0 1 2 3 4 5 6 7 , LUNs  0
Scanning for device 4 0 4 0 ...
OLD: Host: scsi4 Channel: 00 Id: 04 Lun: 00
       Vendor: HP       Model: C7438A           Rev: V312
       Type:   Sequential-Access                ANSI  SCSI revision: 03
0 new device(s) found.               d.txt 0 7 0 ...
0 device(s) removed.
#MAKEDEV /dev/st4
# ls /dev/st*
/dev/st0   /dev/st0l  /dev/st4   /dev/st4l  /dev/stderr  /dev/stdout
/dev/st0a  /dev/st0m  /dev/st4a  /dev/st4m  /dev/stdin
#tar cvf /dev/st4 /root
tar: /dev/st4: Cannot open: No such device or address
tar: Error is not recoverable: exiting now
# mt -f /dev/st4 status
/dev/st4: No such device or address
#tar cvf /dev/st0 /root
tar: /dev/st0: Cannot open: Input/output error
tar: Error is not recoverable: exiting now
# mt -f /dev/st0 status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (10000):
  IM_REP_EN
#<Reboot>
ls /dev/st*
/dev/st0  /dev/st0a  /dev/st0l  /dev/st0m  /dev/stderr  /dev/stdin  
/dev/stdout


Does anybody have a clue? Is there some command that I am missing? What 
can I do? Thanks for any help!
Bill

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20111014/72acac35/attachment.html 


More information about the users mailing list