Installation/OS Specific Notes/Installing Amanda on FreeBSD: Difference between revisions
(add notes for FreeBSD 6.3) |
(→Package origins: wrong options for pkgdb) |
||
Line 62: | Line 62: | ||
With the <tt>portupgrade</tt> package installed: | With the <tt>portupgrade</tt> package installed: | ||
sudo pkg_add -r portupgrade | sudo pkg_add -r portupgrade | ||
sudo pkgdb - | sudo pkgdb -u # force package database refresh | ||
one can query the origin of specific files installed: | one can query the origin of specific files installed: | ||
% '''sudo pkg_which pkg_which''' | % '''sudo pkg_which pkg_which''' |
Revision as of 09:22, 3 March 2008
Port history
To determine if there are issues that concern your situation in the Amanda ports available, check the port history at freshports.org:
Versions
FreeBSD 6.3
Installation from package tree
As of March 2008, the Amanda packages are not available from /pub/FreeBSD/releases/i386/6.3-RELEASE/packages/Latest on mirrors checked, so it is not possible to install Amanda using remote pkg_add:
sudo pkg_add -r amanda-server # does not work sudo pkg_add -r amanda-client # does not work
Instead, it was necessary to download the packages manually prior to installation:
sudo pkg_add -r wget gtar mkdir ~/packages cd ~/packages wget 'ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.3-RELEASE/packages/misc/amanda-server-2.5.1p3_3,1.tbz' wget 'ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.3-RELEASE/packages/misc/amanda-client-2.5.1p3_1,1.tbz' sudo pkg_add amanda-client-2.5.1p3_1,1.tbz amanda-server-2.5.1p3_3,1.tbz
Gnuplot
If installing gnuplot with the command sudo pkg_add -r gnuplot the dependency on pdflib-7.0.2.tbz is not available from the package tree and pkg_add reports:
Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/All/pdflib-7.0.2.tbz: File unavailable
It can be built instead from /usr/ports/print/pdflib if you have the ports tree installed.
cd /usr/ports/print/pdflib sudo make install clean
Installation locations
After installing Amanda, I found it useful to update the locate database in background.
sudo /etc/periodic/weekly/310.locate &
% locate amandad /usr/local/lib/libamandad-2.5.1p3.so /usr/local/lib/libamandad.a /usr/local/lib/libamandad.la /usr/local/lib/libamandad.so /usr/local/libexec/amanda/amandad % locate amadmin /usr/local/man/man8/amadmin.8.gz /usr/local/sbin/amadmin /usr/local/share/amanda/amadmin.8.txt % locate amanda.conf /usr/local/man/man5/amanda.conf.5.gz /usr/local/share/amanda/amanda.conf.5.txt /usr/local/share/examples/amanda/amanda.conf
The FreeBSD package does not create the directory /usr/local/etc/amanda/, but it does provide an example under /usr/local/share/examples/amanda/. Most command binaries are under /usr/local/sbin/, but many components are under /usr/local/libexec/amanda/.
Package origins
With the portupgrade package installed:
sudo pkg_add -r portupgrade sudo pkgdb -u # force package database refresh
one can query the origin of specific files installed:
% sudo pkg_which pkg_which portupgrade-2.4.3_2,2 % sudo pkg_which amadmin amanda-server-2.5.1p3_3,1 % sudo pkg_which /usr/local/libexec/amanda/amandad amanda-client-2.5.1p3_1,1 % sudo pkg_which /usr/local/share/examples/amanda/amanda.conf amanda-client-2.5.1p3_1,1
FreeBSD 5.1
Nicolas Ecarnot <[email protected]> discovered that for FreeBSD 5.1 (maybe earlier, and surely further), you have to set the net.inet.udp.maxdgram TCP/IP variable to 65535. The default is 9216, and this is a problem when trying to backup a large number of clients as indicated by errors in during amcheck or the estimate phase.
You can just run the command:
sysctl net.inet.udp.maxdgram=63535
but this won't last until the next reboot.
To make it permanent, just add this line:
net.inet.udp.maxdgram=65535
in the file /etc/sysctl.conf.
FreeBSD 4.9
Sep. 28th, 2004: Jason Miller <[email protected]> reported problems with setting up the AMANDA-client on FreeBSD 4.9. He wrote:
Due to the need for read permissions for AMANDA-client the default user and group for this on FreeBSD 4.9 is "operator:operator" which I found a write up on that as well. Just a note the port wanted to install it with these user permissions by default and I initially changed them to match my Redhat 9.0 install. So just doing a make distclean uninstall install AMANDA_SERVER=servername
fixed that for me. Then I just followed the below instructions and everything was good to go.
Refer to this link for more details: http://www.freebsd.org/cgi/query-pr.cgi?pr=59302.
FreeBSD 4.7
Found this in the amanda list archives. Was regarding FreeBSD 4.11, but worked on my 4.7.
Re: amanda 2.5.1 doesn't compile on FreeBSD 4.11 - atoll
Error:
.libs/amandad amandad.o ./.libs/libamandad.so ../common-src/.libs/libamanda.so -lm -lreadline -ltermcap -lcam ../common-src/.libs/libamanda.so: undefined reference to `atoll' *** Error code 1 Stop in /usr/local/src/amanda/amandad-src. *** Error code 1
Solution:
1.Edit ./common-src/amanda.h file and modify this line: Old line: # define OFF_T_ATOI (off_t)atoll New line: # define OFF_T_ATOI (off_t)atol 2. run autogen 3. run configure 4. run make
This issue will be fixed in 2.5.1p2 release and post-2.5.1 releases.
FreeBSD 3.0
chg-scsi was not updated to support the new camlib.h-dependent chio.h, so chg-scsi will be automatically disabled if camlib.h is found. You may use chg-chio instead.