Cyrillic support for index files

2006-06-09 Thread Евгений Ю Сосунов
Good day!

Sorry for my English.

I have installed and configured amanda.

build: VERSION=Amanda-2.4.5
   BUILT_DATE=Wed Jun 7 16:25:00 NOVST 2006
   BUILT_MACH=Linux HOME 2.4.26-std-smp-alt13 #1 SMP Sun Nov 13
23:35:06 MSK 2005 i686 unknown unknown GNU/Linux
   CC=gcc
   CONFIGURE_COMMAND='./configure' '--build=i686-alt-linux' '
--host=i686-alt-linux' '--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' '--localstatedir=/var/lib' '
--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '
--infodir=/usr/share/info' '--without-included-gettext' '--enable-shared' '
--with-index-server=localhost' '--with-gnutar=/bin/tar' '
--with-gnutar-listdir=/var/lib/amanda/gnutar-lists' '
--with-smbclient=/usr/bin/smbclient' '--with-db=text' '--with-amandahosts'
'--with-user=amanda' '--with-group=disk' '--with-debugging' '
--libexecdir=/usr/lib/amanda' '--without-bsd-security' '
--program-transform-name=' '--disable-static'
paths: bindir=/usr/bin sbindir=/usr/sbin
   libexecdir=/usr/lib/amanda mandir=/usr/share/man
   AMANDA_TMPDIR=/tmp/amanda AMANDA_DBGDIR=/tmp/amanda
   CONFIG_DIR=/etc/amanda DEV_PREFIX=/dev/
   RDEV_PREFIX=/dev/ DUMP=/sbin/dump
   RESTORE=/sbin/restore VDUMP=UNDEF VRESTORE=UNDEF
   XFSDUMP=/sbin/xfsdump XFSRESTORE=/sbin/xfsrestore
   VXDUMP=UNDEF VXRESTORE=UNDEF
   SAMBA_CLIENT=/usr/bin/smbclient GNUTAR=/bin/tar
   COMPRESS_PATH=/bin/gzip UNCOMPRESS_PATH=/bin/gzip
   LPRCMD=/usr/bin/lpr MAILER=/usr/bin/Mail
   listed_incr_dir=/var/lib/amanda/gnutar-lists
defs:  DEFAULT_SERVER=localhost DEFAULT_CONFIG=DailySet1
   DEFAULT_TAPE_SERVER=localhost
   DEFAULT_TAPE_DEVICE=/dev/null HAVE_MMAP HAVE_SYSVSHM
   LOCKING=POSIX_FCNTL SETPGRP_VOID DEBUG_CODE
   AMANDA_DEBUG_DAYS=4 CLIENT_LOGIN=amanda FORCE_USERID
   HAVE_GZIP COMPRESS_SUFFIX=.gz COMPRESS_FAST_OPT=--fast
   COMPRESS_BEST_OPT=--best UNCOMPRESS_OPT=-dc

When I backing up files and folders with russian names, they are backed up.
But I have some trouble with index files. All russian characters look like
/\356\317\327\301\321 \320\301\320\313\301/
/\356\317\327\301\321 \320\301\320\313\301 (2)/
... and e.t.c.

I tried to exec command /bin/tar -tf /tmp/some_tar_whit_russian_names.tar
2/dev/null | sed -e 's/^\.//'/tmp/123.txt from amanda in bash. And it
looks fine. When I tried to exec this command (/bin/tar -tf
/tmp/tar_rus.tar 2/dev/null | sed -e 's/^\.//'/tmp/123.txt) from crontab
of amanda and have bad results like: /\356\317\327\301\321
\320\301\320\313\301/
/\356\317\327\301\321 \320\301\320\313\301 (2)/
... and e.t.c.

I go next. And find that this depend on ENVIRONMENT Variable LANG. When i
try to modify crontab for amanda. I add two lines LANG=ru_RU.KOI8-R and
LANGUAGE=ru_RU.KOI8-R. And command /bin/tar -tf /tmp/tar_rus.tar
2/dev/null | sed -e 's/^\.//'/tmp/123.txt running from crontab of amanda
works fine.

