Re: Converting to FILE

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

on Donnerstag, 09. September 2004 at 01:54 you wrote to amanda-users:

GH That would be the only line in that config driver thats dbl
GH quoted, but I tried it, nuked everything and re-built and
GH installed it, no real diffs to be seen.

GH I've rebuilt it several times with this config:
GH --
GH #!/bin/sh
GH # since I'm always forgetting to su amanda...
GH if [ `whoami` != 'amanda' ]; then
GH  echo
GH  echo  Warning 
GH  echo Amanda needs to be configured and built by the user amanda,
GH  echo but must be installed by user root.
GH  echo
GH  exit 1
GH fi
GH make clean
GH rm -f config.status config.cache
GH ./configure --with-user=amanda \
GH  --with-group=disk \
GH  --with-owner=amanda \
GH  --with-gnu-ld \
GH  --prefix=/usr/local \
GH  --with-tapedev=FILE:/amandatapes \
GH  --with-debugging=/tmp/amanda-dbg/ \
GH  --with-tape-server=coyote.coyote.den \
GH  --with-amandahosts \
GH  --with-configdir=/usr/local/etc/amanda

GH make

Ok.

...

GH #tpchanger chg-scsi # the tape-changer glue script
GH #tpchanger chg-mtx
GH tpchanger changer

GH #tapedev  0 # the no-rewind tape device to be used
GH tapedev  FILE:/amandatapes/DailySet1
GH rawtapedev FILE:/amandatapes/Dailyset1
GH changerfile /usr/local/etc/amanda/DailySet1/changer

GH tapetype HARD-DISK

GH labelstr ^DailySet1-[0-9][0-9]*$ # label constraint regex: all tapes must match

GH amrecover_changer changer

This should be:

tpchanger chg-disk# the tape-changer glue script
changerfile /usr/local/etc/amanda/DailySet1/changer.conf
# Just noticed that I have changer.conf here and not changer ...
tapedev file:/amandatapes/DailySet1
changerdev file:/amandatapes/DailySet1
amrecover_changer chg-disk

You don't need rawtapedev.

GH And I now note that in my attempts to run amcheck or amlabel,
GH I now have files in the /config/ dir named -access, -clean 
GH and -slot, which tells me the name string those are supposed
GH to be appended to is a null string, probaby because the name
GH 'changer' isn't correct, or is not correctly keyword identified.

Maybe because it really has to be changer.conf as noticed above. If
yes, another bug in the howto, but I wonder why noone else has hit
this before ...

GH and a run of amcheck gets this:
GH ---
GH [EMAIL PROTECTED] amanda-2.4.5b1-20040831]$ amcheck DailySet1
GH amcheck: error while loading shared libraries:
GH libamserver-2.4.5b1-20040831.so: cannot open shared object file:
GH Nosuch file or directory
GH 
GH The library does indeed exist:

Run ldconfig.

-- 
best regards,
Stefan

Stefan G. Weichinger
mailto:[EMAIL PROTECTED]






Re: Converting to FILE

2004-09-09 Thread Gene Heskett
On Thursday 09 September 2004 02:31, Stefan G. Weichinger wrote:
Hi, Gene Heskett,

on Donnerstag, 09. September 2004 at 01:54 you wrote to
 amanda-users:

GH That would be the only line in that config driver thats dbl
GH quoted, but I tried it, nuked everything and re-built and
GH installed it, no real diffs to be seen.

GH I've rebuilt it several times with this config:
GH --
GH #!/bin/sh
GH # since I'm always forgetting to su amanda...
GH if [ `whoami` != 'amanda' ]; then
GH  echo
GH  echo  Warning 
GH  echo Amanda needs to be configured and built by the user
 amanda, GH  echo but must be installed by user root.
GH  echo
GH  exit 1
GH fi
GH make clean
GH rm -f config.status config.cache
GH ./configure --with-user=amanda \
GH  --with-group=disk \
GH  --with-owner=amanda \
GH  --with-gnu-ld \
GH  --prefix=/usr/local \
GH  --with-tapedev=FILE:/amandatapes \
GH  --with-debugging=/tmp/amanda-dbg/ \
GH  --with-tape-server=coyote.coyote.den \
GH  --with-amandahosts \
GH  --with-configdir=/usr/local/etc/amanda

