Bacula-users

Re: [Bacula-users] scsi help

2009-01-09 01:54:31
Subject: Re: [Bacula-users] scsi help
From: Glen Davison <glen.davison AT sirca.org DOT au>
To: bacula <bacula-users AT lists.sourceforge DOT net>
Date: Fri, 9 Jan 2009 17:51:26 +1100

Michael Galloway <mgx AT ornl DOT gov> wrote on 09/01/2009 09:56:08 AM:

> Michael Galloway

>
> to: bacula

>
> 09/01/09 09:58 AM

>
> could i get a sanity check please? i've replaced my spectralogic T50
> (had some hardware issues) and i'm
> rebuilding backup server. i'm working through the basic tape and
> changer tests. scsi looks like this:
>
> [root@molbio bin]# lsscsi
> [0:0:0:0]    disk    ATA      TOSHIBA MK2035GS DK02  /dev/sda
> [1:0:0:0]    disk    ATA      TOSHIBA MK2035GS DK02  /dev/sdb
> [4:0:0:0]    disk    AMCC     9650SE-16M DISK  3.08  /dev/sdc
> [5:0:14:0]   tape    IBM      ULTRIUM-TD4      89B8  /dev/st0
> [5:0:15:0]   tape    IBM      ULTRIUM-TD4      89B8  /dev/st1
> [5:0:15:1]   mediumx SPECTRA  PYTHON           2000  -      
>
> mtx status looks as i would expect:
>
> [root@molbio bin]# mtx -f /dev/sg5 status
> Storage Changer /dev/sg5:2 Drives, 30 Slots ( 0 Import/Export )
> Data Transfer Element 0:Empty
> Data Transfer Element 1:Empty
> Storage Element 1:Full :VolumeTag=000290L4                            
> Storage Element 2:Full :VolumeTag=012477L4                
> etc ....
>
> however, when i use mtx to load a tape i get somewhat unexpected results:
>
> [root@molbio bin]# mtx -f /dev/sg5 load 1 0
>
> should load slot 1 into /dev/st0, i think, what i get is this:
>
> [root@molbio bin]# mt -f /dev/nst0 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 (50000):
>  DR_OPEN IM_REP_EN
> [root@molbio bin]# mt -f /dev/nst1 status
> SCSI 2 tape drive:
> File number=0, block number=0, partition=0.
> Tape block size 0 bytes. Density code 0x46 (no translation).
> Soft error count since last status=0
> General status bits on (41010000):
>  BOT ONLINE IM_REP_EN
>
> and if i add:
> [root@molbio bin]# mtx -f /dev/sg5 load 2 1
> [root@molbio bin]# mt -f /dev/nst0 status
> SCSI 2 tape drive:
> File number=0, block number=0, partition=0.
> Tape block size 0 bytes. Density code 0x46 (no translation).
> Soft error count since last status=0
> General status bits on (41010000):
>  BOT ONLINE IM_REP_EN
> [root@molbio bin]# mt -f /dev/nst1 status
> SCSI 2 tape drive:
> File number=0, block number=0, partition=0.
> Tape block size 0 bytes. Density code 0x46 (no translation).
> Soft error count since last status=0
> General status bits on (41010000):
>  BOT ONLINE IM_REP_EN
>
> now both are loaded.
>
> it seems the drives are reversed somehow. i don't really understand.
>
> any help appreciated.
>
> -- michael

I had a similar situation awhile back.  I think my st0 corresponded to nst1, st1 didn't have nst equiv.  Something like that.

I don't know what O/S you're running there?  It's obviously different to mine.

You could try looking here:

ls -l /dev/st[0-9] /dev/nst[0-9]

Look at the major and minor numbers.

On linux, st? and nst? are created in order of discovery; while mtx is talking about the library's internal concept of drive numbering.  Why they are out of sync: various possibilities.  It could be that your SCSI buses are wired up in an unusual way, although your lsscsi above looks OK.  Or something in the O/S config...?


Glen

--
Glen Davison                      davo AT sirca.org DOT au
SIRCA Pty Ltd                      Ph (02) 9236 9133
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>