It looks like sg3 should be the device name for your changer (sg2 is the drive
device). Change your superload item in the sd.conf and try some more.
Email me if you have more questions.
Keith
Christoph Buchli <[EMAIL PROTECTED]> wrote: Hy list
I give up trying and start hoping... hoping someone here could help me...
My problem is, that bacula (and even mtx) won't use my autochanger as
it would be built for...
mtx recognises it [1] but that's all.
According to this, I set up my bacula-sd.conf: [2]
Everything looks great so far, doesn't it? (I'm pretty shure that sg2 is the
right device but although I tested with sg3: Same behaviour.
The problem is now that bacula won't accept or even detect some Tapes.
The 'label' command prints me some mtx-errors [3] and prints:
Label command failed for Volume TestTape001.
I have added some outputs of bconsole [4]... Confusing is, that the it seems
that there is somewhere a tape labeled with "Montag" but it is not mounted
although bconsole tells that it is mounted.
The 'create' command responses with an error too that say something like:
'Pool Default already exists'.
Why the hell is he trying the "slots" command on "Drive-1", my
archive-device [5]?
I guess it's just a lack of understanding how this whole tape-thing works.
Of corse I've read through the documentation an found a lot of helpful
things but at the moment I can turn page about page but can't find
anything...
Thanks a lot in advice.
sincerely,
christoph
______________________________________________________________
[1] perl -e 'my @v = ( 0,1,2,3 ) ; foreach ( @v ) { my $cmd = `mtx -f /dev/sg$_
inquiry` ; print "$cmd\r\r" ; }'
Product Type: Disk Drive
Vendor ID: 'Areca '
Product ID: 'ARC-1260-VOL#00 '
Revision: 'R001'
Attached Changer: No
Product Type: Processor
Vendor ID: 'Areca '
Product ID: 'RAID controller '
Revision: 'R001'
Attached Changer: Yes
Product Type: Tape Drive
Vendor ID: 'CERTANCE'
Product ID: 'ULTRIUM 3 '
Revision: '1856'
Attached Changer: No
Product Type: Medium Changer
Vendor ID: 'QUANTUM '
Product ID: 'UHDL '
Revision: '0031'
Attached Changer: No
[2] cat /usr/sepp/var-svn/bacula/srv-rhein/bacula-sd.conf | grep .. | grep -v
^\#
[...]
Autochanger {
Name = "Superloader"
Device = Drive-1
Changer Device = /dev/sg2
Changer Command =
"/usr/pack/bacula_mysql-2.0.3-rp/amd64-debian-linux3.1/scripts/mtx-changer %c
%o %S %a %d"
}
Device {
Name = Drive-1
Drive Index = 0
Media Type = LTO-3
Archive Device = /dev/nst0 # Normal archive device
Minimum block size = 1024
Maximum blocksize = 1024
Autochanger = yes
LabelMedia = no;
AutomaticMount = yes;
AlwaysOpen = yes;
}
[...]
[3] root(cbu)@srv-rhein# mtx -f /dev/sg2 status
mtx: Request Sense: 70 00 05 00 00 00 00 1E 00 00 00 00 20 00 00 00 00 00 00 00
READ ELEMENT STATUS Command Failed
root(cbu)@srv-rhein# mtx -f /dev/sg3 status
mtx: Request Sense: 70 00 02 00 00 00 00 1E 00 00 00 00 04 03 00 00 00 00 00 00
READ ELEMENT STATUS Command Failed
root(cbu)@srv-rhein# mtx -f /dev/sg3 inventory
mtx:inventory failed
[4] bconsole
* mount > 2(Superloader) > Slot:1
[...]
3001 Mounted Volume: Montag
3001 Device "Drive-1" (/dev/nst0) is already mounted with Volume "Montag"
* list pools
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
+--------+---------+---------+---------+----------+-------------+
| PoolId | Name | NumVols | MaxVols | PoolType | LabelFormat |
+--------+---------+---------+---------+----------+-------------+
| 1 | Default | 1 | 0 | Backup | * |
+--------+---------+---------+---------+----------+-------------+
*list volumes
Pool: Default
+---------+------------------+-----------+---------+------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles |
VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+---------+------------------+-----------+---------+------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 1 | TestVolumeTmp001 | Append | 1 | 18,513,823 | 0 |
31,536,000 | 1 | 0 | 1 | File | 2007-05-16 15:51:40 |
+---------+------------------+-----------+---------+------------+----------+--------------+---------+------+-----------+-----------+---------------------+
[5] *update
Update choice:
1: Volume parameters
2: Pool from resource
3: Slots from autochanger
Choose catalog item to update (1-3): 3
The defined Storage resources are:
1: File
2: Superloader
Select Storage resource (1-2): 2
Connecting to Storage daemon Superloader at srv-rhein:9103 ...
3306 Issuing autochanger "slots" command.
Device "Drive-1" has 0 slots.
No slots in changer to scan.
*
-------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
---------------------------------
Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.
-------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users