On Thursday, September 5, 2013 9:23:46 AM UTC+2, Günter Gratzer wrote:
> Hi, 
> 
> 
> 
> I installed bareos-fd as well and it's working so fare without a problem. 
> 
> 
> 
> The only thing which was a big problem is to start bareos at system startup. 
> FreeBSD shell has a problem with "-". See my post at the FreeBSD forum 
> http://forums.freebsd.org/showthread.php?t=41738 
> 
> Maybe a FreeBSD expert find a solution how to keep the "-" in bareos-fd, 
> bareos-sd and bareos-dir. 
> 
> 
> 
> Regards 
> 
> 
> 
> Günter 
> 
> 
> 
> 
> 
> Am Dienstag, 3. September 2013 09:09:05 UTC+2 schrieb Marco van Wieringen:
> 
> > Günter Gratzer <guenter.gratzer <at> abf.co.at> writes:
> 
> > 
> 
> > 
> 
> > 
> 
> > > 
> 
> > 
> 
> > > Hi Marco,
> 
> > 
> 
> > > 
> 
> > 
> 
> > > is there any documentation about how to compile/build bareos? I only found
> 
> > 
> 
> > > http://www.bareos.org/en/HOWTO/articles/how-to-contribute-to-bareos.html >
> 
> > 
> 
> > Howto Compile. Is this all I have to do?
> 
> > 
> 
> > Each platform requires other configure flags. As you are only after
> 
> > 
> 
> > a working SD you should start with a minimum setting.
> 
> > 
> 
> > 
> 
> > 
> 
> > I came up with the following build script for my FreeBSD compile.
> 
> > 
> 
> > 
> 
> > 
> 
> > #!/bin/sh
> 
> > 
> 
> > 
> 
> > 
> 
> > CFLAGS="-O3"
> 
> > 
> 
> > CXXFLAGS="-O3"
> 
> > 
> 
> > 
> 
> > 
> 
> > export CFLAGS CXXFLAGS
> 
> > 
> 
> > 
> 
> > 
> 
> > ./configure \
> 
> > 
> 
> > --prefix=/opt/bareos \
> 
> > 
> 
> > --with-plugindir=/opt/bareos/lib/plugins \
> 
> > 
> 
> > --with-sbin-perm=0555 \
> 
> > 
> 
> > --enable-lockmgr \
> 
> > 
> 
> > --enable-includes \
> 
> > 
> 
> > --enable-ipv6 \
> 
> > 
> 
> > --enable-dynamic-cats-backends \
> 
> > 
> 
> > --disable-bat \
> 
> > 
> 
> > --with-sqlite3=/usr/local \
> 
> > 
> 
> > --with-lzo=/usr/local \
> 
> > 
> 
> > --with-readline=/usr/local \
> 
> > 
> 
> > --disable-conio \
> 
> > 
> 
> > --enable-ndmp \
> 
> > 
> 
> > --enable-scsi-crypto
> 
> > 
> 
> > 
> 
> > 
> 
> > You probably can loose the last two e.g. change them to
> 
> > 
> 
> > --disable-ndmp
> 
> > 
> 
> > --disable-scsi-crypto
> 
> > 
> 
> > 
> 
> > 
> 
> > I install everything into /opt/bareos so I don't have to find all my
> 
> > 
> 
> > scripts and binaries all over the filesystem or in the already overcrouded
> 
> > 
> 
> > /usr/local dir. 
> 
> > 
> 
> > 
> 
> > 
> 
> > > 
> 
> > 
> 
> > > I installed FreeBSD 9.1-RELEASE, downloaded the source code of Bareos and
> 
> > 
> 
> > > compiled it with the command found in Howto Compile.
> 
> > 
> 
> > > 
> 
> > 
> 
> > > You said you have already successfully compiled it on FreeBSD. Which
> 
> > 
> 
> > > version of FreeBSD do you use? 
> 
> > 
> 
> > 9.1
> 
> > 
> 
> > 
> 
> > 
> 
> > > Which additional packages did you install?
> 
> > 
> 
> > Quite some but that was mostly to get Gnome up and running in the VM.
> 
> > 
> 
> > I think you should make sure that at least readline, sqlite3 and lzo2
> 
> > 
> 
> > are installed of the ports as those are used in the above configure.
> 
> > 
> 
> > 
> 
> > 
> 
> > > 
> 
> > 
> 
> > > I get the following error:
> 
> > 
> 
> > > 
> 
> > 
> 
> > > Compiling scsi_lli.c
> 
> > 
> 
> > > scsi_lli.c: In function 'bool do_scsi_cmd_page(int, const char*, void*,
> 
> > 
> 
> > unsigned int, void*, unsigned
> 
> > 
> 
> > > int, int)':
> 
> > 
> 
> > > scsi_lli.c:284: error: 'cam_getccv' was not declared in this scope
> 
> > 
> 
> > > /usr/include/string.h:67: error: too few arguments to function 'void*
> 
> > 
> 
> > memset(void*, int, size_t)'
> 
> > 
> 
> > > scsi_lli.c:296: error: at this point in file
> 
> > 
> 
> > > scsi_lli.c:296: error: expected `;' before ')' token
> 
> > 
> 
> > > scsi_lli.c:302: error: expected primary-expression before ',' token
> 
> > 
> 
> > > scsi_lli.c:308: error: 'SPP_SP_CMD_LEN' was not declared in this scope
> 
> > 
> 
> > > scsi_lli.c:326: error: 'SAM_STAT_CHECK_CONDITION' was not declared in this
> 
> > 
> 
> > scope
> 
> > 
> 
> > > scsi_lli.c:327: error: 'SAM_STAT_COMMAND_TERMINATED' was not declared in
> 
> > 
> 
> > this scope
> 
> > 
> 
> > > *** [scsi_lli.lo] Error code 1
> 
> > 
> 
> > > 
> 
> > 
> 
> > > Stop in /usr/home/guenterg/bareos-Release-12.4.4/src/lib.
> 
> > 
> 
> > > 
> 
> > 
> 
> > >   ====== Error in /usr/home/guenterg/bareos-Release-12.4.4/src/lib ======
> 
> > 
> 
> > > 
> 
> > 
> 
> > > *** [all] Error code 1
> 
> > 
> 
> > > 
> 
> > 
> 
> > > Stop in /usr/home/guenterg/bareos-Release-12.4.4.
> 
> > 
> 
> > > 
> 
> > 
> 
> > > Do you know this error? I'm not sure if I did something wrong or if there
> 
> > 
> 
> > > is really a problem in the code because you said you compiled it without >
> 
> > 
> 
> > a problem.
> 
> > 
> 
> > It does when you don't enable SCSI crypto (which is not tested on FreeBSD
> 
> > 
> 
> > anyway.) But if you pull the latest 12.4/13.2 or master the above problem
> 
> > 
> 
> > is fixed just as is a problem in compiling the NDMP code. But as I said
> 
> > 
> 
> > above you can probably do without it for a SD only.
> 
> > 
> 
> > 
> 
> > 
> 
> > -- 
> 
> > 
> 
> > Marco van Wieringen                   [email protected]
> 
> > 
> 
> > Bareos GmbH & Co. KG                  Phone: +49-221-63069389
> 
> > 
> 
> > http://www.bareos.com                     
> 
> > 
> 
> > 
> 
> > 
> 
> > Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
> 
> > 
> 
> > Komplementär: Bareos Verwaltungs-GmbH
> 
> > 
> 
> > Geschäftsführer: Stephan Dühr, M. Außendorf, J. Steffens,
> 
> > 
> 
> >                  P. Storz, M. v. Wieringen
> 
> > 
> 
> > 
> 
> > 
> 
> > Visit us at the Open Source Backup Conference, http://osbconf.org,
> 
> > 
> 
> > 25th September 2013 in Cologne, Germany

Hello Gunter,
       Do you have any notes of how you went about this. I want to connect my 
Dell TL4000 LTO-6 drive to FreeNAS and backup the two zfs volumes on it.

BR,
    jorgen

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to