Re: amanda with files

2004-09-09 Thread Stefan G. Weichinger
Hi, Gene,

on Donnerstag, 09. September 2004 at 15:42 you wrote to amanda-users:

GH> I rebuilt it with my backup of the config, and started from scratch
GH> on the rest of it.  What I was missing in the amanda.conf was the
GH> line 'changerdev'.  I got that from reading the chg-disk src comments.
GH> I don't think thats in your HOWTO, or I'm going blind in my old age.

I just checked back with my communications with the author of
chg-disk, he said:

---

changerdev: it's not necessary to explicitely tell "/dev/null" as this config
parameter is not parsed by my changer driver; but I wanted to explicitely specify it 
just
to help the human reader, to remind him there is really NO physical robotics.

---

So it is unimportant for chg-disk what "changerdev" is set to. Maybe
this should be mentioned in the HOWTO.

GH> And, I have it all working with this 'mkvtapes' script:
GH> --mkvtapes, cut here---
GH> #!/bin/sh
GH> rm -fR /amandatapes/Dailys
GH> rm -f /usr/local/etc/amanda/Daily/tapelist
GH> touch /usr/local/etc/amanda/Daily/tapelist
GH> for n in 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17
GH> 18 19 20 21 22 23 24 25 26 27 28 29 30
GH> do
GH> mkdir -p /amandatapes/Dailys/slot${n}
GH> chmod -v 750 /amandatapes/Dailys/slot${n}
GH> rm -f /amandatapes/Dailys/data
GH> ln -s /amandatapes/Dailys/slot${n} /amandatapes/Dailys/data
GH> amlabel Daily Dailys-${n} slot ${n}
GH> done
GH> rm /amandatapes/Dailys/data
GH> ln -s /amandatapes/Dailys/slot01 /amandatapes/Dailys/data
GH> echo
GH> echo slot dirs made
GH> echo
GH> ls -lR
GH> -EOF---
GH> And it all runs in about 5 or 6 seconds!

Maybe you could edit this script to use variables ... so other people
could use it as well ...

GH> Now, needless to say, I'm going to remove the exec bits on that puppy.

GH> Oh, and you were half right on the 00 01 thing, amlabel upchucks on the
GH> 00, but works just fine on a range of 01-30.  Which is puzzling because
GH> the rest of amanda seems to run on the base 0 numbering system.  Bug?
GH> Dunno, & its now moot.

Some more thing to look up in the sources ...

GH> Now I have to go fix my wrapper scripts for the name changes & re-enable
GH> amanda in her cron.conf.  Tonight should be a real doozy as its been
GH> since back in June that the last backup was done.

t...

GH> Now, my question is: how does that 'data' link get replaced when the
GH> 'changer' is advanced?  Do I need to add that to my wraper scripts?

chg-disk takes care of this. Nothing to do for you.

GH> Thanks Stefan.  You really did save a lot of time in re-inventing
GH> this.

I am not sure, do you think I wrote chg-disk? I did not, it was JC
Simonetti ...

-- 
best regards,
Stefan

Stefan G. Weichinger
mailto:[EMAIL PROTECTED]






Re: amanda with files

2004-09-09 Thread Gene Heskett
On Thursday 09 September 2004 08:41, Jon LaBadie wrote:
>On Wed, Sep 08, 2004 at 10:51:12PM -0400, Gene Heskett wrote:
>> Greetings Stefan;
>>
>> I think I've made some progress and the remaining problem
>> is my inability to label the vtapes.  I think...
>>
I hope this finds you and Gundie healthy.

I got it all sorted Jon.  My script miss-fired and killed my /config/ 
dir, so I had to go get my last tarballs, the ones I make with my 
wrapper scripts, and recover the whole thing.  Then, instead reading 
Stephans howto all that close, I read the comments in the chg-disk 
script, which disclosed that I was missing a line in my amanda.conf 
for 'changerdev'.

