Re: log-2-web stuff for Amanda?

2002-02-13 Thread Johannes Niess

Sarah Hollings [EMAIL PROTECTED] writes:

 Hiya,
 
 Just thinking about coding up some perl scripts so I can see how my backups 
 are going from a web browser, and was wondering if there was anything like 
 that already - no point in reinventing the wheel.
 
 Something like Analog for Amanda I guess.  Even something pretty humble would 
 be fine.
 
 Anyone heard of a product, or rolled their own?

Sarah,

What about this one?

watch 'amstatus config file'

and display it via web server.

Johannes Nieß



Re: log-2-web stuff for Amanda?

2002-02-13 Thread Moritz Both


Sarah,

I was waiting for the right moment to post this on the list for a
while now... It is a perl cgi which allows to view what the amanda
server is doing and to start dumps and verifys and to label tapes. It
can use different configurations and by default prints the amverify
output or, if amanda seems to be running, the amstatus output.

It is in no way secure. It must be installed setuid root so it can run
the amanda programs in the way they want, thus, it is a major security
risk because it of cource does contain bugs. We run it on a server
which is not accessible from the outside, and the httpd allows acces
from certain workstations only. I hope.

The beginning has a small configuration section:

$amconfdir = /etc/amanda;
$amdatadir = /var/lib/amanda;
$amconfig = DailySet1;
$amrunuser = operator;
$amrungroup = disk;

It should all be obvious I think. $amrunuser and $amrungroup must be
set carefully... we all know how picky amanda is when it comes to
userids.

The script has been used on two RedHat machines only so far, using the
RPM amanda from Redhat. In different environments, there will probably
be the need for tweaking at some spots.

Greetings,
Moritz

 Hiya,

 Just thinking about coding up some perl scripts so I can see how my backups 
 are going from a web browser, and was wondering if there was anything like 
 that already - no point in reinventing the wheel.

 Something like Analog for Amanda I guess.  Even something pretty humble would 
 be fine.

 Anyone heard of a product, or rolled their own?


amhttp.pl
Description: Binary data


HP SureStore AutoLoader

2002-02-13 Thread Juanjo

Hello,

I'm trying to config a backup system with amanda-2.4.3b2. I have a HP
SureStore AutoLoader with 9 slots, I've put 8 backup tapes and have a
cleantape on slot 9.

I can manage the changer with no problems using mtx. My problems start
when running amcheck, which changerscript should I use? chg-mtx?
chg-multi? chg-zd-mtx? 

It's kinda urgent actually to get this thing up and running.

Changer device is /dev/sg0 and tape device seems to be /dev/nst0
(non-rewind version) and /dev/st0.

Thanks in advance for any help.

Regards.





Re: gtar: time_t value long string too large

2002-02-13 Thread Tom Van de Wiele

hi

I updated my tar version from 1.13 to 1.13.19 and ran my backups last
night.  Worked like a charm!

regards

Tom




Tom Van de Wiele wrote:
 
 Hello
 
 This is my dumpreport... could any of you amandaexperts tell me what is
 going on with hda4?  It seems hda3 was backed up correctly (or was
 it?).  time_t value too large seems to me like someone defined some sort
 of integer and it overflowed... no?
 
 Help would be greatly appreciated!
 
 best regards
 
 Tom
 
 [begin report]
 
 These dumps were to tape delta-000.
 The next tape Amanda expects to use is: a new tape.
 
 FAILURE AND STRANGE DUMP SUMMARY:
   delta.edul hda4 lev 0 FAILED [/bin/tar returned 2]
 
 STATISTICS:
   Total   Full  Daily
       
 Estimate Time (hrs:min)0:00
 Run Time (hrs:min) 0:39
 Dump Time (hrs:min)0:08   0:08   0:00
 Output Size (meg)5589.0 5589.00.0
 Original Size (meg)  5589.0 5589.00.0
 Avg Compressed Size (%) -- -- --
 Filesystems Dumped1  1  0
 Avg Dump Rate (k/s) 11815.811815.8--
 
 Tape Time (hrs:min)0:28   0:28   0:00
 Tape Size (meg)  5589.1 5589.10.0
 Tape Used (%)  28.0   28.00.0
 Filesystems Taped 1  1  0
 Avg Tp Write Rate (k/s)  3411.5 3411.5--
 
 FAILED AND STRANGE DUMP DETAILS:
 
 /-- delta.edul hda4 lev 0 FAILED [/bin/tar returned 2]
 sendbackup: start [delta.domain.com:hda4 level 0]
 sendbackup: info BACKUP=/bin/tar
 sendbackup: info RECOVER_CMD=/bin/tar -f... -
 sendbackup: info end
 ? gtar: time_t value 18446744073550462009 too large (max=68719476735)
 ? gtar: time_t value 18446744073550462009 too large (max=68719476735)
 ? gtar: time_t value 18446744073550469897 too large (max=68719476735)
 ? gtar: time_t value 18446744073550469897 too large (max=68719476735)
 ? gtar: time_t value 18446744073550472736 too large (max=68719476735)
 ? gtar: time_t value 18446744073550472736 too large (max=68719476735)
 ? gtar: time_t value 18446744073550472897 too large (max=68719476735)
 ? gtar: time_t value 18446744073550472897 too large (max=68719476735)
 ? gtar: time_t value 18446744073550473024 too large (max=68719476735)
 ? gtar: time_t value 18446744073550473024 too large (max=68719476735)
 ? gtar: time_t value 18446744073550472270 too large (max=68719476735)
 ? gtar: time_t value 18446744073550472270 too large (max=68719476735)
 ? gtar: time_t value 18446744073550472615 too large (max=68719476735)
 ? gtar: time_t value 18446744073550472615 too large (max=68719476735)
 ? gtar: time_t value 18446744073550471001 too large (max=68719476735)
 ? gtar: time_t value 18446744073550471001 too large (max=68719476735)
 ? gtar: time_t value 18446744073550460717 too large (max=68719476735)
 ? gtar: time_t value 18446744073550460717 too large (max=68719476735)
 | Total bytes written: 758640640
 ? gtar: Error exit delayed from previous errors
 sendbackup: error [/bin/tar returned 2]
 \
 
 NOTES:
   taper: tape delta-000 kb 5723200 fm 1 [OK]
 
 DUMP SUMMARY:
  DUMPER STATSTAPER STATS
 HOSTNAME DISKL ORIG-KB OUT-KB COMP% MMM:SS  KB/s MMM:SS
 KB/s
 -- -
 
 delta.domain hda30 57231685723168   --8:0411815.7
 27:583411.5
 delta.domain hda40 FAILED
 ---
 
 (brought to you by Amanda version 2.4.2p2)
 
 [end report]
 
 --
 Tom Van de Wiele
 System Administrator
 
 Eduline
 Colonel Bourgstraat 105a
 1140 Brussel
 http://www.eduline.be

