AMANDA does not automatically eject tapes after a backup. If you want to do
this, there is an easy way: 

When you put your amcheck and amdump commands in cron, do something like
this: 

30 16 * * 1-5 /usr/sbin/amcheck -m DailySet1
0 4 * * 2-6 /usr/sbin/amdump DailySet1 && mt -f /dev/nst0 rewoffl

Here's what it means: 
        First line: 
                "30 16": at 4:30 in the afternoon, 
                " * * ": of any day of month or month of year, 
                " 1-5 ": Monday through friday, 
                "/usr/sbin/amcheck": Check to see if we're ready for backups
                "-m": and mail me any problems, 
                "DailySet1": for configuration DailySet1
        Second line: 
                "0 4": at 4:00 in the morning, 
                " * * ": of any day of the month or month of year,
                " 2-6 ": Tuesday through Saturday, 
                "/usr/sbin/amdump": Run the backup, 
                "DailySet1": for configuration DailySet1, 
                " && ": and if that completes successfully, 
                " mt ": send a tape command
                " -f /dev/nst0": to the first non-rewinding SCSI tape device
                " rewoffl ": to rewind and eject.

(cron tells stories, they're just in shorthand.)

And that's how you get an eject afterwards. 

Don't worry about using only 10% for now. you can tune that (indirectly)
later by adjusting dumpcycle. 



> -----Original Message-----
> From: KEVIN ZEMBOWER [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 11, 2001 5:27 PM
> To: [EMAIL PROTECTED]
> Subject: 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
> 

Reply via email to