So they are all generated, amcheck seems happy, and the first backup 
since June 26th is running right now (I think, it just got quiet :() 
but theres still a gtar running, probably feeding gzip.

>> I've combined the scripts in your howto, so that its all in
>> one in case one should have to restart, and it comes in handy
>> right now since there is nothing precious to lose if I run it
>> several times in a row.
>>
>> Here is that script:
>> -mkamandatapes
>> #!/bin/sh
>
>Gene,
>It has been a looong time since I played with vtapes
>so I did not want to put bad info into the list if
>I'm off base.
>
>> echo next make new slot dirs
>> for n in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18
>> 19 20 21 22 23 24 25 26 27 28 29 do
>> mkdir /amandatapes/DailySet1/slot${n}
>> chmod -v 750 /amandatapes/DailySet1/slot${n}
>> done
>> ls -l
>> sleep 3
>> echo now we label them
>> for n in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18
>> 19 20 21 22 23 24 25 26 27 28 29 do
>> rm -f data
>> ln -s slot${n} data
>> amlabel DailySet1 DailySet1-${n} slot slot${n}
>> done
>> EOF-
>
>When I did it, each of the "slots" was a directory which
>I also considered the tape itself.  As such, each had
>two things in the directory, a file called info (maybe
>created by mklabel, I forget), and a subdirectory called data.
>
>Your script is only setting up the single entity called "data",
>a symbolic link, and pointing it to "slot directories".  Compared
>to the scheme I had working (which I can't say is correct) there
>seems to be a level of dirs missing.  Though, I guess your "slots"
>are supposed to be the equivalent of my separate "data" dirs.
>
>At the time I did it, chg-disk did not exist.  I was using
>chg-multi.  Maybe that is a major difference.

Could be Jon, and I'll know in a couple of hours I guess.

But I've disabled the writes to the vtape from my wrapper scripts as 
I'm not savvy on howto make dd append to an already existing file.

I suppose, (thinking out loud here, and thats been known to be 
dangerous) since each directory is the tape, that if I look in it 
when its done, I should see individual files in that directory, which 
means all I have to do is give dd the proper path and it should be 
happy.

But thats based on an 'I suppose' and them things have been fubar many 
many times before. :) So I want one runs data to see how it actually 
works before I start uncommenting the dd writes.  Heck, if its just a 
file, I could probably use cp instead...  This gets simpler all the 
time!

How was your weather yesterday?  We got a bit over 3.5" here.  Most of 
which was in fact needed, my yard was beginning to open up in inch 
wide cracks.

>
>jl

-- 
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.25% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attorneys please note, additions to this message
by Gene Heskett are:
Copyright 2004 by Maurice Eugene Heskett, all rights reserved.


Re: amanda with files

2004-09-09 Thread Gene Heskett
On Thursday 09 September 2004 03:12, Stefan G. Weichinger wrote:
>Hi, Gene Heskett,
>
>on Donnerstag, 09. September 2004 at 04:51 you wrote to
> amanda-users:
>
>GH> Greetings Stefan;
>
>GH> I think I've made some progress and the remaining problem
>GH> is my inability to label the vtapes.  I think...
>
>GH> I've combined the scripts in your howto, so that its all in
>GH> one in case one should have to restart, and it comes in handy
>GH> right now since there is nothing precious to lose if I run it
>GH> several times in a row.
>
>GH> Here is that script:
>GH> -mkamandatapes
>...
>GH> amlabel DailySet1 DailySet1-${n} slot slot${n}
>
>Usage: amlabel [-f]   [slot ]
>
>Should be
>
>amlabel DailySet1 DailySet1-${n} slot ${n}
>
>AFAI see.
>
>(So that it expands to:
>
>amlabel DailySet1 DailySet1-01 slot 1
>
>Still don't know if these leading "0" doesn't bite you, too.)
>
>Note my comments and changes in the other thread, too.

I rebuilt it with my backup of the config, and started from scratch
on the rest of it.  What I was missing in the amanda.conf was the
line 'changerdev'.  I got that from reading the chg-disk src comments.
I don't think thats in your HOWTO, or I'm going blind in my old age.

And, I have it all working with this 'mkvtapes' script:
--mkvtapes, cut here---
#!/bin/sh
rm -fR /amandatapes/Dailys
rm -f /usr/local/etc/amanda/Daily/tapelist
touch /usr/local/etc/amanda/Daily/tapelist
for n in 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 
27 28 29 30
do
mkdir -p /amandatapes/Dailys/slot${n}
chmod -v 750 /amandatapes/Dailys/slot${n}
rm -f /amandatapes/Dailys/data
ln -s /amandatapes/Dailys/slot${n} /amandatapes/Dailys/data
amlabel Daily Dailys-${n} slot ${n}
done
rm /amandatapes/Dailys/data
ln -s /amandatapes/Dailys/slot01 /amandatapes/Dailys/data
echo
echo slot dirs made
echo
ls -lR
-EOF---
And it all runs in about 5 or 6 seconds!

Now, needless to say, I'm going to remove the exec bits on that puppy.

Oh, and you were half right on the 00 01 thing, amlabel upchucks on the
00, but works just fine on a range of 01-30.  Which is puzzling because
the rest of amanda seems to run on the base 0 numbering system.  Bug?
Dunno, & its now moot.

Now I have to go fix my wrapper scripts for the name changes & re-enable
amanda in her cron.conf.  Tonight should be a real doozy as its been
since back in June that the last backup was done.

Now, my question is: how does that 'data' link get replaced when the 
'changer' is advanced?  Do I need to add that to my wraper scripts?

Thanks Stefan.  You really did save a lot of time in re-inventing
this.

-- 
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.25% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attorneys please note, additions to this message
by Gene Heskett are:
Copyright 2004 by Maurice Eugene Heskett, all rights reserved.


Re: amanda with files

2004-09-09 Thread Gene Heskett
On Thursday 09 September 2004 03:12, Stefan G. Weichinger wrote:
>Hi, Gene Heskett,
>
>on Donnerstag, 09. September 2004 at 04:51 you wrote to
> amanda-users:
>
>GH> Greetings Stefan;
>
>GH> I think I've made some progress and the remaining problem
>GH> is my inability to label the vtapes.  I think...
>
>GH> I've combined the scripts in your howto, so that its all in
>GH> one in case one should have to restart, and it comes in handy
>GH> right now since there is nothing precious to lose if I run it
>GH> several times in a row.
>
>GH> Here is that script:
>GH> -mkamandatapes
>...
>GH> amlabel DailySet1 DailySet1-${n} slot slot${n}
>
>Usage: amlabel [-f]   [slot ]
>
>Should be
>
>amlabel DailySet1 DailySet1-${n} slot ${n}
>
>AFAI see.
>
>(So that it expands to:
>
>amlabel DailySet1 DailySet1-01 slot 1
>
>Still don't know if these leading "0" doesn't bite you, too.)
>
>Note my comments and changes in the other thread, too.

Damn, the script just miss-fired, and wiped the whole /config/ dir, 
includeing the script itself.  Now I really am going to have to 
re-invent the wheel.  Or do it, I still have the tarballs of the last 
backup of that on disk yet.  So I can at least get back to square 
one.

Back later.

-- 
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.25% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attorneys please note, additions to this message
by Gene Heskett are:
Copyright 2004 by Maurice Eugene Heskett, all rights reserved.


Re: amanda with files

2004-09-09 Thread Bret McKee
:
Gene:

I recently followed the How-To and got Vtapes running in my
configuration.  I had a couple weired problems that all ended up being
caused by bad file ownership.  Double check that all the directories
are owned by your amanda user.

Hope this helps,

Bret


Re: amanda with files

2004-09-09 Thread Stefan G. Weichinger
Hi, Gene Heskett,

on Donnerstag, 09. September 2004 at 04:51 you wrote to amanda-users:

GH> Greetings Stefan;

GH> I think I've made some progress and the remaining problem
GH> is my inability to label the vtapes.  I think...

GH> I've combined the scripts in your howto, so that its all in
GH> one in case one should have to restart, and it comes in handy
GH> right now since there is nothing precious to lose if I run it
GH> several times in a row.

GH> Here is that script:
GH> -mkamandatapes
...
GH> amlabel DailySet1 DailySet1-${n} slot slot${n}

Usage: amlabel [-f]   [slot ]

Should be

amlabel DailySet1 DailySet1-${n} slot ${n}

AFAI see.

(So that it expands to:

amlabel DailySet1 DailySet1-01 slot 1

Still don't know if these leading "0" doesn't bite you, too.)

Note my comments and changes in the other thread, too.

-- 
best regards,
Stefan

Stefan G. Weichinger
mailto:[EMAIL PROTECTED]