GH make

Ok.

...

GH #tpchanger chg-scsi # the tape-changer glue script
GH #tpchanger chg-mtx
GH tpchanger changer

GH #tapedev  0 # the no-rewind tape device to be used
GH tapedev  FILE:/amandatapes/DailySet1
GH rawtapedev FILE:/amandatapes/Dailyset1
GH changerfile /usr/local/etc/amanda/DailySet1/changer

GH tapetype HARD-DISK

GH labelstr ^DailySet1-[0-9][0-9]*$ # label constraint regex: all
 tapes must match

GH amrecover_changer changer

This should be:

tpchanger chg-disk# the tape-changer glue script

I got that one fixed since I posted

changerfile /usr/local/etc/amanda/DailySet1/changer.conf
# Just noticed that I have changer.conf here and not changer ...
tapedev file:/amandatapes/DailySet1
changerdev file:/amandatapes/DailySet1
amrecover_changer chg-disk

You don't need rawtapedev.

Ok, that can probably go with no efect then

GH And I now note that in my attempts to run amcheck or amlabel,
GH I now have files in the /config/ dir named -access, -clean
GH and -slot, which tells me the name string those are supposed
GH to be appended to is a null string, probaby because the name
GH 'changer' isn't correct, or is not correctly keyword identified.

Maybe because it really has to be changer.conf as noticed above.
 If yes, another bug in the howto, but I wonder why noone else has
 hit this before ...

When I had made that chg-disk, then I do get the chg-disk-access  etc 
files properly named.

GH and a run of amcheck gets this:
GH ---
GH [EMAIL PROTECTED] amanda-2.4.5b1-20040831]$ amcheck DailySet1
GH amcheck: error while loading shared libraries:
GH libamserver-2.4.5b1-20040831.so: cannot open shared object file:
GH Nosuch file or directory
GH 
GH The library does indeed exist:

Run ldconfig.

I got that one too.

Theres a later message than this one as I still cannot amlabel the 
vtapes.

Many Thanks.

-- 
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: Converting to FILE

2004-09-08 Thread Geert Uytterhoeven
On Wed, 8 Sep 2004, Gene Heskett wrote:
 [EMAIL PROTECTED] DailySet1]$ amlabel DailySet1 DailySet1-00 slot 00
 amlabel: could not load slot 00: illegal request

Perhaps Amanda doesn't like slot `00'? Have you tried slot `0'?

BTW, mine are called $(seq 32), i.e. I started counting at slot `1', not `0'.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [EMAIL PROTECTED]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say programmer or something like that.
-- Linus Torvalds


Re: Converting to FILE

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

on Mittwoch, 08. September 2004 at 18:02 you wrote to amanda-users:

GH Greeting, particularly to Stephan W.

GH I'm in the process of trying to duplicate my old tape
GH setup with a VLD, (very large disk, a 200 gigger)

GH In going thru your howto, I get to the point of doing
GH the labeling and bomb out with illegal requests.

GH [EMAIL PROTECTED] DailySet1]$ amlabel DailySet1 DailySet1-00 slot 00
GH amlabel: could not load slot 00: illegal request

GH The lines modified in amanda.conf are:
GH ---
GH runtapes 10 # number of tapes to be used in a single run of amdump

GH #tpchanger  chg-scsi  # the tape-changer glue script
GH tpchanger   chg-disk

GH #tapedev0 # the no-rewind tape device to be used
GH tapedev FILE:/amandatapes/DailySet1

GH #changerfile/usr/local/etc/amanda/DailySet1/chg-scsi.conf
GH changerfile /usr/local/etc/amanda/DailySet1/chg-disk.conf

This should be

changerfile /usr/local/etc/amanda/DailySet1/changer

and chg-disk creates

changer.conf-access
changer.conf-clean
changer.conf-slot
changer.stat

From the HOWTO:

---

The changerfile-parameter is used to give chg-disk the prefix for
the %s-changer, %s-clean, %s-slot files it needs. Use something like
changer in your config-dir. Please note that this file does NOT have
to exist, but it won't hurt anyway.

---

What does

amtape DailySet1 show

tell you?

For my setup this starts with slot 1, 2, ...

Seems like you hit an error in my HOWTO.

The loop to create the vtapes runs from 1 to 12, the loop to label
starts with 01, 02, ...

This should be the cause. I will correct this in a minute (gets in the
online-docs).

Sorry for the problem, thanks for digging it up.

-- 
best regards,
Stefan

Stefan G. Weichinger
mailto:[EMAIL PROTECTED]







Re: Converting to FILE

2004-09-08 Thread Gene Heskett
On Wednesday 08 September 2004 12:23, Geert Uytterhoeven wrote:
On Wed, 8 Sep 2004, Gene Heskett wrote:
 [EMAIL PROTECTED] DailySet1]$ amlabel DailySet1 DailySet1-00 slot 00
 amlabel: could not load slot 00: illegal request

Perhaps Amanda doesn't like slot `00'? Have you tried slot `0'?

BTW, mine are called $(seq 32), i.e. I started counting at slot `1',
 not `0'.

Gr{oetje,eeting}s,

  Geert

Back when I was running real tapes, Geert, the tapes were labeled with 
a string like DailySet1-01 thru DailySet1-28.

The regex string in amanda.conf:
labelstr ^DailySet1-[0-9][0-9]*$  # label constraint regex: all 
tapes must match

The leading zero in the 01 is because I have other scripts that search 
the databases that couldn't be made to cope with the 9 to 10 
transition but worked just fine if it was from 09 to 10, or 19 to 20.  
Probably my fault, but they all work that way and have been for 
years.  And I didn't have any trouble applying the labels.

One thing that bothers me is that my former configuration file had the 
tape device named in it, so that was hard-coded in the objects.
What or how do I now specify that what was formerly /dev/nst0, but is 
now a FILE: type device, when doing the .configure options?

This isn't discussed in Stephans W.'s howto.

And one other thing, its amanda-2.4.5b1-20040831 I'm playing with 
here.

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 --
 [EMAIL PROTECTED]

In personal conversations with technical people, I call myself a
 hacker. But when I'm talking to journalists I just say programmer
 or something like that. -- Linus Torvalds

-- 
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: Converting to FILE

2004-09-08 Thread Gene Heskett
On Wednesday 08 September 2004 12:53, Stefan G. Weichinger wrote:
Hi, Gene Heskett,

on Mittwoch, 08. September 2004 at 18:02 you wrote to amanda-users:

GH Greeting, particularly to Stephan W.

GH I'm in the process of trying to duplicate my old tape
GH setup with a VLD, (very large disk, a 200 gigger)

GH In going thru your howto, I get to the point of doing
GH the labeling and bomb out with illegal requests.

GH [EMAIL PROTECTED] DailySet1]$ amlabel DailySet1 DailySet1-00 slot
 00 GH amlabel: could not load slot 00: illegal request

GH The lines modified in amanda.conf are:
GH ---
GH runtapes 10 # number of tapes to be used in a single
 run of amdump

GH #tpchanger  chg-scsi  # the tape-changer glue script
GH tpchanger   chg-disk

GH #tapedev0 # the no-rewind tape device to
 be used GH tapedev FILE:/amandatapes/DailySet1

GH #changerfile/usr/local/etc/amanda/DailySet1/chg-scsi.conf
GH changerfile /usr/local/etc/amanda/DailySet1/chg-disk.conf

This should be

changerfile /usr/local/etc/amanda/DailySet1/changer

Aha!  Thanks

and chg-disk creates

changer.conf-access
changer.conf-clean
changer.conf-slot
changer.stat

From the HOWTO:

---

The changerfile-parameter is used to give chg-disk the prefix
 for the %s-changer, %s-clean, %s-slot files it needs. Use
 something like changer in your config-dir. Please note that this
 file does NOT have to exist, but it won't hurt anyway.

---

What does

amtape DailySet1 show

tell you?

For my setup this starts with slot 1, 2, ...

Seems like you hit an error in my HOWTO.

The loop to create the vtapes runs from 1 to 12, the loop to label
starts with 01, 02, ...

I made them by hand, and chown-ed everything after.

This should be the cause. I will correct this in a minute (gets in
 the online-docs).

Sorry for the problem, thanks for digging it up.
Let me save the fixed amanda.conf and see what happens, but I think 
the installed libs are hardcoded to use /dev/nst0 thanks to my gh.cf 
that I've published since forever here on this list.  How should I 
modify that?  Its presently:

#!/bin/sh
# since I'm always forgetting to su amanda...
if [ `whoami` != 'amanda' ]; then
echo
 echo  Warning 
 echo Amanda needs to be configured and built by the user amanda,
 echo but must be installed by user root.
 echo
 exit 1
fi
make clean
rm -f config.status config.cache
./configure --with-user=amanda \
 --with-group=disk \
 --with-owner=amanda \
 --with-gnu-ld --prefix=/usr/local \
 --with-tapedev=FILE:/amandatapes \
 --with-debugging=/tmp/amanda-dbg/ \
 --with-tape-server=coyote.coyote.den \
 --with-amandahosts \
 --with-configdir=/usr/local/etc/amanda

make
---

Is this anywhere near usable?

-- 
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: Converting to FILE

2004-09-08 Thread Geert Uytterhoeven
On Wed, 8 Sep 2004, Gene Heskett wrote:
 On Wednesday 08 September 2004 12:23, Geert Uytterhoeven wrote:
 On Wed, 8 Sep 2004, Gene Heskett wrote:
  [EMAIL PROTECTED] DailySet1]$ amlabel DailySet1 DailySet1-00 slot 00
  amlabel: could not load slot 00: illegal request
 
 Perhaps Amanda doesn't like slot `00'? Have you tried slot `0'?
 
 BTW, mine are called $(seq 32), i.e. I started counting at slot `1',
  not `0'.

 Back when I was running real tapes, Geert, the tapes were labeled with
 a string like DailySet1-01 thru DailySet1-28.

 The regex string in amanda.conf:
 labelstr ^DailySet1-[0-9][0-9]*$  # label constraint regex: all
 tapes must match

 The leading zero in the 01 is because I have other scripts that search
 the databases that couldn't be made to cope with the 9 to 10
 transition but worked just fine if it was from 09 to 10, or 19 to 20.
 Probably my fault, but they all work that way and have been for
 years.  And I didn't have any trouble applying the labels.

