Client Installation for Solaris 2.5
Hi I have furhtered since the last time.Now I have amanda installed and entries entered for /etc/services /etc/inetd.conf. In looking up the syslog file I located this message.Aug 30 14:16:14 purlin inetd[120]: amanda/udp: socket: Protocol not supported Can someone tell me whats this error. Thanks
kerberos + amanda + gpg
I'm running amanda on my site. Becourse of different easons we don't have firewall. We mostly use kerberos(4, kth version) an it refuses to compile together with amanda for various reasons. Then i saw somemone is using gpg, this ain't no seemless solution but it seems to work. But still ain't the authentication (via rcmd) as weak as before ? Or has someone got it to compile via kth-kerberos ? -- Per-Erik Persson System administrator Physical, Inorganic and Structual Chemistry Stockholm University S-106 91 Stockholm Sweden e-mail [EMAIL PROTECTED] Tel +46 8 674 74 81 Fax +46 8 16 31 18
Re: dump to tape failed
On Thu, 30 Aug 2001, wanadoo wrote: Mitch Collinsworth ha escrito: On Tue, 28 Aug 2001, wanadoo wrote: driver: result time 3.503 from dumper0: FAILED 01-2 [taper port open: Resource temporarily unavailable] driver: result time 123.497 from taper: TAPE-ERROR 00-1 [port connect timeout] It sounds like another process already has the port that taper wants to use, hence it's failing when trying to open it. By any chance is there an old taper process still running from a previous amanda run? I have restarted the server and I have run amdump again. But the result is the same. Do you know how I can find a process if it has the port? Thanks, If by restarting the server you mean you rebooted the entire system, then it seems unlikely there is an old taper still using the port. However it's probably worth checking anyway, in case some other process might have it. To do what ports are in use, run 'netstat -a' . I forget what port taper wanted but I think it was shown in the info in your original message. -Mitch
Re: Amcheck time out...xinetd.conf file screwy
On Thu, 30 Aug 2001 at 9:23am, Rebecca Pakish wrote sure what the syntax is for xinetd.conf as far as that information is concerned. Here's what it has: # # Simple configuration file for xinetd # # Some defaults, and include /etc/xinetd.d/ defaults { instances = 60 log_type= SYSLOG authpriv log_on_success = HOST PID log_on_failure = HOST } includedir /etc/xinetd.d *snip* That's all xinetd.conf should have in it. Those files that I sent you each go in the /etc/xinetd.d directory (in other words you should have three files for amanda (on the server) in there -- /etc/xinetd.d/amanda, /etc/xinetd.d/amandaidx, and /etc/xinetd.d/amidxtape). Aug 29 15:31:03 salad xinetd[3708]: Protocol udp^M not in /etc/protocols It also looks like you've got some extra ^Ms in there. On the Redhat box, run dos2unix on each of the files. -- Joshua Baker-LePain Department of Biomedical Engineering Duke University
Amcheck time out...xinetd.conf file screwy
Again...running RH7.1 with kernel upgraded to 2.4.6. ^ The all important fact. Redhat 7.1 (and 7.0, IIRC) use xinetd, not inetd. Rather than a single .conf file, xinetd uses a number of files in the /etc/xinetd.d directory. I've attached 3 files -- amanda, amandaidx and amidxtape. On the clients (including the server itself), you only need amanda in /etc/xinetd.d. The other two go on the server to allow you to use amrecover from the clients. The other difference is that to restart xinetd, you need to issue the command '/etc/init.d/xinetd restart'. I copied the files over that you gave me...right now my xinetd.conf seems to be missing my user and group information, though I ran ./configure --with-user=amanda --with-group=disk --with-config=backup. I'm not really sure what the syntax is for xinetd.conf as far as that information is concerned. Here's what it has: # # Simple configuration file for xinetd # # Some defaults, and include /etc/xinetd.d/ defaults { instances = 60 log_type= SYSLOG authpriv log_on_success = HOST PID log_on_failure = HOST } includedir /etc/xinetd.d amandadgram udp wait amanda /usr/local/libexec/amandadamandad amandaidx stream tcp nowait amanda /usr/local/libexec/amindexd amindexd amidxtape stream tcp nowait amanda /usr/local/libexec/amidxtaped amidxtaped I checked my /var/log/messages and here's what I found... Found my xinetd.conf file...but it had nothing in it! Aug 29 15:31:03 salad xinetd: xinetd shutdown succeeded Aug 29 15:31:03 salad xinetd[3708]: Protocol udp^M not in /etc/protocols [line=3] Aug 29 15:31:03 salad xinetd[3708]: Bad socket type: dgram^M [line=4] Aug 29 15:31:03 salad xinetd[3708]: Bad value for wait: yes^M [line=5] Aug 29 15:31:03 salad xinetd[3708]: Unknown user: amanda^M [line=6] Aug 29 15:31:03 salad xinetd[3708]: Unknown group: disk^M [line=7] Aug 29 15:31:03 salad xinetd[3708]: Server /usr/local/libexec/amandad^M is not executable [line=8] Aug 29 15:31:03 salad xinetd[3708]: Bad socket type: stream^M [line=7] Aug 29 15:31:03 salad xinetd[3708]: Protocol tcp^M not in /etc/protocols [line=8] Aug 29 15:31:03 salad xinetd[3708]: Bad value for wait: no^M [line=9] Aug 29 15:31:03 salad xinetd[3708]: Unknown user: amanda^M [line=10] Aug 29 15:31:03 salad xinetd[3708]: attribute server expects 1 values and 2 values were specified [line=11] Aug 29 15:31:03 salad xinetd[3708]: Bad socket type: stream^M [line=8] Aug 29 15:31:03 salad xinetd[3708]: Protocol tcp^M not in /etc/protocols [line=9] Aug 29 15:31:03 salad xinetd[3708]: Bad value for wait: no^M [line=10] Aug 29 15:31:03 salad xinetd[3708]: Unknown user: amanda^M [line=11] Aug 29 15:31:03 salad xinetd[3708]: Server /usr/local/libexec/amidxtaped^M is not executable [line=12] Aug 29 15:31:03 salad xinetd[3708]: missing service keyword [line=17] Aug 29 15:31:03 salad xinetd[3708]: missing } in last service entry [line=19] Aug 29 15:31:03 salad xinetd[3708]: chargen disabled, removing Aug 29 15:31:03 salad xinetd[3708]: chargen-udp disabled, removing Aug 29 15:31:03 salad xinetd[3708]: time disabled, removing Aug 29 15:31:03 salad xinetd[3708]: time disabled, removing Aug 29 15:31:03 salad xinetd[3708]: daytime disabled, removing Aug 29 15:31:03 salad xinetd[3708]: talk disabled, removing Aug 29 15:31:03 salad xinetd[3708]: rsync disabled, removing Aug 29 15:31:03 salad xinetd[3708]: ntalk disabled, removing Aug 29 15:31:03 salad xinetd[3708]: echo-udp disabled, removing Aug 29 15:31:03 salad xinetd[3708]: echo disabled, removing Aug 29 15:31:03 salad xinetd[3708]: daytime-udp disabled, removing Aug 29 15:31:03 salad xinetd[3708]: Service amanda^M missing attribute socket_type Aug 29 15:31:03 salad xinetd[3708]: Service amanda^M missing attribute user Aug 29 15:31:03 salad xinetd[3708]: Service amanda^M missing attribute server Aug 29 15:31:03 salad xinetd[3708]: Service amandaidx^M missing attribute socket_type Aug 29 15:31:03 salad xinetd[3708]: Service amandaidx^M missing attribute user Aug 29 15:31:03 salad xinetd[3708]: Service amandaidx^M missing attribute server Aug 29 15:31:03 salad xinetd[3708]: Service amidxtape^M missing attribute socket_type Aug 29 15:31:03 salad xinetd[3708]: Service amidxtape^M missing attribute user Aug 29 15:31:03 salad xinetd[3708]: Service amidxtape^M missing attribute server Aug 29 15:31:03 salad xinetd[3708]: xinetd Version 2.1.8.9pre14 started with Aug 29 15:31:03 salad xinetd[3708]: libwrap Aug 29 15:31:03 salad xinetd[3708]: options compiled in. Aug 29 15:31:03 salad xinetd[3708]: Started working: 2 available services Aug 29 15:31:06 salad xinetd: xinetd startup succeeded Can someone help me with syntax?
Re: Compiling amanda on an (ugh) Windows box?
there is a sourceforge group named Amanda Backup Win32 Clients http://sourceforge.net/projects/amanda-win32/ On Wed, 29 Aug 2001, Gene Heskett wrote: Does anyone know of a decent compiler for windows thats not a bank breaker? I'd like to see if its buildable for the general run of W95 and W98 machines. And has anyone made amanda work as client on a windows box other than via samba? In other words, am I just spinning my wheels to even think about it? Cheers, Gene -- Todd Pfaff \ Email: [EMAIL PROTECTED] Computing and Information Services \ Voice: (905) 525-9140 x22920 ABB 132 \ FAX: (905) 528-3773 McMaster University \ Hamilton, Ontario, Canada L8S 4M1 \
rewinding problem
HI, I use 2.4.2p2 and I have a weird problem with my tapes. Sometimes they work sometimes not. Rather not in these time. I back up my data to a hp surestore t4000 and I got the following message: bash-2.04$ /usr/sbin/amcheck DailySet1 Amanda Tape Server Host Check - Holding disk /images/tmp: 312064 KB disk space available, that's plenty ERROR: /dev/nst0: rewinding tape: Input/output error (expecting tape Napi02 or a new tape) NOTE: skipping tape-writable test Server check took 30.173 seconds Amanda Backup Client Hosts Check Client check: 1 host checked in 0.086 seconds, 0 problems found (brought to you by Amanda 2.4.2p2) bash-2.04$ I use 2.4.7 on a Redhat 7.1 with 256 Mb RAM. Is the kernel buggy or the both tapes are wrong? bye,Sanya
Errors with amcheck
Hi, I have been having severe problem with the Amanda setup used in our office, so I have built a new backup server machine with a clean install of Amanda 2.4.1p1. I have fixed most of the problems I have encountered but the problem I am getting is a Port Not Secure error when trying to connect to Amanda clients. If I run Amcheck I get the following result:- Amanda Tape Server Host Check - /holding: 2555713 KB disk space available, using 2550593 KB. amcheck-server: slot 1: date 20010720 label DailySet37 (exact label match) NOTE: skipping tape-writable test. Tape DailySet37 label ok. Server check took 13.909 seconds. Amanda Backup Client Hosts Check ERROR: bill: [host rimmer: port 32884 not secure] ERROR: ben: [host rimmer: port 32884 not secure] Client check: 2 hosts checked in 0.502 seconds, 2 problems found. (brought to you by Amanda 2.4.1p1) I have the entries in /etc/services and /etc/inetd.conf as per the documentation on both the server and the clients but don't seem to be able to make a connection to anything. Can anyone help? Regards, Craig Walker IT Support Administrator Fugro Survey Limited
CANCEL amrecover trouble
Cancel. Losing braincells. Figured out the error of my ways. I'm ok again. :-) John Date: Thu, 30 Aug 2001 11:55:21 -0400 To: [EMAIL PROTECTED] From: John Holstein, IS [EMAIL PROTECTED] Subject: amrecover trouble Unix Linux Trying a test of amrecover. using the command: amrecover -C /Inside/ -s backup.x.net -t backup.x.net -d /dev/nst0 I am getting: amrecover: Unexpected server end of file Ok, that's fine, I think it's because I am not running a DNS server inside the firewall and the 10.0.0.x IP's are not returning a proper reverse lookup. I can handle that, or if you have a particular suggestion go ahead and shoot. BTW: the box is listed in /etc/hosts Anyway, the *other* problem, when the error above is given, the very next time I try amrecover, I get this: amrecover: Error connecting to server: Connection refused I check the backup box for amandaid to be running, as it was before the trial amrecover and it's missing from a netstat -ap Any known reason for amandaid to crash because of the bad DNS problem? John Holstein CN IS
Amanda Faq-O-Matic
Hi all, As I was browsing the Amanda FOM, I noticed that not only are there a bunch of empty New Item listings, but also that there is a lot of information missing from the FAQ that I would expect to be in there. If whomever is in charge of the FOM is willing, I'll gladly volunteer to clean it up and start adding the missing FAQs to it. Feel free to contact me on or off list about this :) -- Seeya, Paul ...we don't need to be perfect to be the best around, and we never stop trying to be better. Tom Clancy, The Bear and The Dragon If you're not having fun, you're not doing it right!
Re: Getting a TOC from an existing tape?
On 30 Aug 2001 10:40:46 -0400, Paul Lussier wrote: I have a tape, and want to find out what's on it directly from the tape. I know I've seen this answered some where before, but can't seem to remember wherer. Take a look at amtoc, which will create a TOC from logfiles. ./Ben Thanks, -- Seeya, Paul
Re: rewinding problem
In a message dated: Thu, 30 Aug 2001 18:21:13 +0200 Sandor Feher said: HI, I use 2.4.2p2 and I have a weird problem with my tapes. Sometimes they work sometimes not. Rather not in these time. I back up my data to a hp surestore t4000 and I got the following message: bash-2.04$ /usr/sbin/amcheck DailySet1 Amanda Tape Server Host Check - Holding disk /images/tmp: 312064 KB disk space available, that's plenty ERROR: /dev/nst0: rewinding tape: Input/output error (expecting tape Napi02 or a new tape) NOTE: skipping tape-writable test Server check took 30.173 seconds What happens if you run amcheck again immediately after this? I see similar problems with 'amtape conf current' or 'amlabel' quite often, but if I run the same command again (sometimes I need to do it twice) it eventually comes back correctly. I'm not sure what causes it, but I'd guess there's some time-out somewhere that needs to be increased. It almost seems that amanda isn't waiting long enough for the tape drive to get back to her. -- Seeya, Paul ...we don't need to be perfect to be the best around, and we never stop trying to be better. Tom Clancy, The Bear and The Dragon If you're not having fun, you're not doing it right!
Re: rewinding problem
On Thu, 30 Aug 2001, Paul Lussier wrote: I'm not sure what causes it, but I'd guess there's some time-out somewhere that needs to be increased. It almost seems that amanda isn't waiting long enough for the tape drive to get back to her. Are you using a tape changer or library? This is a known issue with some changers. I haven't seen reports of it with standalone drives, but it's certainly a possibility. -Mitch
Re: Errors with amcheck
Hi, [EMAIL PROTECTED] said: [...] I have fixed most of the problems I have encountered but the problem I am getting is a Port Not Secure error when trying to connect to Amanda clients. [...] Amanda Backup Client Hosts Check ERROR: bill: [host rimmer: port 32884 not secure] ERROR: ben: [host rimmer: port 32884 not secure] Client check: 2 hosts checked in 0.502 seconds, 2 problems found. Is amcheck installed SETUID root? If not, and you are running it as the amanda user (as required), it won't be able to open a secure port below 1024. There are several other programs that must be setuid root, but I think that's the only one in the sbin area (the rest are in libexec). Some other problems that have caused this: 1. Firewalls that do Network Address Translation, since they usually munge the port numbers as they forward on the connection. I think there's something in the FAQ-O-Matic about this. 2. Using --with-portrange during the ./configure part of the build. I don't recall the specifics, but I think this option was broken for some time. Hope this helps, -Ben -- Benjamin LewisThank goodness modern convenience is a Database Analyst/Programmer thing of the remote future. Purdue University Computing Center -- Pogo, by Walt Kelly [EMAIL PROTECTED]
Re: rewinding problem
In a message dated: Thu, 30 Aug 2001 14:06:33 EDT Mitch Collinsworth said: On Thu, 30 Aug 2001, Paul Lussier wrote: I'm not sure what causes it, but I'd guess there's some time-out somewhere that needs to be increased. It almost seems that amanda isn't waiting long enough for the tape drive to get back to her. Are you using a tape changer or library? This is a known issue with some changers. I haven't seen reports of it with standalone drives, but it's certainly a possibility. I'm using a tape changer, the HP SureStore 818 DLT Autochanger to be exact. -- Seeya, Paul ...we don't need to be perfect to be the best around, and we never stop trying to be better. Tom Clancy, The Bear and The Dragon If you're not having fun, you're not doing it right!
Re: troubleshooting
On Thu, 30 Aug 2001 at 2:47pm, brian wrote i have been having some trouble with my tape drive.. and in turn, trouble with amanda. what are some simple things i can do to test out my tape drive? any time i try and write to a tape amanda says that there is no tape or that its at the end of the tape. ive got a sony ait-1 drive on a machine running linux. Write to the tape directly using dump or tar, and note any error messages. Look for error messages in /var/log/messages and `dmesg`. Use new or known-good tapes. For SCSI, be sure to check your termination, cabling, termination, and that you used the proper color goat. -- Joshua Baker-LePain Department of Biomedical Engineering Duke University
RE: Looking for info on freebsd and an HP DAT24x6i changer.
grubble [...] I'm desperately trying to figure out why I can't get an grubble HP Surestore 24x6i changer to work with freebsd. I've grubble exhausted all of my resources and mailing lists to no avail, grubble so I'm resorting to emailing you because of this message I grubble found in the amanda-users archive. Perhaps the problem you are having is that that particular changer reports having 0 pickers, which pisses off chg-chio. I have a really ugly fix: [snip] - if ( $max_drive == 0 or $max_picker == 0 ) { I'd already changed the or in this line to and, which also fixes that problem. But if you are having other problems, let me know. Amanda seems to run the dump ok, but gets an error when flushing it to tape. I foolishly had not verified that I could write to the tapes after moving the changer into this box, before running amanda. The errors don't seem to be coming from amanda though, I can't seem to write or read using tar or dd either. They seem to get detected ok: sa0 at ahc0 bus 0 target 4 lun 0 sa0: HP C1557A U812 Removable Sequential Access SCSI-2 device sa0: 10.000MB/s transfers (10.000MHz, offset 15) Mounting root from ufs:/dev/ad0s1a ch0 at ahc0 bus 0 target 4 lun 1 ch0: HP C1557A U812 Removable Changer SCSI-2 device ch0: 10.000MB/s transfers (10.000MHz, offset 15) ch0: 6 slots, 1 drive, 0 pickers, 0 portals But a read or write fails like this: #tar cf - build | dd of=/dev/rsa0 bs=1024 dd: /dev/rsa0: Input/output error 2+0 records in 1+0 records out 1024 bytes transferred in 0.016840 secs (60808 bytes/sec) With console errors like this: (sa0:ahc0:0:4:0): WRITE(06). CDB: a 0 0 2 0 0 (sa0:ahc0:0:4:0): ABORTED COMMAND asc:4b,0 (sa0:ahc0:0:4:0): Data phase error So it looks like a hardware or freebsd (4.0-RELEASE - it's a test box) problem. I've tried it with different block sizes, I've checked the dip switches, I've cleaned the drive, I've tried new tapes.. I've tried everything I could think of. The tape drive appears to work fine on an NT system. Any ideas? Have I missed something really obvious and stupid? John -- [EMAIL PROTECTED]Tas Access Systems Administrator Phone: 1300 655 633 Accounts: [EMAIL PROTECTED] Support: [EMAIL PROTECTED]
Re: Looking for info on freebsd and an HP DAT24x6i changer.
John The errors don't seem to be coming from amanda though, I can't John seem to write or read using tar or dd either. John They seem to get detected ok: John sa0 at ahc0 bus 0 target 4 lun 0 John sa0: HP C1557A U812 Removable Sequential Access SCSI-2 device John sa0: 10.000MB/s transfers (10.000MHz, offset 15) John Mounting root from ufs:/dev/ad0s1a John ch0 at ahc0 bus 0 target 4 lun 1 John ch0: HP C1557A U812 Removable Changer SCSI-2 device John ch0: 10.000MB/s transfers (10.000MHz, offset 15) John ch0: 6 slots, 1 drive, 0 pickers, 0 portals Looks fine. Here is mine: sa0 at ahc0 bus 0 target 6 lun 0 sa0: HP C1557A U812 Removable Sequential Access SCSI-2 device sa0: 10.000MB/s transfers (10.000MHz, offset 15) [...] ch0 at ahc0 bus 0 target 6 lun 1 ch0: HP C1557A U812 Removable Changer SCSI-2 device ch0: 10.000MB/s transfers (10.000MHz, offset 15) ch0: 6 slots, 1 drive, 0 pickers, 0 portals With a tape in the drive, what does the command mt -f /dev/nrsa0 status show? On my HP DAT40x6i changer (the DDS-4 version) my DIP switches are set as: 1 2 3 4 5 6 7 8 0 1 0 1 1 1 1 1 And I'm pretty sure these are the same settings we have on the 24X6i. (I had just this evening yanked a busted Seagate Scorpion DDS-4 drive, so I can actually see the switches! Talk about timing. :)) John But a read or write fails like this: John #tar cf - build | dd of=/dev/rsa0 bs=1024 John dd: /dev/rsa0: Input/output error John 2+0 records in John 1+0 records out John 1024 bytes transferred in 0.016840 secs (60808 bytes/sec) John With console errors like this: John (sa0:ahc0:0:4:0): WRITE(06). CDB: a 0 0 2 0 0 John (sa0:ahc0:0:4:0): ABORTED COMMAND asc:4b,0 John (sa0:ahc0:0:4:0): Data phase error I agree, this looks like a hardware problem. Have you verified your SCSI stuff: jumpers, termination, cable lengths, etc.? John So it looks like a hardware or freebsd (4.0-RELEASE - it's a John test box) problem. I've never used the 4.0-RELEASE stuff, if possible, can you try something newer like 4.3?
RE: Looking for info on freebsd and an HP DAT24x6i changer.
With a tape in the drive, what does the command mt -f /dev/nrsa0 status show? heracles:~#mt -f /dev/nrsa0 status Mode Density Blocksize bpi Compression Current: 0x25:DDS-3 1024 bytes 97000DCLZ -available modes- 0:0x25:DDS-3 1024 bytes 97000DCLZ 1:0x25:DDS-3 1024 bytes 97000DCLZ 2:0x25:DDS-3 1024 bytes 97000DCLZ 3:0x25:DDS-3 1024 bytes 97000DCLZ - Current Driver State: at rest. - File Number: 0 Record Number: 0 On my HP DAT40x6i changer (the DDS-4 version) my DIP switches are set as: 1 2 3 4 5 6 7 8 0 1 0 1 1 1 1 1 And I'm pretty sure these are the same settings we have on the 24X6i. (I had just this evening yanked a busted Seagate Scorpion DDS-4 drive, so I can actually see the switches! Talk about timing. :)) I have switch 3 off, and the others on. This is what it says in the docs, but the docs don't go into any detail about what any of the switches do. The option switch is set to 7 as specified for PC hardware. I agree, this looks like a hardware problem. Have you verified your SCSI stuff: jumpers, termination, cable lengths, etc.? To be honest I knew very little about SCSI a month ago, as other people here did most of the hardware stuff. I had someone else check out my SCSI setup, but I'm about to go over it all again myself. I had assumed that if I got it wrong I wouldn't be able to talk to the devices at all, but I might have been very wrong there. Hopefully this is the problem, so all I'll have to worry about is feeling silly. ;) I've never used the 4.0-RELEASE stuff, if possible, can you try something newer like 4.3? If it comes to that I can reinstall the box. John -- [EMAIL PROTECTED]Tas Access Systems Administrator Phone: 1300 655 633 Accounts: [EMAIL PROTECTED] Support: [EMAIL PROTECTED]