Re: Help with Tapeless Configuration

2001-05-11 Thread John R. Jackson

I'm new to Amanda and to this list...

Welcome!

First, when Amanda runs, it reports itself as 2.4.2p1 and not p2. Is the
tapeio branch not in sync with the latest release?

It is in sync, I just forgot to update the p1 to p2.  It's fixed in the
sources so if you do a cvs update and then start over at the autogen,
it should show the right thing.

OK, so I read that Amanda tapes all need to be labeled, so I ran amlabel.
After that, it let me run amdump OK. But then I ran amdump again to try
another dump, but Amanda complained cannot overwrite active tape. How are
tapes ejected or rotated in the tapeless configuration?  ...

You need to create multiple file:/whatever directories, one per tape,
then either change tapedev in amanda.conf to point to the current one
or create a symlink and put that in tapedev then change the symlink.

Or you can configure up one of the tape changers (e.g. chg-multi).
They should work with file: devices.

filemark 100 kbytes  # Is this needed for a hard disk?

This is not needed for a disk.

speed 1000 kbytes# Local speed of the hard disk? Is this used?

Speed is not used by Amanda.

One more question... when I tried to do a dump of /etc, I got the following:

? You can't update the dumpdates file when dumping a subdirectory
sendbackup: error [/sbin/dump returned 1]

What am I doing wrong?  ...

You're trying to use dump on something other than an entire file system.
Dump (in general) only works on whole file systems, not subdirectories.
If you want to do a subdirectory, use GNU tar.

Clinton Hogge

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]



Help with Tapeless Configuration

2001-05-10 Thread Clinton Hogge

Hello,

I'm new to Amanda and to this list... running Linux 2.4.3 on a Power PC.

While I'm waiting for the tape drive to arrive, I'm trying to build Amanda
to back up to a hard disk instead of tape. I read in the list archives to
get the amanda-242-tapeio CVS branch. Here's what I did to get that:

$cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/amanda login

Pressed enter.

$cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/amanda
checkout -r amanda-242-tapeio amanda

$cd amanda
$./autogen

The installation from there went just fine.

First, when Amanda runs, it reports itself as 2.4.2p1 and not p2. Is the
tapeio branch not in sync with the latest release?

Second, I'm having trouble configuring Amanda for the tapeless operation.
I'm just testing a local dump on the tape server itself. The only
documentation I could find was in amanda(8) about setting tapedev
file:/path/to/directory and creating a data directory in that folder.

I've done that, but what else to I need to set? Running amcheck complains:

file:/var/amandadumps: not an amanda tape

OK, so I read that Amanda tapes all need to be labeled, so I ran amlabel.
After that, it let me run amdump OK. But then I ran amdump again to try
another dump, but Amanda complained cannot overwrite active tape. How are
tapes ejected or rotated in the tapeless configuration? My goal is to
have a 14 day dumpcycle with 1 run per day, and have all of the files kept
under /var/amandadumps.

Here's what I've changed in amanda.conf. Everything else is the default:

tapedev file:/var/amandadumps
tapetype HARD-DISK

define tapetype HARD-DISK {
comment Hard disk instead of tape
length 4000 mbytes   # Simulates end of tape on hard disk
filemark 100 kbytes  # Is this needed for a hard disk?
speed 1000 kbytes# Local speed of the hard disk? Is this used?
}

define dumptype hard-disk-only {
global
comment Back up to hard disk instead of tape
holdingdisk no
index yes
priority high
}


Here's the disklist:
localhost /home hard-disk-only


One more question... when I tried to do a dump of /etc, I got the following:

? You can't update the dumpdates file when dumping a subdirectory
sendbackup: error [/sbin/dump returned 1]

What am I doing wrong? Thanks in advance for helping me get started.

Regards,

Clinton Hogge
Industrial Images