-- 
Tom Van de Wiele
System Administrator

Eduline 
Colonel Bourgstraat 105a
1140 Brussel
http://www.eduline.be



Re: HP SureStore AutoLoader

2002-02-13 Thread Byron Schlemmer

On Wed, 13 Feb 2002, Juanjo wrote:

 Hello,

 I'm trying to config a backup system with amanda-2.4.3b2. I have a HP
 SureStore AutoLoader with 9 slots, I've put 8 backup tapes and have a
 cleantape on slot 9.

 I can manage the changer with no problems using mtx. My problems start
 when running amcheck, which changerscript should I use? chg-mtx?
 chg-multi? chg-zd-mtx?

 It's kinda urgent actually to get this thing up and running.

 Changer device is /dev/sg0 and tape device seems to be /dev/nst0
 (non-rewind version) and /dev/st0.

We have prrtty much the same setup. I simply used mtx to change the
tapes and set amanda to use the manual change device. :)

-byron

--

Those who do not understand Unix are condemned to reinvent it, poorly.

   -- Henry Spencer




Re: HP SureStore AutoLoader

2002-02-13 Thread Juanjo

Well, I downloaded 2.4.3b2 cause got no success with Debian package which
was 2.4.2p2, so I thought that newer version might have better chg
scripts.

Btw: I'm trying with chg-scsi (hard since it aint script) and it generated
a big big file (6gig and growing up), is it normal?

Tnx


-Original Message-
From: Kasper Edwards [EMAIL PROTECTED]
To: Juanjo [EMAIL PROTECTED]
Date: Wed, 13 Feb 2002 11:07:36 +0100
Subject: Re: HP SureStore AutoLoader

 At 10:37 13-02-2002 +0100, Juanjo wrote:
 Hello,
 
 I'm trying to config a backup system with amanda-2.4.3b2.
 
 I hope you are aware that your are using the beta version. If you want
 this 
 thing running urgent I would suggest Amanda-2.4.2p2.
 
 
 best,
 
 Kasper
 





Re: HP SureStore AutoLoader

2002-02-13 Thread Kasper Edwards

At 11:34 13-02-2002 +0100, Juanjo wrote:
Well, I downloaded 2.4.3b2 cause got no success with Debian package which
was 2.4.2p2, so I thought that newer version might have better chg
scripts.

Could this just be related to the packaged version? It seems that many 
people has problems with packaged versions of amanda. For that reason its 
always encuraged to compile and install from source.

Btw: I'm trying with chg-scsi (hard since it aint script) and it generated
a big big file (6gig and growing up), is it normal?

I have no experience with the chg scripts, but it sounds very wrong.

best

Kasper




-Original Message-
From: Kasper Edwards [EMAIL PROTECTED]
To: Juanjo [EMAIL PROTECTED]
Date: Wed, 13 Feb 2002 11:07:36 +0100
Subject: Re: HP SureStore AutoLoader

  At 10:37 13-02-2002 +0100, Juanjo wrote:
  Hello,
  
  I'm trying to config a backup system with amanda-2.4.3b2.
 
  I hope you are aware that your are using the beta version. If you want
  this
  thing running urgent I would suggest Amanda-2.4.2p2.
 
 
  best,
 
  Kasper
 




Re: HP SureStore AutoLoader

2002-02-13 Thread Juanjo

My changer script cannot find -clean -access -status and -barcodes files,
how are those generated first time? Manually?





Strange Error with Amanda

2002-02-13 Thread Wayne Byarlay

Greetings.

I have encountered a weird problem. Everything's been running fine for
months; running a 15-tape rotation cycle and backing up maybe about 36
filesystems on about 8 servers or so.

But this morning, I get the e-mail which Amanda dutifully sends every
morning... it says:
--

DailySet1 AMANDA MAIL REPORT FOR BogusMonth 0, 0

*** THE DUMPS DID NOT FINISH PROPERLY!

These dumps were to tapes .
Tonight's dumps should go onto 1 tape: Daily03.

FAILURE AND STRANGE DUMP SUMMARY:
  chaffee/ RESULTS MISSING
etc. (Every filesystem  server RESULTS MISSING)

STATISTICS:
  Total   Full  Daily
      
Dump Time (hrs:min)0:00   0:00   0:00   (0:00 start)
Output Size (meg)   0.00.00.0
Original Size (meg) 0.00.00.0
Avg Compressed Size (%) -- -- --
Tape Used (%)   0.00.00.0
Filesystems Dumped0  0  0
Avg Dump Rate (k/s) -- -- --
Avg Tp Write Rate (k/s) -- -- --


DUMP SUMMARY:
  DUMPER STATS  TAPER
STATS
HOSTNAME  DISK   L  ORIG-KB   OUT-KB COMP%  MMM:SS   KB/s  MMM:SS
KB/s
-- -- --

chaffee/
MISSING 
(etc every filesystem  server, MISSING)

(brought to you by Amanda version 2.4.1p1)

Interesting, eh? Does anybody have a guess what could cause this?




Re: amdump question

2002-02-13 Thread Mary N Koroleva

According to John R. Jackson:
 I have problem with amdump: host which I try to dump 
 does not respond (by time-out) but it is alive.
 ...
 FAIL planner local /dev/rsd0a 0 [Request to local timed out.]
 
 Did you run amcheck?  What did it say?
 
 If you get timeouts there, look at the FAQ at www.amanda.org.  It has
 two articles that go over this problem in depth.

mnk:/etc/amanda | 425 amcheck test
Amanda Tape Server Host Check
-
/srvs/hold: 9678351 KB disk space available, that's plenty.
ERROR: cannot overwrite active tape Daily01.
   (expecting a new tape)
NOTE: skipping tape-writable test.
Server check took 4.727 seconds.

Amanda Backup Client Hosts Check

WARNING: aaa.nic.ru: selfcheck request timed out.  Host down?
Client check: 1 host checked in 29.986 seconds, 1 problem found.

(brought to you by Amanda 2.4.1p1)


mnk:/etc/amanda | 426 less /etc/services | grep amanda
amanda  10080/udp   # regular BSD authenticated aman
da
amandaidx   10082/tcp   # amanda index server
amidxtape   10083/tcp   # amanda index tape server
kamanda 10081/udp   # Kerberos authenticated amanda


mnk:/etc/amanda | 427 less /etc/inetd.conf | grep amanda
amanda  dgram   udp waitamanda  /usr/contrib/lib/amanda/amandad amandad
amandaidx   stream  tcp nowait  amanda  /usr/contrib/lib/amanda/amindexd
 amindexd
amidxtape   stream  tcp nowait  amanda  /usr/contrib/lib/amanda/amidxtap
ed amidxtaped
kamanda dgram   udp waitamanda  /usr/contrib/lib/amanda/amandad amandad
-krb4

mnk:/etc/amanda | 428 ls -la /usr/contrib/lib/amanda/amandad
-rwxr-xr-x  1 operator  operator  172700 Oct  9  2000 /usr/contrib/lib/amanda/am
andad*

The user amanda is included in group operator. 

Would you be so kind to promt me what is my mistake and amcheck
write about error?


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


-- 
Mary N Koroleva  Russian Institute
E-mail: [EMAIL PROTECTED]for
Phone: +7 095 737 0601Public Networks



Re: Problems with changer device

2002-02-13 Thread Manuel Monteiro

Hi,

Thanks for the tips and sorry for this late answer (vacations :).


 AIR you do have an eject=1 in the config file.  I didn't need
 that here.  Try it without it, as in comment that out, just for
 grins.  I don't think a recompile is needed to change that.


I've put eject=0 in the config and it worked perfectly, 'amtape show' now
goes to all tapes.

Now i'll have to check the rest of my configuration, and learn a bit more
about tapecycle, runtapes, dumpcycle, runspercycle, etc. For now i will use
one localdisk for test and later i'll try clients on other linux hosts,
Alpha/Tru64 and Windows.
My first test failed in amanda check with:

Amanda Backup Client Hosts Check

WARNING: localhost: selfcheck request failed: timeout waiting for ACK
Client check: 1 host checked in 30.013 seconds, 1 problem found

I have a lot to learn!

One thing that i don't understand is if i want to backup a filesystem with
30GB (or more) of data will amanda span the data thru the tapes needed? (i
meen if amanda start the backup to Tape-000 when the tape ends will it
automaticly continue this backup on Tape-001)


Thanks. Cheers,

Manuel

PS: When i have everything working i'll send a summary with my experience to
the list.



Manuel Monteiro
Centro de Astrofísica   Internet : http://www.astro.up.pt
Universidade do Porto E-mail   : [EMAIL PROTECTED]
Rua das Estrelas  Tel. Directo: (+351) 226 089 847
4150-762 Porto  Tel. Geral  : (+351) 226 089 830
Portugal




client check up problem

2002-02-13 Thread B N Chatterjee


Hi ,

in my backup client ( y.net.in ) i have entries .rhosts  /etc/hosts.equiv
as follows 

x   root
x.net.in  root 

my backup server is  x.net.in 

still it gives amcheck as below ( when done in server ) 
am i missing something ? 


amcheck -cl output 


x.net.in# amcheck -cl config
Amanda Tape Server Host Check
-
Holding disk /ps2/amanda: 6848000 KB disk space available, that's plenty
NOTE: skipping tape checks
Server check took 0.003 seconds

Amanda Backup Client Hosts Check

ERROR: x.net.in: [access as root not allowed from root@x]
amandahostsauth failed
Client check: 1 host checked in 0.037 seconds, 1 problem found

(brought to you by Amanda 2.4.2p2)






Naming convention of tape files?

2002-02-13 Thread cosimo

Is there any way to get amanda to change its naming convention of files on 
the tape? I'd like to have it use something like:

WINS_NAME_DIRECTORY.tar.gz

(Which brings me to my second q - is it possible to get amanda to make 
tar.gz's instead of its own format? I've found some info on this but I'm 
not really seeing much info on it out there. I've got a tapeless setup)








Backup failure, trying to understand amanda's email report

2002-02-13 Thread cosimo

Got me on this one..

The machine being backed up is a windows 98 machine with a share called 
docs - so this is being done with smbclient. Other windows dumps seem to 
work fine. I'm thinking this person may have disconnected their computer 
halfway through the dump? 

Here are some pieces of the dump email ... (I replaced the wins name with 
)


FAILURE AND STRANGE DUMP SUMMARY:
  adv2.kello //x/docs lev 0 STRANGE

. [snip some stuff ]

FAILED AND STRANGE DUMP DETAILS:

/-- adv2.kello ///docs lev 0 STRANGE
sendbackup: start [adv2.kellogg.nwu.edu://xx/docs level 0]
sendbackup: info BACKUP=/usr/bin/smbclient
sendbackup: info RECOVER_CMD=/usr/bin/smbclient -f... -
sendbackup: info end
? Error reading file \Advertising\CD1\MODULE2\VIDEOS\BULOVA.MPG : code 0
? Didn't get entire file. size=9286684, nread=1179360
? code 0 opening remote file \Advertising\CD1\MODULE2\VIDEOS\LUCKYS~1.MPG 
(\Advertising\CD1\MODULE2\VIDEOS\)
? code 0 opening remote file \Advertising\CD1\MODULE2\VIDEOS\MARLBORO.MPG 
(\Advertising\CD1\MODULE2\VIDEOS\)
? code 0 opening remote file \Advertising\CD1\MODULE2\VIDEOS\SOS.MPG 
(\Advertising\CD1\MODULE2\VIDEOS\)
? code 0 opening remote file \Advertising\CD1\MODULE2\VIDEOS\STRONG~1.MPG 
(\Advertising\CD1\MODULE2\VIDEOS\)
? code 0 opening remote file \Advertising\CD1\MODULE2\VIDEOS\STRONG~2.MPG 
(\Advertising\CD1\MODULE2\VIDEOS\)
? code 0 opening remote file \Advertising\CD1\MODULE2\VIDEOS\UNCOLA.MPG 
(\Advertising\CD1\MODULE2\VIDEOS\)
? code 0 opening remote file \Advertising\CD1\MODULE2\VIDEOS\WESTIN~1.MPG 
(\Advertising\CD1\MODULE2\VIDEOS\)
? code 0 listing \Advertising\CD1\MODULE2\PRINTADS\*
? code 0 listing \Advertising\CD1\MODULE2\COMMENTS\*
? code 0 listing \Advertising\CD1\MODULE2\AUDIO\*
? code 0 listing \Advertising\CD1\MODULE1\*
? code 0 listing \Advertising\CD1\CLASS1~1\*


 And it goes on like this for quite some time ... Note that CD1 isn't 
actually a CD in a drive, its just a directory name. 

| tar: dumped 263 files and directories
| Total bytes written: 473773568
sendbackup: size 462670
sendbackup: end
\

Finally ...

DUMP SUMMARY:
 DUMPER STATSTAPER STATS 
HOSTNAME DISKL ORIG-KB OUT-KB COMP% MMM:SS  KB/s MMM:SS  KB/s
-- - 
adv2.kellogg -/backupdoc 15710   5760   --3:30  27.2   0:0025138.3
adv2.kellogg -/docs 0  462780 462816   --   31:31 244.8   0:538705.3

(brought to you by Amanda version 2.4.3b2)




planner gives disk offline?

2002-02-13 Thread Juanjo

Hello,

Finally, went back to stable release of amanda (2.4.2p2) from sources,
since debian package seems to be broken.

Looking at logs got this:

START driver date 20020213
START planner date 20020213
INFO planner Adding new disk servera:/data0.
FAIL planner servera /data0 0 [disk /data0 offline on servera?]
FINISH planner date 20020213
WARNING driver WARNING: got empty schedule from planner
STATS driver startup time 1.047

Any hints buds?

Regards.





Reg:Do we have to label the cleaning tape?

2002-02-13 Thread chandrasekar

Hi everyone
   I have a HP-DAT 24*6 tape drive attached to my amanda Back-up server. I 
have few questions.
i) I had earlier labelled all the six tapes. Then I replaced one of the 
tapes(slot 6) with the cleaning tape. I tried labelling the cleaning tape 
with the same label that I gave for the normal tape. But it gave me this error
amlabel: could not load slot 6: Cleaning Cartridge Installed and Ejected
ii) How do I in general relabel the tapes?When I tried amlabel it says 
tape already labelled .
iii) How do I eject my magazine? I used the eject button in the tape drive to 
eject the magazine to place the cleaning tape into the magazine, but it loads 
the first tape and not the one(say 4) which was there before I ejected(which 
seems quite obvious). But how do I bring back to the original 
configuration(ie 4)
iv) How do I skip the tapelist order? Suppose I want to backup for today at 
tape 5 while the default is 3. what should I do in this case? 
  I would be grateful if I receive answer to most of the questions if not 
all. thanks in advance
regards
chandrasekar

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




RE: Do we have to label the cleaning tape?

2002-02-13 Thread Davidson, Brian

Use amrmtape to remove a tape from the tapelist.  You may then relabel your
tape.

-Original Message-
From: chandrasekar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 12:22 PM
To: [EMAIL PROTECTED]
Subject: Reg:Do we have to label the cleaning tape?


Hi everyone
   I have a HP-DAT 24*6 tape drive attached to my amanda Back-up server. I 
have few questions.
i) I had earlier labelled all the six tapes. Then I replaced one of the 
tapes(slot 6) with the cleaning tape. I tried labelling the cleaning tape 
with the same label that I gave for the normal tape. But it gave me this
error
amlabel: could not load slot 6: Cleaning Cartridge Installed and Ejected
ii) How do I in general relabel the tapes?When I tried amlabel it says 
tape already labelled .
iii) How do I eject my magazine? I used the eject button in the tape drive
to 
eject the magazine to place the cleaning tape into the magazine, but it
loads 
the first tape and not the one(say 4) which was there before I ejected(which

seems quite obvious). But how do I bring back to the original 
configuration(ie 4)
iv) How do I skip the tapelist order? Suppose I want to backup for today at 
tape 5 while the default is 3. what should I do in this case? 
  I would be grateful if I receive answer to most of the questions if
not 
all. thanks in advance
regards
chandrasekar

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



AIX runtar permissions problem

2002-02-13 Thread Carl Wilhelm Soderstrom

I'm trying to set up an amanda client on an AIX 4.3.3 machine. amcheck -c
doesn't complain about anything; but when backups are tried, the amanda
result mail complains about the disks possibly being offline.

the runtar debug files in /tmp/amanda have the following:
runtar: debug 1 pid 44618 ruid 431 euid 0 start time Tue Feb 12 00:48:34 
2002 
/usr/local/bin/tar: version 2.4.2p2 
error [must be invoked by root] 

and indeed if one tries to do a 'runtar' by hand, as the amanda user (whom
the backups are configured to run as), the same error message results.
runtar is SUID root, tho, with perms 4750.
runtar works fine when run as root.
here's the long listing of the /usr/local/libexec directory, where the
amanda binaries reside:
-rwxr-xr-x   1 root system298383 Feb 08 15:32 amandad
-rw-r--r--   1 root system   227 Feb 08 15:33 amcat.awk
-rwxr-xr-x   1 root system427793 Feb 08 15:33 amcleanupdisk
-rwxr-xr-x   1 root system278057 Feb 08 15:33 amidxtaped
-rwxr-xr-x   1 root system708033 Feb 08 15:33 amindexd
-rwxr-xr-x   1 root system323618 Feb 08 15:33 amlogroll
-rw-r--r--   1 root system 15709 Feb 08 15:33 amplot.awk
-rw-r--r--   1 root system  3283 Feb 08 15:33 amplot.g
-rw-r--r--   1 root system  3293 Feb 08 15:33 amplot.gp
-rwxr-xr-x   1 root system615056 Feb 08 15:33 amtrmidx
-rwxr-xr-x   1 root system612755 Feb 08 15:33 amtrmlog
-rwsr-x---   1 root system219063 Feb 08 15:32 calcsize
-rwxr-xr-x   1 root system 10060 Feb 08 15:33 chg-chio
-rwxr-xr-x   1 root system  8253 Feb 08 15:33 chg-chs
-rwxr-xr-x   1 root system  5788 Feb 08 15:33 chg-manual
-rwxr-xr-x   1 root system  4101 Feb 08 15:33 chg-mtx
-rwxr-xr-x   1 root system  9106 Feb 08 15:33 chg-multi
-rwxr-xr-x   1 root system  6450 Feb 08 15:33 chg-rth
-rwxr-xr-x   1 root system619591 Feb 08 15:33 chg-scsi
-rwxr-xr-x   1 root system 15758 Feb 08 15:33 chg-zd-mtx
-rwxr-xr-x   1 root system590179 Feb 08 15:33 driver
-rwsr-x---   1 root system576267 Feb 08 15:33 dumper
-rwsr-x---   1 root system199771 Feb 08 15:32 killpgrp
-rwxr-xr-x   1 root system  4584 Feb 08 15:33 patch-system
-rwsr-x---   1 root system713726 Feb 08 15:33 planner
-rwsr-x---   1 root system194233 Feb 08 15:32 rundump
-rwsr-x---   1 root system196080 Feb 08 15:32 runtar
-rwxr-xr-x   1 root system252894 Feb 08 15:33 selfcheck
-rwxr-xr-x   1 root system520361 Feb 08 15:33 sendbackup
-rwxr-xr-x   1 root system462489 Feb 08 15:33 sendsize
-rwxr-xr-x   1 root system702266 Feb 08 15:33 taper
-rwxr-xr-x   1 root system194051 Feb 08 15:33 versionsuffix

the amanda user *is* part of the system group.

amanda was installed from a binary found at:
http://www.cs.ucy.ac.cy/~ank/amanda/binaries/
(which seems to be unresponsive at the moment).

the machine doesn't have a compiler; so recompiling isn't really a good
option.

what am I missing here? it's probably some AIX-specific thing.

Carl Soderstrom.
-- 
Network Engineer
Real-Time Enterprises
(952) 943-8700



Re: HP SureStore AutoLoader

2002-02-13 Thread Gene Heskett

On Wednesday 13 February 2002 06:46 am, Juanjo wrote:
My changer script cannot find -clean -access -status and -barcodes
 files, how are those generated first time? Manually?

You'll need to 'touch' them the first time, and I believe the barcodes 
thing is still an outstanding bug.  Thomas Hepper is working on that in 
his spare time, he is the chg-scsi guy.

Cheers, Gene



Re: Reg:Do we have to label the cleaning tape?

2002-02-13 Thread Gene Heskett

On Wednesday 13 February 2002 12:21 pm, chandrasekar wrote:
Hi everyone
   I have a HP-DAT 24*6 tape drive attached to my amanda Back-up
 server. I have few questions.
i) I had earlier labelled all the six tapes. Then I replaced one of
 the tapes(slot 6) with the cleaning tape. I tried labelling the
 cleaning tape with the same label that I gave for the normal tape.
 But it gave me this error amlabel: could not load slot 6: Cleaning
 Cartridge Installed and Ejected ii) How do I in general relabel the
 tapes?When I tried amlabel it says tape already labelled .

You don't label the read-only cleaning tape, but you do have to tell it 
via amanda.conf or chg-scsi.conf, what slot the tape is in.  Be aware 
that amanda uses base 0, so your drives slot 1 is amanda slot 0 etc.

iii) How do I eject my magazine? I used the eject button in the tape
 drive to eject the magazine to place the cleaning tape into the
 magazine, but it loads the first tape and not the one(say 4) which
 was there before I ejected(which seems quite obvious). But how do I
 bring back to the original configuration(ie 4)

First do an amtape /config/ rest, followed by an amcheck /config/ which 
should leave the drive with the next required tape loaded if it is in 
the magazine.  Otherwise reload the magazine with the next set of tapes 
and repeat.  Amanda needs a base camp to start from by doing the reset 
after you've had the magazine out.  On some drives (Seagate robots) you 
can push-button up the slot to load if the same tape is still in the 
same slot as before the magazine was ejected.

iv) How do I skip the tapelist order? Suppose I want to backup for
 today at tape 5 while the default is 3. what should I do in this
 case? I would be grateful if I receive answer to most of the
 questions if not all. thanks in advance

You'll be far better off not to try and second guess what amanda wants 
to do.  By properly configureing the amanda.conf file, you can tell 
amanda the basics of what you want to do, and then let amanda figure it 
out from there.  You can even do an amdump out of sequence, and amanda 
will simply use up the next set of guesses it would have used at 2am or 
whenever you have cron running it, tomorrow morning, etc etc.

Once you get amanda figured out, and this does take a while, then you 
might feel good about bossing her around, but for now, just buy her 
lunch.   :-)



Re: planner and sendsize

2002-02-13 Thread Joshua Baker-LePain

On Wed, 13 Feb 2002 at 6:23pm, Juanjo wrote

 Here it goes something interesting too:
 
 sendsize.log
 
 calculating for amname '/data0', dirname '/data0'
 sendsize: getting size via dump for /data0 level 0
 sendsize: running /sbin/dump 0Ssf 1048576 - /dev/md0
 /dev/md0: Bad magic number in super-block while opening filesystem
   DUMP: The ENTIRE dump is aborted.
 running /usr/local/amanda/libexec/killgrp
 .
 
Hmmm, what filesystem are you running on that partition?  If it's ext2, 
then you may need to talk to the dump/restore maintainer about supporting 
software RAID partitions.  You could also try upgrading dump/restore.

-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University




Permission for dump user on backup server

2002-02-13 Thread dpf

After many a night ripping increasing amount of hair out I think I've 
tracked down my problem but don't know how to solve it.

I'm trying to backup /export/home/staff on the backup server so the 
disklist line looks like this:

localhost /export/home/staff

My dump user is not amanda it's bin but when I run a backup using 
this user I only get about 250MB Data with no error messages. 
Needless to say /export/home/staff has a lot more than 250MB it's 
more like several GB. Now here is the interesting part: 
if I do a du -sk /export/home/staff it reports the 250MB so it 
suddenly struck me that it's only backing up 250MB because that's 
all the bin user has access to.

This assumption may be wrong but if it's not how do I give bin 
access to these areas.

-
David Flood
Systems Administrator
[EMAIL PROTECTED]
Tel: +44 (0)1224 262721
Robert Gordon University
School of Computing
St. Andrews Street
Aberdeen
-



RE: Reg:Do we have to label the cleaning tape?

2002-02-13 Thread Bort, Paul

 
 iii) How do I eject my magazine? I used the eject button in the tape
  drive to eject the magazine to place the cleaning tape into the
  magazine, but it loads the first tape and not the one(say 4) which
  was there before I ejected(which seems quite obvious). But how do I
  bring back to the original configuration(ie 4)
 
 First do an amtape /config/ rest, followed by an amcheck 
 /config/ which 
 should leave the drive with the next required tape loaded if it is in 
 the magazine.  Otherwise reload the magazine with the next 
 set of tapes 
 and repeat.  Amanda needs a base camp to start from by doing 
 the reset 
 after you've had the magazine out.  On some drives (Seagate 
 robots) you 
 can push-button up the slot to load if the same tape is still in the 
 same slot as before the magazine was ejected.
 
I can confirm that if the same slot is loaded before and after the magazine
change, AMANDA is ok. When I do a mag change on my Exabyte EXB-10h, I just
eject the tape that is in the drive, take out the mag, put in the mag, and
put the tape from the same slot in the mag in the drive. No need to reset,
and the regularly scheduled amcheck steps to the next tape and everything is
fine. 



Re: planner and sendsize

2002-02-13 Thread Juanjo



-Original Message-
From: Joshua Baker-LePain [EMAIL PROTECTED]
To: Juanjo [EMAIL PROTECTED]
Date: Wed, 13 Feb 2002 13:13:12 -0500 (EST)
Subject: Re: planner and sendsize

 On Wed, 13 Feb 2002 at 6:23pm, Juanjo wrote
 
  Here it goes something interesting too:
  
  sendsize.log
  
  calculating for amname '/data0', dirname '/data0'
  sendsize: getting size via dump for /data0 level 0
  sendsize: running /sbin/dump 0Ssf 1048576 - /dev/md0
  /dev/md0: Bad magic number in super-block while opening filesystem
DUMP: The ENTIRE dump is aborted.
  running /usr/local/amanda/libexec/killgrp
  .
  
 Hmmm, what filesystem are you running on that partition?  If it's ext2,
 then you may need to talk to the dump/restore maintainer about
 supporting 
 software RAID partitions.  You could also try upgrading dump/restore.
 
 -- 
 Joshua Baker-LePain
 Department of Biomedical Engineering
 Duke University
 

Well, what I want to backup is a directory named /data0, which is inside 
a reiserfs filesystem mounted on /dev/md0 which is a raid device...

gathering more info I've seen DUMP failing, but how come it's trying to 
dump it?? I simply want backup of /data0, so tar should be the way, no?

Perhaps tar is failing at some point?

Regards.





backups inexplicably timing out.

2002-02-13 Thread Carl Wilhelm Soderstrom

Our backup server has spontaneously stopped doing backups of itself, after
working fine for several months. it backs up (most) other clients fine; but
the daily mail message says:

  localhost  /var/tmp lev 0 FAILED [Request to localhost timed out.]
  localhost  /var/lib/rpm lev 0 FAILED [Request to localhost timed out.]
  localhost  /etc lev 0 FAILED [Request to localhost timed out.]

the disklist entry for localhost is:
localhost /etc localhost-nocomp-5am -1 local
localhost /var/lib/rpm tar-comp-high -1 local #(whoops, forgot to change the
dumptype last night).
localhost /var/tmp localhost-nocomp-5am -1 local

and the amanda.conf entries for  those dumptypes are:
define dumptype global {
comment Global definitions
# This is quite useful for setting global parameters, so you don't have
# to type them everywhere.  All dumptype definitions in this sample file
# do include these definitions, either directly or indirectly.
# There's nothing special about the name `global'; if you create any
# dumptype that does not contain the word `global' or the name of any
# other dumptype that contains it, these definitions won't apply.
# Note that these definitions may be overridden in other
# dumptypes, if the redefinitions appear *after* the `global'
# dumptype name.
# You may want to use this for globally enabling or disabling
# indexing, recording, etc.  Some examples:
index yes
# record no
}

define dumptype tar-comp-high {
comment very important partitions on fast machines
global
program GNUTAR
compress client best
priority high
}

define dumptype localhost-nocomp-5am {
comment localhost, so don't compress. don't use the holdingdisk, so
it won't beat up our one hdd
global
program GNUTAR
compress none
holdingdisk no
starttime 500  # for some reason this doesn't work
priority low
}

I've been messing around with options lately; so if some things don't make
sense, that's probably why. please tell me what could be better, tho. :)

this thing *had* been working fine for some months; the only thing that
changed, was that one client machine was reinstalled/upgraded, and had
screwed-up NFS mounts for a while. that's been fixed now, but it seems like
it was interfering with amanda backups for a while, on those clients that
had non-functioning/stale NFS mounts from that box.

there's plenty of disk space.

the debug files in /tmp/amanda seem fine and normal; the amandad and runtar
files exist and don't have any errors. the 'sendbackup' debug file doesn't
exist, tho. :(
(and yes, the sendbackup binary exists and has the same permissions as a
working system does).

looks like there's only one 'amandad' connect notice in /var/log/secure,
rather than one for each disk to be backed up, like on other systems. I
don't see any errors in syslog or other logs, tho.

where do I continue debugging?

Carl Soderstrom.
-- 
Network Engineer
Real-Time Enterprises
(952) 943-8700



Re: backups inexplicably timing out.

2002-02-13 Thread Carl Wilhelm Soderstrom

On Wed, Feb 13, 2002 at 01:00:33PM -0600, Carl Wilhelm Soderstrom wrote:
 Our backup server has spontaneously stopped doing backups of itself, after
 working fine for several months. 

oh, and in case I didn't imply it; I did try amcheck, and it works fine.

Carl.
-- 
Network Engineer
Real-Time Enterprises
(952) 943-8700



Re: planner and sendsize

2002-02-13 Thread Joshua Baker-LePain

On Wed, 13 Feb 2002 at 7:38pm, Juanjo wrote

 Well, what I want to backup is a directory named /data0, which is inside 
 a reiserfs filesystem mounted on /dev/md0 which is a raid device...

Then you can't use dump -- you must use tar.

 gathering more info I've seen DUMP failing, but how come it's trying to 
 dump it?? I simply want backup of /data0, so tar should be the way, no?

Yep.  But you have to specify tar in your dumptype in amanda.conf.

 Perhaps tar is failing at some point?
 
It's never getting started.

-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University




Extracting Samba shares

2002-02-13 Thread Rafe Thayer

Hi Folks,

I'm trying to extract the samba shares that I've backed up just to make
sure I know how when an emergency happens.  Not sure what's going wrong
though.  In amrecover, I do:

setdisk //huato/users.glenn.glenn

And I get the error:
501 No index records for disk: //huato/users.glenn.glenn Invalid?

The amdump reports have said that the backup of this directory was
STRANGE, but only because a few files were open on the machine (from
what I can decipher of the SAMBA warnings)at that time.  It reported
backing up the rest of them, shouldn't I be able to access those?

Thanks for your help,

Rafe Thayer




Re: Extracting Samba shares

2002-02-13 Thread Joshua Baker-LePain

On Wed, 13 Feb 2002 at 12:16pm, Rafe Thayer wrote

 I'm trying to extract the samba shares that I've backed up just to make
 sure I know how when an emergency happens.  Not sure what's going wrong
 though.  In amrecover, I do:
 
 setdisk //huato/users.glenn.glenn
 
 And I get the error:
 501 No index records for disk: //huato/users.glenn.glenn Invalid?
 
Are you 'sethost'ed to the right host?  Do you see files in the indexdir 
for that host?

Is indexing turned on in amanda.conf?

-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University




run out of space

2002-02-13 Thread Monserrat Seisdedos Nuñez



Hello:
i know amanda  does a check before dump data, but does it include a space
tape check??
i wonder what happen if the fs are grater than the tape capacity, is the
entire backup thrown away or it back up only the fs that fit the tape?
Thanks



Re: run out of space

2002-02-13 Thread Dan Wilder

On Tue, Feb 12, 2002 at 09:58:04AM +0100, Monserrat Seisdedos Nu?ez wrote:
 
 
 Hello:
 i know amanda  does a check before dump data, but does it include a space
 tape check??
 i wonder what happen if the fs are grater than the tape capacity, is the
 entire backup thrown away or it back up only the fs that fit the tape?
 Thanks
 

It estimates based on its guess of compression and the information
you put in tapetype.

If a dump of a single fs is greater than the tape capacity, it
produces an error message.  

The common solution is to use gnu tar and back up subdirectories
of the file system.  

-- 
-
 Dan Wilder [EMAIL PROTECTED]   Technical Manager  Editor
 SSC, Inc. P.O. Box 55549   Phone:  206-782-8808
 Seattle, WA  98155-0549URL http://embedded.linuxjournal.com/
-



RE: run out of space

2002-02-13 Thread Tuthill, Ed

The amcheck does not check tape space, only that there is a labelled tape.
It should know the amount of tape space available based on the tapetype
configured.

When the dump actually happens, amanda will first reduce full backups to
incremental backups if there is too much data for the tape size, and then
exclude file systems that are too big to fit on the tape if it can't do
incrementals (such as if you have full-only file systems marked).

It will back up as much as it can, basically.

 -Original Message-
 From: Monserrat Seisdedos Nuñez [mailto:[EMAIL PROTECTED]]
 Sent: 12 February, 2002 00:58
 To: Amanda-Users (E-mail)
 Subject: run out of space
 
 
 
 
 Hello:
 i know amanda  does a check before dump data, but does it 
 include a space
 tape check??
 i wonder what happen if the fs are grater than the tape 
 capacity, is the
 entire backup thrown away or it back up only the fs that fit the tape?
 Thanks
 



amverify don't work

2002-02-13 Thread Jose Manuel dos Santos Calhariz

I have installed amanda 2.4.2p2 on a Alpha machine with OSF V4.0.
Almost everything works.  When I do amverify, it fails.  During the
investigation I have pin point the problem.  

Looking into the script file amverify, inside the function doonefile,
when it tries to parse the header of one backup.  There is the
following command:

HEADER=`$DD bs=512 count=64 | ( sed 1q ; cat  /dev/null )`

The stranged thing is if I change to the following, it works better.

HEADER=`$DD bs=1 count=32767 | ( sed 1q ; cat  /dev/null )`

This change don't make sense to me, but works better.

During my investigation I have found that everythings is writen rigth
to the tape.  If I dd from tape to a file or with amrestore I found no
problem.  If I use amverify, during the parsing the header are
consumed too many bytes that belongs to the tar file, that follow it.

I am asking for help, to find the problem or solve it.

  Jose Calhariz



-- 
Quando ha milhares de motivos para se odiar uma pessoa mas 
so um para ama-la ; este ultimo prevalece.
-- Anonimo



Re: backups inexplicably timing out.

2002-02-13 Thread Michael Hicks

Carl Wilhelm Soderstrom [EMAIL PROTECTED] wrote:


Heh, Hi Carl..

 Our backup server has spontaneously stopped doing backups of itself, after
 working fine for several months. it backs up (most) other clients fine; but
 the daily mail message says:
 
   localhost  /var/tmp lev 0 FAILED [Request to localhost timed out.]
   localhost  /var/lib/rpm lev 0 FAILED [Request to localhost timed out.]
   localhost  /etc lev 0 FAILED [Request to localhost timed out.]

There aren't some old amanda client processes hanging around, are there?  I
think that hung me up once.  Other than that, I had trouble one day because
a SMB filesystem that was mounted on my system was not talking to an active
host, and trying to calculate the sizes of the filesystems would hang (ie,
running `df' would sit there for a few minutes).

-- 
Mike Hicks   [mailto:[EMAIL PROTECTED]]
   Unix Support Assistant| Carlson School of Management
Office: 1-160  Phone: 6-7909 |   University of Minnesota



msg10079/pgp0.pgp
Description: PGP signature


Re: backups inexplicably timing out.

2002-02-13 Thread Carl Wilhelm Soderstrom

 Heh, Hi Carl..
Hi Mike. :) didn't know you were on this list. :)

localhost  /var/tmp lev 0 FAILED [Request to localhost timed out.]
localhost  /var/lib/rpm lev 0 FAILED [Request to localhost timed out.]
localhost  /etc lev 0 FAILED [Request to localhost timed out.]
 There aren't some old amanda client processes hanging around, are there?  

nope. checked that. been bitten by that one before.

 think that hung me up once.  Other than that, I had trouble one day because
 a SMB filesystem that was mounted on my system was not talking to an active
 host, and trying to calculate the sizes of the filesystems would hang (ie,
 running `df' would sit there for a few minutes).

I think that was a problem a while ago; but it's fixed now. I
already looked at that. :)

Carl Soderstrom.
-- 
Network Engineer
Real-Time Enterprises
(952) 943-8700



Re: [Amanda-users] Re: HP SureStore AutoLoader

2002-02-13 Thread Jason Thomas

Hi, I'm using a HP SuperStore DDS4 Autoloader as well, I'm using the
debian package from 'sid' 2.4.2p2 and the chg-zd-mtx script that comes with it.
The chg-scsi script would not work for me.

Hope this helps.

On Wed, Feb 13, 2002 at 11:34:13AM +0100, Juanjo wrote:
 Well, I downloaded 2.4.3b2 cause got no success with Debian package which
 was 2.4.2p2, so I thought that newer version might have better chg
 scripts.
 
 Btw: I'm trying with chg-scsi (hard since it aint script) and it generated
 a big big file (6gig and growing up), is it normal?



Testing ... please ignore

2002-02-13 Thread Malcolm Herbert

apologies ... making sure I can post from this address ... 

-- 
Malcolm HerbertThis brain intentionally
[EMAIL PROTECTED]left blank



Re: Extracting Samba shares

2002-02-13 Thread Rafe Thayer



On Wed, 13 Feb 2002, Joshua Baker-LePain wrote:

 On Wed, 13 Feb 2002 at 12:16pm, Rafe Thayer wrote

  I'm trying to extract the samba shares that I've backed up just to make
  sure I know how when an emergency happens.  Not sure what's going wrong
  though.  In amrecover, I do:
 
  setdisk //huato/users.glenn.glenn
 
  And I get the error:
  501 No index records for disk: //huato/users.glenn.glenn Invalid?
 
 Are you 'sethost'ed to the right host?  Do you see files in the indexdir
 for that host?

 Is indexing turned on in amanda.conf?

 --
 Joshua Baker-LePain
 Department of Biomedical Engineering
 Duke University


Yeah, I should have mentioned a few more things.  It is sethost'ed to the
machine acting as the samba server.  The machine that I'm trying to get
the backup for is called huato, with a share called users.glenn.glenn.
Using amrecover to recover backups from non-windows machines(the samba
server being one of them) works fine.
What else am I forgetting?




Re: Reg:Do we have to label the cleaning tape?

2002-02-13 Thread Gene Heskett

On Wednesday 13 February 2002 01:16 pm, Gene Heskett wrote:
On Wednesday 13 February 2002 12:21 pm, chandrasekar wrote:
Hi everyone
   I have a HP-DAT 24*6 tape drive attached to my amanda
 Back-up server. I have few questions.
i) I had earlier labelled all the six tapes. Then I replaced
 one of the tapes(slot 6) with the cleaning tape. I tried
 labelling the cleaning tape with the same label that I gave
 for the normal tape. But it gave me this error amlabel: could
 not load slot 6: Cleaning Cartridge Installed and Ejected
 ii) How do I in general relabel the tapes?When I tried amlabel
 it says tape already labelled .

You don't label the read-only cleaning tape, but you do have to
 tell it via amanda.conf or chg-scsi.conf, what slot the tape is
 in.  Be aware that amanda uses base 0, so your drives slot 1 is
 amanda slot 0 etc.

iii) How do I eject my magazine? I used the eject button in the
 tape drive to eject the magazine to place the cleaning tape
 into the magazine, but it loads the first tape and not the
 one(say 4) which was there before I ejected(which seems quite
 obvious). But how do I bring back to the original
 configuration(ie 4)

First do an amtape /config/ rest, followed by an amcheck

darn these ancient fingers 'rest' should be 'reset' sorry.

 /config/ which should leave the drive with the next required
 tape loaded if it is in the magazine.  Otherwise reload the
 magazine with the next set of tapes and repeat.  Amanda needs a
 base camp to start from by doing the reset after you've had the
 magazine out.  On some drives (Seagate robots) you can
 push-button up the slot to load if the same tape is still in
 the same slot as before the magazine was ejected.

iv) How do I skip the tapelist order? Suppose I want to backup
 for today at tape 5 while the default is 3. what should I do
 in this case? I would be grateful if I receive answer to most
 of the questions if not all. thanks in advance

You'll be far better off not to try and second guess what amanda
 wants to do.  By properly configureing the amanda.conf file,
 you can tell amanda the basics of what you want to do, and then
 let amanda figure it out from there.  You can even do an amdump
 out of sequence, and amanda will simply use up the next set of
 guesses it would have used at 2am or whenever you have cron
 running it, tomorrow morning, etc etc.

Once you get amanda figured out, and this does take a while,
 then you might feel good about bossing her around, but for now,
 just buy her lunch.   :-)

-- 
Cheers, Gene
AMD K6-III@500mhz 320M
Athlon1600XP@1400mhz  512M
98.5+% setiathome rank, not too shabby for a hillbilly