Exporting 'finished' tapes?
Hi all, I'm running Amanda 2.6.0p1 on an RHEL5 x64 host, compiled from source. I have a couple of configs (one for daily use, one for clients that get backed up weekly) running under chg-zd-mtx, and everything seems to be running well. What I'd like to be able to do, is specify in a config's changer.conf the range of import/export slots for my library, and to put ejected, just-written tapes into an I/E slot upon completion of dumps (first available if possible). The ability to grab tapes from those slots via the same mechanism would also be cool, but I'd be happy to just have auto-export. The reason I'd like to be able to do this is, I am not the one that handles the tapes that go offsite every business day, and the person who does is a bit of a technophobe; anything I can do to make their life easier would be great. I've tried to find an answer to this question via the Zmanda wiki, Google, and just about every resource I can think of... I will admit to the possibility that the answer was staring me in the face and I missed it, in which case I apologize profusely for wasting time and bandwidth. :-) I suspect, though, that I'm going to have to take chg-zd-mtx and bolt my own export code onto it. Thanks in advance for your help! Steve Onotsky Server Support Technologist Broadridge Investor Communication Solutions, Canada 5970 Chedworth Way Mississauga ON L5R 4G5 Tel: (905) 507-5328 Fax: (905) 507-5312 This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system.
Re: Amrecover issue...
Christiaan de Vries wrote: Hello Jean-Louis, File Permissions: == bac...@dub-amanda1:~$ ls -al /usr/lib/amanda/amidxtaped -rwxr-xr-x 1 root root 16248 2007-11-09 01:08 /usr/lib/amanda/amidxtaped Xinetd.d conf: r...@dub-amanda1:/etc/xinetd.d# cat /etc/xinetd.d/amidxtape #default: on # description: The amanda tape service service amidxtape { #only_from= socket_type= stream protocol= tcp wait= no user= backup group= backup groups= yes server= /usr/lib/amanda/amidxtaped server_args= -auth=bsd amdump amindexd amidxtaped disable= no } xinetd amindexd and amidxtaped are not use, you should disable them if you don't have older client. Post /etc/xinetd.d/amanda Post the amandad.*.debug file Do /usr/lib/amanda/amidxtaped have the same permission as /usr/lib/amanda/amindexd? Socket: r...@dub-amanda1:/etc/xinetd.d# netstat -an | grep 10083 tcp0 0 0.0.0.0:10083 0.0.0.0:* LISTEN FYI: I have tried changing the file ownership to the backup user, but to no avail... I also tried to start the amixdtaped deamon with root, also no change, still the same error: "amrecover - can't talk to tape server: NAK: execute access to "/usr/lib/amanda/amidxtaped" denied" Kind regards again, Christiaan de Vries (Btw, where would I set the 'sethost' and 'settape' variables on the client machine permanently?) Either when you configure amanda or in the amanda-client.conf file. Jean-Louis
Re: Amrecover issue...
Hello Jean-Louis, File Permissions: == bac...@dub-amanda1:~$ ls -al /usr/lib/amanda/amidxtaped -rwxr-xr-x 1 root root 16248 2007-11-09 01:08 /usr/lib/amanda/amidxtaped Xinetd.d conf: r...@dub-amanda1:/etc/xinetd.d# cat /etc/xinetd.d/amidxtape #default: on # description: The amanda tape service service amidxtape { #only_from= socket_type= stream protocol= tcp wait= no user= backup group= backup groups= yes server= /usr/lib/amanda/amidxtaped server_args= -auth=bsd amdump amindexd amidxtaped disable= no } Socket: r...@dub-amanda1:/etc/xinetd.d# netstat -an | grep 10083 tcp0 0 0.0.0.0:10083 0.0.0.0:* LISTEN FYI: I have tried changing the file ownership to the backup user, but to no avail... I also tried to start the amixdtaped deamon with root, also no change, still the same error: "amrecover - can't talk to tape server: NAK: execute access to "/usr/lib/amanda/amidxtaped" denied" Kind regards again, Christiaan de Vries (Btw, where would I set the 'sethost' and 'settape' variables on the client machine permanently?) Jean-Louis Martineau wrote: Christiaan de Vries wrote: Thanks for that Jean-Louis! That helped... ! Getting a bit closer to completion again. FYI: I am running the client now, and after some configuration issues (such as setting setdisk and sethost) I can finally list the back upped files on the server from a client connection Unfortunately, when I try to extract the files, I receive the following error: = amrecover> add SweetSweetKisses_Final.mov Added file /Documents/SweetSweetKisses_Final.mov amrecover> extract Extracting files using tape drive changer on host localhost. The following tapes are needed: DailySet1-13 Restoring files into directory /var/log/amanda/client/DailySet1 Continue [?/Y/n]? y Extracting files using tape drive changer on host localhost. Load tape DailySet1-13 now Continue [?/Y/n/s/t]? y amrecover - can't talk to tape server: NAK: execute access to "/usr/lib/amanda/amidxtaped" denied amrecover> Why amandad can't execute? What is your xinetd config? What is the user? What is the permission on /usr/lib/amanda/amidxtaped? Jean-Louis