Can't compile Client under Solaris 7

2003-07-29 Thread Heiko Schellhorn
Hi all

I try to compile the amanda-client under Solaris 7 but it doesn't work.

I run configure as following:

./configure --with-user=amanda --with-group=disk --without-server 
--with-debugging --with-tape-server=myserver --with-index-server=myserver

when I run make I get following error message:

killpgrp.c: In function `main':
killpgrp.c:90: error: too many arguments to function `getpgrp'
gmake[1]: *** [killpgrp.o] Error 1
gmake[1]: Leaving directory `/root/amanda-2.4.3/client-src'
gmake: *** [all-recursive] Error 1

Any suggestions ?

Heiko

-- 

Dipl. Inf. Heiko Schellhorn

University of BremenRoom:   NWI-W3140
Inst. of Environmental Physics  Phone:  +49(0)421 218 4080
P.O. Box 33 04 40   Fax:+49(0)421 218 4555
D-28334 Bremen  Mail:   mailto:[EMAIL PROTECTED]
Germany www:
http://www.iup.physik.uni-bremen.de
http://www.sciamachy.de
http://www.geoscia.de



Re: Can't compile Client under Solaris 7

2003-07-29 Thread Paul Bijnens
Heiko Schellhorn wrote:

Hi all

I try to compile the amanda-client under Solaris 7 but it doesn't work.

I run configure as following:

./configure --with-user=amanda --with-group=disk --without-server 
--with-debugging --with-tape-server=myserver --with-index-server=myserver

when I run make I get following error message:

killpgrp.c: In function `main':
killpgrp.c:90: error: too many arguments to function `getpgrp'
gmake[1]: *** [killpgrp.o] Error 1
gmake[1]: Leaving directory `/root/amanda-2.4.3/client-src'
gmake: *** [all-recursive] Error 1
Any suggestions ?


Compiled the tree on another system already, and forgot to
clean up the configuration settings?
 $ make distclean
 $ ./configure ...
Just an idea, of course.  It can compile it here without problems.

(amanda 2.4.4p1 is out too!)

--
Paul Bijnens, XplanationTel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUMFax  +32 16 397.512
http://www.xplanation.com/  email:  [EMAIL PROTECTED]
***
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...*
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out  *
***



Re: Can't compile Client under Solaris 7

2003-07-29 Thread Heiko Schellhorn
Hi Paul

> Compiled the tree on another system already, and forgot to
> clean up the configuration settings?
No. Untarred the ball and tried to compile.

> (amanda 2.4.4p1 is out too!)
I know. But all of my machines are using 2.4.3 and I don't trust complete  
compatibility. No experiments at this time, because at the moment  I don't 
have the time to search for compatibility-problems too.

Heiko
-- 

Dipl. Inf. Heiko Schellhorn

University of BremenRoom:   NWI-W3140
Inst. of Environmental Physics  Phone:  +49(0)421 218 4080
P.O. Box 33 04 40   Fax:+49(0)421 218 4555
D-28334 Bremen  Mail:   mailto:[EMAIL PROTECTED]
Germany www:
http://www.iup.physik.uni-bremen.de
http://www.sciamachy.de
http://www.geoscia.de



yerli kaliteyi al, issizlik azalsin!

2003-07-29 Thread yabanci mal almiyorum
İŞSİZ KALMAMAK İÇİN 
İŞSİZLERE İŞ SAĞLANMASI İÇİN
TÜRKİYE?NİN KAMPANYASI?NA KATIL!
--
 

YERLİ KALİTEYİ AL!

yatırımlar çoğalsın

İŞSİZLİK AZALSIN!



YABANCI MALI ALMA! İŞSİZ KALMA!

1 milyon 200 bin işyeri kapandı, 
9 milyon meslek sahibi insanımız işsiz kaldı!
Bugün ülkemizde sanayide ve iş hayatında 
-iş bilmezlikten ya da kişisel beceriksizlikten kaynaklanmayan- 
seri iflaslarla işyerleri kapanıyor. 
Açık işletmeler ise sürekli küçülüyor, işçi çıkarıyor. 


HER 6.500 DOLARA 1 İŞSİZ!

Tüketim malları ithalatına giden her 6 bin 500 dolar, 
Türkiye?de 1 kişiyi işsiz bırakıyor. 
Son dört yıldaki 60 milyar dolarlık ithalat yerine 
9 milyon kişiye iş sağlayabilirdik!
 

İŞSİZLİĞİ KENDİ ELLERİNLE BÜYÜTME!

Azalan yatırım, çoğalan işsizliktir.
Kaliteli yerlisi varken, yabancısını tercih etmek, zaten kıt olan paranın
dışarı gitmesine yol açmakta, yatırımları azaltmaktadır. 
Bugün Türkiye?de pek çok ürün, dünya standartlarında üretilmektedir.
Türkiye kaliteyi yakalamıştır! 


YERLİ KALİTEYİ AL!

İşçiye ücret, memura maaş olsun! 
Okul olsun, yol olsun, hizmet olsun! 
İşsizlerimize iş, bebelerimize aş olsun!

 
---
Kampanyanın gerekçeleri ve destekleyenlerin listesi

www.YABANCI-MAL-ALMIYORUM.com ?dadır. 

(Bu ileti 6 milyon Türk İnternet kullanıcısına gönderildi;
kampanya, 300.000 bin yerli üreticiye, sanayi ve ticaret odalarına,
odalara ve birliklere, dört işçi konfederasyonuna, sendikalarına,
şubelerine, derneklere ve üniversitelere duyuruldu.) 
---


[no subject]

2003-07-29 Thread Matthew Moffitt
I've been working with the cygwin/amanda installation and have gradually increased the 
etimeout/dtimeout settings all the way up to:

etimeout 14400
dtimeout 14400

thinking that the 'index tee cannot write' error was coming from the server not seeing 
anything for awhile.  However, even at this level it quits after 2.5 hours and I only 
have the following errors to work from.  The sendbackup log at the client doesn't show 
anything more revealing.

Is anybody successfully backing up Windows 2000 PCs with this combination?  I'm not 
sure why the server seems to abort the connection after a period of time.  I've been 
following recommendations from others at 
http://randomnotes.pwp.blueyonder.co.uk/Amanda-Cygwin-HOWTO.html and on the mailing 
list.

Thanks,

-Matt

---

FAILED AND STRANGE DUMP DETAILS:

/-- bw096  /c lev 0 STRANGE
sendbackup: start [bw096:/c level 0]
sendbackup: info BACKUP=/usr/bin/tar
sendbackup: info RECOVER_CMD=/usr/bin/tar -f... -
sendbackup: info end
? sendbackup: index tee cannot write [Connection reset by peer]
? sed: Couldn't flush stdout: Connection reset by peer
? index returned 1
??error [/usr/bin/tar got signal 13]? dumper: strange [missing size line from 
sendbackup]
? dumper: strange [missing end line from sendbackup]
\



cygwin + amanda install

2003-07-29 Thread Matthew Moffitt
Sorry for dropping the subject line earlier, this is just a re-send with a more 
helpful subject.

I've been working with the cygwin/amanda installation and have gradually increased the 
etimeout/dtimeout settings all the way up to:

etimeout 14400
dtimeout 14400

thinking that the 'index tee cannot write' error was coming from the server not seeing 
anything for awhile.  However, even at this level it quits after 2.5 hours and I only 
have the following errors to work from.  The sendbackup log at the client doesn't show 
anything more revealing.

Is anybody successfully backing up Windows 2000 PCs with this combination?  I'm not 
sure why the server seems to abort the connection after a period of time.  I've been 
following recommendations from others at 
http://randomnotes.pwp.blueyonder.co.uk/Amanda-Cygwin-HOWTO.html and on the mailing 
list.

Thanks,

-Matt

---

FAILED AND STRANGE DUMP DETAILS:

/-- bw096  /c lev 0 STRANGE
sendbackup: start [bw096:/c level 0]
sendbackup: info BACKUP=/usr/bin/tar
sendbackup: info RECOVER_CMD=/usr/bin/tar -f... -
sendbackup: info end
? sendbackup: index tee cannot write [Connection reset by peer]
? sed: Couldn't flush stdout: Connection reset by peer
? index returned 1
??error [/usr/bin/tar got signal 13]? dumper: strange [missing size line from 
sendbackup]
? dumper: strange [missing end line from sendbackup]
\ 



amrecover

2003-07-29 Thread Yogish



hi
I get the following errors while trying to do 
amrecover. When I do 'sethost host', It says no index records for the host. I 
have enabled amanda,amandaidx,amidxtape. I have also added the host name in 
.amandahosts. I am not sure why this error is occuring. I would appreciate if 
anyone could help me out here
Regards
Yogish
 


Re: amrecover

2003-07-29 Thread Francisco Garcia




Hello Yogi
It should be sethost localhost

Yogish wrote:

  
  
  
  hi
  I get the following errors while
trying to do amrecover. When I do 'sethost host', It says no index
records for the host. I have enabled amanda,amandaidx,amidxtape. I have
also added the host name in .amandahosts. I am not sure why this error
is occuring. I would appreciate if anyone could help me out here
  Regards
  Yogish
   





Re: amrecover

2003-07-29 Thread Paul Bijnens
Yogish wrote:

I get the following errors while trying to do amrecover. When I do 
'sethost host', It says no index records for the host. I have enabled 
Did you really type "sethost host"?  Probably not.
The exact command and error message helps a lot, instead of
generalising what you believe is irrelevant.  (e.g. did you
give the fqdn or not? Is amanda compiled with --with-fqdn?)
Then, are the indexes enabled.  They are not by default.
If your disklist looks like:
the.host /the/disk   comp-user
Try this command to find out:
amadmin YourConfig disklist the.host /the/disk
and see if "index" is "YES" or no.

If it is, then we need more info, like the contents of the
debug-files in /tmp/amanda/* .




--
Paul Bijnens, XplanationTel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUMFax  +32 16 397.512
http://www.xplanation.com/  email:  [EMAIL PROTECTED]
***
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...*
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out  *
***



subscribe

2003-07-29 Thread Dalton, John L MONMOUTH ITS Multimax

i want to get on this list...





amrecover problem

2003-07-29 Thread Yogish



Hi
The exact commands that I ran were
'amrecover -C normal -s borkerserver'
501, no index records for the host brokerserver, 
Invalid?
amrecover> sethost localhost
no index records for host :localhost 
Invalid?
Samething for brokerserver also.
I have attached my amanda.conf and disklist. Please 
let me know if there is any problem.
I have addes both localhost and brokerserver 
in.amandahosts and I have enabled amanda,amandaidx and amidxtape in 
/etc/xinetd.d. I dont know how to enable the index of the records
Regards
Yogish
--Yogish.G.KAmerican 
Healthcare Solutions Inc405, South LincolnSteamboat Springs 
CO-80487Ph-970-870-6232 ( EXT 106) (office)Email: [EMAIL PROTECTED]


amanda.conf
Description: Binary data


disklist
Description: Binary data


Re: subscribe

2003-07-29 Thread Albert Hopkins
On Tue, 2003-07-29 at 11:21, Dalton, John L MONMOUTH ITS Multimax wrote:
> i want to get on this list...

me too!




Re: amdump hangs forever when dump should be starting

2003-07-29 Thread Eric Siegerman
On Sat, Jul 26, 2003 at 10:06:43PM -0400, Scott Mcdermott wrote:
> I'm setting up Amanda on a machine with directly attached
> When I run the dump though, it calculates what it needs to
> do, gets to the "driver: hdisk-state time xxx" line, and
> then just hangs for everdoing nothing.
> [...]
>  $ cat normal/disklist | grep -v ^\#
> 
> localhost /export/local tardump

Well, Gene's usually the one to jump all over this, but he didn't
this time, so I guess I will :-)

Don't use "localhost"; use the machine's real domain name
instead.

Actually I doubt that the one in disklist is the problem, since
the estimates were collected ok.  However:

> [...]
> planner:CONFIGURE_COMMAND="'./configure' '--host=i686-pc-linux-gnu' 
> '--build=i686-pc-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' 
> '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' 
> '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' 
> '--libdir=/usr/lib' '--libexecdir=/usr/lib/amanda' '--localstatedir=/var/lib' 
> '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' 
> '--enable-shared' '--with-index-server=localhost' 
> '--with-gnutar-listdir=/var/lib/amanda/gnutar-lists' 
> '--with-smbclient=/usr/bin/smbclient' '--with-amandahosts' '--with-user=amanda' 
> '--with-group=disk' '--with-gnutar=/bin/tar'"
> planner: defs:  DEFAULT_SERVER="localhost" DEFAULT_CONFIG="DailySet1"
> planner:DEFAULT_TAPE_SERVER="localhost"

One of those configure-time localhost's might be screwing things
up...

--

|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.[EMAIL PROTECTED]
|  |  /
When I came back around from the dark side, there in front of me would
be the landing area where the crew was, and the Earth, all in the view
of my window. I couldn't help but think that there in front of me was
all of humanity, except me.
- Michael Collins, Apollo 11 Command Module Pilot



Re: Tapetyep question

2003-07-29 Thread Eric Siegerman
On Mon, Jul 28, 2003 at 10:57:48AM -0500, Josh Welch wrote:
> Backups aren't happening as quickly as I had hoped, and I am looking
> at ways to improve matters. According to the amanda man page, the speed
> parameter is not even used by amanda currently,

I have no clue about the tapetype's speed thing, but there are
plenty of reasons for Amanda to be slow.  It'd help if you posted
the email report from a typical run.

--

|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.[EMAIL PROTECTED]
|  |  /
When I came back around from the dark side, there in front of me would
be the landing area where the crew was, and the Earth, all in the view
of my window. I couldn't help but think that there in front of me was
all of humanity, except me.
- Michael Collins, Apollo 11 Command Module Pilot



More sanity Checks

2003-07-29 Thread Bruntel, Mitchell L, SOLCM
Two quick sanity checks, please

First:  when building the files for my server machine, should I be able to just zip 
the files in the "main" directory, and send them over to my client?  (ie, if same 
architechture, can I avoid building on clients?


Second: 
debug level X:Y(associated with chg-SCSI.conf changer script I believe.  There's a 
quick 1 line reference to this in 
the TAPE.CHANGERS file in the DOCS directory.  However, can someone further explain 
what the X/Y mean?
I am presuming (from the fact that I set it to 9:9), and seem to have gotten 9 
separate chg-scsi.date.debug files for each run of amanda that the Y tells it how many 
separate debug files to create, and am guessing that the X is setting the debug level.
BTW, if this is so, the 9 chg-scsi.date.debug files ARE NOT identical!

Thaks again
Mitch B



Re: amdump hangs forever when dump should be starting

2003-07-29 Thread Gene Heskett
On Tuesday 29 July 2003 13:03, Eric Siegerman wrote:
>On Sat, Jul 26, 2003 at 10:06:43PM -0400, Scott Mcdermott wrote:
>> I'm setting up Amanda on a machine with directly attached
>> When I run the dump though, it calculates what it needs to
>> do, gets to the "driver: hdisk-state time xxx" line, and
>> then just hangs for everdoing nothing.
>> [...]
>>  $ cat normal/disklist | grep -v ^\#
>>
>> localhost /export/local tardump
>
>Well, Gene's usually the one to jump all over this, but he didn't
>this time, so I guess I will :-)

Be my guest, I was taking a break trying to get a 2.6.0 kernel to 
boot, 100% failure rate so far.

>Don't use "localhost"; use the machine's real domain name
>instead.
>
>Actually I doubt that the one in disklist is the problem, since
>
>the estimates were collected ok.  However:
>> [...]
>> planner:CONFIGURE_COMMAND="'./configure'
>> '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu'
>> '--target=i386-redhat-linux-gnu' '--program-prefix='
>> '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin'
>> '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share'
>> '--includedir=/usr/include' '--libdir=/usr/lib'
>> '--libexecdir=/usr/lib/amanda' '--localstatedir=/var/lib'
>> '--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
>> '--infodir=/usr/share/info' '--enable-shared'
>> '--with-index-server=localhost'
>> '--with-gnutar-listdir=/var/lib/amanda/gnutar-lists'
>> '--with-smbclient=/usr/bin/smbclient' '--with-amandahosts'
>> '--with-user=amanda' '--with-group=disk' '--with-gnutar=/bin/tar'"
>> planner: defs:  DEFAULT_SERVER="localhost"
>> DEFAULT_CONFIG="DailySet1" planner:   
>> DEFAULT_TAPE_SERVER="localhost"
>
>One of those configure-time localhost's might be screwing things
>up...

Virtually guaranteed.  Amanda is network aware, and localhost could be 
any machine, the original poster should please use the FQDN and 
rebuild his install.

-- 
Cheers, Gene
AMD [EMAIL PROTECTED] 320M
[EMAIL PROTECTED]  512M
99.27% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attornies please note, additions to this message
by Gene Heskett are:
Copyright 2003 by Maurice Eugene Heskett, all rights reserved.



newbie question

2003-07-29 Thread Dalton, John L MONMOUTH ITS Multimax

Just got amanda configured on a raidzone
but I don't think the changer file is correct
as it will not load tapes from the 29 storage
elements.

Do I have to label every tape before it will
move them form storage?

I am using linux REDHAT 7.1 on a raidzone.

The tape jukebox I am using is a Adaptec   29 tape
carousel with two DLT Quantum Tape drives. 


Here is the output:

bash-2.04$amtape / current
amtape: scanning current slot in tape-changer rack
slot 0: date 20030729 label DailySet-02

bash-2.04$ amtape / device<--how do I show the next tape
drive nst1?
/dev/nst0

bash-2.04$ amcheck /
Amanda Tape Server Host Check
-
Holding disk /home/amanda/tmp: 1182210776 KB disk space available,
 that's plenty
amcheck-server: slot 0: date 20030729 label DailySet-02 (active tape)
amcheck-server: fatal slot 1: slot 1 move failed   <why
will it not move the tape?
ERROR: new tape not found in rack
   (expecting a new tape)
NOTE: skipping tape-writable test
NOTE: info dir /var/lib/amanda/DailySet1/curinfo: does not exist
NOTE: it will be created on the next run
NOTE: index dir /var/lib/amanda/DailySet1/index/localhost: does not exist
Server check took 46.527 seconds

Amanda Backup Client Hosts Check

WARNING: localhost: selfcheck request timed out.  Host down?
Client check: 1 host checked in 30.006 seconds, 1 problem found

(brought to you by Amanda 2.4.2p2)

amlabel output  - I only have two drives 0 and 2!!!

bash-2.04$ amlabel / DailySet-02 slot 3
amlabel: label DailySet-02 already on a tape

bash-2.04$ amlabel / DailySet-02 slot 4
amlabel: label DailySet-02 already on a tape

bash-2.04$ amlabel / DailySet-02 slot  30
amlabel: label DailySet-02 already on a tape

bash-2.04$ amlabel / DailySet-02 slot  99
amlabel: label DailySet-02 already on a tape



I am using a generic TAPE DEVICE in amanda.conf:


define tapetype Quantum-DLT {
comment "Generic values"
length 4 mbytes
filemark 8 kbytes
speed 4000 kbytes

runtapes 1  # number of tapes to be used in a single r
tpchanger "chg-scsi"# the tape-changer glue script
tapedev "0" # the no-rewind tape device to be used
changerfile "/etc/amanda/chg-scsi-linux.conf"


bash-2.04$ cat chg-scsi-linux.conf
number_configs  1
eject   1   # Tapedrives need an eject command
sleep   90  # Seconds to wait until the tape gets ready
cleanmax100 # How many times could a cleaning tape get used
changerdev  /dev/sg2
#
# Next comes the data for drive 0
#
config  0
drivenum0
dev /dev/nst0  #/dev/nst0
scsitapedev /dev/sg2
startuse1   # The slots associated with the drive 0
enduse  29  #
statfile/etc/amanda/DailySet1/tape0-slot  # The file where the
actual
slot is stored
#cleancart  5   # the slot where the cleaningcartridge for drive 0
is
located
cleanfile   /etc/amanda/DailySet1/tape0-clean # The file where the
cleanin
gs are recorded
usagecount  /etc/amanda/DailySet1/totaltime
tapestatus  /etc/amanda/DailySet1/tapestatus # here will some status
infos
 be stored
#labelfile  /etc/amanda/DailySet1/labelfile # Use this if you have an
barc
ode reader



Does anyone use the 29 tape Adeptec jukebox? Perhaps find the 
correct changer.conf file I'll be ok??

Thanks!





Backup to disk on another machine

2003-07-29 Thread Chris Barnes
I understand that to use Amanda to backup to a disk, I need to set the
tapedev entry in amanda.conf to a value like
tapedev  "file:/some/directory/somewhere"


My question is: how do I do this if the disk is on another computer?

Assume for example, if I have a computer named "earth" with a 100gb data
disk that holds the /home directory (that's the only directory on that
filesystem), and another computer named "moon" that has 300gb of
diskspace to use as backup space (both computers are running RH Linux w/
Samba installed).

Does "earth" nfs mount the large disk on "moon" and simply write to it?
I assume that this will run on earth as root so that it can have
permissions to get to all the files, right?

--

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Chris Barnes   AOL IM: CNBarnes
[EMAIL PROTECTED]Yahoo IM: chrisnbarnes
Computer Systems Manager   ph: 979-845-7801
Department of Physics fax: 979-845-2590
Texas A&M University





Re: strange "disk offline" error

2003-07-29 Thread Eric Siegerman
On Wed, Jul 23, 2003 at 10:57:31AM -0400, Kurt Yoder wrote:
> Looking more closely in /tmp/amanda/sendsize...debug, I see
> something strange:
> [...]
> sendsize[7578]: time 0.137: Usage: dump [-?CDVcgl -L[v] -a[v] -f[v]
> -h[dnv] -o[v] -r[dnv] -s[dnv] -t[nv] -T index1[, index2]] file(s)

On Solaris 7:
% dump
Usage: dump [-agcd:fhln:oprstvCDLT:V?] file(s) ...
% which dump
/usr/ccs/bin/dump
% ufsdump
Usage: ufsdump [0123456789fustdWwnDCcbavloS [argument]] filesystem

"dump" is for displaying ELF files in human-readable format.  The
backup program we all know and love is called "ufsdump".

SCO might be similar.

--

|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.[EMAIL PROTECTED]
|  |  /
When I came back around from the dark side, there in front of me would
be the landing area where the crew was, and the Earth, all in the view
of my window. I couldn't help but think that there in front of me was
all of humanity, except me.
- Michael Collins, Apollo 11 Command Module Pilot



Database Backup

2003-07-29 Thread Axel Haenssen
Can I backup a life Postgresql Database with Amanda?

-- 
Axel Haenssen
Department of Ecology and Evolutionary Biology
Princeton University
Princeton, NJ 08544-1003
phone: +1(609)258-6999
Find my Public Key here:
http://www.princeton.edu/~axel



Contribution?

2003-07-29 Thread Bruntel, Mitchell L, SOLCM
I have a contribution to make.

I've taken most of the help files, man files, and everything I can think of , and put 
it into a WORD document, with an Table of Content (Am working on a index/concordance 
file for it too!).
it's about 110 pages, and has been extremely helpful in trying to get myself up and 
running.

Who should I send it to?  It' about 136K, so I won't post it to list.
What I'd ideally like is to have the document available on the web page, so that 
"newbies" (like myself) can get more information than is currently available from the 
faq-o-matic!

Mitch Bruntel



Re: strange "disk offline" error

2003-07-29 Thread Eric Siegerman
On Fri, Jul 25, 2003 at 02:37:43PM -0400, Kurt Yoder wrote:
> sendsize[505]: time 0.054: error [cannot find user backup in passwd file]

This message is a bit misleading.  It really means:
`getpwnam("backup") was unsuccessful'.  Perhaps getpwnam()
searched /etc/passwd, but perhaps it tried to use NIS or some
SCOish mechanism.  So there might be other things to look at
beyond /etc/passwd and its symlink target.

--

|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.[EMAIL PROTECTED]
|  |  /
When I came back around from the dark side, there in front of me would
be the landing area where the crew was, and the Earth, all in the view
of my window. I couldn't help but think that there in front of me was
all of humanity, except me.
- Michael Collins, Apollo 11 Command Module Pilot



Re: Backup to disk on another machine

2003-07-29 Thread Eric Siegerman
On Tue, Jul 29, 2003 at 12:38:06PM -0500, Chris Barnes wrote:
> Assume for example, if I have a computer named "earth" with a 100gb data
> disk that holds the /home directory (that's the only directory on that
> filesystem), and another computer named "moon" that has 300gb of
> diskspace to use as backup space (both computers are running RH Linux w/
> Samba installed).
> 
> Does "earth" nfs mount the large disk on "moon" and simply write to it?

If you do that with vanilla NFS, I suspect the backup will crawl!

I'd simply make "moon" the Amanda server, and "earth" a client.
That way, the
  tapedev  "file:/some/directory/somewhere"
will be referring to a local file, and your question will no
longer apply.

> I assume that this will run on earth as root so that it can have
> permissions to get to all the files, right?

The Amanda *client* will, yes.  But it's the server that cares
about tapedev.

--

|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.[EMAIL PROTECTED]
|  |  /
When I came back around from the dark side, there in front of me would
be the landing area where the crew was, and the Earth, all in the view
of my window. I couldn't help but think that there in front of me was
all of humanity, except me.
- Michael Collins, Apollo 11 Command Module Pilot



backup to tape and remote disk

2003-07-29 Thread Douglas Brick
I'm currently using amanda to backup about 20 machines to tape.  I'd
like to do a remote storage at the same time, having amanda also write
to a remote raid disk.  Any ideas on how to accomplish this?



Re: Database Backup

2003-07-29 Thread Brian Cuttler

Axel,

I'm so sorry, this is pretty much a database question and as such
out of my area of expertise.

There is no way to shutdown the application for the duration ?
That is what I've forced my Oracle dba to do.

-- Start of PGP signed section.
> Hi Brian,
> I have amanda running on two fileservers already. The box in question
> now is RedHat Linux 9.0 running a Postgresqul database. The Tapedrive is
> a DDS4 manual. 
> I am asking this question because I know of no way to export the
> database into a flat file before backup, or mirroring or freezing the
> database during backup.
> I was wondering if somebody did that before.
> cheers
> Axel
> 
> On Tue, 2003-07-29 at 14:37, Brian Cuttler wrote:
> > Axel,
> > 
> > Amanda is a scheduler, optionally compressing data but uses
> > OS native backup services, either the native form of dump
> > (ufsdump, xfsdump...) or most often some brand of "tar", what
> > OS are you running, what tools are available for backup and
> > what do Postgresql knowledgable people say about tools for
> > backing up the database ?
> > 
> > > Can I backup a life Postgresql Database with Amanda?
> > > 
> 
> -- 
> Axel Haenssen
> Department of Ecology and Evolutionary Biology
> Princeton University
> Princeton, NJ 08544-1003
> phone: +1(609)258-6999
> Find my Public Key here:
> http://www.princeton.edu/~axel
-- End of PGP section, PGP failed!



Adjustment?!Was: More sanity Checks

2003-07-29 Thread Bruntel, Mitchell L, SOLCM
OK. So I am totally bogus (to quote my teenager).


I said:
-->quick sanity check, please

First:  when building the files for my server machine, should I be able to just zip 
the files in the "main" directory, and send them over to my client?  (ie, if same 
architechture, can I avoid building on clients?

and I answer:
NO Stupid!  what would you execute?
Perhaps if you copy the /usr/local/sbin/am* commands too, it MIGHT work, but otherwise 
what would run?

OY!



Re: Database Backup

2003-07-29 Thread Doug Silver
Axel -

Look in the Postgresql source area and/or perhaps your distribution for this:

files/502.pgsql

It is a shell script that does a live dump of your database to files which can 
then be backed up.  Backing up Postgresql directly will be of no use as you 
already know.  Just fire it off a few minutes right before Amanda is set to 
start -- though you should figure out how long it takes to run and gauge it 
from there.

I'm surprised the Amanda site doesn't have an FAQ on this since this seems to 
come up fairly often (I just checked but didn't find it).

-doug

On Tuesday 29 July 2003 11:54 am, Brian Cuttler wrote:
> Axel,
>
> I'm so sorry, this is pretty much a database question and as such
> out of my area of expertise.
>
> There is no way to shutdown the application for the duration ?
> That is what I've forced my Oracle dba to do.
>
> -- Start of PGP signed section.
>
> > Hi Brian,
> > I have amanda running on two fileservers already. The box in question
> > now is RedHat Linux 9.0 running a Postgresqul database. The Tapedrive is
> > a DDS4 manual.
> > I am asking this question because I know of no way to export the
> > database into a flat file before backup, or mirroring or freezing the
> > database during backup.
> > I was wondering if somebody did that before.
> > cheers
> > Axel
> >
> > On Tue, 2003-07-29 at 14:37, Brian Cuttler wrote:
> > > Axel,
> > >
> > > Amanda is a scheduler, optionally compressing data but uses
> > > OS native backup services, either the native form of dump
> > > (ufsdump, xfsdump...) or most often some brand of "tar", what
> > > OS are you running, what tools are available for backup and
> > > what do Postgresql knowledgable people say about tools for
> > > backing up the database ?
> > >
> > > > Can I backup a life Postgresql Database with Amanda?
> >
> > --
> > Axel Haenssen
> > Department of Ecology and Evolutionary Biology
> > Princeton University
> > Princeton, NJ 08544-1003
> > phone: +1(609)258-6999
> > Find my Public Key here:
> > http://www.princeton.edu/~axel
>
> -- End of PGP section, PGP failed!




Re: Adjustment?!Was: More sanity Checks

2003-07-29 Thread F.M. Taylor
What I do in cases similar to yours is do the configure; make;
make install on my "master" machine then tar up the source directory,
sftp it over to the "new" machine and just do the make install part.
Much quicker, and you don't have to have the compiler on every machine.
Bruntel, Mitchell L, SOLCM wrote:
> OK. So I am totally bogus (to quote my teenager).
>
>
> I said: -->quick sanity check, please
>
> First:  when building the files for my server machine, should I be
> able to just zip the files in the "main" directory, and send them
> over to my client?  (ie, if same architechture, can I avoid building
> on clients?
>
> and I answer: NO Stupid!  what would you execute? Perhaps if you copy
> the /usr/local/sbin/am* commands too, it MIGHT work, but otherwise
> what would run?
>
> OY!
>
--
Mike Taylor. GSEC/GCFW 'Non Impediti Ratione Cogitationis'
Coordinator of Systems Administration and Network Security
Indiana State University.   Rankin Hall Rm 052
210 N 7th St. Terre Haute, IN.
Voice: 812-237-8843


Re: Backup to disk on another machine

2003-07-29 Thread Jay Lessert
[E-mailed and Cc'ed]

On Tue, Jul 29, 2003 at 12:38:06PM -0500, Chris Barnes wrote:
> My question is: how do I do this if the disk is on another computer?
> 
> Does "earth" nfs mount the large disk on "moon" and simply write to it?

Yes.  Obviously, if you are already saturating earth's network with
backup traffic, the additional taper traffic won't be welcome.

> I assume that this will run on earth as root so that it can have
> permissions to get to all the files, right?

No.  It should be the same user that runs amdump/amandad/etc. and
owns your holdingdisk subdirectories.  By default, "amanda".  No root
export necessary.

-- 
Jay Lessert   [EMAIL PROTECTED]
Accelerant Networks Inc.   (voice)1.503.439.3461
Beaverton OR, USA(fax)1.503.466.9472


Re: Database Backup

2003-07-29 Thread Christoph Scheeder
Hi,
for dumping postgres-databases to flat files postgres has two utilities:
pg_dump for a single database and pg_dumpall for all databases on a 
single server.
these commands produce a flat text file containing sql-querrys to 
recreate the complete database(s).

Doing the dump of the life DBMS isn't a good idea. You don't catch all 
the changes and informations that postgres keeps in it's internal 
buffer's at runtime.

Christoph

Brian Cuttler wrote:
Axel,

I'm so sorry, this is pretty much a database question and as such
out of my area of expertise.
There is no way to shutdown the application for the duration ?
That is what I've forced my Oracle dba to do.
-- Start of PGP signed section.

Hi Brian,
I have amanda running on two fileservers already. The box in question
now is RedHat Linux 9.0 running a Postgresqul database. The Tapedrive is
a DDS4 manual. 
I am asking this question because I know of no way to export the
database into a flat file before backup, or mirroring or freezing the
database during backup.
I was wondering if somebody did that before.
cheers
Axel

On Tue, 2003-07-29 at 14:37, Brian Cuttler wrote:

Axel,

Amanda is a scheduler, optionally compressing data but uses
OS native backup services, either the native form of dump
(ufsdump, xfsdump...) or most often some brand of "tar", what
OS are you running, what tools are available for backup and
what do Postgresql knowledgable people say about tools for
backing up the database ?

Can I backup a life Postgresql Database with Amanda?

--
Axel Haenssen
Department of Ecology and Evolutionary Biology
Princeton University
Princeton, NJ 08544-1003
phone: +1(609)258-6999
Find my Public Key here:
http://www.princeton.edu/~axel
-- End of PGP section, PGP failed!




Re: Database Backup

2003-07-29 Thread Chris Johnson
Axel,
 I needed to do the same thing a while ago with a postgresql db.
   I simply used a script which called pg_dumpall
   I'm doing a rotation so even if amanda dumps the file before it 
finnishes I'll at least have the one from the day before.
   The script is then called from cron at about the time my estimates 
are finnished.
   if you'd like to see the script let me know
good luck,
chrisj

Axel Haenssen wrote:

Can I backup a life Postgresql Database with Amanda?

 





Re: Setting up chg-scsi

2003-07-29 Thread Joshua D. Bello
On Mon, Jul 28, 2003 at 08:57:24PM -0400, Gene Heskett wrote:
> The *real* tapedev(ice) is specified in chg-scsi.conf, here in 
> amanda.conf, the proper useage is a number from 0 to whatever, that 
> represents the index number of the configurations present in 
> chg-scsi.conf.  It can contain more than one set of specs, and you 
> must specify here, which it is to use from the (possible) choices in 
> chg-scsi.conf.
> As I only have one config spelled out in chg-scsi.conf, it is tapedev 
> "0" in my amanda.conf.

Thank you very much for the assistance.  I went ahead and modified my
amanda.conf as per your suggestions.

> chg-scsi.conf should start out resembling this:



Thanks again, I also modified my scsi-conf file to more closely model
yours.  I no longer experience amanda commands / scsi-conf bombing out
on errors, on the contrary, it will now hang when I run typical amanda
commands.  For example:

[EMAIL PROTECTED]:/usr/local/etc/amanda/daily$ amcheck daily
Amanda Tape Server Host Check
-
Holding disk /ambackup/daily: 109239520 KB disk space available, that's
plenty

Then wait, wait, wait, nada.  Process is still running, although idle.

The debug logfile yields:

amcheck: debug 1 pid 83814 ruid 10080 euid 0 start time Tue Jul 29
16:40:52 2003
amcheck: dgram_bind: socket bound to 0.0.0.0.874
changer: got exit: 0 str: 5 15 1 0
changer_query: changer return was 15 1 0
changer_query: searchable = 0
changer_find: looking for NULL changer is searchable = 0 

Attached are the updated config files.  Thanks again in advance, my
excitement at switching from an old manually changed DLT7000 to this new
SDLT changer is starting to fade to frustration...

-- 
Joshua D. Bello <[EMAIL PROTECTED]>
Systems Administrator
Nextrials, Inc.  +1-925-415-8957
#$Id: amanda.conf,v 1.10 2003/07/25 17:49:53 josh Exp $

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

inparallel 4# 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
dumporder "sssS"# specify the priority order of each dumper
#   s -> smallest size
#   S -> biggest size
#   t -> smallest time
#   T -> biggest time
#   b -> smallest bandwitdh
#   B -> biggest bandwitdh
# try "BTBTBTBTBTBT" if you are not holding
# disk constrained
netusage  60 Kbps   # maximum net bandwidth for Amanda, in KB per sec

dumpcycle 7 days# the number of days in the normal dump cycle
runspercycle 7  # the number of amdump runs in dumpcycle days
# (6 weeks * 7 amdump runs per week -- just weekdays)
tapecycle 45 tapes  # the number of tapes in rotation
# 6 weeks (dumpcycle) times 7 tapes per week 
# 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
bumpsize 500 Mb # minimum savings (threshold) to bump level 1 -> 2
bumpdays 1  # minimum days at each level
bumpmult 4  # threshold = bumpsize * bumpmult^(level-1)

etimeout 300# number of seconds per filesystem for estimates.
#etimeout -600  # total number of seconds for estimates.

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

ctimeout 30 # maximum number of seconds that amcheck waits
# for each client host
 
tapebufs 20

runtapes 1  # number of tapes to be used in a single run of amdump
tpchanger "chg-scsi"# the tape-changer glue script
tapedev "0" # the no-rewind tape device to be used
#rawtapedev "/dev/nrsa0"# the raw device to be used (ftape only)
changerfile "/usr/local/etc/amanda/daily/chg-scsi.conf"
#changerdev "/dev/ch0"

tapetype SDLT320 # what kind of tape it is (see tapetypes below)
labelstr "^DAILY[0-9][0-9][0-9][0-9]*$" # label constraint regex: all tapes must match

holdingdisk hd1 {
comment "main holding disk"
directory "/ambackup/daily" # where the holding disk is
use 100Gb   # how much space can we use on it
# a non-positive value means:
#use all space but that value
chunksize 5Gb   # size of chunk if you want big dump to be
# dumped on multiple files on holding disks
#  N Kb/Mb/Gb split images in chunks of size N
# The maximum value s

Re: cygwin + amanda install

2003-07-29 Thread Jon LaBadie
On Tue, Jul 29, 2003 at 11:04:02AM -0400, Matthew Moffitt wrote:
> 
> Is anybody successfully backing up Windows 2000 PCs with this combination?  
> 

I'm not now, but I certainly was for about a year.  I had to reinstall
W2K from scratch and I haven't put cygwin back yet.

-- 
Jon H. LaBadie  [EMAIL PROTECTED]
 JG Computing
 4455 Province Line Road(609) 252-0159
 Princeton, NJ  08540-4322  (609) 683-7220 (fax)


Re: newbie question

2003-07-29 Thread Jon LaBadie
On Tue, Jul 29, 2003 at 01:35:50PM -0400, Dalton, John L MONMOUTH ITS Multimax wrote:
> 
> Just got amanda configured on a raidzone
> but I don't think the changer file is correct
> as it will not load tapes from the 29 storage
> elements.
> 
> Do I have to label every tape before it will
> move them form storage?

yes

-- 
Jon H. LaBadie  [EMAIL PROTECTED]
 JG Computing
 4455 Province Line Road(609) 252-0159
 Princeton, NJ  08540-4322  (609) 683-7220 (fax)


Re: amrecover problem

2003-07-29 Thread briner
hi,

when you type amrercover -s borkerserver... it means that borkerserver
is where the index information are.

I saw in your amanda.conf that your index file are stored in
infofile "/var/lib/amanda/normal/curinfo"   # database filename
logdir   "/var/lib/amanda/normal"   # log directory
indexdir "/var/lib/amanda/normal/index" # index directory

so in borkerserver:/var/lib/amanda/normal/index you should find the
index information base...

is that the case?

if not!.. the server is usually where you run amanda.
then type amrecover -s 

hope it will help

briner
> Hi
> The exact commands that I ran were
> 'amrecover -C normal -s borkerserver'
> 501, no index records for the host brokerserver, Invalid?
> amrecover> sethost localhost
> no index records for host :localhost Invalid?
> Samething for brokerserver also.
> I have attached my amanda.conf and disklist. Please let me know if there is any 
> problem.
> I have addes both localhost and brokerserver in.amandahosts and I have enabled 
> amanda,amandaidx and amidxtape in /etc/xinetd.d. I dont know how to enable the index 
> of the records
> Regards
> Yogish
> --
> Yogish.G.K
> American Healthcare Solutions Inc
> 405, South Lincoln
> Steamboat Springs CO-80487
> Ph-970-870-6232 ( EXT 106) (office)
> Email: [EMAIL PROTECTED]
>