[Bacula-users] Bacula 9.44 Aligned -Disk Driver Not Working

2019-07-11 Thread J W
I just installed Bacula 9.44 Community and am backing up to a ZFS drive. It
works fine with a regular setup.

If I switch to using the Aligned device type then I get the error below. I
switched back to a regular setup but would like to use deduplication since
it would save me a lot of space because my full backups are 5 TB but most
of the files are not changing between ful backups.
-
 Device "Aligned-Disk" requested by DIR could not be opened or does not
exist.
11-Jul 09:29 jw-sd JobId 13: Error: [SE0003] Lookup of symbol
"BaculaSDdriver" in driver Aligned-Disk for device /opt/bacula/plugins/
bacula-sd-aligned-driver-9.4.4.so failed: ERR=/opt/bacula/plugins/
bacula-sd-aligned-driver-9.4.4.so: undefined symbol: BaculaSDdriver
---
My OS is latest Centos 7. I installed Bacula from the Bacula 9.4.4 repo. It
appeared to install the plugin successfuly. Yum shows it as installed. It
seems like Bacula is finding it since it lists the correct path to the
plugin.

I set up Bacula for deduplication using the directions at
http://www.bacula.lat/block-level-deduplication-with-aligned-volumes-tutorial-bacula-7-9-9-0-and-above/?lang=en.
See my device entry quoted further down below.

I ran a few programs on the plugin to show the symbols but they do not show
BaculaSDdriver in the plugin. I do not really know what I am doing with
that. I also looked at the plugin itself for text with this value but did
not see it.

I saw a post (wsee below) where someone has the same problem with 9.4.3. I
could not figure out how to reply to that post since I just joined the
bacula-users list today.

Any idea how to fix this problem or if it is a bug?

Thanks,
Joe

*[Bacula-users] Aligned volumes support - Bacula Community 9.4.3
*
From: Pedro Freire Popiolek  - 2019-07-08 23:26:41

--
Bacula-Community]
name=CentOS - Bacula - Community
baseurl=http://www.bacula.org/packages/zmyKeyWasHere/rpms/9.4.4/el7/x86_64/
enabled=1
protect=0
gpgcheck=1

--

ls -l
total 52
-rwxr-x---. 1 root bacula  7776 Jun 25 04:41
bacula-sd-aligned-driver-9.4.4.so
-rwxr-x---. 1 root bacula 44592 Jun 25 04:40 bpipe-fd.so
[root@jw plugins]# pwd
/opt/bacula/plugins
[root@jw plugins]#
---
Device entry from bacula-sd.conf
---
Device {
  Name = Aligned-Disk
  Device Type = Aligned  # Must be aligned
  Media Type = File1
  Archive Device = /mpool1# Or /mnt/ddumbfs.mnt if ddumfs mounting
point.
  LabelMedia = yes;
  Random Access = Yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen = no;
  Maximum Concurrent Jobs = 1# Always 1 for Aligned
  Minimum Block Size=0K
  Maximum Block Size=128K
  File Alignment=128K
  Padding Size=512
  Minimum Aligned Size=4096
}

---
nm -gC bacula-sd-aligned-driver-9.4.4.so
00201018 B __bss_start
 w __cxa_finalize@@GLIBC_2.2.5
00201018 D _edata
00201020 B _end
0608 T _fini
 w __gmon_start__
04e0 T _init
 w _ITM_deregisterTMCloneTable
 w _ITM_registerTMCloneTable
 w _Jv_RegisterClasses

[root@jw plugins]# readelf -Ws bacula-sd-aligned-driver-9.4.4.so

Symbol table '.dynsym' contains 11 entries:
   Num:Value  Size TypeBind   Vis  Ndx Name
 0:  0 NOTYPE  LOCAL  DEFAULT  UND
 1:  0 NOTYPE  WEAK   DEFAULT  UND __gmon_start__
 2:  0 NOTYPE  WEAK   DEFAULT  UND
_Jv_RegisterClasses
 3:  0 NOTYPE  WEAK   DEFAULT  UND
