public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Jesper Krogh <jesper@krogh.cc>
To: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Linux-Scsi <linux-scsi@vger.kernel.org>
Subject: Re: Media autochanger driver changed behavior.
Date: Wed, 10 Sep 2008 13:37:56 +0200	[thread overview]
Message-ID: <48C7B194.1050607@krogh.cc> (raw)
In-Reply-To: <4877B146.3090503@krogh.cc>

> I'll get it done and report but, but we're a bit behind on the 
> backup-schedules. So when the system has catched up I'll do some testing.

On 2.6.26.1 I also get quite strange behavior .. sometimes the changer 
id discovered as a "sgX" device and sometimes it is discovered as a 
"schX".. the schX doesnt work:


$ lsscsi
[0:0:0:0]    cd/dvd  AMI      Virtual CDROM    1.00  /dev/scd0
[1:0:0:0]    disk    AMI      Virtual Floppy   1.00  /dev/sda
[2:0:0:0]    disk    HITACHI  H101414SCSUN146G SA23  -
[2:0:1:0]    disk    HITACHI  H101414SCSUN146G SA23  -
[2:0:2:0]    disk    FUJITSU  MBB2147RCSUN146G 0505  -
[2:0:3:0]    disk    FUJITSU  MBB2147RCSUN146G 0505  -
[2:1:0:0]    disk    LSILOGIC Logical Volume   3000  /dev/sdc
[2:1:2:0]    disk    LSILOGIC Logical Volume   3000  /dev/sdb
[3:0:0:0]    mediumx QUANTUM  PX500            002A  /dev/sch0
[3:0:3:0]    tape    HP       Ultrium 3-SCSI   G39Z  /dev/st0

When it works.. I dont have any device put onto the mediumx-thing in 
this list. And none of the sgX devices actually works. Rebooting the 
system "might" bring it correcly up.

Full dmesg: http://krogh.cc/~jesper/dmesg-broken.txt

/dev/changer is made by this udev rule:

/etc/udev/rules.d/60-symlinks.rules:SYSFS{vendor}=="QUANTUM", 
SYSFS{model}=="PX500"         SYMLINK+="changer"

jk@bacula:~$ sudo mtx -f /dev/sch0 status
/dev/sch0 is not an sg device, or old sg driver

$ sudo strace mtx -f /dev/sch0 status
execve("/usr/sbin/mtx", ["mtx", "-f", "/dev/sch0", "status"], [/* 16 
vars */]) = 0
brk(0)                                  = 0x60b000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 
= 0x7f049f174000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 
= 0x7f049f172000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or 
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=38937, ...}) = 0
mmap(NULL, 38937, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f049f168000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or 
directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\342"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1436976, ...}) = 0
mmap(NULL, 3543672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 
0) = 0x7f049ebf6000
mprotect(0x7f049ed4e000, 2097152, PROT_NONE) = 0
mmap(0x7f049ef4e000, 20480, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x158000) = 0x7f049ef4e000
mmap(0x7f049ef53000, 17016, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f049ef53000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 
= 0x7f049f167000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 
= 0x7f049f166000
arch_prctl(ARCH_SET_FS, 0x7f049f1666e0) = 0
mprotect(0x7f049ef4e000, 12288, PROT_READ) = 0
munmap(0x7f049f168000, 38937)           = 0
open("/dev/sch0", O_RDWR)               = 3
ioctl(3, SG_GET_VERSION_NUM, 0x7fffa7175b30) = -1 EINVAL (Invalid argument)
write(2, "/dev/sch0 is not an sg device, o"..., 48/dev/sch0 is not an sg 
device, or old sg driver
) = 48
exit_group(1)                           = ?
Process 8139 detached
jk@bacula:~$

-- 
Jesper

      parent reply	other threads:[~2008-09-10 11:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-09 20:51 Media autochanger driver changed behavior Jesper Krogh
2008-07-09 21:51 ` James Bottomley
2008-07-09 21:56   ` Jesper Krogh
2008-07-09 22:17     ` James Bottomley
2008-07-10  5:59       ` Jesper Krogh
2008-07-10 14:00         ` James Bottomley
2008-07-11 19:15           ` Jesper Krogh
2008-09-10 11:10             ` Jesper Krogh
2008-09-10 11:37             ` Jesper Krogh [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48C7B194.1050607@krogh.cc \
    --to=jesper@krogh.cc \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox