Re: SV: FAILED [spawn /bin/gzip: dup2 out: Bad file descriptor] on 2.6.1p2
Thank you Gunnar and Dustin! I switched to tcp on one host yesterday and it worked fine so far. I will observe this for the next couple of days and report back to you. Thank you again for your fast response, Volker Gunnarsson, Gunnar wrote: Switching to tcp instead of using udp cured those problems. Hi, I'm having a bit of a problem on *some* servers concerning failed backups with the error message: lev # FAILED [spawn /bin/gzip: dup2 out: Bad file descriptor] Gunnar had a similar problem - maybe his experience will help? http://www.mail-archive.com/amanda-users@amanda.org/msg42119.html Dustin
Re: backup strategy
Stefan Zörner wrote: Hi, we are about to build up a backup system onto a network drive. We do not need long term full backup, we just want to be able to access data maximal a month old. We thought of doing one full backup and then just doing cumulative backups. We are planning on using it over a longer period and since after a year the data can differ a lot from the original full backup each cumulative backup can get quite large. A possibility of course is to do a full backup now and then. My question is, that instead of working with cumulative backup I want to use incremental ones. Now normally at the end of a cycle the oldest incremental backup is overwritten and the whole backup becomes worthless. Is there a method were the oldest increments is included into the full backup itself after a cycle has been reached? Example: - one full backup - 10 increments before starting increment 11. Renew full backup by including oldest incremental backup. Thanks in advance for any help or pointers. You should take a look at this: http://wiki.zmanda.com/index.php/FAQ:How_are_backup_levels_defined_and_how_does_Amanda_use_them%3F before launching off into backup strategy ideas based on prior knowledge from other kinds of backup software. After you have read through that a couple of times, you might have different questions. -- --- Chris Hoogendyk - O__ Systems Administrator c/ /'_ --- Biology Geology Departments (*) \(*) -- 140 Morrill Science Center ~~ - University of Massachusetts, Amherst hoogen...@bio.umass.edu --- Erdös 4
Having problems compiling Solaris 10 x86 2.6.1p2
I am running Sun Solaris 10 x86 I have SunStudio12.1. I am trying to compile amanda 2.6.1.p2 I went the SunStudio12.1 route because of all the heart ache with gcc and glib-2.0. I have read all the information about the glib-2.0 on the zmanda wiki. It seems no matter which direction I go I run into problems. So I am hoping someone can give me some guidance on my problem. Here is my configure script. ./configure \ CC=/opt/SunStudio/bin/cc \ CFLAGS=-m64 -xarch=generic -g -xO5 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/opt/SunStudio/include \ LDFLAGS=-g -L/opt/SunStudio/lib/amd64 -R/opt/SunStudio/lib/amd64 \ CPPFLAGS= -I/opt/csw/include/readline -I/opt/SunStudio/include -I/usr/include \ PKG_CONFIG_PATH=/usr/lib/pkgconfig \ PERL=/opt/csw/bin/perl \ --prefix=/local/amanda/amanda \ --libexecdir=/usr/sfw/i386-sun-solaris2.10/bin:$PATH \ --with-user=amanda \ --with-owner=amanda \ --with-group=operator \ --with-gnutar=/opt/csw/bin/gtar \ --with-gnutar-listdir=/var/amanda/gnutar-lists \ --with-index-server=hertz \ --with-tape-server=hertz \ --with-tape-device=/dev/rmt/1bn \ --with-changer-device=/dev/changer/1 \ --without-ipv6 \ --with-bsd-security --with-amandahosts \ --enable-static-binary \ --disable-s3-device Here is the error file from config.log make all-am Making all in common-src /bin/bash ../libtool --tag=CC--mode=link /opt/SunStudio/bin/cc -m64 -xarch=generic -g -xO5 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/opt/SunStudio/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -static -g -L/opt/SunStudio/lib/amd64 -R/opt/SunStudio/lib/amd64 -o genversion genversion.o ../gnulib/libgnu.la versuff.lo ../gnulib/libgnu.la -lm -mt -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lsocket -lnsl -lresolv -lintl -lnsl -lsocket /opt/SunStudio/bin/cc -m64 -xarch=generic -g -xO5 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/opt/SunStudio/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -o genversion genversion.o .libs/versuff.o -mt -L/opt/SunStudio/lib/amd64 ../gnulib/.libs/libgnu.a -lm -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lresolv -lintl -lnsl -lsocket -Wl,--rpath -Wl,/opt/SunStudio/lib/amd64 /usr/ccs/bin/ld: illegal option -- rpath I tried to fake ld by linking /usr/ccs/bin/ld to /usr/sfw/i386-sun-solaris2.10/bin/ld but did not like that. I tired using CC=/opt/SunStudio/bin/cc -Yl,/usr/sfw/i386-sun-solaris2.10/bin/ld and did not like that. It seems that SunStudio resolves the glib-2 problem but now have a problem with ld. Is there anyone who has used SunStudio on Sun Solaris 10 x86 to build amanda? Do you see any problems with my configure script? How did you get this to work? I realize that opencsw has a prebuilt version but I really do need to try and build my own. Thanks Robert _ Robert P. McGraw, Jr. Manager, Computer SystemEMAIL: rmcg...@purdue.edu Purdue UniversityROOM: MATH-807 Department of Mathematics PHONE: (765) 494-6055 150 N. University Street West Lafayette, IN 47907-2067
Re: Issue with amrecover from 2nd tape
Hi, Thanks for your response. Please see my questions line On Thu, Apr 15, 2010 at 10:37:29AM -0700, Paul Yeatman wrote: Hi! On Thu, 2010-04-15 at 10:18 +0100, Mark Adams wrote: Hi All, Debian lenny, Amanda 2.6.1p1-2 I'm backing up a single 1.9T xfs filesystem to an LTO4 drive with changer. The backup seems to complete correctly and recovering files that are on the first tape complete correctly. However, when trying to retrieve and files that are on the 2nd tape, the tape is loaded correctly by the changer (after first spooling through the first tape, as a side note is there a way to skip this?) then after some time the following error is shown You would not be able to skip the first tape if this is where the backup image begins Ok. It doesn't help if it is in 80G chunks? tar: Error exit delayed from previous errors Extractor child exited with status 2 How can I find out what the previous errors were? You need to look in the debug log for the backup application you are using on the client in /var/log/amanda/client/config/. I don't have any amgtar logs, just the amrecover logs - which have the security stream_stream_close message I noted below. Is there some additional logging I can add? For amgtar, it will be amgtar.datestamp.debug Cheers, Paul In the amrecover log I also see 1271275442.543746: amrecover: security_stream_close(0xd89180) 1271275520.583556: amrecover: security_stream_close(0xd99f30) My tape and dump config is as follows define tapetype LTO4 { comment HP LTO4 length 804191104 kbytes filemark 0 kbytes speed 90511 kps blocksize 32 kbytes } define dumptype upbackup { program GNUTAR compress server custom server_custom_compress /usr/bin/pigz tape_splitsize 80Gb split_diskbuffer /tapehold/ fallback_splitsize 10Gb comment UPBACKUP index priority high auth bsd } Help would be very much appreciated! Cheers, Mark
Re: Having problems compiling Solaris 10 x86 2.6.1p2
Setting the below LD_OPTIONS should be all that you need to do to get it to build since you're using some packages from OpenCSW. LD_OPTIONS='-R/opt/csw/lib/$ISALIST -R/opt/csw/lib -L/opt/csw/lib' On 04/16/2010 11:02 AM, McGraw, Robert P wrote: I am running Sun Solaris 10 x86 I have SunStudio12.1. I am trying to compile amanda 2.6.1.p2 I went the SunStudio12.1 route because of all the heart ache with gcc and glib-2.0. I have read all the information about the glib-2.0 on the zmanda wiki. It seems no matter which direction I go I run into problems. So I am hoping someone can give me some guidance on my problem. Here is my configure script. ./configure \ CC=/opt/SunStudio/bin/cc \ CFLAGS=-m64 -xarch=generic -g -xO5 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/opt/SunStudio/include \ LDFLAGS=-g -L/opt/SunStudio/lib/amd64 -R/opt/SunStudio/lib/amd64 \ CPPFLAGS= -I/opt/csw/include/readline -I/opt/SunStudio/include -I/usr/include \ PKG_CONFIG_PATH=/usr/lib/pkgconfig \ PERL=/opt/csw/bin/perl \ --prefix=/local/amanda/amanda \ --libexecdir=/usr/sfw/i386-sun-solaris2.10/bin:$PATH \ --with-user=amanda \ --with-owner=amanda \ --with-group=operator \ --with-gnutar=/opt/csw/bin/gtar \ --with-gnutar-listdir=/var/amanda/gnutar-lists \ --with-index-server=hertz \ --with-tape-server=hertz \ --with-tape-device=/dev/rmt/1bn \ --with-changer-device=/dev/changer/1 \ --without-ipv6 \ --with-bsd-security --with-amandahosts \ --enable-static-binary \ --disable-s3-device Here is the error file from config.log make all-am Making all in common-src /bin/bash ../libtool --tag=CC --mode=link /opt/SunStudio/bin/cc -m64 -xarch=generic -g -xO5 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/opt/SunStudio/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -static -g -L/opt/SunStudio/lib/amd64 -R/opt/SunStudio/lib/amd64 -o genversion genversion.o ../gnulib/libgnu.la versuff.lo ../gnulib/libgnu.la -lm -mt -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lsocket -lnsl -lresolv -lintl -lnsl -lsocket /opt/SunStudio/bin/cc -m64 -xarch=generic -g -xO5 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/opt/SunStudio/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -o genversion genversion.o .libs/versuff.o -mt -L/opt/SunStudio/lib/amd64 ../gnulib/.libs/libgnu.a -lm -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lresolv -lintl -lnsl -lsocket -Wl,--rpath -Wl,/opt/SunStudio/lib/amd64 /usr/ccs/bin/ld: illegal option -- rpath I tried to fake ld by linking /usr/ccs/bin/ld to /usr/sfw/i386-sun-solaris2.10/bin/ld but did not like that. I tired using CC=/opt/SunStudio/bin/cc -Yl,/usr/sfw/i386-sun-solaris2.10/bin/ld and did not like that. It seems that SunStudio resolves the glib-2 problem but now have a problem with ld. Is there anyone who has used SunStudio on Sun Solaris 10 x86 to build amanda? Do you see any problems with my configure script? How did you get this to work? I realize that opencsw has a prebuilt version but I really do need to try and build my own. Thanks Robert _ Robert P. McGraw, Jr. Manager, Computer SystemEMAIL: rmcg...@purdue.edu Purdue UniversityROOM: MATH-807 Department of Mathematics PHONE: (765) 494-6055 150 N. University Street West Lafayette, IN 47907-2067 -- Darin Perusich Unix Systems Administrator Cognigen Corporation 395 Youngs Rd. Williamsville, NY 14221 Phone: 716-633-3463 Email: darin...@cognigencorp.com
Re: Having problems compiling Solaris 10 x86 2.6.1p2
Was glib built with the same toolchain? If not, then that --rpath option probably comes from glib's pkg-config information, and is intended for the toolchain used to build glib. Dustin -- Open Source Storage Engineer http://www.zmanda.com
trying to restore an F10 insttall
Greets all; I tried to install the ati driver package for my video card back on the 9th of April, and have been trying to recover my Fedora 10 install ever since. That driver install hosed the X11 stuff as their installer went through the system deleting stuff that would get in the way of its install, and when all the damage was done, then refused to build a kernel modules for kernel 2.6.34-rc3 which I was running at the time. So then, thinking most of that would be in /etc/X11 and /usr/share, I sent amrecover off to restore those two trees. /etc went just fine, but amrecover got itself into a loop in the middle of the /usr/share recovery and was so locked up I had to use the reset button. At that point, the Fedora 10 install was and is un-bootable. So now I'm running, and gradually getting the warts frozen off, mandriva-2010-x64, well enough that I should be able to run a locally built amanda and attempt another recovery. I have mounted the disk partitions of F10, and copied all the /usr/local/var amanda stuff to the mandriva's /usr/local/var/amanda, as well as all the stuff from F10's /usr/local/amanda, and nothing has been written to the /amandatapes drive since the crash. The files on that drive look ok, but what do I know. Anyway, to the recovery attempt, it fails with a 'no log files found' for every backup file in the last cycle. Since I had my F10/tmp on its own partition, I mounted that cand copied the /tmp/amanda and /tmp/amanda-dbg trees to the mandriva install. Didn't help. I recall I had to do something with the paths used in my gh.cf file as mandriva didn't have, and ldconfig won't add, anything in the /usr/local tree regardless of how you add them in the ld.so.conf.d file collection. So I tried to build it once to be installed in /usr/ instead of /usr/local, but I have since groked that and put it back in the /usr/local, deleting the /usr stuffs. So I tried to recover using the cli command displayed in the header of the files, just my gh.cf from the last set of level 0's for /home, and due to the file split used there are two files for the level0 /home backup. Now, here is the problem (and this is amanda-3.2.0alpha.svn.2897 in use) [ama...@coyote slot20]$ dd if=00025.coyote._home.0 bs=32k skip=1 | /bin/gzip -dc | /usr/local/libexec/amanda/application/amgtar restore ./gh.cf 32768+0 records in 32768+0 records out 1073741824 bytes (1.1 GB) copied, 34.0307 s, 31.6 MB/s And no indication it found gh.cf in the first file, and it wasn't written to that directory (slot20) on the amandatapes drive. Ok, repeat on remainder file: [ama...@coyote slot20]$ dd if=00026.coyote._home.0 bs=32k skip=1 | /bin/gzip -dc | /usr/local/libexec/amanda/application/amgtar restore ./gh.cf gzip: stdin: not in gzip format /bin/tar: This does not look like a tar archive /bin/tar: ./gh.cf: Not found in archive /bin/tar: Exiting with failure status due to previous errors What am I doing wrong? Thanks. -- Cheers, Gene There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. -Ed Howdershelt (Author) Tomorrow, this will be part of the unchangeable past but fortunately, it can still be changed today.