On 14 Sep 2005 at 10:08, Josh Endries wrote:

> I tried upgrading to 1.37.38 last night. Things were going okay but
> it couldn't find the end of medium so I tried running btape again,
> now I'm getting this:
> 
> backup# btape -d 99 -v /dev/nsa0
> Tape block granularity is 1024 bytes.
> btape: butil.c:261 Using device: "/dev/nsa0" for writing.
> btape: dev.c:242 init_dev: tape=2 dev_name=/dev/nsa0
> btape: dev.c:275 open dev: tape=2 dev_name="EXABYTE VXA AutoPak 1x10
> E33a" (/dev/nsa0) vol= mode=OPEN_READ_ONLY
> btape: dev.c:333 open dev: device is tape
> 14-Sep 09:18 btape: 3301 Issuing autochanger "loaded drive 0" command.
> btape: autochanger.c:162 run_prog:
> /usr/local/share/bacula/my-changer /dev/pass0 loaded 0 /dev/nsa0 0
> stat=0 result=8
> 
> 14-Sep 09:18 btape: 3302 Autochanger "loaded drive 0", result is Slot 8.
> 14-Sep 09:18 btape: btape Error: dev.c:396 fcntl error.
> ERR=Inappropriate ioctl for device
> btape: dev.c:417 open dev: tape -1 opened
> 14-Sep 09:18 btape: Fatal Error at device.c:273 because:
> dev open failed:
> 14-Sep 09:18 btape: btape Fatal error: butil.c:174 Cannot open
> "EXABYTE VXA AutoPak 1x10 E33a" (/dev/nsa0)
> 
> This is on FreeBSD 5. Everything else seems to work okay, mtx and
> mt, loading unloading offline etc., my changer script works also
> (mtx-changer with offline enabled). Permissions on the tape device
> are correct (660)...not sure what it could be. :/ One thing that
> makes me wonder is that it says opening for writing but later says
> read only...but even with 666 perms it did that.

Is bacula in the operator group?  On FreeBSD, bacula-sd should be 
running as bacula:bacula.  You'll need to restart bacula-sd after 
changing /etc/group.

Here's what I have as default permissions on the tape drive on a 5.4 
box:

[EMAIL PROTECTED]:~] $ ls -l /dev/*sa0*
lrwxr-xr-x  1 root  wheel            6 Sep 12 20:01 /dev/esa0 -> 
esa0.0
crw-rw----  1 root  operator  228,   2 Sep 12 20:01 /dev/esa0.0
crw-rw----  1 root  operator  228,   6 Sep 12 20:01 /dev/esa0.1
crw-rw----  1 root  operator  228,  10 Sep 12 20:01 /dev/esa0.2
crw-rw----  1 root  operator  228,  14 Sep 12 20:01 /dev/esa0.3
lrwxr-xr-x  1 root  wheel            6 Sep 12 20:01 /dev/nsa0 -> 
nsa0.0
crw-rw----  1 root  operator  228,   1 Sep 12 20:01 /dev/nsa0.0
crw-rw----  1 root  operator  228,   5 Sep 12 20:01 /dev/nsa0.1
crw-rw----  1 root  operator  228,   9 Sep 12 20:01 /dev/nsa0.2
crw-rw----  1 root  operator  228,  13 Sep 12 20:01 /dev/nsa0.3
lrwxr-xr-x  1 root  wheel            5 Sep 12 20:01 /dev/sa0 -> sa0.0
crw-rw----  1 root  operator  228,   0 Sep 12 20:01 /dev/sa0.0
crw-rw----  1 root  operator  228,   4 Sep 12 20:01 /dev/sa0.1
crw-rw----  1 root  operator  228,   8 Sep 12 20:01 /dev/sa0.2
crw-rw----  1 root  operator  228,  12 Sep 12 20:01 /dev/sa0.3
crw-rw----  1 root  operator  228, 0x20000000 Sep 12 20:01 
/dev/sa0.ctl
[EMAIL PROTECTED]:~] $

NOTE: everything is operator.

Ideally, the FreeBSD bacula port should add bacula to the operator 
group.


-- 
Dan Langille : http://www.langille.org/
BSDCan - The Technical BSD Conference - http://www.bsdcan.org/




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to