What aren't need of amRecover
hi, I would like to know what exactly need amrecover: ?index ?curinfo ?log files ?amdump Because I would like to know which files I can remove in the DB of amanda to save some space my HD
Re: full backups all the time not working
Joshua Baker-LePain wrote: > On Fri, 7 Dec 2001 at 9:32am, Martin Hepworth wrote > > >>However when I try and do an 'archive' backup set that should use the >>'always-full' and 'always-fulltar' dump styles I get failures like the >>following for all disks on the disklist even the local machine. >> >> sol/usr lev 0 FAILED [can't switch to incremental dump] >> > > What exactly does your dumptype look like? What do you have for > dumpcycle/runspercycle/tapecycle? > > This is what I use for our archival setup: > > dumpcycle 0 days # Can also be specified in dumptype > runspercycle 1# Doesn't matter > tapecycle 1000 tapes# Always a new one.. > > define dumptype always-full { > global > comment "Full dump of this filesystem always" > program "GNUTAR" > priority high > compress none > record no > } > > Where global contains only 'index yes'. You want to set 'record no' > otherwise the archive setup will interfere with incrementals on the daily > setup. > > nope still no luck. here's my amanda.conf... org "Archive" # your organization name for reports mailto "root" # space separated list of operators at your site dumpuser "amanda" # the user to run dumps under inparallel 3# maximum dumpers that will run in parallel maxdumps 2 # maximum number of dumpers per client netusage 6000 Kbps # maximum net bandwidth for Amanda, in KB per sec dumpcycle 0 # the number of days in the normal dump cycle runspercycle 1 # the number of amdump runs in dumpcycle days # (4 weeks * 5 amdump runs per week -- just weekdays) tapecycle 2000 tapes bumpsize 20 Mb bumpdays 1 bumpmult 4 etimeout 300 runtapes 1 tapedev "/dev/nsa0" # the no-rewind tape device to be used rawtapedev "/dev/nrsa0" # the raw device to be used (ftape only) changerdev "/dev/null" define tapetype HPDLT { comment "DLT1" length 40960 mbytes filemark 0 kbytes speed 1407 kps } define dumptype global { comment "Global definitions" index yes # record no } define dumptype always-full { global comment "Full dump of this filesystem always" #compress none compress server fast priority high dumpcycle 0 record no } define dumptype always-fulltar { global comment "Full dump of this filesystem always" program "GNUTAR" #compress none compress server fast priority high dumpcycle 0 record no }
Re: [Amanda-users] amverify failing alot.
at last, the block size fixed the backups, using 4096 was the answer. the reason why it still looked like it had failed was because the second tape had stuff on it from a previous attempt that failed. so amverify was checking all tapes even though I'd only used the first one. once I relabeled the tape and rerun amverify everything was sweet. Thanks to all who helped. On Wed, Dec 05, 2001 at 06:35:01PM +1100, Jason Thomas wrote: > Hi after 2 years of struggling with this crap and getting no where, can > anyone help me figure out what is causing these errors. > > it seems to be random doesn't matter which tape or drive I use they all > do it. even changing machine and scsi controllers doesn't fix the > problem. > > is it something I'm doing wrong. > > after playing with another tape backup product I found that it used a > block size of 4096 for my tape drive (not 0 like everyone keeps telling > me to use), so I changed to this and it seems to have made amverify fail > less, but hasn't fixed the problem all together. msg08837/pgp0.pgp Description: PGP signature
Re: What aren't need of amRecover
On Tue, 11 Dec 2001 at 9:36am, BRINER Cedric wrote > I would like to know what exactly need amrecover: > ?index Yes. > ?curinfo Not necessarily by amrecover, but amdump needs these. > ?log files > ?amdump IIRC, the log files are needed by amrecover, and I'm not sure about the amdump files. > Because I would like to know which files I can remove > in the DB of amanda to save some space my HD Keep in mind that amanda does it's own housekeeping -- only tapecycle 'log's and 'amdump.n's are kept. So I would deem all of it "important". Hard drive space is cheap. ;) -- Joshua Baker-LePain Department of Biomedical Engineering Duke University
Re: full backups all the time not working
On Tue, 11 Dec 2001 at 9:29am, Martin Hepworth wrote > nope still no luck. Somewhat random question -- there *is* a tape in the drive when you run amdump, right? IOW, these aren't degraded mode dumps, right? > here's my amanda.conf... > That all looks good. *sigh* How about sending an email from one of your runs, as well as the amdump.n and the log.*. -- Joshua Baker-LePain Department of Biomedical Engineering Duke University
RE: Newbie: Can't get amanda user to work
>Yet, I have a .amandahosts file with what I think are the proper >contents and permissions: >admin:/home/amanda # ll /home/amanda/.amandahosts >-rw-r--r--1 amanda disk 30 Dec 10 16:36 >/home/amanda/.amandahosts >admin:/home/amanda # cat /home/amanda/.amandahosts >admin [EMAIL PROTECTED] >admin:/home/amanda # In .amandahosts on the server, you want an entry that reads: clientname root In .amandahosts on the client, you want an entry that reads: servername amanda Your permissions look fine. (Though I chmod 600 .amandahosts myself) Make sure clientname and servername are fully qualified (i.e. servername.jhuccp.org, clientname.jhuccp.org) Good luck! rap
Re: Newbie: Can't get amanda user to work
Thank you to all the generous folks who have given me suggestions. Unfortunately, I still can't get it to work. I still get the same error massage with "[access as amanda not allowed from [EMAIL PROTECTED]]". Here's some clarification on my system. I'm trying to backup the tapeserver. My tape is on a machine called admin.jhuccp.org. The userID for both client and server is "amanda", group is "disk". I've tried all these variations in the /home/amanda/.amandahosts and /var/lib/amanda/.amandahosts files (one at a time; the comments are how I kept track of what I tried): admin:/home/amanda # cat .amandahosts #admin.jhuccp.org amanda.admin.jhuccp.org #admin amanda.admin.jhuccp.org admin [EMAIL PROTECTED] #admin amanda #admin.jhuccp.org [EMAIL PROTECTED] admin:/home/amanda # Both files are owned by amanda:disk and have 0600 permissions. As an aside, is it still necessary to have both /var/lib/amanda/.amandahosts and /home/amanda/.amandahosts files? Do they have to be the same? My /etc/inetd.conf and /etc/services were patched by 'patch-system': admin:/home/amanda # grep amanda /etc/services amanda 10080/udp amanda 10080/tcp kamanda 10081/udp amandaidx 10082/tcp admin:/home/amanda # grep amanda /etc/inetd.conf # amanda backup server with indexing capabilities # amandaidx stream tcp nowait root /usr/lib/amanda/amindexd amindexd # amidxtape stream tcp nowait root /usr/lib/amanda/amidxtaped amidxtaped # amanda backup client # amandadgram udp waitamanda /usr/lib/amanda/amandad amandad amandadgram udp wait amanda /usr/local/libexec/amandad amandad amandaidx stream tcp nowait amanda /usr/local/libexec/amindexd amindexd amidxtape stream tcp nowait amanda /usr/local/libexec/amidxtaped amidxtaped admin:/home/amanda # Any additional suggestions? Thanks for continuing to think about this. -Kevin Zembower - E. Kevin Zembower Unix Administrator Johns Hopkins University/Center for Communications Programs 111 Market Place, Suite 310 Baltimore, MD 21202 410-659-6139 >>> Ana Maria Escalante <[EMAIL PROTECTED]> 12/10/01 08:32PM >>> Hi Kevin: I am not sure if I understood everything from your message, but it is not clear to me, which user will be doing the backups from the server (amanda is the default user) and whether your client machine is the same as your server. You must have a .amandahosts file in the client amanda home directory, that gives access to amanda user from the server machine. In my setup, my backup admin acount is amanda, my server is server.domain.mx and my client is client.domain.mx. I have an .amandahosts file in amanda s home directory in the client with the following line: server.domain.mxamanda You will also need an .amandahosts file in the server s amanda s home directory, with the client machines name and root as the authorized user, in order to recover from the clients, but that is another story. If you have a .rhosts file in your clients amanda s home directory, it must have this same line. I have heard about it :) Hope this helps. Good luck ... Ana Maria On Mon, 10 Dec 2001, KEVIN ZEMBOWER wrote: > I'm trying to get my first setup of amanda working. Running amcheck > gives me: > admin:/home/amanda # su amanda -c "/usr/local/sbin/amcheck DailySet1" > Amanda Tape Server Host Check > - > Holding disk /var/amanda: 5807968 KB disk space available, that's > plenty > NOTE: skipping tape-writable test > Tape DailySet101 label ok > NOTE: info dir /var/log/amanda/DailySet1/curinfo/admin/sdb1: does not > exist > NOTE: info dir /var/log/amanda/DailySet1/curinfo/admin/sda1: does not > exist > NOTE: info dir /var/log/amanda/DailySet1/curinfo/admin/sda3: does not > exist > Server check took 16.516 seconds > > Amanda Backup Client Hosts Check > > ERROR: admin: [access as amanda not allowed from > [EMAIL PROTECTED]] amandahostsauth failed > Client check: 1 host checked in 0.029 seconds, 1 problem found > > (brought to you by Amanda 2.4.3b1) > admin:/home/amanda # > > Yet, I have a .amandahosts file with what I think are the proper > contents and permissions: > admin:/home/amanda # ll /home/amanda/.amandahosts > -rw-r--r--1 amanda disk 30 Dec 10 16:36 > /home/amanda/.amandahosts > admin:/home/amanda # cat /home/amanda/.amandahosts > admin [EMAIL PROTECTED] > admin:/home/amanda # > > I'm stumped. I've tried or checked all the suggestions in the > FAQ-a-matic for this topic. It's probably something simple, that I don't > see because I'm new to amanda. Any suggestions? > > Thanks for your help. > > -Kevin Zembower > > - > E. Kevin Zembower > Unix Administrator > Johns Hopkins University/Center for Communications Programs > 111 Market Place, Suite 310 > Baltimore, MD 21202 > 410-659-6139 >
Re: full backups all the time not working
Tried all that and same error Joshua has commented that there may be issues if there's no tape in the drive, which is our case, as we'd like to do normally nightly backups and use this as the archive to be moved to somewhere else and kept for ever... If this doesn't work "I'll be back(tm)" with some log dumps. -- Martin
Win32 client portrange...
Hello all, I'm trying to get the win32 client up and running. I followed Kurt Yoder's instructions (below), but amcheck is still timing out. I'm almost certain that it has to do with the tcp/ip ports amanda is using. My server was compiled with the following: --with-portrange=5,50100 --with-udpportrange=850,860 I'm running the win32 client with the following command: start amandad -tcp=5,50100 -udp=850,860 -no-exit I've tried many permutations of that command, but with no luck. Any one have some insight on how to correctly specify tcp/udp ports to the win32 client? Many thanks in advance, Chris Noon [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kurt Yoder Sent: Wednesday, October 17, 2001 2:29 PM To: Jon LaBadie Cc: [EMAIL PROTECTED] Subject: Re: Win32 client setup Jon LaBadie wrote: > I did not feel the installation instructions were too clear. > Maybe I have not found the correct ones. Pointers? This is very true; I had to fiddle a bit to make it work. Here's what I did: -download the "amanda-clients-bin" latest zip file and unzip it -make a folder "usr" in one of your drives -move the amanda folder into it; path to binaries should be \usr\amanda\bin and so forth -copy pw32.8.dll from the "bin" folder to "libexec" and "sbin" folders -copy \usr\amanda\share\amanda-win32-clients\.amandahosts to \usr\amanda\etc\amanda\ -add your amanda master to the \usr\amanda\etc\amanda\.amandahosts -start your amanda test: run \usr\amanda\libexec\rc.amandad.bat (an empty dos window should pop up) -add entries to the amanda master's disklist; use the form " /mnt_ ", one for each disk on each nt host; my disklist entry for my nt host looks like "gandalf /mnt_c user-tar", etc -run amcheck on the master, make sure you see the server connecting on the nt host; you should see its name show up in the window on the nt machine that rc.amandad.bat opened -if the test was successful, close rc.amandad.bat and install \usr\amanda\libexec\amandad.exe as a service named "amandad" (use srvany.exe from the nt resource kit for this); service should be a system account and start up automatically -suggested registry entries for the amandad service are in \usr\amanda\share\amanda\amandad.reg; double click on this file to install its keys -make sure the drive letter and path in the registry's hklm/system/ccs/services/amandad/parameters key matches where amandad.exe is actually installed -start up the amandad service > Two questions, does the W32 client anticipate the cygwin package > is installed on the M$ box? Though I did not see it stated, I > got that impression. Cygwin is not necessary. > Second, I came across a page describing environment variables > that need be set. Something about the PW32 environment (Posix > Win 32??). Are these set on the unix amanda server or on the > client when started from the service routines? I didn't set any environment variables on the NT machine.
Re: Newbie: Can't get amanda user to work
Thank you for your clarifying question, Jon. Yes, the machine name is "admin" and the user name is "amanda". I tried: admin amanda admin.jhuccp.org amanda admin [EMAIL PROTECTED] admin.jhuccp.org [EMAIL PROTECTED] So far, no joy. Oddly enough, I've gone ahead and added two other hosts. When I run amcheck now, it says: Amanda Backup Client Hosts Check ERROR: admin: [access as amanda not allowed from [EMAIL PROTECTED]] amandahostsauth failed Client check: 3 hosts checked in 0.049 seconds, 1 problem found >From this, I take it that the other two hosts are okay. Is this a good assumption? Thanks, again, for taking the time to write. -Kevin Zembower >>> Jon LaBadie <[EMAIL PROTECTED]> 12/11/01 11:30AM >>> On Tue, Dec 11, 2001 at 10:02:36AM -0500, KEVIN ZEMBOWER wrote: > Thank you to all the generous folks who have given me suggestions. > Unfortunately, I still can't get it to work. I still get the same error > massage with "[access as amanda not allowed from > [EMAIL PROTECTED]]". > > Here's some clarification on my system. I'm trying to backup the > tapeserver. My tape is on a machine called admin.jhuccp.org. The userID > for both client and server is "amanda", group is "disk". > > I've tried all these variations in the /home/amanda/.amandahosts and > /var/lib/amanda/.amandahosts files (one at a time; the comments are how > I kept track of what I tried): > admin:/home/amanda # cat .amandahosts > #admin.jhuccp.org amanda.admin.jhuccp.org > #admin amanda.admin.jhuccp.org > admin [EMAIL PROTECTED] > #admin amanda > #admin.jhuccp.org [EMAIL PROTECTED] > admin:/home/amanda # >>> End of included message <<< I don't use this mechanism myself, but weren't the suggestions for the format "machine_name user_name" I.e. I think the appropriate line might be "admin.jhuccp.org amanda" -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing [EMAIL PROTECTED] 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
Re: Newbie: Can't get amanda user to work
On Tue, 11 Dec 2001 at 10:02am, KEVIN ZEMBOWER wrote > Thank you to all the generous folks who have given me suggestions. > Unfortunately, I still can't get it to work. I still get the same error > massage with "[access as amanda not allowed from > [EMAIL PROTECTED]]". > > Here's some clarification on my system. I'm trying to backup the > tapeserver. My tape is on a machine called admin.jhuccp.org. The userID > for both client and server is "amanda", group is "disk". I thought there was only one machine -- what do you mean "for both client and server"? > I've tried all these variations in the /home/amanda/.amandahosts and > /var/lib/amanda/.amandahosts files (one at a time; the comments are how > I kept track of what I tried): > admin:/home/amanda # cat .amandahosts > #admin.jhuccp.org amanda.admin.jhuccp.org > #admin amanda.admin.jhuccp.org > admin [EMAIL PROTECTED] > #admin amanda > #admin.jhuccp.org [EMAIL PROTECTED] > admin:/home/amanda # You still haven't hit the write one. The format is 'machinename user' So, /home/amanda/.amandahosts should include: admin.jhuccp.orgamanda Other questions -- are you sure that /home/amanda is the home directory of the amanda user? It's listed in /etc/passwd. > As an aside, is it still necessary to have both > /var/lib/amanda/.amandahosts and /home/amanda/.amandahosts files? Do > they have to be the same? AFAIK, it never was necessary. The only .amandahosts you need resides in ~amanda. > Any additional suggestions? What OS/distro are you using -- that's helpful info. -- Joshua Baker-LePain Department of Biomedical Engineering Duke University
Re: Newbie: Can't get amanda user to work
Have you tried: admin.jhuccp.orgamanda in ~amanda/.amandahosts Frank --On Tuesday, December 11, 2001 10:02:36 -0500 KEVIN ZEMBOWER <[EMAIL PROTECTED]> wrote: > Thank you to all the generous folks who have given me suggestions. > Unfortunately, I still can't get it to work. I still get the same error > massage with "[access as amanda not allowed from > [EMAIL PROTECTED]]". > > Here's some clarification on my system. I'm trying to backup the > tapeserver. My tape is on a machine called admin.jhuccp.org. The userID > for both client and server is "amanda", group is "disk". > > I've tried all these variations in the /home/amanda/.amandahosts and > /var/lib/amanda/.amandahosts files (one at a time; the comments are how > I kept track of what I tried): > admin:/home/amanda # cat .amandahosts ># admin.jhuccp.org amanda.admin.jhuccp.org ># admin amanda.admin.jhuccp.org > admin [EMAIL PROTECTED] ># admin amanda ># admin.jhuccp.org [EMAIL PROTECTED] > admin:/home/amanda # > > Both files are owned by amanda:disk and have 0600 permissions. > > As an aside, is it still necessary to have both > /var/lib/amanda/.amandahosts and /home/amanda/.amandahosts files? Do > they have to be the same? > > My /etc/inetd.conf and /etc/services were patched by 'patch-system': > admin:/home/amanda # grep amanda /etc/services > amanda 10080/udp > amanda 10080/tcp > kamanda 10081/udp > amandaidx 10082/tcp > admin:/home/amanda # grep amanda /etc/inetd.conf ># amanda backup server with indexing capabilities ># amandaidx stream tcp nowait root > /usr/lib/amanda/amindexd amindexd ># amidxtape stream tcp nowait root > /usr/lib/amanda/amidxtaped amidxtaped ># amanda backup client ># amandadgram udp waitamanda /usr/lib/amanda/amandad > amandad > amandadgram udp wait amanda /usr/local/libexec/amandad > amandad > amandaidx stream tcp nowait amanda /usr/local/libexec/amindexd > amindexd > amidxtape stream tcp nowait amanda /usr/local/libexec/amidxtaped > amidxtaped > admin:/home/amanda # > > Any additional suggestions? > > Thanks for continuing to think about this. > > -Kevin Zembower > > - > E. Kevin Zembower > Unix Administrator > Johns Hopkins University/Center for Communications Programs > 111 Market Place, Suite 310 > Baltimore, MD 21202 > 410-659-6139 > Ana Maria Escalante <[EMAIL PROTECTED]> 12/10/01 08:32PM > Hi Kevin: > I am not sure if I understood everything from your message, but it > is > not clear to me, which user will be doing the backups from the server > (amanda is the default user) and whether your client machine is the > same > as your server. > You must have a .amandahosts file in the client amanda home > directory, that gives access to amanda user from the server machine. > In my setup, my backup admin acount is amanda, my server is > server.domain.mx and my client is client.domain.mx. I have an > .amandahosts > file in amanda s home directory in the client with the following > line: > > server.domain.mx amanda > > You will also need an .amandahosts file in the server s amanda > s home > directory, with the client machines name and root as the authorized > user, > in order to recover from the clients, but that is another story. > If you have a .rhosts file in your clients amanda s home > directory, > it must have this same line. I have heard about it :) > Hope this helps. Good luck ... Ana Maria > > On Mon, 10 Dec 2001, KEVIN ZEMBOWER wrote: > >> I'm trying to get my first setup of amanda working. Running amcheck >> gives me: >> admin:/home/amanda # su amanda -c "/usr/local/sbin/amcheck > DailySet1" >> Amanda Tape Server Host Check >> - >> Holding disk /var/amanda: 5807968 KB disk space available, that's >> plenty >> NOTE: skipping tape-writable test >> Tape DailySet101 label ok >> NOTE: info dir /var/log/amanda/DailySet1/curinfo/admin/sdb1: does > not >> exist >> NOTE: info dir /var/log/amanda/DailySet1/curinfo/admin/sda1: does > not >> exist >> NOTE: info dir /var/log/amanda/DailySet1/curinfo/admin/sda3: does > not >> exist >> Server check took 16.516 seconds >> >> Amanda Backup Client Hosts Check >> >> ERROR: admin: [access as amanda not allowed from >> [EMAIL PROTECTED]] amandahostsauth failed >> Client check: 1 host checked in 0.029 seconds, 1 problem found >> >> (brought to you by Amanda 2.4.3b1) >> admin:/home/amanda # >> >> Yet, I have a .amandahosts file with what I think are the proper >> contents and permissions: >> admin:/home/amanda # ll /home/amanda/.amandahosts >> -rw-r--r--1 amanda disk 30 Dec 10 16:36 >> /home/amanda/.amandahosts >> admin:/home/amanda # cat /home/amanda/.amandahosts >> admin [EMAIL PROTECTED] >> admin:/home/amanda # >> >> I'm stumped. I've tried or checked all the suggestions in the >> FAQ-a-matic for this topic. It's probably something simple, tha
amreport segfaults
Hi, my amreport is segfaulting in a working configuration since I mistakenly set dumpcycle to days and setting it back to 4 after I wondered about missing level 0's. I'm still in the first cycle after the change. It's OK if this error will grow out after one cycle, but will it happen? At the moment my only way of getting status is via amoverview, which wants to make me belive that no dumps took place between approx. August and the change back. (Which is of course wrong.). Amrecover shows indexes as it should and by looking at the holding disks I see that amdump and amflush are doing their job. Other Amanda configurations are working fine.I'm using Amanda 2.4.2. TIA, Johannes Nieß
SOLVED: Newbie: Can't get amanda user to work
Joshua WINS THE PRIZE! The home directory in /etc/passwd for amanda was /var/lib/amanda. When I changed it to /home/amanda, it worked great. For those of you interested, here's the /home/amanda/.amandahosts file that's working (with two additional hosts added and working): admin:/home/amanda # cat .amandahosts # admin:/home/amanda/.amandahosts created by Kevin Zembower on 11-Dec-2001 admin.jhuccp.orgamanda virtual.jhuccp.org amanda centernet.jhuccp.orgamanda admin:/home/amanda # It's still puzzling to me why the .amandahosts file, with the two additional hosts, was being recognized in /home/amanda, but still giving me the error with the tapeserver host. Oh, well, I'm not going to spend too much time pondering it. Another question: does this mean I can completely delete /var/lib/amanda? The only thing in it currently is the .amandahost file. Thank you again, Joshua. If we're ever in the same city, I owe you a beer. -Kevin Zembower >>> Joshua Baker-LePain <[EMAIL PROTECTED]> 12/11/01 12:00PM >>> On Tue, 11 Dec 2001 at 10:02am, KEVIN ZEMBOWER wrote > Thank you to all the generous folks who have given me suggestions. > Unfortunately, I still can't get it to work. I still get the same error > massage with "[access as amanda not allowed from > [EMAIL PROTECTED]]". > > Here's some clarification on my system. I'm trying to backup the > tapeserver. My tape is on a machine called admin.jhuccp.org. The userID > for both client and server is "amanda", group is "disk". I thought there was only one machine -- what do you mean "for both client and server"? > I've tried all these variations in the /home/amanda/.amandahosts and > /var/lib/amanda/.amandahosts files (one at a time; the comments are how > I kept track of what I tried): > admin:/home/amanda # cat .amandahosts > #admin.jhuccp.org amanda.admin.jhuccp.org > #admin amanda.admin.jhuccp.org > admin [EMAIL PROTECTED] > #admin amanda > #admin.jhuccp.org [EMAIL PROTECTED] > admin:/home/amanda # You still haven't hit the write one. The format is 'machinename user' So, /home/amanda/.amandahosts should include: admin.jhuccp.orgamanda Other questions -- are you sure that /home/amanda is the home directory of the amanda user? It's listed in /etc/passwd. > As an aside, is it still necessary to have both > /var/lib/amanda/.amandahosts and /home/amanda/.amandahosts files? Do > they have to be the same? AFAIK, it never was necessary. The only .amandahosts you need resides in ~amanda. > Any additional suggestions? What OS/distro are you using -- that's helpful info. -- Joshua Baker-LePain Department of Biomedical Engineering Duke University
RE: Newbie: Can't get amanda user to work
Take a look in /tmp/amanda/amandad/debug. The config/defs section at the beginning has a bunch of flags in it. Look for "BSD_SECURITY" and "USE_AMANDAHOSTS". If you have the former and not the latter, everything that's been said about .amandahosts really applies to .rhosts, and no amount of fiddling with .amandahosts will make it work. This is based on my install of 2.4.2-19991216, and only took me two days to track down. I think I'll go put something in FoM. > -Original Message- > From: KEVIN ZEMBOWER [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 11, 2001 10:03 AM > To: [EMAIL PROTECTED] > Subject: Re: Newbie: Can't get amanda user to work > > > Thank you to all the generous folks who have given me suggestions. > Unfortunately, I still can't get it to work. I still get the > same error > massage with "[access as amanda not allowed from > [EMAIL PROTECTED]]". > > Here's some clarification on my system. I'm trying to backup the > tapeserver. My tape is on a machine called admin.jhuccp.org. > The userID > for both client and server is "amanda", group is "disk". > > I've tried all these variations in the /home/amanda/.amandahosts and > /var/lib/amanda/.amandahosts files (one at a time; the > comments are how > I kept track of what I tried): > admin:/home/amanda # cat .amandahosts > #admin.jhuccp.org amanda.admin.jhuccp.org > #admin amanda.admin.jhuccp.org > admin [EMAIL PROTECTED] > #admin amanda > #admin.jhuccp.org [EMAIL PROTECTED] > admin:/home/amanda # > > Both files are owned by amanda:disk and have 0600 permissions. > > As an aside, is it still necessary to have both > /var/lib/amanda/.amandahosts and /home/amanda/.amandahosts files? Do > they have to be the same? > > My /etc/inetd.conf and /etc/services were patched by 'patch-system': > admin:/home/amanda # grep amanda /etc/services > amanda 10080/udp > amanda 10080/tcp > kamanda 10081/udp > amandaidx 10082/tcp > admin:/home/amanda # grep amanda /etc/inetd.conf > # amanda backup server with indexing capabilities > # amandaidx stream tcp nowait root > /usr/lib/amanda/amindexd amindexd > # amidxtape stream tcp nowait root > /usr/lib/amanda/amidxtaped amidxtaped > # amanda backup client > # amandadgram udp waitamanda > /usr/lib/amanda/amandad > amandad > amandadgram udp wait amanda /usr/local/libexec/amandad > amandad > amandaidx stream tcp nowait amanda /usr/local/libexec/amindexd > amindexd > amidxtape stream tcp nowait amanda /usr/local/libexec/amidxtaped > amidxtaped > admin:/home/amanda # > > Any additional suggestions? > > Thanks for continuing to think about this. > > -Kevin Zembower > > - > E. Kevin Zembower > Unix Administrator > Johns Hopkins University/Center for Communications Programs > 111 Market Place, Suite 310 > Baltimore, MD 21202 > 410-659-6139 > > >>> Ana Maria Escalante <[EMAIL PROTECTED]> 12/10/01 08:32PM > >>> > Hi Kevin: > I am not sure if I understood everything from your > message, but it > is > not clear to me, which user will be doing the backups from the server > (amanda is the default user) and whether your client machine is the > same > as your server. > You must have a .amandahosts file in the client amanda home > directory, that gives access to amanda user from the server machine. > In my setup, my backup admin acount is amanda, my server is > server.domain.mx and my client is client.domain.mx. I have an > .amandahosts > file in amanda s home directory in the client with the following > line: > > server.domain.mx amanda > > You will also need an .amandahosts file in the server s amanda > s home > directory, with the client machines name and root as the authorized > user, > in order to recover from the clients, but that is another story. > If you have a .rhosts file in your clients amanda s home > directory, > it must have this same line. I have heard about it :) > Hope this helps. Good luck ... Ana Maria > > On Mon, 10 Dec 2001, KEVIN ZEMBOWER wrote: > > > I'm trying to get my first setup of amanda working. Running amcheck > > gives me: > > admin:/home/amanda # su amanda -c "/usr/local/sbin/amcheck > DailySet1" > > Amanda Tape Server Host Check > > - > > Holding disk /var/amanda: 5807968 KB disk space available, that's > > plenty > > NOTE: skipping tape-writable test > > Tape DailySet101 label ok > > NOTE: info dir /var/log/amanda/DailySet1/curinfo/admin/sdb1: does > not > > exist > > NOTE: info dir /var/log/amanda/DailySet1/curinfo/admin/sda1: does > not > > exist > > NOTE: info dir /var/log/amanda/DailySet1/curinfo/admin/sda3: does > not > > exist > > Server check took 16.516 seconds > > > > Amanda Backup Client Hosts Check > > > > ERROR: admin: [access as amanda not allowed from > > [EMAIL PROTECTED]] amandahostsauth failed > > Client check: 1 host checked in 0.029
Re: Newbie: Can't get amanda user to work
Hi, your .amandahosts has to read admin.jhuccp.orgamanda admin.jhuccp.orgroot no more, no less, first line is for backup, second for restore hope it helps Christoph KEVIN ZEMBOWER schrieb: > > Thank you to all the generous folks who have given me suggestions. > Unfortunately, I still can't get it to work. I still get the same error > massage with "[access as amanda not allowed from > [EMAIL PROTECTED]]". > > Here's some clarification on my system. I'm trying to backup the > tapeserver. My tape is on a machine called admin.jhuccp.org. The userID > for both client and server is "amanda", group is "disk". > > I've tried all these variations in the /home/amanda/.amandahosts and > /var/lib/amanda/.amandahosts files (one at a time; the comments are how > I kept track of what I tried): > admin:/home/amanda # cat .amandahosts > #admin.jhuccp.org amanda.admin.jhuccp.org > #admin amanda.admin.jhuccp.org > admin [EMAIL PROTECTED] > #admin amanda > #admin.jhuccp.org [EMAIL PROTECTED] > admin:/home/amanda # > > Both files are owned by amanda:disk and have 0600 permissions. > > As an aside, is it still necessary to have both > /var/lib/amanda/.amandahosts and /home/amanda/.amandahosts files? Do > they have to be the same? > > My /etc/inetd.conf and /etc/services were patched by 'patch-system': > admin:/home/amanda # grep amanda /etc/services > amanda 10080/udp > amanda 10080/tcp > kamanda 10081/udp > amandaidx 10082/tcp > admin:/home/amanda # grep amanda /etc/inetd.conf > # amanda backup server with indexing capabilities > # amandaidx stream tcp nowait root > /usr/lib/amanda/amindexd amindexd > # amidxtape stream tcp nowait root > /usr/lib/amanda/amidxtaped amidxtaped > # amanda backup client > # amandadgram udp waitamanda /usr/lib/amanda/amandad > amandad > amandadgram udp wait amanda /usr/local/libexec/amandad > amandad > amandaidx stream tcp nowait amanda /usr/local/libexec/amindexd > amindexd > amidxtape stream tcp nowait amanda /usr/local/libexec/amidxtaped > amidxtaped > admin:/home/amanda # > > Any additional suggestions? > > Thanks for continuing to think about this. > > -Kevin Zembower > > - > E. Kevin Zembower > Unix Administrator > Johns Hopkins University/Center for Communications Programs > 111 Market Place, Suite 310 > Baltimore, MD 21202 > 410-659-6139 > > >>> Ana Maria Escalante <[EMAIL PROTECTED]> 12/10/01 08:32PM > >>> > Hi Kevin: > I am not sure if I understood everything from your message, but it > is > not clear to me, which user will be doing the backups from the server > (amanda is the default user) and whether your client machine is the > same > as your server. > You must have a .amandahosts file in the client amanda home > directory, that gives access to amanda user from the server machine. > In my setup, my backup admin acount is amanda, my server is > server.domain.mx and my client is client.domain.mx. I have an > .amandahosts > file in amanda s home directory in the client with the following > line: > > server.domain.mxamanda > > You will also need an .amandahosts file in the server s amanda > s home > directory, with the client machines name and root as the authorized > user, > in order to recover from the clients, but that is another story. > If you have a .rhosts file in your clients amanda s home > directory, > it must have this same line. I have heard about it :) > Hope this helps. Good luck ... Ana Maria > > On Mon, 10 Dec 2001, KEVIN ZEMBOWER wrote: > > > I'm trying to get my first setup of amanda working. Running amcheck > > gives me: > > admin:/home/amanda # su amanda -c "/usr/local/sbin/amcheck > DailySet1" > > Amanda Tape Server Host Check > > - > > Holding disk /var/amanda: 5807968 KB disk space available, that's > > plenty > > NOTE: skipping tape-writable test > > Tape DailySet101 label ok > > NOTE: info dir /var/log/amanda/DailySet1/curinfo/admin/sdb1: does > not > > exist > > NOTE: info dir /var/log/amanda/DailySet1/curinfo/admin/sda1: does > not > > exist > > NOTE: info dir /var/log/amanda/DailySet1/curinfo/admin/sda3: does > not > > exist > > Server check took 16.516 seconds > > > > Amanda Backup Client Hosts Check > > > > ERROR: admin: [access as amanda not allowed from > > [EMAIL PROTECTED]] amandahostsauth failed > > Client check: 1 host checked in 0.029 seconds, 1 problem found > > > > (brought to you by Amanda 2.4.3b1) > > admin:/home/amanda # > > > > Yet, I have a .amandahosts file with what I think are the proper > > contents and permissions: > > admin:/home/amanda # ll /home/amanda/.amandahosts > > -rw-r--r--1 amanda disk 30 Dec 10 16:36 > > /home/amanda/.amandahosts > > admin:/home/amanda # cat /home/amanda/.amandahosts > > admin [EMAIL PROTECTED] > > admin:/home/amanda # > > > > I'm stumped. I've tried or che
RE: Newbie: Can't get amanda user to work
Which machine(s) is your .amandahosts file on? It is supposed to be on the client machine (it can also be on the server machine if the server gets backed up also). Make sure that you have an amandahosts file on each client, and that it is in the amanda home directory. Look at the /etc/passwd file to find amanda's home directory. (on my AIX boxes it is /home/amanda, on my Linux box it is /var/lib/amanda). My amandahosts files look like this: SERVER: My tapeserver is called sbs.sbs.com (it is also a client): sbs.sbs.com amanda CLIENTS: My client machines: sbs.sbs.com amanda I hope that this helps. Anthony -Original Message- From: KEVIN ZEMBOWER [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 11, 2001 6:03 AM To: [EMAIL PROTECTED] Subject: Re: Newbie: Can't get amanda user to work Thank you to all the generous folks who have given me suggestions. Unfortunately, I still can't get it to work. I still get the same error massage with "[access as amanda not allowed from [EMAIL PROTECTED]]". Here's some clarification on my system. I'm trying to backup the tapeserver. My tape is on a machine called admin.jhuccp.org. The userID for both client and server is "amanda", group is "disk". I've tried all these variations in the /home/amanda/.amandahosts and /var/lib/amanda/.amandahosts files (one at a time; the comments are how I kept track of what I tried): admin:/home/amanda # cat .amandahosts #admin.jhuccp.org amanda.admin.jhuccp.org #admin amanda.admin.jhuccp.org admin [EMAIL PROTECTED] #admin amanda #admin.jhuccp.org [EMAIL PROTECTED] admin:/home/amanda # Both files are owned by amanda:disk and have 0600 permissions. As an aside, is it still necessary to have both /var/lib/amanda/.amandahosts and /home/amanda/.amandahosts files? Do they have to be the same? My /etc/inetd.conf and /etc/services were patched by 'patch-system': admin:/home/amanda # grep amanda /etc/services amanda 10080/udp amanda 10080/tcp kamanda 10081/udp amandaidx 10082/tcp admin:/home/amanda # grep amanda /etc/inetd.conf # amanda backup server with indexing capabilities # amandaidx stream tcp nowait root /usr/lib/amanda/amindexd amindexd # amidxtape stream tcp nowait root /usr/lib/amanda/amidxtaped amidxtaped # amanda backup client # amandadgram udp waitamanda /usr/lib/amanda/amandad amandad amandadgram udp wait amanda /usr/local/libexec/amandad amandad amandaidx stream tcp nowait amanda /usr/local/libexec/amindexd amindexd amidxtape stream tcp nowait amanda /usr/local/libexec/amidxtaped amidxtaped admin:/home/amanda # Any additional suggestions? Thanks for continuing to think about this. -Kevin Zembower - E. Kevin Zembower Unix Administrator Johns Hopkins University/Center for Communications Programs 111 Market Place, Suite 310 Baltimore, MD 21202 410-659-6139 >>> Ana Maria Escalante <[EMAIL PROTECTED]> 12/10/01 08:32PM >>> Hi Kevin: I am not sure if I understood everything from your message, but it is not clear to me, which user will be doing the backups from the server (amanda is the default user) and whether your client machine is the same as your server. You must have a .amandahosts file in the client amanda home directory, that gives access to amanda user from the server machine. In my setup, my backup admin acount is amanda, my server is server.domain.mx and my client is client.domain.mx. I have an .amandahosts file in amanda s home directory in the client with the following line: server.domain.mxamanda You will also need an .amandahosts file in the server s amanda s home directory, with the client machines name and root as the authorized user, in order to recover from the clients, but that is another story. If you have a .rhosts file in your clients amanda s home directory, it must have this same line. I have heard about it :) Hope this helps. Good luck ... Ana Maria On Mon, 10 Dec 2001, KEVIN ZEMBOWER wrote: > I'm trying to get my first setup of amanda working. Running amcheck > gives me: > admin:/home/amanda # su amanda -c "/usr/local/sbin/amcheck DailySet1" > Amanda Tape Server Host Check > - > Holding disk /var/amanda: 5807968 KB disk space available, that's > plenty > NOTE: skipping tape-writable test > Tape DailySet101 label ok > NOTE: info dir /var/log/amanda/DailySet1/curinfo/admin/sdb1: does not > exist > NOTE: info dir /var/log/amanda/DailySet1/curinfo/admin/sda1: does not > exist > NOTE: info dir /var/log/amanda/DailySet1/curinfo/admin/sda3: does not > exist > Server check took 16.516 seconds > > Amanda Backup Client Hosts Check > > ERROR: admin: [access as amanda not allowed from > [EMAIL PROTECTED]] amandahostsauth failed > Client check: 1 host checked in 0.029 seconds, 1 problem found > > (brought to you by Amanda 2.4.3b1) > admin:/home/amanda # > > Yet, I have
Re: Newbie: Can't get amanda user to work
Hi Kevin: It seems to be a problem with the .amandahosts file. As amcheck detects an error while verifying client access. > > I've tried all these variations in the /home/amanda/.amandahosts and > /var/lib/amanda/.amandahosts files (one at a time; the comments are how > I kept track of what I tried): > admin:/home/amanda # cat .amandahosts > #admin.jhuccp.org amanda.admin.jhuccp.org > #admin amanda.admin.jhuccp.org > admin [EMAIL PROTECTED] > #admin amanda > #admin.jhuccp.org [EMAIL PROTECTED] > admin:/home/amanda # > I would try with the fully qualified host name, and then just amanda as follows: admin.jhuccp.orgamanda > Both files are owned by amanda:disk and have 0600 permissions. > > As an aside, is it still necessary to have both > /var/lib/amanda/.amandahosts and /home/amanda/.amandahosts files? Do > they have to be the same? > The only one that you need is the one located at the amanda user´s home directory. > > Any additional suggestions? The only other one that I can think of is if you have a .rhosts file, in which case you must add the same line you have in the .amandahosts file. Can you verify if the .amandahosts file is accessed each time you run amcheck? Did you configured and installed amanda yourself or was it preinstalled in your system? This info may help also to find oout a solution. Good luck to you ... Ana Maria
Ooops, what is happening here ?
I have just recently built a new backup server, CCG CY-10e jukebox, Exb-8505 on a SPARC20 running RH6.2, amanda-2.4.2pl2 Backups seem to have been working fine, but I just went to restore a file and got the following. The file is obviously in the index as amrecover found it and let me select it, the correct tape is in the drive, any clues ? As an aside, how can I verify the content of a tape, i.e. run tar by hand on it ? amrecover> extract Extracting files using tape drive /dev/nst0 on host agree-10. The following tapes are needed: GDZN01 Restoring files into directory /usr/local Continue? [Y/n]: Y Load tape GDZN01 now Continue? [Y/n]: Y tar: Skipping to next header tar: ./godzone/database/Backup~: Not found in archive tar: Error exit delayed from previous errors extract_list - child returned non-zero status: 2 -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Glen and Rosanne Eustace, GodZone Internet Services, a division of AGRE Enterprises Ltd., P.O. Box 8020, Palmerston North, New Zealand 5301 Ph/Fax: +64 6 357 8168, Mob: +64 21 424 015
2ndRequest_CreatingIndexFile_FromTape
Is there any FAQ that describes how to Create an Index file from tape? thanks
Re: RSH "security"? How do I turn it on?
This should probably belong on the hackers list however I have compiled the the 2.5 using the rsh security option. If you replace the path to the rsh with the ssh executable in the common-src/rshxxx.c it should work using ssh. the auth parameter in the amanda.conf file should be auth"rsh" rather than the normal bsd or krb-4 parameters. This being said, it builds and amcheck works fine on the my linux boxes at home using intel and alpha hardware, however I have built is on a sparc solaris backup server at work and amcheck fails with a short read error. I would really like to get this going because it is the only configuration that comes close to fitting into my operation environment involving many firewall and my chances of getting udp and connections initiated in both directions is buckley's Adam Haberlach <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 12/10/2001 05:00 AM To: [EMAIL PROTECTED] cc: Subject:RSH "security"? How do I turn it on? So I'm still trying to get amanda to work through my firewall, and I've been looking through the latest /docs directory and the code. There seems to be a mechanism for BSD, Kerberos, and RSH Security, as well as an API for them. Here's my questions: 1. How do I specify which one to use? Must I do this at compile time? If so, this is unclear in the configure help. 2. Does the RSH method use TCP for transport, or will I still have the UDP problems? 2b. Is anyone working on an ssh varient of the rsh transport, if it actually does use TCP? -- Adam Haberlach | Computer science has the unfortunate characteristic [EMAIL PROTECTED]| that many of the pioneers of the field are still | alive and doing research. |-- Adam Rifkin
Newbie: Tape doesn't eject?
Just completed my first amanda backup successfully, mostly. However, I got an error on three of my five hosts about "missing results". Looking this up in the searchable archives led me to the /tmp/amanda/sendsize.*.debug file, and this showed that I had a directory named /etc/amandates, instead of a file. I removed the directory, touched the file, then chmod and chown it to amanda:disk 0600. Should be fine, I think. However, when my backup finished, the report noted that the tape was only 10% full, and it didn't eject. Is this normal amanda behavior, to not eject a tape until it's full? I want to run amdump over again right away. Should I manually eject the tape (with mt) and insert a new one, or just start amdump again with the same tape in the drive? Thanks, again, for all your help. -Kevin Zembower - E. Kevin Zembower Unix Administrator Johns Hopkins University/Center for Communications Programs 111 Market Place, Suite 310 Baltimore, MD 21202 410-659-6139
Re: [Amanda-users] amverify problems
this is not the case at all even with a single tape if it hits the end of the tape. then that filesystem failed to dump to the tape. I think there is something wrong with the planner myself. I've even specified that my tapes are 1GB smaller and I still hit the end of the tape sometimes. On Fri, Dec 07, 2001 at 11:29:53AM -0600, Ben Jarvis wrote: > Hi, > > I just recently started using amverify to read back AMANDA dumps, and > it's giving what seem to me to be inaccurate errors. Basically it > seems like it was written by someone using a single tape drive as > it reports hitting EOT as an error. > > When amanda writes multiple tapes per run, it will write up to EOT > on the first tape, then restart the dump on the second tape. The > partial file on the first tape should not be considered an error. > > Has anyone written an autoloader friendly amverify, or should I > write one myself? I just interpert the amverify report. which works for me for now! msg08857/pgp0.pgp Description: PGP signature