I wasn't talking about the labels, but about the _slot numbers_.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [EMAIL PROTECTED]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say programmer or something like that.
-- Linus Torvalds


Re: Converting to FILE

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

on Mittwoch, 08. September 2004 at 19:27 you wrote to amanda-users:

The loop to create the vtapes runs from 1 to 12, the loop to label
starts with 01, 02, ...

GH I made them by hand, and chown-ed everything after.

I fixed the HOWTO anyway.

GH Let me save the fixed amanda.conf and see what happens, but I think
GH the installed libs are hardcoded to use /dev/nst0 thanks to my gh.cf
GH that I've published since forever here on this list.  How should I
GH modify that?  Its presently:

ONCE AGAIN  ;-) :

I think I have to add this to the tarball to stop you from doing this
;-)

GH ./configure --with-user=amanda \
GH  --with-group=disk \
GH  --with-owner=amanda \
GH  --with-gnu-ld --prefix=/usr/local \
GH  --with-tapedev=FILE:/amandatapes


GH Is this anywhere near usable?

I don't know. I assume it is ok. Maybe use

--with-tapedev=FILE:/amandatapes

Could you try this and tell us? Thanks.

Apart from that, AFAIK the configure-options are just defaults, and
your amanda.conf-settings override them so you are able to use
chg-disk in your conf without recompiling.

While I type this, I realize that I even use it that way myself.

;-)

-- 
best regards,
Stefan



Re: Converting to FILE

2004-09-08 Thread Gene Heskett
On Wednesday 08 September 2004 14:31, Stefan G. Weichinger wrote:
Hi, Gene,

on Mittwoch, 08. September 2004 at 19:27 you wrote to amanda-users:
The loop to create the vtapes runs from 1 to 12, the loop to label
starts with 01, 02, ...

GH I made them by hand, and chown-ed everything after.

I fixed the HOWTO anyway.

GH Let me save the fixed amanda.conf and see what happens, but I
 think GH the installed libs are hardcoded to use /dev/nst0 thanks
 to my gh.cf GH that I've published since forever here on this
 list.  How should I GH modify that?  Its presently:

ONCE AGAIN  ;-) :

