Quantcast

bacula-sd reports "Permission denied" on device though running as root (bacula 5.0 !!!)

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

bacula-sd reports "Permission denied" on device though running as root (bacula 5.0 !!!)

Josef Ridky

Hi, I am new co-maintainer of bacula in RHEL and Fedora.

Following issue [1] has been reported to me to solve.

Can somebody help me, how to solve this issue? I know, that bacula version in reported issue is really old so if it was already fixed, please send me just link to commit/patch/forum thread etc.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1376453

Thanks for your help.

Regards

Josef Ridky
Associate Software Engineer
Core Services Team
Red Hat Czech, s.r.o.


------------------------------------------------------------------------------
_______________________________________________
Bacula-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: bacula-sd reports "Permission denied" on device though running as root (bacula 5.0 !!!)

Phil Stracchino-2
On 09/19/16 10:02, Josef Ridky wrote:

>
> Hi, I am new co-maintainer of bacula in RHEL and Fedora.
>
> Following issue [1] has been reported to me to solve.
>
> Can somebody help me, how to solve this issue? I know, that bacula version in reported issue is really old so if it was already fixed, please send me just link to commit/patch/forum thread etc.
>
> [1] https://bugzilla.redhat.com/show_bug.cgi?id=1376453
>
> Thanks for your help.


Josef,
5.0 is ancient.  It was released in 2010.  And your ticket shows you're
not even running the latest 5.0.x release, you're running the original
5.0.0 release.

The very FIRST thing I'd suggest would be to at least update your
packages to 5.0.3 and retest against all the existing known 5.0.x bug
fixes.  Nobody is going to go back and fix 5.0.0 bugs that have not been
re-verified against 5.0.3.  Better would be to ship the latest 5.x
release, 5.2.13.  But for Fedora at least, why are you shipping a 5.x
release at all?  Surely Fedora should be shipping the current Bacula 7.4
version.


--
  Phil Stracchino
  Babylon Communications
  [hidden email]
  [hidden email]
  Landline: 603.293.8485

------------------------------------------------------------------------------
_______________________________________________
Bacula-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: bacula-sd reports "Permission denied" on device though running as root (bacula 5.0 !!!)

Kern Sibbald
In reply to this post by Josef Ridky
Hello,

I have taken a quick look at the bug report.  There are at least three
problems that I see.

1. The versions of Bacula that user is using are *very* old and no
longer directly supported by
the project (you as RedHat may want to support them though).

2. The main problem is that the user has assumed that different versions
of the Director and the SD should be OK.
This is definitely not true.  Bacula does not support running with
different versions of the Director and SD.

Versions supported
   DIR == SD  (only)
   FD <= DIR/FD

so different DIR and SD is not supported and in general will not work.
And the FD must be the same version
as the DIR/SD or older, but not newer.

3. After problem 2 is resolved, if the user still has problems with
permissions
on the SD which is running with root, it is probably because he has
SELINUX enabled and
the rules have not been appropriately adapted.  The project does not use
or support
Selinux so I will leave it to you to resolve that issue if it still
exists after getting the
versions straightened out.

Best regards,
Kern

On 09/19/2016 04:02 PM, Josef Ridky wrote:

> Hi, I am new co-maintainer of bacula in RHEL and Fedora.
>
> Following issue [1] has been reported to me to solve.
>
> Can somebody help me, how to solve this issue? I know, that bacula version in reported issue is really old so if it was already fixed, please send me just link to commit/patch/forum thread etc.
>
> [1] https://bugzilla.redhat.com/show_bug.cgi?id=1376453
>
> Thanks for your help.
>
> Regards
>
> Josef Ridky
> Associate Software Engineer
> Core Services Team
> Red Hat Czech, s.r.o.
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Bacula-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/bacula-devel
>



------------------------------------------------------------------------------
_______________________________________________
Bacula-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: bacula-sd reports "Permission denied" on device though running as root (bacula 5.0 !!!)

Marcin Haba
In reply to this post by Josef Ridky
Hello Josef,

I think that this behavior is caused by wrong Bacula usage by the user.

Please look at following steps that user did (with my comments):

1) [root@bacula-sd ~]# /usr/libexec/bacula/mtx-changer /dev/sg5 load 1
/dev/nst0 0

To load/unload volume in storage managed by Bacula, the user has to
umount the storage first. Otherwise Bacula SD will have wrong tape
drive state remembered and from this reason Bacula can try load volume
already loaded or can try unload volume not loaded.

2) [root@bacula-dir ~]# bconsole
*status storage=Quantum-Changer
...
Device status:
Autochanger "Quantum-Changer" with devices:
   "LTO5" (/dev/nst0)
Device "LTO5" (/dev/nst0) open but no Bacula volume is currently mounted.
    Drive 0 status unknown.
    Total Bytes Read=0 Blocks Read=0 Bytes/block=0
    Positioned at File=0 Block=0
====
...

In this output the "no Bacula volume is currently mounted" state means
that Bacula SD doesn't know about loaded tape from slot 1 to tape
drive /dev/nst0. So, before loading volume by mtx-changer the storage
wasn't unmounted (it was mounted).

3) *label storage=Quantum-Changer pool=LTO5-Pool slots=1-3 barcodes

It can fail because of above problem.

4) *unmount storage=Quantum-Changer

It can fail because of above problem.

5) [root@bacula-sd ~]# /etc/init.d/bacula-sd stop

All Bacula SD devices are freed.

6) [root@bacula-sd ~]# cp /etc/init.d/bacula-sd /etc/init.d/bacula-sdd

I am not sure if it is required.

7) [root@bacula-sd init.d]# /etc/init.d/bacula-sdd start

After starting Bacula SD, all devices are mounted again and tape
drives (with volumes or without) are initialized in Bacula SD.

*label storage=Quantum-Changer pool=LTO5-Pool slots=1-3 barcodes

Devices were mounted and initliazed correctly, so no error.

*unmount storage=Quantum-Changer

Devices were mounted and initliazed correctly, so no error.


Please let know if it is helpful.

Best regards.
Marcin Haba (gani)

On 19 September 2016 at 16:02, Josef Ridky <[hidden email]> wrote:

>
> Hi, I am new co-maintainer of bacula in RHEL and Fedora.
>
> Following issue [1] has been reported to me to solve.
>
> Can somebody help me, how to solve this issue? I know, that bacula version in reported issue is really old so if it was already fixed, please send me just link to commit/patch/forum thread etc.
>
> [1] https://bugzilla.redhat.com/show_bug.cgi?id=1376453
>
> Thanks for your help.
>
> Regards
>
> Josef Ridky
> Associate Software Engineer
> Core Services Team
> Red Hat Czech, s.r.o.
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Bacula-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/bacula-devel



--
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus

------------------------------------------------------------------------------
_______________________________________________
Bacula-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-devel
Loading...