Re: [Bacula-users] Bacula SD on a QNAP TS-231 [SOLVED]
Hello, śr., 24 paź 2018 o 08:46 Andrea Venturoli napisał(a): > On 10/22/18 5:38 PM, Radosław Korzeniewski wrote: > > _ this environment does not provide OpenSSL (or perhaps configure > > doesn't find it?), so it will be disabled; however some code in > > BSOCKCORE::close() in src/lib/bsockcore.c is not guarded by the > proper > > #ifdef HAVE_TLS, so you'll get linker errors. Just remove this code > (by > > commenting it or putting the right #if or just deleting those lines); > > > > > > What version of Bacula do you compile? > > 9.2.1. > > > > > Could you provide a proper code for which BSOCKCORE::close() which works > for you? > > Sure. > > The following patch is required in order to compile that version of > bacula *WITHOUT* OpenSSL. > > What I can find in git repo this issue was fixed at commit: 2a271769c3e5fe348e2c6988e605963735a97fe4 I think it is not yet released and will be at 9.2.2. best regards -- Radosław Korzeniewski rados...@korzeniewski.net ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula SD on a QNAP TS-231 [SOLVED]
Awesome, thanks! śr., 24 paź 2018 o 08:46 Andrea Venturoli napisał(a): > On 10/22/18 5:38 PM, Radosław Korzeniewski wrote: > > _ this environment does not provide OpenSSL (or perhaps configure > > doesn't find it?), so it will be disabled; however some code in > > BSOCKCORE::close() in src/lib/bsockcore.c is not guarded by the > proper > > #ifdef HAVE_TLS, so you'll get linker errors. Just remove this code > (by > > commenting it or putting the right #if or just deleting those lines); > > > > > > What version of Bacula do you compile? > > 9.2.1. > > > > > Could you provide a proper code for which BSOCKCORE::close() which works > for you? > > Sure. > > The following patch is required in order to compile that version of > bacula *WITHOUT* OpenSSL. > > % diff -u src/lib/bsockcore.c.orig src/lib/bsockcore.c > --- src/lib/bsockcore.c.orig2018-10-24 08:41:49.443835000 +0200 > +++ src/lib/bsockcore.c 2018-10-24 08:42:18.270196000 +0200 > @@ -935,12 +935,14 @@ > bsock->set_closed(); > bsock->set_terminated(); > if (!bsock->m_duped) { > +#ifdef HAVE_TLS > /* Shutdown tls cleanly. */ > if (bsock->tls) { >tls_bsock_shutdown(bsock); >free_tls_connection(bsock->tls); >bsock->tls = NULL; > } > +#endif > > #ifdef HAVE_WIN32 > if (!bsock->is_timed_out()) { > > > While I think this patch is safe, I don't want to be held responsible > for side effects :) I don't know the whole source enough and I didn't > test it with SSL enabled. > > bye > av. > -- Radosław Korzeniewski rados...@korzeniewski.net ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula SD on a QNAP TS-231 [SOLVED]
On 10/22/18 5:38 PM, Radosław Korzeniewski wrote: _ this environment does not provide OpenSSL (or perhaps configure doesn't find it?), so it will be disabled; however some code in BSOCKCORE::close() in src/lib/bsockcore.c is not guarded by the proper #ifdef HAVE_TLS, so you'll get linker errors. Just remove this code (by commenting it or putting the right #if or just deleting those lines); What version of Bacula do you compile? 9.2.1. Could you provide a proper code for which BSOCKCORE::close() which works for you? Sure. The following patch is required in order to compile that version of bacula *WITHOUT* OpenSSL. % diff -u src/lib/bsockcore.c.orig src/lib/bsockcore.c --- src/lib/bsockcore.c.orig2018-10-24 08:41:49.443835000 +0200 +++ src/lib/bsockcore.c 2018-10-24 08:42:18.270196000 +0200 @@ -935,12 +935,14 @@ bsock->set_closed(); bsock->set_terminated(); if (!bsock->m_duped) { +#ifdef HAVE_TLS /* Shutdown tls cleanly. */ if (bsock->tls) { tls_bsock_shutdown(bsock); free_tls_connection(bsock->tls); bsock->tls = NULL; } +#endif #ifdef HAVE_WIN32 if (!bsock->is_timed_out()) { While I think this patch is safe, I don't want to be held responsible for side effects :) I don't know the whole source enough and I didn't test it with SSL enabled. bye av. ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula SD on a QNAP TS-231 [SOLVED]
Hello, niedz., 21 paź 2018 o 19:49 Andrea Venturoli napisał(a): > _ this environment does not provide OpenSSL (or perhaps configure > doesn't find it?), so it will be disabled; however some code in > BSOCKCORE::close() in src/lib/bsockcore.c is not guarded by the proper > #ifdef HAVE_TLS, so you'll get linker errors. Just remove this code (by > commenting it or putting the right #if or just deleting those lines); > What version of Bacula do you compile? Could you provide a proper code for which BSOCKCORE::close() which works for you? Thanks. -- Radosław Korzeniewski rados...@korzeniewski.net ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula SD on a QNAP TS-231 [SOLVED]
On 10/17/18 1:35 PM, Josh Fisher wrote: I believe the NAS you mention uses a Marvell chip, so you will need the cross-compiler at: https://sourceforge.net/projects/qosgpl/files/QNAP%20NAS%20Tool%20Chains/ This should allow building the bacula-sd and library binaries targeting the Marvell chip from a Linux host. Thanks for pointing me in the right direction! This got me up and running, although it wasn't THAT easy (*): now I'm smoke testing my bacula-sd on the NAS. :-D bye & thanks av. *) Some hints, in case other people as mad as me :) want to try this: _ when cross compiling, configure always fails on a check on setpgrp: just remove the whole check and let ac_cv_func_setpgrp_void=no; _ for some reason bacula lets you build either everything or only the file daemon; there's no option to build only the SD. So you'll need to get and compile sqlite3, just to be able to compile the director (which you won't use!); _ this environment does not provide OpenSSL (or perhaps configure doesn't find it?), so it will be disabled; however some code in BSOCKCORE::close() in src/lib/bsockcore.c is not guarded by the proper #ifdef HAVE_TLS, so you'll get linker errors. Just remove this code (by commenting it or putting the right #if or just deleting those lines); _ the static-bacula-sd won't work: "status storage" will get the proper result, but as soon as you launch a job it will dump core (something to do with name resolution AFAICT). Use the non-static bacula-sd binary. ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula SD on a QNAP TS-231
On 10/17/2018 2:40 AM, Andrea Venturoli wrote: On 10/15/18 9:15 PM, Welington R. Braga wrote: Compile or look for packages for Linux is easier than to a proprietary NAS. Sure, otherwise I wouldn't be asking :) I believe the NAS you mention uses a Marvell chip, so you will need the cross-compiler at: https://sourceforge.net/projects/qosgpl/files/QNAP%20NAS%20Tool%20Chains/ This should allow building the bacula-sd and library binaries targeting the Marvell chip from a Linux host. You may also want the QPK development kit to package it for installation on the NAS. See http://download.qnap.com/dev/QDK_2.0.pdf. ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula SD on a QNAP TS-231
On 10/15/18 9:15 PM, Welington R. Braga wrote: I'm just a beginner in Bacula but I'm talking as who manager 4 QNAP NAS (1x TS-859U+, 3x TS-459U+) and others 2 similar storage like these in the last 6 years. So, if you let me give a humble opinion, configure only a NFS access and share this in your director/storage daemon and disable all the services and apps you will not use. Thanks for your answer. I have some setup with NFS, just because that's the only choice; I try to avoid it if there are better alternatives. The reasons are: 1st - It is the most simple protocol to configure and use in Linux Machine; And also the more problematic. Besides, I don't use Linux (except of course on the NAS). 2nd - ISCSI is a most but, in this storage, when you create a LUN in fact it creates some big files mounted as loop devices, so, any problem in your machine means double problem to restore data No problem: I have separate disaster recovery, so in case of trouble on my machine I can easily get out of it. reduced performance of the box (compared with NFS it the same machine) That's curious: I thought iSCSI would be faster. Guess I'll need to run some benchmarks. 4th - As said, you have to maintain the same version of SD and DIR. Not necessarily true: I have a 7.4.7 director use a 7.4.0 SD. In any case, upgrades don't come that frequently, so I can cope. Compile or look for packages for Linux is easier than to a proprietary NAS. Sure, otherwise I wouldn't be asking :) Of course, it is based in my experience with these machines, and can not reflect the reality of your case. I guess YMMV. I have several setups: _ in most cases I'm running the SD on the NAS and I'm *VERY* happy with this; _ on some corner cases (where I couldn't choose the NAS), I'm using NFS and it's much more trouble; _ I'll try iSCSI at least in the lab to see how it compares; _ I never used CIFS for this and I think I'll never will. bye & Thanks av. ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula SD on a QNAP TS-231
Hi, I also have a qnap nas for storing backups. I simply mount a nfs directory of the nas in the director, and launch backups against that mountpoint. It's the simplest way, and works flawlessly. No need to compile and/or install anything on the nas. Regards El lun., 15 oct. 2018 22:32, Chris Wilkinson escribió: > I use CIFS to mount 2 dissimilar NAS's on the DIR/FD/SD host. One is the > source, the other is the backup destination. It works just fine. I didn't > attempt to put the FD or SD on them natively since they are locked down > OS's. > > I took the precaution of mounting the source read only. > > I suppose NFS would work too but since I had CIFS mounts for other reasons > it seemed sensible to use that. > > Regards > > Chris Wilkinson > > On Mon, 15 Oct 2018, 8:18 p.m. Welington R. Braga, > wrote: > >> >> Hi Andrea and others, >> >> I'm just a beginner in Bacula but I'm talking as who manager 4 QNAP NAS >> (1x TS-859U+, 3x TS-459U+) and others 2 similar storage like these in the >> last 6 years. So, if you let me give a humble opinion, configure only a NFS >> access and share this in your director/storage daemon and disable all the >> services and apps you will not use. >> >> The reasons are: >> 1st - It is the most simple protocol to configure and use in Linux >> Machine; >> 2nd - ISCSI is a most but, in this storage, when you create a LUN in fact >> it creates some big files mounted as loop devices, so, any problem in your >> machine means double problem to restore data, reduced performance of the >> box (compared with NFS it the same machine) and after some days (maybe >> months) of use this files will increase till the limit of storage and you >> start to receive alerts of disk-full >> 4th - As said, you have to maintain the same version of SD and DIR. >> Compile or look for packages for Linux is easier than to a proprietary NAS. >> >> Of course, it is based in my experience with these machines, and can not >> reflect the reality of your case. >> >> Regards, >> >> >> Em sex, 12 de out de 2018 às 09:52, Andrea Venturoli >> escreveu: >> >>> Hello. >>> >>> I know this question (more or less) came up several times in the past, >>> but possibly things have changed a lot. >>> >>> Is there any way I could install bacula storage daemon on the NAS in >>> subject? >>> There seems to be no QPKG available. >>> IPKG apparently disappeared. >>> I tried compiling it directly on the NAS, but there's no tools. >>> Is cross compiling the only way? Any tutorial then? >>> >>> Of course I could use NFS, but I'd *REALLY* like to avoid it. >>> >>> bye & Thanks >>> av. >>> >>> >>> ___ >>> Bacula-users mailing list >>> Bacula-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/bacula-users >>> >> >> >> -- >> Welington Rodrigues Braga >> -- >> Web: http://www.welrbraga.eti.br >> Gtalk: welrbraga[*]gmail·com >> Yahoo / Skype: welrbraga >> PGP Key: 0x6C7654EB >> Linux User #253605 >> >> "Em tudo somos atribulados, porém não angustiados; perplexos, porém não >> desanimados; perseguidos, porém não desamparados; abatidos, porém não >> destruídos;" - 2Co 4:8,9 >> ___ >> 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 > ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula SD on a QNAP TS-231
I use CIFS to mount 2 dissimilar NAS's on the DIR/FD/SD host. One is the source, the other is the backup destination. It works just fine. I didn't attempt to put the FD or SD on them natively since they are locked down OS's. I took the precaution of mounting the source read only. I suppose NFS would work too but since I had CIFS mounts for other reasons it seemed sensible to use that. Regards Chris Wilkinson On Mon, 15 Oct 2018, 8:18 p.m. Welington R. Braga, wrote: > > Hi Andrea and others, > > I'm just a beginner in Bacula but I'm talking as who manager 4 QNAP NAS > (1x TS-859U+, 3x TS-459U+) and others 2 similar storage like these in the > last 6 years. So, if you let me give a humble opinion, configure only a NFS > access and share this in your director/storage daemon and disable all the > services and apps you will not use. > > The reasons are: > 1st - It is the most simple protocol to configure and use in Linux Machine; > 2nd - ISCSI is a most but, in this storage, when you create a LUN in fact > it creates some big files mounted as loop devices, so, any problem in your > machine means double problem to restore data, reduced performance of the > box (compared with NFS it the same machine) and after some days (maybe > months) of use this files will increase till the limit of storage and you > start to receive alerts of disk-full > 4th - As said, you have to maintain the same version of SD and DIR. > Compile or look for packages for Linux is easier than to a proprietary NAS. > > Of course, it is based in my experience with these machines, and can not > reflect the reality of your case. > > Regards, > > > Em sex, 12 de out de 2018 às 09:52, Andrea Venturoli > escreveu: > >> Hello. >> >> I know this question (more or less) came up several times in the past, >> but possibly things have changed a lot. >> >> Is there any way I could install bacula storage daemon on the NAS in >> subject? >> There seems to be no QPKG available. >> IPKG apparently disappeared. >> I tried compiling it directly on the NAS, but there's no tools. >> Is cross compiling the only way? Any tutorial then? >> >> Of course I could use NFS, but I'd *REALLY* like to avoid it. >> >> bye & Thanks >> av. >> >> >> ___ >> Bacula-users mailing list >> Bacula-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/bacula-users >> > > > -- > Welington Rodrigues Braga > -- > Web: http://www.welrbraga.eti.br > Gtalk: welrbraga[*]gmail·com > Yahoo / Skype: welrbraga > PGP Key: 0x6C7654EB > Linux User #253605 > > "Em tudo somos atribulados, porém não angustiados; perplexos, porém não > desanimados; perseguidos, porém não desamparados; abatidos, porém não > destruídos;" - 2Co 4:8,9 > ___ > 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 SD on a QNAP TS-231
Hi Andrea and others, I'm just a beginner in Bacula but I'm talking as who manager 4 QNAP NAS (1x TS-859U+, 3x TS-459U+) and others 2 similar storage like these in the last 6 years. So, if you let me give a humble opinion, configure only a NFS access and share this in your director/storage daemon and disable all the services and apps you will not use. The reasons are: 1st - It is the most simple protocol to configure and use in Linux Machine; 2nd - ISCSI is a most but, in this storage, when you create a LUN in fact it creates some big files mounted as loop devices, so, any problem in your machine means double problem to restore data, reduced performance of the box (compared with NFS it the same machine) and after some days (maybe months) of use this files will increase till the limit of storage and you start to receive alerts of disk-full 4th - As said, you have to maintain the same version of SD and DIR. Compile or look for packages for Linux is easier than to a proprietary NAS. Of course, it is based in my experience with these machines, and can not reflect the reality of your case. Regards, Em sex, 12 de out de 2018 às 09:52, Andrea Venturoli escreveu: > Hello. > > I know this question (more or less) came up several times in the past, > but possibly things have changed a lot. > > Is there any way I could install bacula storage daemon on the NAS in > subject? > There seems to be no QPKG available. > IPKG apparently disappeared. > I tried compiling it directly on the NAS, but there's no tools. > Is cross compiling the only way? Any tutorial then? > > Of course I could use NFS, but I'd *REALLY* like to avoid it. > > bye & Thanks > av. > > > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > -- Welington Rodrigues Braga -- Web: http://www.welrbraga.eti.br Gtalk: welrbraga[*]gmail·com Yahoo / Skype: welrbraga PGP Key: 0x6C7654EB Linux User #253605 "Em tudo somos atribulados, porém não angustiados; perplexos, porém não desanimados; perseguidos, porém não desamparados; abatidos, porém não destruídos;" - 2Co 4:8,9 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula SD on a QNAP TS-231
On 10/12/18 7:27 PM, Heitor Faria wrote: It does not compensate for the hassle. Bacula SD should be built in the same Director and database headers versions ??? I'm not interested in FD or Director on the NAS, just SD. I've done this (i.e. compiling directly on the device) several times on Zyxel hardware, but now I acquired a new customer, which already has some QNAPs :( Of course I could use NFS, but I'd *REALLY* like to avoid it. Just use iSCSI: https://www.qnap.com/en/product/ts-231/specs/software Right. Probably better than NFS, in fact. Still, I'd like to avoid running the SD on another machine but the NAS. bye & Thanks av. ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula SD on a QNAP TS-231
On Oct 13, 2018, 10:34 AM, at 10:34 AM, Tilman Schmidt wrote: >Am 12.10.2018 um 23:17 schrieb Dimitri Maziuk via Bacula-users: >> You don't need storage daemon on qnap if you want to backup up a qnap >> volume. You need it bacula-fd. > >Sorry, my fault. I didn't read the subject properly. >Indeed I'm looking for bacula-fd or an alternative for a QNAP NAS, >which >is a different topic entirely. > > >___ >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 SD on a QNAP TS-231
Am 12.10.2018 um 23:17 schrieb Dimitri Maziuk via Bacula-users: > You don't need storage daemon on qnap if you want to backup up a qnap > volume. You need it bacula-fd. Sorry, my fault. I didn't read the subject properly. Indeed I'm looking for bacula-fd or an alternative for a QNAP NAS, which is a different topic entirely. ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula SD on a QNAP TS-231
On 10/12/2018 03:46 PM, Tilman Schmidt wrote: > Hello Heitor, > > On 12.10.2018 19:27 Heitor Faria wrote: > [in reply to Andrea Venturoli's question:] >>> Is there any way I could install bacula storage daemon on the NAS in >>> subject? > [...]>> Of course I could use NFS, but I'd *REALLY* like to avoid it. >> >> Just use iSCSI: https://www.qnap.com/en/product/ts-231/specs/software > > Interesting idea. Could you elaborate on that? > How would one proceed to back up a QNAP data volume via iSCSI? You don't need storage daemon on qnap if you want to backup up a qnap volume. You need it bacula-fd. -- Dimitri Maziuk Programmer/sysadmin BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu signature.asc Description: OpenPGP digital signature ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula SD on a QNAP TS-231
Hello Heitor, On 12.10.2018 19:27 Heitor Faria wrote: [in reply to Andrea Venturoli's question:] >> Is there any way I could install bacula storage daemon on the NAS in >> subject? [...]>> Of course I could use NFS, but I'd *REALLY* like to avoid it. > > Just use iSCSI: https://www.qnap.com/en/product/ts-231/specs/software Interesting idea. Could you elaborate on that? How would one proceed to back up a QNAP data volume via iSCSI? Thanks, Tilman ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula SD on a QNAP TS-231
> Hello. Hello Andrea, > I know this question (more or less) came up several times in the past, > but possibly things have changed a lot. > > Is there any way I could install bacula storage daemon on the NAS in > subject? > There seems to be no QPKG available. > IPKG apparently disappeared. > I tried compiling it directly on the NAS, but there's no tools. > Is cross compiling the only way? Any tutorial then? It does not compensate for the hassle. Bacula SD should be built in the same Director and database headers versions > Of course I could use NFS, but I'd *REALLY* like to avoid it. Just use iSCSI: https://www.qnap.com/en/product/ts-231/specs/software Regards, -- MSc Heitor Faria CEO Bacula LATAM mobile1: + 1 909 655-8971 mobile2: + 55 61 98268-4220 Brasilia - Miami - New York www.bacula.com.br ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Bacula SD on a QNAP TS-231
Hello. I know this question (more or less) came up several times in the past, but possibly things have changed a lot. Is there any way I could install bacula storage daemon on the NAS in subject? There seems to be no QPKG available. IPKG apparently disappeared. I tried compiling it directly on the NAS, but there's no tools. Is cross compiling the only way? Any tutorial then? Of course I could use NFS, but I'd *REALLY* like to avoid it. bye & Thanks av. ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users