_ITM_deregisterTMCloneTable
 4:  0 NOTYPE  WEAK   DEFAULT  UND
_ITM_registerTMCloneTable
 5:  0 FUNCWEAK   DEFAULT  UND
__cxa_finalize@GLIBC_2.2.5 (2)
 6: 00201020 0 NOTYPE  GLOBAL DEFAULT   21 _end
 7: 00201018 0 NOTYPE  GLOBAL DEFAULT   20 _edata
 8: 00201018 0 NOTYPE  GLOBAL DEFAULT   21 __bss_start
 9: 04e0 0 FUNCGLOBAL DEFAULT8 _init
10: 

Re: [Bacula-users] Bacula for Users machines

2019-07-11 Thread Heitor Faria
Hello All, 

> Actually there is a simplest way to do all of this using the Enterprise 
> version
> :

>* BCloud service plugin allows a lot of things including setting up 
> backups from
> the client side through a web GUI

BCloud is indeed a interesting multi-tenant GUI that allows 100% self-service 
backup (BaaS) with Bacula, since the clients download until the restore. 
I published a paper about it this year: 
http://insticc.org/node/TechnicalProgram/closer/presentationDetails/72509 

Regards, 
-- 

MSc Heitor Faria 
CEO Bacula LATAM 
mobile1: + 1 909 655-8971 
mobile2: + 55 61 98268-4220 
[ https://www.linkedin.com/in/msc-heitor-faria-5ba51b3 ] 
[ http://www.bacula.com.br/ ] 

América Latina 
[ http://bacula.lat/ | bacula.lat ] | [ http://www.bacula.com.br/ | 
bacula.com.br ] 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula for Users machines

2019-07-11 Thread Andrea Venturoli

On 7/11/19 3:39 PM, Andrea Brancatelli via Bacula-users wrote:

OK thanks for the pointers.

Tomorrow I'll test it with a few clients.

The next problem on my roadmap is the Mac OS X Binary client...

On the test machine I just installed it with Brew but compiling it from 
scratch on the CEO machine seems complicated.


I've compiled it on one machine and just copied it over the others.
What's blocking you from doing this?

 bye
av.


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula for Users machines

2019-07-11 Thread Philippe Chauvat via Bacula-users
Hello Andrea,


On 11/07/2019 10:02, Andrea Brancatelli via Bacula-users wrote:
>
> Hello everybody,
>
> has anyone implemented a bacula-cantered backup strategy that involved
> "users" machines?
>
Yes, I did.
>
> I mean, like someone's desktop.
>
> There are a few general problems I see along the way:
>
>  1. The scheduling - you can certainly schedule backups for a working
> hour and hope that the guy's is working at that moment, but hey...
> Is there any way to "invoke" a backup from client side (I don't
> know, like on system startup) -- "Hey, I'm ready, backup me!" :-)
>
Actually there is a simplest way to do all of this using the Enterprise
version :

  * BCloud service plugin allows a lot of things including setting up
backups from the client side through a web GUI
  * Tray Monitor: same
  * Mac OSX file daemons are ready to go.

>  1. The IP addresses - again one could try to fix client's IP address
> or have DHCP automatically update a fixed name, like
> desktop-jon.company.com but that seems pretty flaky. Is there any
> way to, maybe, update the client IP from client side?
>
> Is it totally unfeasible to use Bacula in such scenario?
>
Bacula is way too open to say unfeasable :)
>
> Any pointer to any kind of documentation or just a few lines of real
> usage experiences would be great...
>
You might also want to investigate the followings:

  * DHCP triggering scripts when a client asks for a lease

