The permissions are ok and the crontab is from the user Amanda. I don�t know why this error comes
-----Urspr�ngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Gene Heskett Gesendet: Mittwoch, 13. April 2005 11:01 An: [email protected] Betreff: Re: Problem with tape and labeling (archiving) On Wednesday 13 April 2005 04:23, Sebastian K�sters wrote: >Hi! > >I have a Problem with archiving tapes. > >On every Sunday we do a backup on tape but I always get the > following error: > >ERROR: /dev/nst0: reading label: Input/output error > (expecting tape DailySet1001 or a new tape) >NOTE: skipping tape-writable test >Server check took 0.198 seconds > >I wrote a little Script which labels the new tape (via cron). > >Script: > >#!/bin/bash > ># >#counter + 1 ># >let zahl=`cat /etc/amanda/counter`; >let zahl=$zahl+1; >echo $zahl > /etc/amanda/counter; > ># >#Tape labeln ># >counter=`cat /etc/amanda/counter`; >amlabel -f full-sonntag DailySet$counter; First mistake I see, is useing DailySet1 above, but just DailySet here. >cron entry: > >0 1 * * 0 /etc/amanda/label.sh >15 1 * * 0 /usr/sbin/amcheck -a full-sonntag >30 1 * * 0 /usr/sbin/amdump full-sonntag && /usr/sbin/amadmin > full-sonntag export > >Dumptype: > >define dumptype high-tar { > comment "partitions dumped with tar" > priority high > program "GNUTAR" > index yes > strategy noinc > dumpcycle 0 > record no >} > >What must I do to make it work -> Insert new tape - automatic > labelling - automatic backup - insert next tape ....... ? > >Hope someone can help?! > >Regards, >Sebastian The rest of it looks like it should work if all the scripts are chmod +x'd, and that crontab entry is in the (usually the user "amanda") users crontab, root's crontab won't work. -- 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) 99.34% setiathome rank, not too shabby for a WV hillbilly Yahoo.com and AOL/TW attorneys please note, additions to the above message by Gene Heskett are: Copyright 2005 by Maurice Eugene Heskett, all rights reserved.