I think I have to add this to the tarball to stop you from doing
 this ;-)

GH ./configure --with-user=amanda \
GH  --with-group=disk \
GH  --with-owner=amanda \
GH  --with-gnu-ld --prefix=/usr/local \
GH  --with-tapedev=FILE:/amandatapes


GH Is this anywhere near usable?

I don't know. I assume it is ok. Maybe use

--with-tapedev=FILE:/amandatapes

Could you try this and tell us? Thanks.

That would be the only line in that config driver thats dbl quoted, but I tried it, 
nuked everything and re-built and installed it, no real diffs to be seen.

I've rebuilt it several times with this config:
--
#!/bin/sh
# since I'm always forgetting to su amanda...
if [ `whoami` != 'amanda' ]; then
 echo
 echo  Warning 
 echo Amanda needs to be configured and built by the user amanda,
 echo but must be installed by user root.
 echo
 exit 1
fi
make clean
rm -f config.status config.cache
./configure --with-user=amanda \
 --with-group=disk \
 --with-owner=amanda \
 --with-gnu-ld \
 --prefix=/usr/local \
 --with-tapedev=FILE:/amandatapes \
 --with-debugging=/tmp/amanda-dbg/ \
 --with-tape-server=coyote.coyote.den \
 --with-amandahosts \
 --with-configdir=/usr/local/etc/amanda

make

--
This is run as user amanda, and root then installs the build.

Here is the whole amanda.conf, in case I've got a name clash someplace.
--
#
# amanda.conf - sample Amanda configuration file.  This started off life as
#   the actual config file in use at CS.UMD.EDU.
#
# If your configuration is called, say, csd, then this file normally goes
# in /usr/local/etc/amanda/csd/amanda.conf.
#

org DailySet1  # your organization name for reports
mailto [EMAIL PROTECTED] # space separated list of operators at your site
dumpuser amanda # the user to run dumps under

inparallel 3  # maximum dumpers that will run in parallel (max 63)
   # this maximum can be increased at compile-time,
   # modifying MAX_DUMPERS in server-src/driverio.h

maxdumps 3  # allowing one per disk make sense to me

taperalgo largestfit # will help fill tapes if runtapes 1!

netusage  800 Kbps # maximum net bandwidth for Amanda, in KB per sec

dumpcycle 8 days # the number of days in the normal dump cycle
runspercycle 8  # the number of amdump runs in dumpcycle days
   # (4 weeks * 5 amdump runs per week -- just weekdays)
tapecycle 28 tapes # the number of tapes in rotation
   # 4 weeks (dumpcycle) times 5 tapes per week (just
   # the weekdays) plus a few to handle errors that
   # need amflush and so we do not overwrite the full
   # backups performed at the beginning of the previous
   # cycle
autoflush yes

dumporder STTT # specify the priority order of each dumper
#   s - smallest size
#   S - biggest size
#   t - smallest time
#   T - biggest time
#   b - smallest bandwidth
#   B - biggest bandwidth
# try BTBTBTBTBTBT if you are not holding
# disk constrained
   # BUT, if you want streaming, start with the
   # big ones and work down

### ### ###
# WARNING: don't use `inf' for tapecycle, it's broken!
### ### ###

bumpsize 20 Mb  # minimum savings (threshold) to bump level 1 - 2
bumpdays 2  # minimum days at each level
bumpmult 2  # threshold = bumpsize * bumpmult^(level-1)

etimeout 900  # number of seconds per filesystem for estimates.
#etimeout -600  # total number of seconds for estimates.
# a positive number will be multiplied by the number of filesystems on
# each host; a negative number will be taken as an absolute total time-out.
# The default is 5 minutes per filesystem.

dtimeout 1800  # number of idle seconds before a dump is aborted.

ctimeout 4  # maximum number of seconds that amcheck waits
   # for each client host
 
tapebufs 120
# A positive integer telling taper how many 32k buffers to allocate.
# WARNING! If this is set too high, taper will not be able to allocate
# the memory and will die.  The default is 20 (640k).
# I wonder what the limit might be, its been running at 60 for months
# so try 80.  Still works fine, I have a gig of ram.

# Specify tape device and/or tape changer.  If you don't have a tape
# changer, and you don't want to use more than one tape per run of
# amdump, just comment out the