(https://jpmens.net/2011/07/06/execute-a-script-when-isc-dhcp-hands-out-a-new-lease/)
  * Bacula scripting features (before / after) => See Run Script in the
main manual
  * Admin Jobs testing the presence of a machine and the enable /
disable job feature => See Admin Jobs in bacula documentation
  * and certainly many others I don't have in mind just right now

Regards

Philippe


> Thanks in advance
>
>
> -- 
> *Andrea Brancatelli *
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula for Users machines

2019-07-11 Thread Andrea Brancatelli via Bacula-users
OK thanks for the pointers. 

Tomorrow I'll test it with a few clients. 

The next problem on my roadmap is the Mac OS X Binary client... 

On the test machine I just installed it with Brew but compiling it from
scratch on the CEO machine seems complicated.

---

Andrea Brancatelli

On 2019-07-11 13:12, Heitor Faria wrote:

> Hello Andrea, 
> 
>> * The scheduling - you can certainly schedule backups for a working hour and 
>> hope that the guy's is working at that moment, but hey... Is there any way 
>> to "invoke" a backup from client side (I don't know, like on system startup) 
>> -- "Hey, I'm ready, backup me!" :-)
> 
> You can schedule on the Director, and have these directives: 
> 
> "RESCHEDULE ON ERROR = YES|NO If this directive is enabled, and the job 
> terminates in error, the job will be rescheduled as determined by the 
> RESCHEDULE INTERVAL and RESCHEDULE TIMES directives. If you cancel the job, 
> it will not be rescheduled. The default is NO (i.e. the job will not be 
> rescheduled). 
> 
> This specification can be useful for portables, laptops, or other machines 
> that are not always connected to the network or switched on. 
> 
> RESCHEDULE INCOMPLETE JOBS = YES|NO 
> 
> If this directive is enabled, and the job terminates in incomplete status, 
> the job will be rescheduled as determined by the RESCHEDULE INTERVAL and 
> RESCHEDULE TIMES directives. If you cancel the job, it will not be 
> rescheduled. The default is YES (i.e. Incomplete jobs will be rescheduled). 
> 
> RESCHEDULE INTERVAL = TIME-SPECIFICATION If you have specified RESCHEDULE ON 
> ERROR = YES and the job terminates in error, it will be rescheduled after the 
> interval of time specified by TIME-SPECIFICATION. See the time specification 
> formatsTime in the Configure chapter for details of time specifications. If 
> no interval is specified, the job will not be rescheduled on error. The 
> default Reschedule Interval is 30 minutes (1800 seconds). 
> 
> RESCHEDULE TIMES = COUNT This directive specifies the maximum number of times 
> to reschedule the job. If it is set to zero (the default) the job will be 
> rescheduled an indefinite number of times." 
> [https://www.bacula.org/9.2.x-manuals/en/main/Configuring_Director.html#10256]
>  
> 
> It will retry in case machine is not on. 
> Instead of all this, you could have a console in each client and/or tray 
> monitor to start jobs from the Client machine, via script or user action. 
> 
>> * The IP addresses - again one could try to fix client's IP address or have 
>> DHCP automatically update a fixed name, like desktop-jon.company.com but 
>> that seems pretty flaky. Is there any way to, maybe, update the client IP 
>> from client side?
> 
> You could use Static DNS which uses the MAC address to fix an IP for each 
> client machine. 
> There is also a setip console command: 
> 
> "SETIP Sets new client address - if authorized. 
> 
> A console is authorized to use the SETIP command only if it has a Console 
> resource definition in both the Director and the Console. In addition, if the 
> console name, provided on the NAME = directive, must be the same as a Client 
> name, the user of that console is permitted to use the SETIP command to 
> change the Address directive in the Director's client resource to the IP 
> address of the Console. This permits portables or other machines using DHCP 
> (non-fixed IP addresses) to "notify" the Director of their current IP 
> address." 
> [https://www.bacula.org/9.0.x-manuals/en/console/Bacula_Console.html] 
> 
>> Is it totally unfeasible to use Bacula in such scenario?
> It is possible, go for it. 
> 
>> Thanks in advance
> Regards, 
> 
>> -- 
>> 
>> Andrea Brancatelli
>> 
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 
> -- 
> 
> MSc Heitor Faria
> CEO Bacula LATAM 
> 
> mobile1: + 1 909 655-8971
> mobile2: + 55 61 98268-4220 
> 
> [1]
> 
> [2]
> 
> América Latina
> 
> bacula.lat [3] | bacula.com.br [4]
 

Links:
--
[1] https://www.linkedin.com/in/msc-heitor-faria-5ba51b3
[2] Http://www.bacula.com.br
[3] http://bacula.lat
[4] http://www.bacula.com.br___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula for Users machines

2019-07-11 Thread Heitor Faria
Hello Andrea, 
>1. The scheduling - you can certainly schedule backups for a working hour 
> and
>hope that the guy's is working at that moment, but hey... Is there any way 
> to
>"invoke" a backup from client side (I don't know, like on system startup) 
> --
> "Hey, I'm ready, backup me!" :-)

You can schedule on the Director, and have these directives: 

" Reschedule On Error = yes|no If this directive is enabled, and the job 
terminates in error, the job will be rescheduled as determined by the 
Reschedule Interval and Reschedule Times directives. If you cancel the job, it 
will not be rescheduled. The default is no (i.e. the job will not be 
rescheduled). 

This specification can be useful for portables, laptops, or other machines that 
are not always connected to the network or switched on. 

Reschedule Incomplete Jobs = yes|no 

If this directive is enabled, and the job terminates in incomplete status, the 
job will be rescheduled as determined by the Reschedule Interval and Reschedule 
Times directives. If you cancel the job, it will not be rescheduled. The 
default is yes (i.e. Incomplete jobs will be rescheduled). 

Reschedule Interval = time-specification If you have specified Reschedule On 
Error = yes and the job terminates in error, it will be rescheduled after the 
interval of time specified by time-specification . See the time specification 
formatsTime in the Configure chapter for details of time specifications. If no 
interval is specified, the job will not be rescheduled on error. The default 
Reschedule Interval is 30 minutes (1800 seconds). 

Reschedule Times = count This directive specifies the maximum number of times 
to reschedule the job. If it is set to zero (the default) the job will be 
rescheduled an indefinite number of times." 
[https://www.bacula.org/9.2.x-manuals/en/main/Configuring_Director.html#10256] 

It will retry in case machine is not on. 
Instead of all this, you could have a console in each client and/or tray 
monitor to start jobs from the Client machine, via script or user action. 

>1. The IP addresses - again one could try to fix client's IP address or 
> have
>DHCP automatically update a fixed name, like desktop-jon.company.com but 
> that
>seems pretty flaky. Is there any way to, maybe, update the client IP from
> client side?

You could use Static DNS which uses the MAC address to fix an IP for each 
client machine. 
There is also a setip console command: 

" setip Sets new client address - if authorized. 

A console is authorized to use the SetIP command only if it has a Console 
resource definition in both the Director and the Console. In addition, if the 
console name, provided on the Name = directive, must be the same as a Client 
name, the user of that console is permitted to use the SetIP command to change 
the Address directive in the Director's client resource to the IP address of 
the Console. This permits portables or other machines using DHCP (non-fixed IP 
addresses) to "notify" the Director of their current IP address." 
[https://www.bacula.org/9.0.x-manuals/en/console/Bacula_Console.html] 

> Is it totally unfeasible to use Bacula in such scenario?
It is possible, go for it. 
> Thanks in advance
Regards, 
> --
> Andrea Brancatelli

> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 

MSc Heitor Faria 
CEO Bacula LATAM 
mobile1: + 1 909 655-8971 
mobile2: + 55 61 98268-4220 
[ https://www.linkedin.com/in/msc-heitor-faria-5ba51b3 ] 
[ http://www.bacula.com.br/ ] 

América Latina 
[ http://bacula.lat/ | bacula.lat ] | [ http://www.bacula.com.br/ | 
bacula.com.br ] 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula for Users machines

2019-07-11 Thread Heitor Faria
s/Static DNS/Static DHCP/ 

> From: "Heitor Faria" 
> To: "Andrea Brancatelli" 
> Cc: "bacula-users" 
> Sent: Thursday, July 11, 2019 8:12:21 AM
> Subject: Re: [Bacula-users] Bacula for Users machines

> Hello Andrea,
>>1. The scheduling - you can certainly schedule backups for a working hour 
>> and
>>hope that the guy's is working at that moment, but hey... Is there any 
>> way to
>>"invoke" a backup from client side (I don't know, like on system startup) 
>> --
>> "Hey, I'm ready, backup me!" :-)

> You can schedule on the Director, and have these directives:

> " Reschedule On Error = yes|no If this directive is enabled, and the job
> terminates in error, the job will be rescheduled as determined by the
> Reschedule Interval and Reschedule Times directives. If you cancel the job, it
> will not be rescheduled. The default is no (i.e. the job will not be
> rescheduled).

> This specification can be useful for portables, laptops, or other machines 
> that
> are not always connected to the network or switched on.

> Reschedule Incomplete Jobs = yes|no

> If this directive is enabled, and the job terminates in incomplete status, the
> job will be rescheduled as determined by the Reschedule Interval and 
> Reschedule
> Times directives. If you cancel the job, it will not be rescheduled. The
> default is yes (i.e. Incomplete jobs will be rescheduled).

> Reschedule Interval = time-specification If you have specified Reschedule On
> Error = yes and the job terminates in error, it will be rescheduled after the
> interval of time specified by time-specification . See the time specification
> formatsTime in the Configure chapter for details of time specifications. If no
> interval is specified, the job will not be rescheduled on error. The default
> Reschedule Interval is 30 minutes (1800 seconds).

> Reschedule Times = count This directive specifies the maximum number of times 
> to
> reschedule the job. If it is set to zero (the default) the job will be
> rescheduled an indefinite number of times."
> [https://www.bacula.org/9.2.x-manuals/en/main/Configuring_Director.html#10256]

> It will retry in case machine is not on.
> Instead of all this, you could have a console in each client and/or tray 
> monitor
> to start jobs from the Client machine, via script or user action.

>>1. The IP addresses - again one could try to fix client's IP address or 
>> have
>>DHCP automatically update a fixed name, like desktop-jon.company.com but 
>> that
>>seems pretty flaky. Is there any way to, maybe, update the client IP from
>> client side?

> You could use Static DNS which uses the MAC address to fix an IP for each 
> client
> machine.
> There is also a setip console command:

> " setip Sets new client address - if authorized.

> A console is authorized to use the SetIP command only if it has a Console
> resource definition in both the Director and the Console. In addition, if the
> console name, provided on the Name = directive, must be the same as a Client
> name, the user of that console is permitted to use the SetIP command to change
> the Address directive in the Director's client resource to the IP address of
> the Console. This permits portables or other machines using DHCP (non-fixed IP
> addresses) to "notify" the Director of their current IP address."
> [https://www.bacula.org/9.0.x-manuals/en/console/Bacula_Console.html]

>> Is it totally unfeasible to use Bacula in such scenario?
> It is possible, go for it.
>> Thanks in advance
> Regards,
>> --
>> Andrea Brancatelli

>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users

> --

> MSc Heitor Faria
> CEO Bacula LATAM
> mobile1: + 1 909 655-8971
> mobile2: + 55 61 98268-4220
> [ https://www.linkedin.com/in/msc-heitor-faria-5ba51b3 ]
>   [ http://www.bacula.com.br/ ]

> América Latina
> [ http://bacula.lat/ | bacula.lat ] | [ http://www.bacula.com.br/ |
> bacula.com.br ]

-- 

MSc Heitor Faria 
CEO Bacula LATAM 
mobile1: + 1 909 655-8971 
mobile2: + 55 61 98268-4220 
[ https://www.linkedin.com/in/msc-heitor-faria-5ba51b3 ] 
[ http://www.bacula.com.br/ ] 

América Latina 
[ http://bacula.lat/ | bacula.lat ] | [ http://www.bacula.com.br/ | 
bacula.com.br ] 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users