Bacula-users

[Bacula-users] Ang. Ang. Re: btape Autochanger unload error's

2008-06-18 04:28:54
Subject: [Bacula-users] Ang. Ang. Re: btape Autochanger unload error's
From: roger.sinel AT lo DOT se
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 18 Jun 2008 10:27:57 +0200

I can have solved it,  with   # yum install mt-st

The btape test worked anyway.

=== Autochanger test ===

3301 Issuing autochanger "loaded" command.
Slot 24 loaded. I am going to unload it.
3302 Issuing autochanger "unload 24 0" command.
unload status=OK 0
3303 Issuing autochanger "load 1 0" command.
3303 Autochanger "load 1 0" status is OK.
18-Jun 10:23 btape: 3301 Issuing autochanger "loaded? drive 0" command.
18-Jun 10:23 btape: 3302 Autochanger "loaded? drive 0", result is Slot 1.
btape: btape.c:368 open device "TapeDevice-1" (/dev/nst0): OK
btape: btape.c:1235 Rewound "TapeDevice-1" (/dev/nst0)
btape: btape.c:1242 Wrote EOF to "TapeDevice-1" (/dev/nst0)

The test autochanger worked!!





-----------------------------------------------------------------
Roger Sinel
Email:roger.sinel AT lo DOT se
Telefon: 08-796 25 70
IT-enheten
Landsorganisationen i Sverige
Gatuadress: Barnhusgatan 18
Postadress: 105 53 Stockholm
-----------------------------------------------------------------



roger.sinel AT lo DOT se
Sänt av: bacula-users-bounces AT lists.sourceforge DOT net

06/18/2008 10:12 AM

Till
bacula-users AT lists.sourceforge DOT net
Kopia
Ärende
[Bacula-users] Ang. Re:  btape Autochanger unload error's






I'ts not the permissions then as sd is running as root.


[root@lobacula sbin]# ps -ef | grep bacula

root     12313     1  0 10:11 ?        00:00:00 bacula-sd -c /etc/bacula/bacula-sd.conf





I did activate the sleep part in the mtx-changer which solve part of my problem, the tape actually unloaded and loaded tape from slot 1. But it failed because of mt seems to be missing. OS = CentOS 5 I will try and find a mt rpm.


# Increase the sleep time if you have a slow device
# or remove the sleep and add the following:
  wait_for_drive $device
   sleep 15
   exit $rtn
   ;;




=== Autochanger test ===


3301 Issuing autochanger "loaded" command.

Slot 24 loaded. I am going to unload it.

3302 Issuing autochanger "unload 24 0" command.

unload status=OK 0

3303 Issuing autochanger "load 1 0" command.

3993 Bad autochanger command: /usr/libexec/bacula/mtx-changer /dev/changer load 1 /dev/nst0 0

3993 result="/usr/libexec/bacula/mtx-changer: line 99: mt: command not found

": ERR=Child died from signal 15: Termination

You must correct this error or the Autochanger will not work.



-----------------------------------------------------------------
Roger Sinel

-----------------------------------------------------------------


"John Drescher" <drescherjm AT gmail DOT com>

06/18/2008 09:55 AM


Till
roger.sinel AT lo DOT se
Kopia
bacula-users AT lists.sourceforge DOT net
Ärende
Re: [Bacula-users] btape Autochanger unload error's







> I suspect my permissions are incorrect, can someone verify this for me
> please.
>
> [root@lobacula sbin]# ll -al /dev/nst0
> crw-rw---- 1 root disk 9, 128 Jun 16 11:12 /dev/nst0
>
This is only a problem if you are running the bacula-sd as user bacula
and user bacula is not a member of the group disk.

John

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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>