Amanda-Users

Re: amtapetype problems

2006-08-18 16:09:40
Subject: Re: amtapetype problems
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Fri, 18 Aug 2006 15:00:20 -0400
On Fri, Aug 18, 2006 at 12:13:22PM -0500, Nick Jones wrote:
> Hello everyone, I'm attempting to set up amanda on my YDL 4.1 XServe
> G5.  I've compiled the app and everything seems well.   I have
> modified the kernel (according to Overland) so that my tape library
> (Overland Loaderxpress with 1 LTO-3 drive, 11 slot tape).   Heres the
> output of some stuff.
> 
> [root@alienraid sbin]# cat /proc/scsi/scsi
> Attached devices:
> Host: scsi0 Channel: 00 Id: 00 Lun: 00
>  Vendor: ATA      Model: Hitachi HDS72258 Rev: V32B
>  Type:   Direct-Access                    ANSI SCSI revision: 05
> Host: scsi5 Channel: 00 Id: 04 Lun: 00
>  Vendor: HP       Model: Ultrium 3-SCSI   Rev: G24H
>  Type:   Sequential-Access                ANSI SCSI revision: 03
> Host: scsi5 Channel: 00 Id: 06 Lun: 00
>  Vendor: OVERLAND Model: LXB              Rev: 0107
>  Type:   Medium Changer                   ANSI SCSI revision: 02
> Host: scsi6 Channel: 00 Id: 00 Lun: 00
>  Vendor: APPLE    Model: Xserve RAID      Rev: 1.26
>  Type:   Direct-Access                    ANSI SCSI revision: 05
> Host: scsi7 Channel: 00 Id: 00 Lun: 00
>  Vendor: APPLE    Model: Xserve RAID      Rev: 1.50
>  Type:   Direct-Access                    ANSI SCSI revision: 05
> 
> [root@alienraid sbin]# cat /var/log/messages* | grep scsi | grep  "Aug 10"
> Aug 10 00:01:30 alienraid kernel: scsi0 : sata_svw
> Aug 10 00:01:30 alienraid kernel: scsi1 : sata_svw
> Aug 10 00:01:30 alienraid kernel: scsi2 : sata_svw
> Aug 10 00:01:30 alienraid kernel: scsi3 : sata_svw
> Aug 10 00:01:30 alienraid kernel: sd 0:0:0:0: Attached scsi disk sda
> Aug 10 00:01:31 alienraid kernel: sd 0:0:0:0: Attached scsi generic sg0 
> type 0
> Aug 10 00:01:31 alienraid kernel: scsi4 : ioc0: LSI53C1030,
> FwRev=01032700h, Ports=1, MaxQ=255, IRQ=53
> Aug 10 00:01:31 alienraid kernel: scsi5 : ioc1: LSI53C1030,
> FwRev=01032700h, Ports=1, MaxQ=255, IRQ=53
> Aug 10 00:01:31 alienraid kernel: st 5:0:4:0: Attached scsi tape
> st0<4>st0: try direct i/o: yes (alignment 512 B), max page reachable
> by HBA 524288
> Aug 10 00:01:31 alienraid kernel: st 5:0:4:0: Attached scsi generic sg1 
> type 1
> Aug 10 00:01:31 alienraid kernel:  5:0:6:0: Attached scsi generic sg2 type 8
> Aug 10 00:01:31 alienraid kernel: scsi6 : ioc2: LSIFC929X,
> FwRev=01010b00h, Ports=1, MaxQ=1023, IRQ=52
> Aug 10 00:01:31 alienraid kernel: sd 6:0:0:0: Attached scsi disk sdb
> Aug 10 00:01:31 alienraid kernel: sd 6:0:0:0: Attached scsi generic sg3 
> type 0
> Aug 10 00:01:31 alienraid kernel: scsi7 : ioc3: LSIFC929X,
> FwRev=01010b00h, Ports=1, MaxQ=1023, IRQ=52
> Aug 10 00:01:32 alienraid kernel: sd 7:0:0:0: Attached scsi disk sdc
> Aug 10 00:01:32 alienraid kernel: sd 7:0:0:0: Attached scsi generic sg4 
> type 0
> 
> I've tried
> 
> [root@alienraid sbin]# ./amtapetype -f /dev/nst0
> [root@alienraid sbin]# ./amtapetype -f /dev/st0
> [root@alienraid sbin]# ./amtapetype -f /dev/sg0
> [root@alienraid sbin]# ./amtapetype -f /dev/sg1
> [root@alienraid sbin]# ./amtapetype -f /dev/sg2
> 
> With no luck, I get either:
> amtapetype: could not open /dev/nst0: Input/output error
> or
> amtapetype: could not rewind device /dev/nst0 or something like that
> 
> I'm probably doing something dumb, but I'm having a hard time figuring
> this out.  Anyone got any ideas?  Thanks
> 

Before trying any amanda commands, I'd suggest you try some of
your system commands to see if 'anything' can talk to your
changer and tapedrive.  Amanda just adds another layer of
complexity that is not needed yet.

Can you use:

mtx to get status, load a tape, move to another slot, etc.
mt  to get status, eject a tape, move to the end of a tape, rewind

dd to write a file to the tape and after mt rewind, read the file
from the tape

tar to create an archive and write it to the tape, then recover it

-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

<Prev in Thread] Current Thread [Next in Thread>