After that I modify ENVIRONMENT Variable LANG in crontab of amanda user.
But amdump which create index files still not working correctly. And create
index file like /\356\317\327\301\321 \320\301\320\313\301/
/\356\317\327\301\321 \320\301\320\313\301 (2)/
... and e.t.c.

Have you any suggestions how to decide this problem? May be I can set
Variable LANG in amdump? How to do this?




RE: Restoring windows partition written using smbclient

2006-06-09 Thread John Clement
Another one for you maybe?

Although I think this one might just be a case of it not going to work
like this and needing to change it...

DLE:
autonomy.deanst.rroom.net   /mnt_f/Websites
comp-root-tar-win

From amanda.conf
define dumptype comp-root-tar-win {
root-tar
comment Root partitions with compression
compress client fast
index
#exclude list /var/lib/amanda/exclusions.txt
}

So I'm doing this (and version of it):

# /usr/sbin/amrestore -p /dev/nst0 autonomy.deanst.rroom.net
'/mnt_f/Websites'  | gtar --numeric-owner -xpvf -

And get

gzip: stdin: not in gzip format
Error 32 (Broken pipe) offset 32768+32768, wrote 0
amrestore: pipe reader has quit in middle of file.

Any ideas?

Thanks in advance!! - jc

 -Original Message-
 From: Paul Bijnens [mailto:[EMAIL PROTECTED] 
 Sent: 07 June 2006 14:40
 To: John Clement
 Cc: amanda-users@amanda.org
 Subject: Re: Restoring windows partition written using smbclient
 
 On 2006-06-07 15:23, John Clement wrote:
  I'm trying to restore the contents of
  
  AMANDA: FILE 20060601 orinoco.deanst.rroom.net 
  //tlswindev1.deanst.rroom.net/e$ lev 0 comp .gz program 
  /usr/bin/smbclient
  
  However I don't know how to get this off the tape into a 
 usable format.
 
 The first 32K block of the file on tape contains the instructions.
 
 Have you read:
 
 http://wiki.zmanda.com/index.php/Restoring_files
 
 Especially the secion about restoring with amrestore.
 The windows tar is compatible with gnutar, so to restore on 
 the server itself, just use gnutar.
 
 
 
 
  It was generated from the DLE
  
  orinoco.deanst.rroom.net//tlswindev1.deanst.rroom.net/e$
  comp-root-tar-win
  
  And from amanda.conf
  
  define dumptype comp-root-tar-win {
  root-tar
  comment Root partitions with compression
  compress client fast
  index
  #exclude list /var/lib/amanda/exclusions.txt
  }
  
  I need to restore it to the amanda server as I'm still trying to 
  reinstall 'tlswindev1' after its only disk (yes, I know, when its 
  replaced I'll be insisting on RAID) died last night, and I can't 
  afford the network traffic (the dump to tape should be about 30GB).
 
 Something like this should work (untested):
 
 # cd /space/tmp  # somewhere with enough free diskspace
 # mt -t /dev/st0 rewind  # fill in your tape device
 # amrestore -p /dev/nst0 orinoco.deanst.rroom.net 
 '//tlswindev1.deanst.rroom.net/e\$'  | gtar --numeric-owner -xpvf -
 
 
 
 -- 
 Paul Bijnens, xplanation Technology ServicesTel  +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, *
 * init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, 
 Stop-A, ... *
 * ...  Are you sure?  ...   YES   ...   Phew ...   I'm out  
 *
 **
 *
 
 



cygwin and amanda on windows 2000

2006-06-09 Thread Mary Kennedy

Hi All,

I have amanda compiled on a windows 2000 server and for some reason it is 
failing on amcheck. I have gone through all the details of setting up amanda 
on cygwin and tried to run it on 2 windows 2000 machines. Both of them fail. 
I also set it up on a windows xp machine and that runs fine.
I have used windump and can see the server contacting the client, but I do 
not see the client contacting the server. If I run amandad by hand on the 
client, it seems to run fine. I have gone through all the permissions on the 
client and tried them every way I can think of, without success. I have 
installed and re-installed inetd. I have checked that it is working by 
adding telnet in to see if I can connect and that all works fine.
When I check /tmp/amanda, no file is created if I run an amcheck from the 
server. A file is created if I run it manually. I cannot see any errors in 
the event viewer. The version of amanda is 2.4.5p1.


Does anybody have any ideas on this, as I have run out of options? Could it 
be a problem with the version of software I am using?


Thanks in advance for any input.

Regards,
Mary.




driver: FATAL reading result from taper: Connection reset by peer

2006-06-09 Thread Geert Uytterhoeven
Hi all,

After upgrading amanda from 2.5.0 to 2.5.0p2 (Debian testing), all backups
fail with:

| *** THE DUMPS DID NOT FINISH PROPERLY!
| 
| The next tape Amanda expects to use is: DAILY18.
| 
| FAILURE AND STRANGE DUMP SUMMARY:
|   anakin /   RESULTS MISSING
   ^^^
|   anakin /boot   RESULTS MISSING
   ^^^
|   ...
|   driver: FATAL reading result from taper: Connection reset by peer
^

There's no indication of the failure in any log file in /tmp/amanda/.

/var/log/amanda/DailySet1/log.20060608.0 has:

| DISK planner anakin /
| DISK planner anakin /boot
| ...
| START planner date 20060608
| START driver date 20060608
| STATS driver startup time 0.003
| FATAL driver reading result from taper: Connection reset by peer
  
| INFO planner Incremental of ... bumped to level 2.
| INFO planner Full dump of ... promoted from 21 days ahead.
| ...
| FINISH planner date 20060608 time 30.445

Anyone with a clue? I'm using vtapes.

Gr{oetje,eeting}s,

Geert

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

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


Re: driver: FATAL reading result from taper: Connection reset by peer

2006-06-09 Thread Paul Bijnens

On 2006-06-09 13:27, Geert Uytterhoeven wrote:

Hi all,

After upgrading amanda from 2.5.0 to 2.5.0p2 (Debian testing), all backups
fail with:

| *** THE DUMPS DID NOT FINISH PROPERLY!
| 
| The next tape Amanda expects to use is: DAILY18.
| 
| FAILURE AND STRANGE DUMP SUMMARY:

|   anakin /   RESULTS MISSING
   ^^^
|   anakin /boot   RESULTS MISSING
   ^^^
|   ...
|   driver: FATAL reading result from taper: Connection reset by peer
^


Seems like taper died suddenly?
Or the TCP connection between driver and taper was broken by a local
firewall rule maybe?





There's no indication of the failure in any log file in /tmp/amanda/.


Taper and driver have their stderr redirected into the amdump file
which gets renamed to amdump.1 (etc.) when finished.
Any clue in there?



--
Paul Bijnens, xplanation Technology ServicesTel  +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, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  Are you sure?  ...   YES   ...   Phew ...   I'm out  *
***



Re: driver: FATAL reading result from taper: Connection reset by peer

2006-06-09 Thread Geert Uytterhoeven
On Fri, 9 Jun 2006, Paul Bijnens wrote:
 On 2006-06-09 13:27, Geert Uytterhoeven wrote:
  After upgrading amanda from 2.5.0 to 2.5.0p2 (Debian testing), all backups
  fail with:
  
  | *** THE DUMPS DID NOT FINISH PROPERLY!
  | | The next tape Amanda expects to use is: DAILY18.
  | | FAILURE AND STRANGE DUMP SUMMARY:
  |   anakin /   RESULTS MISSING
 ^^^
  |   anakin /boot   RESULTS MISSING
 ^^^
  |   ...
  |   driver: FATAL reading result from taper: Connection reset by peer
  ^
 
 Seems like taper died suddenly?
 Or the TCP connection between driver and taper was broken by a local
 firewall rule maybe?
 
  There's no indication of the failure in any log file in /tmp/amanda/.
 
 Taper and driver have their stderr redirected into the amdump file
 which gets renamed to amdump.1 (etc.) when finished.
 Any clue in there?

Hmm, how could I have missed that file?

| FATAL: Can't find system command 'cdrecord' on search path 
('/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin')!
| Can't use string (0) as a HASH ref while strict refs in use at 
/usr/lib/amanda/taper line 48.
| driver: reading result from taper: Connection reset by peer

(I'm using cdrw-taper, but I'm not actually backing up to CD).

The strange thing is that cdrecord is /usr/bin/cdrecord...

Ah, but it's not accessible for user backup, because backup is not a member of
group cdrom:

| [EMAIL PROTECTED]:~$ ls -l /usr/bin/cdrecord
| -rwsr-xr-- 1 root cdrom 133 Jan  7 19:43 /usr/bin/cdrecord
| [EMAIL PROTECTED]:~$ groups
| backup disk tape
| [EMAIL PROTECTED]:~$

Time to file a bug with Debian's cdrw-taper...

Gr{oetje,eeting}s,

Geert

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

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


Re: Cyrillic support for index files

2006-06-09 Thread Jon LaBadie
On Fri, Jun 09, 2006 at 02:22:38PM +0700, å×ÇÅÎÉÊ à óÏÓÕÎÏ× wrote:
 Good day!
 
 Sorry for my English.
 
 I have installed and configured amanda.
 
...
 
 After that I modify ENVIRONMENT Variable LANG in crontab of amanda user.
 But amdump which create index files still not working correctly. And create
 index file like /\356\317\327\301\321 \320\301\320\313\301/
 /\356\317\327\301\321 \320\301\320\313\301 (2)/
 ... and e.t.c.
 
 Have you any suggestions how to decide this problem? May be I can set
 Variable LANG in amdump? How to do this?

The whole world should convert to american english,
then we wouldn't have these problems :))

I suspect that changes in the crontab are ineffective because
of the server/client nature of amanda.  It is not amdump on
the server that starts the tar commands, but the children of
amandad started from the {x}inetd daemon.

Most systems have a way to set the default LC environment
variables (of which LANG is one) during boot, certainly before
the network and inet is started.  Perhaps this needs to be
set on your hosts.

Alternatively, and I don't know that this is allowed, in your
{x}inetd config where it specifies the amandad command, you
might be able to specify it like:

   LANG=XXX /pathto/amandad

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


Too many dumper retry?

2006-06-09 Thread McGraw, Robert P.
My Amanda info:
VERSION=Amanda-2.4.5p1
BUILT_MACH=SunOS zorn.math.purdue.edu 5.10 Generic_118833-03 sun4u
sparc SUNW,Sun-Fire-280R

I have not seen this error before. Any ideas what happened? By mistake I
deleted the log files for this date and so cannot find out what happened.

FAILURE AND STRANGE DUMP SUMMARY:
  zorn   /export/users-o   lev 0  FAILED 20060608 [too many dumper retry]
  zorn   /export/users-e   lev 0  FAILED 20060608 [too many dumper retry]
  zorn   /export/users-l   lev 3  FAILED 20060608 [too many dumper retry]
  zorn   /export/users-k   lev 0  FAILED 20060608 [too many dumper retry]
  zorn   /export/patchsvr  lev 0  FAILED 20060608 [too many dumper retry]

Thanks

Robert


_
Robert P. McGraw, Jr.
Manager, Computer System EMAIL: [EMAIL PROTECTED]
Purdue University ROOM: MATH-807
Department of MathematicsPHONE: (765) 494-6055
150 N. University Street   FAX: (419) 821-0540
West Lafayette, IN 47907-2067




smime.p7s
Description: S/MIME cryptographic signature


Re: cygwin and amanda on windows 2000

2006-06-09 Thread Pavel Pragin

Mary Kennedy wrote:


Hi All,

I have amanda compiled on a windows 2000 server and for some reason it 
is failing on amcheck. I have gone through all the details of setting 
up amanda on cygwin and tried to run it on 2 windows 2000 machines. 
Both of them fail. I also set it up on a windows xp machine and that 
runs fine.
I have used windump and can see the server contacting the client, but 
I do not see the client contacting the server. If I run amandad by 
hand on the client, it seems to run fine. I have gone through all the 
permissions on the client and tried them every way I can think of, 
without success. I have installed and re-installed inetd. I have 
checked that it is working by adding telnet in to see if I can connect 
and that all works fine.
When I check /tmp/amanda, no file is created if I run an amcheck from 
the server. A file is created if I run it manually. I cannot see any 
errors in the event viewer. The version of amanda is 2.4.5p1.


Does anybody have any ideas on this, as I have run out of options? 
Could it be a problem with the version of software I am using?


Thanks in advance for any input.

Regards,
Mary.



Have you read this documentation?
http://wiki.zmanda.org/index.php/Amanda_running_on_Cygwin_server
I would recommend using amanda version 2.5.0 and also do a full cygwin 
installation so you are not

missing any necessary packages before you compile amanda on it.
http://www.cygwin.com/setup.exe
Pavel



Re: cygwin and amanda on windows 2000

2006-06-09 Thread Mary Kennedy

Hi Pavel,

Thanks for the reply. I have read the links and followed everything in there 
and also re-installed cygwin from start. I do have some updates however on 
the 2 machines.


On machine 1 I can now see the connection from the amcheck server and the 
amandad.exe starting in the task manager. It just sits there running and 
never appears to do anything. The dump comes back with results missing.


On machine 2, I have managed to get it to run for an amcheck. But when I run 
the backup I get the following error:


/--  MachineName/cygdrive/c/Inetpub lev 0 FAILED [mesg read: Connection 
reset by peer]

sendbackup: start [MachineName:/cygdrive/c/Inetpub level 0]
sendbackup: info BACKUP=/usr/bin/tar
sendbackup: info RECOVER_CMD=/usr/bin/tar -f... -
sendbackup: info end
| Total bytes written: 81920 (80KiB, 2.2MiB/s)
sendbackup: size 80
sendbackup: end
\

In the sendsize logs in /tmp/amanda on the client, it gives the following 
errors:


sendsize[2084]: time 0.081: /usr/bin/tar: ./wwwroot/win2000.gif: Warning: 
Cannot

seek to 0: Bad file descriptor

It looks like tar has problems, but I am open to any other suggestions.

Regards,
Mary.


From: Pavel Pragin [EMAIL PROTECTED]
To: Mary Kennedy [EMAIL PROTECTED]
CC: amanda-users@amanda.org
Subject: Re: cygwin and amanda on windows 2000
Date: Fri, 09 Jun 2006 08:47:09 -0700

Mary Kennedy wrote:


Hi All,

I have amanda compiled on a windows 2000 server and for some reason it is 
failing on amcheck. I have gone through all the details of setting up 
amanda on cygwin and tried to run it on 2 windows 2000 machines. Both of 
them fail. I also set it up on a windows xp machine and that runs fine.
I have used windump and can see the server contacting the client, but I do 
not see the client contacting the server. If I run amandad by hand on the 
client, it seems to run fine. I have gone through all the permissions on 
the client and tried them every way I can think of, without success. I 
have installed and re-installed inetd. I have checked that it is working 
by adding telnet in to see if I can connect and that all works fine.
When I check /tmp/amanda, no file is created if I run an amcheck from the 
server. A file is created if I run it manually. I cannot see any errors in 
the event viewer. The version of amanda is 2.4.5p1.


Does anybody have any ideas on this, as I have run out of options? Could 
it be a problem with the version of software I am using?


Thanks in advance for any input.

Regards,
Mary.



Have you read this documentation?
http://wiki.zmanda.org/index.php/Amanda_running_on_Cygwin_server
I would recommend using amanda version 2.5.0 and also do a full cygwin 
installation so you are not

missing any necessary packages before you compile amanda on it.
http://www.cygwin.com/setup.exe
Pavel