Networker

Re: [Networker] Reading/writing SAIT1 tapes on Linux that were written by solaris?

2005-11-30 16:26:51
Subject: Re: [Networker] Reading/writing SAIT1 tapes on Linux that were written by solaris?
From: Oscar Olsson <spam1 AT QBRANCH DOT SE>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Wed, 30 Nov 2005 22:24:12 +0100
On Wed, 30 Nov 2005, Tim Mooney wrote:

TM> In regard to: Re: [Networker] Reading/writing SAIT1 tapes on Linux that...:
TM>
TM> > OK, the thing that SEEMS to solve the problem is to run "mt -f
TM> > /path/to/device status" just BEFORE the tape is loaded into the drive by
TM> > networker. What happens then is that networker can't read the drive, since
TM> > its already in use by mt. mt then returns the status as expected, and
TM> > networker ejects the tape because it couldn't read it. The interesting bit
TM> > is that when you load ANY tape after that has happened, it can read the
TM> > tape just fine! And no, this is no across-reboot persistent. :(
TM> >
TM> > So, who should I talk to? The guy who wrote the QLA HBA driver? Novell?
TM> > EMC/legato? Spectralogic? My local pizza shop?
TM>
TM> Your earlier post showed that you have an stinit.def, but are you certain
TM> it's being used?  What does /etc/modules.conf look like on the Linux box?

I've tried running stinit manually before doing anything, and it says that
it has inited four drives (the ones in the library).

This is what it writes to the dmesg buffer:

st0: Drive buffer default set to 1
st0: Normal timeout set to 800 seconds.
st0: Long timeout set to 14400 seconds.
st0: Mode 0 options: buffer writes: 1, async writes: 1, read ahead: 1
st0:    can bsr: 1, two FMs: 0, fast mteom: 0, auto lock: 0,
st0:    defs for wr: 0, no block limits: 0, partitions: 0, s2 log: 1
st0:    sysv: 0 nowait: 0
st0: Default block size set to 0 bytes.
st0: Density default set to 0

The same is also written for the remaining three drives.

This doesn't seem to make a difference to the behavior I'm descriving.

I will include the modprobe.conf at the end of this email.

TM> Also, what does dmesg report?  Unfortunately there are no timestamps in
TM> dmesg, so it's difficult to know what actions may have triggered any
TM> messages that are in the ring buffer.  If you do a reboot, check dmesg,
TM> try the read (no mt first), check dmesg, and then do the mt and the read,
TM> that might give you a hint what's going on.

The "st0: Incorrect block size." appears after I try to mount a tape in
the drive. This does not appear after I've run the mt -f device status
command just before inserting a tape into the device.

TM> I'm just taking wild guesses here, but I'm wondering if you need
TM>
TM> post-install st /sbin/stinit
TM>
TM> in /etc/modules.conf, but the `mt' is triggering stinit, and that's why
TM> you don't see the problem *after* mt has been run once.

I don't have a /etc/modules.conf file. But I guess /etc/modprobe.conf
should do the same thing. Can't see it there though. Based on the below
file, should I just enter what ypu've written into
/etc/modprobe.conf.local ?

//Oscar

sn01:~ # more /etc/modprobe.conf
#
# Copyright (c) 1996-2002 SuSE Linux AG Nuernberg, Germany.
# All rights reserved.
#
# Author: Hubert Mantel <mantel AT suse DOT de>, 1996-2002
#
# Configuration file for loadable modules; used by modprobe
#
#
########################################################################
# Aliases - specify your hardware
########################################################################

install eth0             /bin/true
install eth1             /bin/true
install tr0              /bin/true
install scsi_hostadapter /bin/true
install fb0              /bin/true

########################################################################
# only used for Mylex or Compaq Raid as module
########################################################################

install block-major-48   /bin/true
install block-major-49   /bin/true
install block-major-72   /bin/true
install block-major-73   /bin/true

########################################################################
# only needed for fifth and sixth IDE adaptor
########################################################################

install block-major-56   /bin/true
install block-major-57   /bin/true

########################################################################
# mouse (for older busmice)
########################################################################

install char-major-10    /bin/true

########################################################################
# If you want to use the new autofs4
########################################################################

# alias autofs           autofs4

########################################################################
# For parallel port devices, uncomment the following two lines and
# change "frpw" to the protocol type you use
########################################################################

# install paride /sbin/modprobe --ignore-install paride && {
/sbin/modprobe --ignore-install frpw; }
# remove paride { /sbin/modprobe -r --ignore-remove frpw; } ;
/sbin/modprobe -r --ignore-remove paride

########################################################################
#
# Aliases for OSS
#
# These aliases will be changed by YaST2 sound configurator.
# If you would like to configure OSS drivers by yourself, please
# take a look at the files on /usr/src/linux/Documentation/sound.
#
########################################################################

install char-major-14 /bin/true
install sound /bin/true
install midi /bin/true

########################################################################
# Options; these are examples; uncomment and modify the lines you need
########################################################################

# options cdu31a         cdu31a_port=0x340 cdu31a_irq=0
# options sbpcd          sbpcd=0x230,1
# options aztcd          aztcd=0x320
# options cm206          cm206=0x340,11
# options gscd           gscd=0x340
# options mcd            mcd=0x300,11
# options mcdx           mcdx=0x300,11
# options optcd          optcd=0x340
# options sjcd           sjcd_base=0x340
# options sonycd535      sonycd535=0x340
# options isp16          isp16_cdrom_base=0x340 isp16_cdrom_irq=0
isp16_cdrom_dma=0 isp16_cdrom_type=Sanyo

# options ne             io=0x300 irq=5

# Use this if you have two cards:
# options ne             io=0x300,0x320 irq=5,7

# options tulip          options=0
# options 3c59x          options=0
# options 3c501          io=0x280 irq=5
# options 3c503          io=0x280 irq=5 xcvr=0
# options 3c505          io=0x300 irq=10
# options 3c507          io=0x300 irq=10
# options 3c509          irq=10
# options at1700         io=0x260 irq=10
# options smc-ultra      io=0x200 irq=10
# options wd             io=0x300 irq=10
# options smc9194        io=0x200 irq=10 ifport=0
# options e2100          io=0x300 irq=10 mem=0xd0000 xcvr=0
# options depca          io=0x200 irq=7
# options ewrk3          io=0x300 irq=10
# options eexpress       io=0x300 irq=10
# options hp-plus        io=0x300 irq=10
# options hp             io=0x300 irq=10
# options hp100          hp100_port=0x380
# options apricot        io=0x300 irq=10
# options ac3200         io=0x300 irq=10 mem=0xd0000
# options de620          io=0x378 irq=7 bnc=1
# options ibmtr          io=0xa20
# options arcnet         io=0x300 irq=10 shmem=0xd0000
# options plip           io=0x378 irq=7
# options eepro          io=0x260 irq=10 mem=0x6000
# options eth16i         io=0x2a0 irq=10
# options fmv18x         io=0x220 irq=10
# options ni52           io=0x360 irq=9 memstart=0xd0000 memend=0xd4000
# options bttv    pll=1 radio=0 card=0
# options tuner   type=0
# options msp3400 once=1 simple=1

# install bttv /sbin/modprobe --ignore-install bttv && { /sbin/modprobe -k
tuner; /sbin/modprobe -k msp3400; }
#

install dummy0 /sbin/modprobe -o dummy0 --ignore-install dummy
install dummy1 /sbin/modprobe -o dummy1 --ignore-install dummy

########################################################################
# cipe section
########################################################################

alias cipcb0 cipcb
alias cipcb1 cipcb

options cipcb    cipe_debug=0

########################################################################
# block dev aliases
########################################################################

alias block-major-1       rd
alias block-major-2       floppy
install block-major-3     /bin/true
alias block-major-7       loop
alias block-major-8       sd_mod
alias block-major-11      sr_mod
alias block-major-13      xd
alias block-major-15      cdu31a
alias block-major-16      gscd
alias block-major-17      optcd
alias block-major-18      sjcd
alias block-major-20      mcdx
install block-major-22    /bin/true
alias block-major-23      mcd
alias block-major-24      sonycd535
alias block-major-25      sbpcd
alias block-major-26      sbpcd
alias block-major-27      sbpcd
alias block-major-28      sbpcd
alias block-major-29      aztcd
alias block-major-32      cm206
install block-major-33    /bin/true
install block-major-34    /bin/true
# network block device
install block-major-43    /bin/true
alias block-major-45      pd
alias block-major-46      pcd
alias block-major-47      pf
alias block-major-117     evms

########################################################################
# char dev aliases
########################################################################

alias char-major-6        lp
alias char-major-9        st
alias char-major-10-130   softdog
install char-major-10-134 /bin/true
install char-major-10-135 /bin/true
alias char-major-10-175   agpgart
alias char-major-10-181   toshiba
alias char-major-10-250   sonypi
options sonypi            minor=250
install char-major-15     /bin/true
alias char-major-19       cyclades
alias char-major-20       cyclades
alias char-major-21       sg
alias char-major-27       ftape
install char-major-29     /bin/true
alias char-major-36       netlink_dev
# alias char-major-43       hisax
# alias char-major-44       hisax
# alias char-major-45       hisax
install char-major-43     /bin/true
install char-major-44     /bin/true
install char-major-45     /bin/true
alias char-major-48       riscom8
alias char-major-49       riscom8
alias char-major-67       coda
alias char-major-75       specialix
alias char-major-76       specialix
alias char-major-81       videodev
install char-major-81-0   /bin/true
install char-major-81-1   /bin/true
install char-major-81-2   /bin/true
install char-major-81-3   /bin/true

alias char-major-83       vtx
options vtx quiet=1

alias char-major-89       i2c-dev
alias char-major-96       pt
alias char-major-97       pg
alias char-major-107      3dfx
alias char-major-109      lvm-mod
# remove this if sound is configured
install char-major-116    /bin/true

########################################################################
# ppp over ethernet
# the kernel 2.2 uses pppox
# the kernel 2.4 uses pppoe
########################################################################

alias char-major-108      ppp_generic
alias char-major-144      pppoe
alias net-pf-24           pppoe

########################################################################
# IrDA
########################################################################

alias char-major-161      ircomm-tty

alias char-major-162      raw

########################################################################
# USB
########################################################################

install char-major-166    /bin/true

########################################################################
# Moxa Multiport Serial Boards
########################################################################

alias char-major-172      moxa
alias char-major-173      moxa

# options moxa type=2,,, baseaddr=0xdc000,,, numports=8,,,
alias char-major-174      mxser
alias char-major-175      mxser
# options mxser ioaddr=0x180

#alias char-major-180     usbcore

alias InterMezzo intermezzo
alias char-major-185 intermezzo

alias char-major-188      usbserial

alias char-major-195*     nvidia
alias char-major-206      osst
alias char-major-212      /bin/true

alias binfmt-204          binfmt_aout
alias binfmt-263          binfmt_aout
alias binfmt-264          binfmt_aout
alias binfmt-267          binfmt_aout
alias binfmt-0064         binfmt_aout
alias binfmt-0008         binfmt_aout

alias iso9660             isofs
alias tty-ldisc-1         slip
alias tty-ldisc-2         serio
alias tty-ldisc-5         mkiss

# alias tty-ldisc-7       6pack
install tty-ldisc-7       /bin/true

# IrDA
alias tty-ldisc-11        irtty-sir

# alias ax0               mkiss
install ax0               /bin/true
# alias sp0               6pack
install sp0               /bin/true
alias slip0               slip
alias sl0                 slip
alias slip1               slip
alias sl1                 slip

########################################################################
# the kernel 2.2 uses ppp.o as ppp driver,
# the kernel 2.4 uses ppp_generic.o
########################################################################

alias ppp0                ppp_generic
alias ppp1                ppp_generic
alias tty-ldisc-3         ppp_async

alias plip0               plip
alias plip1               plip

# Tunnel interfaces
alias sit0 ipv6
alias gre0 ip_gre
alias ipip0 ipip

alias ppp-compress-18          ppp_mppe
alias ppp-compress-21          bsd_comp
alias ppp-compress-24          ppp_deflate
alias ppp-compress-26          ppp_deflate

alias net-pf-1            unix
alias net-pf-3            ax25
# install net-pf-3          /bin/true
alias net-pf-4            ipx
# install net-pf-4          /bin/true
alias net-pf-5            appletalk
# install net-pf-5          /bin/true
alias net-pf-6            netrom
# install net-pf-6          /bin/true
alias net-pf-10           ipv6
# install net-pf-10         /bin/true
alias net-pf-11           rose
# install net-pf-11         /bin/true
alias net-pf-15           af_key
alias net-pf-17           af_packet
alias net-pf-31           bluez

alias bt-proto-0 l2cap
alias bt-proto-2 sco
alias bt-proto-3 rfcomm
alias bt-proto-4 bnep

alias md-personality-1  linear
alias md-personality-2  raid0
alias md-personality-3  raid1
alias md-personality-4  raid5
alias md-personality-7  multipath

alias tap0                ethertap
alias tap1                ethertap
alias tap2                ethertap
alias tap3                ethertap
alias tap4                ethertap
alias tap5                ethertap
alias tap6                ethertap
alias tap7                ethertap
alias tap8                ethertap
alias tap9                ethertap
alias tap10               ethertap
alias tap11               ethertap
alias tap12               ethertap
alias tap13               ethertap
alias tap14               ethertap
alias tap15               ethertap

alias xfrm-type-2-50    esp4
alias xfrm-type-2-51    ah4
alias xfrm-type-2-108   ipcomp
alias xfrm-type-10-50   esp6
alias xfrm-type-10-51   ah6
alias xfrm-type-10-108  ipcomp6

# don't try to reset isa-pnp cards on startup
options isa-pnp isapnp_reset=0

# end of common part for modprobe.conf
# begin of x86_64 part for modprobe.conf

alias char-major-4        serial
alias char-major-5        serial

alias parport_lowlevel    parport_pc
# options parport_pc io=0x378 irq=none,none
# If you have multiple parallel ports, specify them this way:
# options parport_pc io=0x378,0x278  irq=none,none

# end of x86_64 part for modprobe.conf

# please keep this at the end and add local modifications to
modules.conf.local
include /etc/modprobe.conf.local
sn01:~ #

I'll include an lsmod after devices st0 and st1 have been "fixed" by the
previously mentioned work-around in the next email since this list has a 500 line posting limit.

//Oscar

To sign off this list, send email to listserv AT listserv.temple DOT edu and type 
"signoff networker" in the
body of the email. Please write to networker-request AT listserv.temple DOT edu 
if you have any problems
wit this list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER