RE: amrecover/amindexd problems, 242p1

2001-03-20 Thread Carey Jung


 Amrecover is not the issue.  The issue is why amindexd is quitting.  I
 assume both machines are connecting to the same amindexd server?

Everything's happening on the same machine.  The problem is not amindexd
quitting, I believe, but rather amrecover not being able to connect to it.
We ran another strace, this time on amrecover, that shows this.

We've gotten it working now, by going back to 2.4.2, applying the /dev/root
fix, rebuilding, reinstalling, etc.  I'll look at amrecover diffs between
2.4.2 and 2.4.2p1 and see if I can track the problem down.

Carey




Backing up WIN NT-Server with Amanda

2001-03-20 Thread harald . husemann

Hi,

I need to backup some Windows-Machines and want to use a linux-server
running amanda to do this.
Has anyone experiences with the following backup scenario:

Some Windows-Machines, running WIN98, WIN95 and WIN NT
One LINUX-Machine which is used as a fileserver (via SAMBA)
I want to mount the Windows-Filesystems on the LINUX-Host (with smbclient),
and use amanda to backup everything.
(The clients are running 24h a day)
I have an Onstream DI-30 tapedrive, which (should) work fine with the new
Linux Kernel.

Thanks for any comments,

best regards,

Harald Husemann
System Admin
Materna GmbH, 44171 Dortmund




Re: amrecover from client

2001-03-20 Thread C Scott

On Mon, 19 Mar 2001, John R. Jackson wrote:

 I am using 2.4.2p1. Should I try a development release?
 
 The changes I'm thinking of were done after 2.4.2p1 and are in the
 amanda-242-branch of CVS.  I'd give you a set of patches except they were
 a little more extensive than just a few lines of diffs because they got
 tangled up in some other minor tweaks.
 
 C Scott
 
 John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]
 
The CVS version works fine. Thanks a lot!  Is that a common problem with
Linux clients?  The clients here are both Red Hat and Debian.


C Scott




RE: amrecover/amindexd problems, 242p1

2001-03-20 Thread Carey Jung


 We've gotten it working now, by going back to 2.4.2, applying the
 /dev/root
 fix, rebuilding, reinstalling, etc.  I'll look at amrecover diffs between
 2.4.2 and 2.4.2p1 and see if I can track the problem down.


I misspoke.  We have it working now, running 2.4.2p1 plus the /dev/root
patch.  It's a reverse resolution problem.  Our temp fix is to create an
/etc/hosts entry, and we're tracking down the reverse resolution problem
now

Carey




amanda problems

2001-03-20 Thread Sandra Panesso

HI everybody:

I  have a machine with Mac OS X that i am trying to backup  for  
level 4 but i get an error " Data write: File too large".
The first time that I included this machine into the disklist  
everything was fine, I could backup but the problem was when I tried  
to backup all the area /Local that is aprox 12 Gb. I have two holding  
disks.  The First one  is about 7.6 Gb and the last one has 4 Gb.
IN my amanda.conf  i defined the chunksize value 2000 Mb  less than  
2 Gb as I read in the  FAQ but Still I get the same error.

I don't know if  you need more details.  I would  appreciate if  
somebody can help me
Thanks

Sandra



Re: Backing up WIN NT-Server with Amanda

2001-03-20 Thread Ben Kochie

yep, I have reliably backed up an NT PDC, and win98 workstation data
with amanda.  the only thing that does not get backed up is files open
for write, and things like the registery (because of the active file
status)

[EMAIL PROTECTED] wrote:
 
 Hi,
 
 I need to backup some Windows-Machines and want to use a linux-server
 running amanda to do this.
 Has anyone experiences with the following backup scenario:
 
 Some Windows-Machines, running WIN98, WIN95 and WIN NT
 One LINUX-Machine which is used as a fileserver (via SAMBA)
 I want to mount the Windows-Filesystems on the LINUX-Host (with smbclient),
 and use amanda to backup everything.
 (The clients are running 24h a day)
 I have an Onstream DI-30 tapedrive, which (should) work fine with the new
 Linux Kernel.
 
 Thanks for any comments,
 
 best regards,
 
 Harald Husemann
 System Admin
 Materna GmbH, 44171 Dortmund

-- 
Ben Kochie   | [EMAIL PROTECTED]
IMA Systems Office   | 400 Lind Hall, 207 Church St. SE
http://www.ima.umn.edu   | Minneapolis, MN 55455-0463



Re: Backing up WIN NT-Server with Amanda

2001-03-20 Thread Andrew Meredith

Hold on though .. you don't need to explicitly mount the NT data onto
the Linux box. You just let Amanda take care of it for you ... and as
Ben quite rightly says, it is reliable.

My first posting here BTW, so I would just like to take the chance to
say thanks for the great software. I had a pile of nasty shell scripts
that were getting more and more convoluted. Now I have a nice clean
config file and a setup that can survive for a day or two with no tapes
if I am away.

Lovely job

Andrew Meredith

(.sig below for those who care)

Ben Kochie wrote:
 
 yep, I have reliably backed up an NT PDC, and win98 workstation data
 with amanda.  the only thing that does not get backed up is files open
 for write, and things like the registery (because of the active file
 status)
 
 [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I need to backup some Windows-Machines and want to use a linux-server
  running amanda to do this.
  Has anyone experiences with the following backup scenario:
 
  Some Windows-Machines, running WIN98, WIN95 and WIN NT
  One LINUX-Machine which is used as a fileserver (via SAMBA)
  I want to mount the Windows-Filesystems on the LINUX-Host (with smbclient),
  and use amanda to backup everything.
  (The clients are running 24h a day)
  I have an Onstream DI-30 tapedrive, which (should) work fine with the new
  Linux Kernel.
 
  Thanks for any comments,
 
  best regards,
 
  Harald Husemann
  System Admin
  Materna GmbH, 44171 Dortmund
 
 --
 Ben Kochie   | [EMAIL PROTECTED]
 IMA Systems Office   | 400 Lind Hall, 207 Church St. SE
 http://www.ima.umn.edu   | Minneapolis, MN 55455-0463

Andrew Meredith
___
  The Anvil Organisation Ltd.
  Director
Tel: +44 (0) 1249 444240 | Email:  [EMAIL PROTECTED]
Fax: +44 (0) 1249 460560 | Web:   http://www.anvil.org/
Mob: +44 (0) 7802 389007 | SMS: [EMAIL PROTECTED]
___
   The box says Win95 or better .. Must run under Linux then!



AW: Backing up WIN NT-Server with Amanda

2001-03-20 Thread harald . husemann

Hi Ben,

thanks for your prompt answer, I know there are problems with the registry
and with open files, but that doesn't mater in this case.
So, it will be no problem (as I supposed, with such a nice software like
amanda)

Thanks + best regards,

Harald

-Ursprngliche Nachricht-
Von: Ben Kochie [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 20. Mrz 2001 16:35
An: [EMAIL PROTECTED]
Betreff: Re: Backing up WIN NT-Server with Amanda


yep, I have reliably backed up an NT PDC, and win98 workstation data
with amanda.  the only thing that does not get backed up is files open
for write, and things like the registery (because of the active file
status)

[EMAIL PROTECTED] wrote:
 
 Hi,
 
 I need to backup some Windows-Machines and want to use a linux-server
 running amanda to do this.
 Has anyone experiences with the following backup scenario:
 
 Some Windows-Machines, running WIN98, WIN95 and WIN NT
 One LINUX-Machine which is used as a fileserver (via SAMBA)
 I want to mount the Windows-Filesystems on the LINUX-Host (with
smbclient),
 and use amanda to backup everything.
 (The clients are running 24h a day)
 I have an Onstream DI-30 tapedrive, which (should) work fine with the new
 Linux Kernel.
 
 Thanks for any comments,
 
 best regards,
 
 Harald Husemann
 System Admin
 Materna GmbH, 44171 Dortmund

-- 
Ben Kochie   | [EMAIL PROTECTED]
IMA Systems Office   | 400 Lind Hall, 207 Church St. SE
http://www.ima.umn.edu   | Minneapolis, MN 55455-0463



Re: Failed backup of / partition

2001-03-20 Thread Shreedeep Bhachech


 When you ran ./configure, did it say it found setmntent?  
I don't recall.

 What do you get when you run this:
 
   grep SETMNT config/config.h
#define HAVE_SETMNTENT 1

 What does your /etc/fstab line look like for /?  What about
 /proc/mounts?
/etc/fstab:
/dev/hda12 /   ext2defaults1 1

/proc/mounts:
/dev/root / ext2 rw 0 0
^
From what I can see, it's OS dependant problem! hmm! Any suggestions?  


=
-+
Shreedeep Bhachech
[EMAIL PROTECTED]

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



Re: AW: Backing up WIN NT-Server with Amanda

2001-03-20 Thread Paul Bijnens



[EMAIL PROTECTED] wrote:
 
 thanks for your prompt answer, I know there are problems with the registry
 and with open files, but that doesn't mater in this case.
 So, it will be no problem (as I supposed, with such a nice software like
 amanda)
 

I'm also backing up a few Win9x and WinNT and W2K machines.  For
the registry on NT etc, you _can_ do something.  Either you export
the registry into a text file, which you back up normally, or
you use "rdisk /s-" and then you find a backup of the registry in
"%WINNT%\repair".  Restoring from these files however is not as simple,
but at least you have something!  Run one or both just commands just
before the normal daily backup and amanda will pick them up in the
next run.

-- 
Paul Bijnens, Lant Tel  +32 16 40.51.40
Interleuvenlaan 15 H, B-3001 Leuven, BELGIUM   Fax  +32 16 40.49.61
http://www.lant.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: access error when using samba

2001-03-20 Thread Terry Koyama

Alexandre,

I think I understand what you are saying.  And yes, vedder is a unix
machine currently configured as an amanda client.

Please explain to me (who should be a server/client) how all this should
work, using my environment as an example.  I have a Linux machine
(vedder) that is a amanda server (and client).  I have a few other unix
machines (which we can ignore for now) and a Windows 2000 machine (ozzy)
that I need to backup two directories called c:\mydata and c:\mydata2. 
How do I specify these directories? 

Thanks,

Terry


Alexandre Oliva wrote:
 
 On Mar 19, 2001, Terry Koyama [EMAIL PROTECTED] wrote:
 
  disklist contains: vedder //vedder/ozzybkup windows-test
 
 This must be wrong.  Is vedder a Unix machine, configured as an Amanda
 client?  In this case, what's the point of naming is as the SMB server
 too?
 
 --
 Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
 Red Hat GCC Developer  aoliva@{cygnus.com, redhat.com}
 CS PhD student at IC-Unicampoliva@{lsd.ic.unicamp.br, gnu.org}
 Free Software Evangelist*Please* write to mailing lists, not to me



RE: amrecover/amindexd problems, 242p1

2001-03-20 Thread Carey Jung

It was on the mailing list within the past couple weeks.  I'll send it to
you directly.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Shreedeep Bhachech
 Sent: Tuesday, March 20, 2001 10:51 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: RE: amrecover/amindexd problems, 242p1


  I misspoke.  We have it working now, running 2.4.2p1 plus the
  /dev/root
  patch.
 What is this /dev/root patch? Where can I find it? Might be of help in
 my case, maybe!

  Carey
 
 Shreedeep

 =
 -+
 Shreedeep Bhachech
 [EMAIL PROTECTED]

 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail.
 http://personal.mail.yahoo.com/






Re: access error when using samba

2001-03-20 Thread John R. Jackson

Please explain to me (who should be a server/client) how all this should
work, using my environment as an example.  I have a Linux machine
(vedder) that is a amanda server (and client).  I have a few other unix
machines (which we can ignore for now) and a Windows 2000 machine (ozzy)
that I need to backup two directories called c:\mydata and c:\mydata2. 
How do I specify these directories? 

vedder  //ozzy/mydata   whatever
vedder  //ozzy/mydata2  whatever

This tells Amanda to connect to vedder (via normal Amanda amandad)
and vedder will run smbclient to //ozzy/mydata.

In other words, the Amanda client (first column) is **always** a Unix box.
The "disk", in the case of Samba, is the share name that will be accessed
from the Amanda client, and thus it contains the PC host name.

Terry

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



RE: amrecover/amindexd problems, 242p1

2001-03-20 Thread Carey Jung

After all was said and done, it turned out that our amrecover problems had
to do with reverse dns lookup errors.  We had a named db misconfigured.
Sorry for the waste of bandwidth.

Carey




amanda dns semantics

2001-03-20 Thread Carey Jung

We would like to turn off the reverse DNS resolution checking that amanda
does, because frankly, it's a nuisance for us.  We're doing appropriate
firewalling, ipsec security, etc., via other means.  In particular, even if
it's just for amrecover/amindexd, is there an easy way to do this (i.e.,
recompile), or do we need to modify the source.  If this is a braindead
idea, I'd like to know that, too.

Thanks in advance.
Carey Jung
IT Freedom
[EMAIL PROTECTED]
512.419.0070, fax 419.0080




RE: exclude list format

2001-03-20 Thread William Lorfing

John,

I tried your scripts and they helped some.

I am not sure if you can help me or not. I had some questions on backing up
Microsoft clients.

We are trying to backup Microsoft clients and we want to exclude some of the
files and directories.

We tried putting the exclude file on the client and on the server and didn't
have any luck.

It did not matter what syntax we used, the files were always backed up.

Have you done anything like this or have any suggestions?

Here is what we are running:
amanda@parody:p0 /home/amanda amadmin x version
build: VERSION="Amanda-2.5.0"
   BUILT_DATE="Mon Oct 23 13:56:02 CDT 2000"
   BUILT_MACH="FreeBSD parody 4.1.1-RELEASE FreeBSD 4.1.1-RELEASE #3:
Fri Oct 20 12:21:37 CDT"

amanda@parody:p0 /home/amanda /usr/local/bin/gtar --version
tar (GNU tar) 1.13

Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation,
Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

smbclient version 2.0.7

Thanks,

William

William Lorfing
System Administrator
VIEO, Inc.
12416 Hymeadow Drive, Suite 200
Austin, TX 78750
Office: (512) 257-3031 x 108
Fax:(512) 257-3031
[EMAIL PROTECTED]
 http://www.vieo.com
 VIEO: Enabling Fabric Computing





 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of John R. Jackson
 Sent: Thursday, March 15, 2001 7:22 PM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: exclude list format


 I understand you figured out the syntax (congratulations! -- it always
 gives me a headache :-), so the following is just rambling.

 The problem is that even though I am telling it to exclude
 these files AND
 use tar it still creates the tarball with those directories
 which causes
 the dump to fail.  What is the syntax of the exclude file.  ...

 FYI, I wrote some scripts to help me figure out and test
 exclude patterns:

   ftp://gandalf.cc.purdue.edu/pub/amanda/gtartest-exclude

 Does anyone
 know of a GOOD place for amanda docs.  All I can find says
 use fearture A
 but gives no way of how to use feature A.  For example the
 man page talks
 about the exclude file but does not cover the format of the
 exclude file.

 Have you looked at http://www.backupcentral.com/amanda.html?  There is
 a section in there about exclusion patterns, although I had to fight
 through figuring them out, so make no guarantees they are
 100% correct.

 As to the exclude syntax specifically, why should Amanda document GNU
 tar parameters?  If you're having trouble (as many, **many**,
 people do,
 including myself :-) with a feature of GNU tar, it seems to me that's
 the place you should go for documentation.

 On the other hand :-), Amanda is a (the) *heavy* user of this feature,
 so it would probably be good to write a docs/EXCLUDE file for release.
 At a minimum, we should at least make it clear that "exclude" maps to
 "--exclude=PATTERN" and "exclude list" maps to
 "--exclude-from=FILE" so
 you could have some hope of finding the right stuff in the
 GNU tar docs.

 Any volunteers?  (yeah, I thought not :-).

 Why does amcheck not find these errors?

 What errors?  Amcheck knows nothing about exclusions (although I think
 it will check for the file).  Are you asking that it run GNU
 tar and make
 sure doing it with the exclusions and without generates
 different results?
 That would be a bit, shall we say, time consuming.

 Andrew Hall

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






Re: exclude list format

2001-03-20 Thread John R. Jackson

We are trying to backup Microsoft clients and we want to exclude some of the
files and directories.

We tried putting the exclude file on the client and on the server and didn't
have any luck.

It did not matter what syntax we used, the files were always backed up.

Have you done anything like this or have any suggestions?

This is trivial.  All you have to do is convince the Samba folks to
support it.  :-)

It's not an Amanda issue.  It's a lack of feature support in smbclient.

William

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



Re: amrecover from client

2001-03-20 Thread John R. Jackson

... Is that a common problem with Linux clients?  ...

The Amanda code was just plain wrong (or mistaken in its approach),
but most clients didn't care.  I guess some clients do now.

C Scott

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



amanda behind firewall

2001-03-20 Thread Sergio Pereira

Hi all,
I'm using amanda-2.4.2p1 and I used to compile ./configure
--with-portrange=1000,1005 --with-udpportrange=850,854
--with-user=amanda --with-group=disk

but ... when I'm trying to do a backup my firewall response:
--cut--
DENY eth2 PROTO=6 207.245.14.66:3267 207.245.14.71:32886
--cut--

how can I fix it ?
thanks

sergio




Re: access error when using samba

2001-03-20 Thread Mark L. Chang

On Tue, 20 Mar 2001, John R. Jackson wrote:

 Huh?  It's the Unix machine that is running Samba, not the PC. The
 Windows machines must "share" what they want visible, but there's no
 server involved (well, I guess there is an SMB server on the PC but
 it's part of the base Windows OS).  But maybe I don't understand the
 question.

To clarify - the windows boxes need to be running "file and print sharing"
in their network setup. This, as far as I know, is not how Windows comes
configured out of the box. You need to explicitly say somewhere that you
want to enable it, and it will install the appropriate stuff.

Mark

-- 
http://www.mchang.org/
http://decss.zoy.org/





AMRECOVER-No index records for disk for specified date

2001-03-20 Thread Martin Novacek

I have just installed Amanda 2.4.2p1 on SuSE 7.0. I have troubles with
AMRECOVER.
I am sure, that my index file is:
/etc/amanda/csd/index/linux1/_dev_ida_c0d0p4/20010314_0.gz
-
When I write in AMRECOVER :
amrecover setdisk /dev/ida/c0d0p4
Scanning /var/amanda...
200 Disk set to /dev/ida/c0d0p4.
No index records for disk for specified date
If date correct, notify system administrator
-
When I write wilfully incorrect:
amrecover setdisk /dev/ida/c0d0p5
501 No index records for disk: /dev/ida/c0d0p5. Invalid?
-
I conclude, that I can correctly reach directory, but cannot reach index
file.


cat  /tmp/amanda/amindexd.debug   gives:

amindexd: debug 1 pid 16111 ruid 37 euid 37 start time Mon Mar 19 13:03:12
2001
amindexd: version 2.4.2p1
 220 linux1 AMANDA index server (2.4.2p1) ready.
 SECURITY USER root
bsd security: remote host linux1.local user root local user amanda
amandahosts security check passed
 200 Access OK
 DATE 2001-03-19
 200 Working date set to 2001-03-19.
 SCNF csd
 200 Config set to csd.
 HOST linux1
 200 Dump host set to linux1.
 DISK /
 501 No index records for disk: /. Invalid?
 DISK root
 501 No index records for disk: root. Invalid?
 DISK /dev/ida/c0d0p4
 200 Disk set to /dev/ida/c0d0p4.
 OISD /
 500 No dumps available on or before date "2001-03-19"
 OISD /
 500 No dumps available on or before date "2001-03-19"
 DISK /dev/ida/c0d0p5
 501 No index records for disk: /dev/ida/c0d0p5. Invalid?
 DISK /dev/ida/c0d0p4
 200 Disk set to /dev/ida/c0d0p4.
 OISD /
 500 No dumps available on or before date "2001-03-19"
 OISD /
 500 No dumps available on or before date "2001-03-19"
 QUIT
 200 Good bye.

If I debug amrecover, in set_commands.c

   if (server_happy())
{
suck_dir_list_from_server();
}
else
{   /*  Here goes after test in server_happy()*/
printf("No index records for cwd on new date\n");
printf("Setting cwd to mount point\n");
disk_path = newstralloc(disk_path, "/");/* fake it */
clear_dir_list();
}

inside server_happy() I see: server_line[0]=53'5', which is ( I hope) error
code, but what does it mean?.

Do You have any idea ? Thank You in advance.

Martin Novacek








Re: amanda dns semantics

2001-03-20 Thread John R. Jackson

We would like to turn off the reverse DNS resolution checking that amanda
does, because frankly, it's a nuisance for us.  ...
...  In particular, even if
it's just for amrecover/amindexd, is there an easy way to do this (i.e.,
recompile), or do we need to modify the source.  ...

In essence, you want to remove all gethostbyaddr calls, right?

You're effectively turning off all Amanda security since amandad uses
that to do a lookup by IP address to get back the connecting host name
to do the search in .amandahosts.  To do that, just reconfigure/rebuild
using --without-bsd-security and it will let anything in.

There is also some code in amindexd.c that does a gethostbyaddr but the
result does not appear to be used.  You'll still have to go in there
and comment it out, though.

If this is a braindead idea, I'd like to know that, too.

It bothers me to turn off security, but I don't know your setup.

Carey Jung

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



Re: This is just weird!

2001-03-20 Thread John R. Jackson

   How can a given client "sometimes" not be able to resolve the
   tapehost?

You're asking the wrong folks.  Amanda just calls the system provided
gethostby* routines.  You need to look into how those work (i.e. whether
they look at /etc/hosts, DNS, etc) and guess at why those are failing
sometimes.

My guess would be that you are using DNS and that the server just goes
to sleep on occasion.  And/or you don't have enough fallback servers to
take up the cause when the primary does not respond.

Stan Brown

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



Re: access error when using samba

2001-03-20 Thread John R. Jackson

In the scenario that you've described, is it true that every Windows
machine needs to run a samba server?

Huh?  It's the Unix machine that is running Samba, not the PC.
The Windows machines must "share" what they want visible, but there's no
server involved (well, I guess there is an SMB server on the PC but it's
part of the base Windows OS).  But maybe I don't understand the question.

Terry

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



user permissions problem

2001-03-20 Thread Mark L. Chang

Question that I can't seem to find in the FAQ or on "the page"... it seems
trivial, but I guess I'm missing _something_ very obvious -- excuse the
lengthy posting.

--BEGIN--
tape-server == prefect (slack linux)
client  == brain   (solaris 8)

amanda users are all backup/backup (and group sys). I am trying to backup
an entire partition on brain (client) mounted as /export/home . This disk
is:

/export/home   (/dev/dsk/c1t1d0s0 ):15472040 blocks  2123875 files

disklist contains:
brain c1t1d0s0 comp-user-tar

I've given access (group) read to the device that the disk is accessed as:
brw-r-   1 root sys   32,  8 Mar  5 11:06
pci@1f,0/pci@1/scsi@3/sd@1,0:a


So, is this disklist right? I put in the partition/disk information
instead of the /export/home, since I gave the user backup group read on
that partition? It seems to have gathered all the files, given the size of
the backup it wrote, but I can't seem to find a bunch of the stuff using
amrecover.

So, ls -la /export/home gives:
total 1389534
drwxrwxrwx  19 root research1024 Mar 14 13:26 ./
drwxr-xr-x   3 root sys  512 Mar  5 11:14 ../
drwxr-xr-x   2 root research 512 Sep 13  2000 TT_DB/
drwxr-xr-x   8 akshay   research 512 Mar 15 17:03 akshay/
drwxr-xr-x  34 chandi   research2048 Mar 19 13:06 chandi/
-rw-r--r--   1 chandi   research 671441037 Oct 13 09:57 chandi.tgz
drwxr-xr-x  16 2003 research1024 Jan 24 15:46 harrisjs/
drwxr-xr-x  16 hauckresearch1024 Feb 15 10:10 hauck/
drwxr-xr-x  41 justin   staff   2560 Mar 19 11:22 justin/
drwxr-xr-x   9 kati research 512 Mar 16 15:20 kati/
drwxr-xr-x   3 justin   research 512 Sep 25 09:05 kio/
-rw-r--r--   1 1019 research  39 Sep 13  2000 larry.tar.gz
drwxr-xr-x  22 mchang   research1024 Mar 20 17:32 mchang/
drwxr-xr-x  21 melany   research1536 Mar 14 12:58 melany/
drwxr-xr-x  32 mholland research2560 Mar 20 15:10 mholland/
drwxr-xr-x  15 phillips research1024 Mar 20 15:26 phillips/
drwxr-xr-x  27 root other   1536 Feb 20 16:17 root/
drwxr-xr-x   7 2004 research 512 Feb 14 15:23 silkworm/
drwxr-xr-x  25 zaphod   research2560 Mar 17 17:22 zaphod/
-rw-r--r--   1 root research 39581685 Mar  9 12:39 zaphod.tgz
drwxr-xr-x  38 zl   research3072 Mar 16 17:47 zl/
drwxr-xr-x   2 zl   research 512 Oct 12 13:14 zl.old/


Where in amrecover (sudo amrecover daily -s prefect -t prefect):
AMRECOVER Version 2.4.2p1. Contacting server on prefect ...
220 prefect AMANDA index server (2.4.2p1) ready.
200 Access OK
Setting restore date to today (2001-03-20)
200 Working date set to 2001-03-20.
200 Config set to daily.
200 Dump host set to brain.
Can't determine disk and mount point from $CWD
amrecover setdisk c1t1d0s0
Scanning /dumps...
200 Disk set to c1t1d0s0.
amrecover ls
2001-03-20 chandi/
2001-03-20 hauck/
2001-03-20 justin/
2001-03-20 melany/
2001-03-20 mholland/
2001-03-20 root/
2001-03-20 zl/


-END-
What's goin on here? Thanks.

-- 
http://www.mchang.org/
http://decss.zoy.org/





Re: This is just weird!

2001-03-20 Thread Stan Brown

On Tue Mar 20 17:10:21 2001 John R. Jackson wrote...

  How can a given client "sometimes" not be able to resolve the
  tapehost?

You're asking the wrong folks.  Amanda just calls the system provided
gethostby* routines.  You need to look into how those work (i.e. whether
they look at /etc/hosts, DNS, etc) and guess at why those are failing
sometimes.

My guess would be that you are using DNS and that the server just goes
to sleep on occasion.  And/or you don't have enough fallback servers to
take up the cause when the primary does not respond.


Mmm, I am really puzzled by this. The tapeserver is an HP-UX 10.20 box, on the
same network are 2 other HP-UX boxes, also 10.20. All of these machines have
each other in the /etc/hosts file, and nsswitch.conf set up to check there
first.

Almost all the other machines that the tapserver backus up are on other
subnets, and have to go through a FreeBSD gateway box.

Like I said, it's just weird.

Thanks.

-- 
Stan Brown [EMAIL PROTECTED]843-745-3154
Charleston SC.
-- 
Windows 98: n.
useless extension to a minor patch release for 32-bit extensions and
a graphical shell for a 16-bit patch to an 8-bit operating system
originally coded for a 4-bit microprocessor, written by a 2-bit 
company that can't stand for 1 bit of competition.
-
(c) 2000 Stan Brown.  Redistribution via the Microsoft Network is prohibited.



Re: This is just weird!

2001-03-20 Thread John R. Jackson

   ... All of these machines have
   each other in the /etc/hosts file, and nsswitch.conf set up to check th
ere
   first.

Are you absolutely certain they are checking /etc/hosts first?  If you
do something that does a hostname lookup (e.g. ftp or telnet, etc),
does the access time (ls -lu) on /etc/hosts get updated?

Just a thought.

Stan Brown

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



Samba restores don't work ...

2001-03-20 Thread Tony Ross

Greetings;

Backups are working great across a network of 16 different UNIX variants, and several 
NT servers. My problem is restoring to the NT servers.

We are using Amanda 2.4.2p1, Samba 2.07 and gtar 1.13 on a Solaris 2.6 box.

The Samba shares are accessible to the user "backup" who has "Full Control" on all 
directories and files within the share.

From Daily/disklist:

sun26 //nt4/StarTeamVault  windows-samba

From amanda.conf:

define dumptype global {
index yes
}
define dumptype windows-samba {
global
program "GNUTAR"
comment "Critical Windows shares"
options no-compress 
priority high
}


From /etc/amandapass:

//nt4/StarTeamVault backup
ckup

"Backups proceed uneventfully. Restoring using "setmode tar, works as expected, so the 
tape is certainly readable. The following is a transcript of amrecover using Samba: 
with the correct tape in the drive

#
amrecover/ setdisk //nt4
StarTeamVault
.../200 Disk set to //nt4
StarTeamVault.
amrecover
 cd Java///nt4/StarTeamVault
Java
amrecover
 add Server-16-Feb-01-12-46-32.Log/Added /Java
Server-16-Feb-01-12-46-32.Log
amrecover
 setmode smb
SAMBA dumps will be extracted using smbclient
amrecover
 extract
/Extracting files using tape drive /dev
autodrive_norewind on host sun26.:The following tapes are needed
 Daily01
/Restoring files into directory /tmp
amanda(,unless it is a Samba backup) that will go through to the SMB server
?Continue[ /Y]n:
 y

Load tape Daily01 now?Continue[ /Y]n:
 y
amrecover
 quit#


:From amidxtaped.debug


...:amrestore:   7
 restoring sun26.__nt4_StarTeamVault.20010319.0(Error 32 )Broken pipe+ offset 0,32768
 wrote 0:amrestore
 pipe reader has quit in middle of file.:amrestore, skipping ahead to start of next 
file
 please wait...:amidxtaped: amrestore terminated normally with status
 2:Rewinding tape
 done:amidxtaped: pid 8305 finish time Tue Mar 20 19:11
09 2001


:From amrecover.debug


..."Started amidxtaped with arguments /6 -h -p /dev^autodrive_norewind sun26 
///nt4$StarTeamVault" 20010319
'Exec/ing /usr/local/samba/bin:smbclient with arguments

smbclient///nt4
StarTeamVault
X -U %backup
backup
-d0
-Tx
-/./Java
Server-16-Feb-01-12-46-32.Log:amrecover: pid 7587 finish time Tue Mar 20 19:11
22 2001
:From amindexd.debug


.../ 200- Opaque list of 
Java
.../ 201- 2001-03-19 0 Daily01  /Java
Server-16-Feb-01-12-46-32.Log
.../ 200  Opaque list of 
Java
 TAPE/ 200 /dev
autodrive_norewind
 QUIT:Removing index file/ 
/usr/local/etc/amanda/Daily/info/index/sun26/__nt4_StarTeamVault
20010319_0
 200 Good bye.:amindexd: pid 7588 finish time Tue Mar 20 19:11
22 2001
##


The file is not restored to the NT server as is needed.

I will Thank You very much in advance for any help or insight into this problem.


tony%0A


Silly question re: samba

2001-03-20 Thread David Logan

Hi Folks,

Having read the FAQ-O-Matic and not really answering my question, here
goes :

I have my server lagoon, samba server tamar and client arthur (solaris
2.8) client prion-pc (Win 98). Does amandad have to be running on the
samba server (tamar) in order for lagoon to backup the C$ share on
prion-pc?

Thanks
-- 
___

David Logan 102 Cameron Street
Broadband e-Lab Launceston Tas 7250
Australia
Ph : (03) 6323 2667
Fax: (03) 6323 2666
Mob: (0419) 890 763



Re: Silly question re: samba

2001-03-20 Thread John R. Jackson

Having read the FAQ-O-Matic and not really answering my question ...

This has come up a few times recently.  The docs/SAMBA file has recently
been updated, and I'll see if I can't beef up "the chapter", too.

I have my server lagoon, samba server tamar and client arthur (solaris
2.8) client prion-pc (Win 98). Does amandad have to be running on the
samba server (tamar) in order for lagoon to backup the C$ share on
prion-pc?

Yes.  The disklist entry will look like this on lagoon:

  tamar   //prion-pc/some-share-namesome-dumptype

This tells Amanda to connect to tamar and run amandad/sendbackup, who
in turn will run smbclient to back up //prion-pc/some-share-name.

David Logan

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



Samba Backups

2001-03-20 Thread David Lloyd


Hmmm!

I have compiled Samba 2.4.2 with:

./configure --with-libsmbclient (and the other options are the same as
the ones that worked before)

Added:

[adlcds1 ]# cat /etc/amandapass
//WEBAPP/Web asifiwouldtellapubliclist

Added:

[adlcds1 ]# cat disklist
adlcds1 //WEBAPP/Web comp-tar

BUT

amcheck -c says it can't find the disk "//WEBAPP/Web"...

And I don't know what's wrong...using smbclient by itself works
correctly.

DSL
-- 
And though you turn from me
 To glance behind
 The Phantom of the Opera is there...
 Inside your mind!