I would also do a quick check to make sure you have LUN support enabled.
On Wed, 13 Jun 2007 14:24:09 -0700
Michael Nelson <mnelson < at > in...> wrote:
Are you sure that /dev/sg0 is in fact the autochanger device and not the
tape drive?
For instance on my server (from dmesg output):
(scsi3:A:4): 160.000MB/s transfers (80.000MHz DT, offset 127, 16bit)
Vendor: CERTANCE Model: ULTRIUM 3 Rev: 1856
Type: Sequential-Access ANSI SCSI revision: 04
Attached scsi generic sg2 at scsi3, channel 0, id 4, lun 0, type 1
st: Version 20040403, fixed bufsize 32768, s/g segs 256
Attached scsi tape st0 at scsi3, channel 0, id 4, lun 0
st0: try direct i/o: yes (alignment 512 B), max page reachable by HBA
134217727
Vendor: QUANTUM Model: UHDL Rev: 0031
Type: Medium Changer ANSI SCSI revision: 02
Attached scsi generic sg3 at scsi3, channel 0, id 4, lun 1, type 8
So the generic device for my tape drive is /dev/sg2 (but the tape drive
is normally addressed as /dev/nst0) and the changer for it is /dev/sg3.
It would be interesting to see the output of "cat /proc/scsi/scsi" on
your machine.
[root < at > nts ~]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: LSILOGIC Model: 1030 IM Rev: 1000
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 08 Lun: 00
Vendor: IBM Model: 25P3495a S320 1 Rev: 1
Type: Processor ANSI SCSI revision: 02
Host: scsi3 Channel: 00 Id: 04 Lun: 00
Vendor: CERTANCE Model: ULTRIUM 3 Rev: 1856
Type: Sequential-Access ANSI SCSI revision: 04
Host: scsi3 Channel: 00 Id: 04 Lun: 01
Vendor: QUANTUM Model: UHDL Rev: 0031
Type: Medium Changer ANSI SCSI revision: 02
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users
--
----------
Broderick Wood
Seconded to AICT for the Summer
General Services Building #144
University of Alberta
(780) 492-6875
Re: [Bacula-users] exabyte autochanger From: Maria McKinley
- 2007-06-13 21:39
Arno Lehmann wrote:
Hi,
On 6/13/2007 8:58 PM, Maria McKinley wrote:
Ralf Gross wrote:
Maria McKinley schrieb:
Falk Sauer wrote:
please make shure that your changer device has the correct permissions eg.:
crw-rw---- root disk /dev/sg0
and for the potentially next problem ...
by your tapedrive device i'm unshure, i think this should /dev/nst0, i don't
know how its correct on exabyte tapes.
Normally the /dev/st* device makes a automatic rewind after write,
the /dev/nst* make no auto rewind. Bacula needs imho a non auto rewinding
device. You dosn't write wich OS you use, here are little differences between
the OSes.
My permissions are:
crw------- 1 root root 21, 0 2005-02-25 22:38 sg0
so, maybe that is my problem. Can I just change this, like any file,
with chown (assuming that the disk part is important) and chmod?
udev might override the permissions again. I would create an udev rule
to set the right permissions (check if your system uses udev).
You could try something like that:
/etc/udev/rules.d/010-local.rules
KERNEL=="st*", GROUP="tape", MODE="0660"
KERNEL=="nst*", GROUP="tape", MODE="0660"
/etc/init.d/udev restart (or reload...)
The bacula user has to be member of group tape.
Ralf
Hmm, udev does not seem to be installed, although curiously, the config
files are there. On the machine I had working previously with this tape
drive and an earlier version of bacula (1.36), udev was also not
installed, but again the config files were there, so it seems some other
package is using and installing these config files.
...
I'm still not entirely sure what to do about it. Since udev isn't
actually installed, I'm not sure what to restart to read my script.
Seems like something should be reading the udev config files, since I
didn't put the default ones there, so some package must have. I'd rather
not reboot this machine, but I will if no one knows, and then I can see
if the permissions were updated. But how on earth did this get set in my
previous installation without a script in udev?
Which OS do you use?
Usually, there a commands available to tell you which package a file
belongs to. For example, running an rpm-based distribution:
elf:~ # rpm -qf /etc/udev/udev.conf
udev-030-9.2
Starting with that information, or knowing which OS you run, someone
might have an idea...
Oh, and of course you could always add a simple line like 'chown
bacula.tape /dev/sg0' into the Bacula start script.
Arno
Ah, thanks for that jolt. Forgot about figuring out what package a file
belongs to. Looks like both hdparm and mt-st have files in the
/etc/udev, so I tried reloading hdparm, and that updated permissions in
/dev. I am now trying to label the tapes, but it appears that bacula is
hung trying, this is where I've been for over 10 minutes:
*label barcodes
Using default Catalog name=MyCatalog DB=bacula
Automatically selected Storage: Exabyte
Connecting to Storage daemon Exabyte at dinah:9103 ...
In answer to other questions, mtx and mt-st both work from the command
line, and the tape changer is definitely /dev/sg0, and the tape drive is
definitely /dev/st0
thanks again,
Maria