Re: Cleanup vtape space Amanda-2.6.1

2010-06-09 Thread Dimiter Maznekov

Is it possible to use:
/*amadmin DailySet1 holding list -l -d | amadmin DailySet1 holding 
delete -*/

to delete all unnecessary dumps ?

Dimiter Maznekov wrote:

Good time of the day, users.

After long long holliday I'm returning in company and see this message:
FAILURE DUMP SUMMARY:
   www.site.org /var/www/htdocs/ISU lev 1  FAILED [Not enough holding 
disk space]
   www.site.org /var/www/htdocs/ISU lev 1  FAILED [out of holding 
space in degraded mode]

Partition vtapes are full of dumps.
I'd not run for a long time amflush to flush it on the tape drive due 
to 2 month holliday.


My question is - how to clean up old and unecessery data in vtapes ?

--

С уважение:
Д.Мазнеков
IT/ERP/Анализи
Optix Co.
Bulgaria
Tel:+359/357-64125-117
Моб:+359/88-5166659
www.optixco.com
d.mazne...@optixco.com


* Visit us at EUROSATORY in Paris (14-18.06.2010)- Bulgarian Pavilion
Visit us at OPTATEC in Frankfurt (15-18.06.2010)- Booth Hall 3, C 33 *

/OPTIX Co. Disclaimer * ISO 27001:2005 [ F1 ] *
This e-mail, including attachments, may include confidential and/or 
proprietary information, and may be used only by the person or entity 
to which it is addressed. If the reader of this e-mail is not the 
intended recipient or his or her authorized agent, the reader is 
hereby notified that any dissemination, distribution or copying of 
this e-mail is prohibited. If you have received this e-mail in error, 
please notify the sender by replying to this message and delete this 
e-mail immediately. /
*OPTIX Co. is an industry leader in the field of optics, 
opto-mechanical devices and opto-electronic systems. We provide the 
most comprehensive solutions of custom designs for both civil and 
defense application. *




* Visit us at EUROSATORY in Paris (14-18.06.2010)- Bulgarian Pavilion
Visit us at OPTATEC in Frankfurt (15-18.06.2010)- Booth Hall 3, C 33 *

/OPTIX Co. Disclaimer * ISO 27001:2005 [ F1 ] *
This e-mail, including attachments, may include confidential and/or 
proprietary information, and may be used only by the person or entity 
to which it is addressed. If the reader of this e-mail is not the 
intended recipient or his or her authorized agent, the reader is 
hereby notified that any dissemination, distribution or copying of 
this e-mail is prohibited. If you have received this e-mail in error, 
please notify the sender by replying to this message and delete this 
e-mail immediately. /
*OPTIX Co. is an industry leader in the field of optics, 
opto-mechanical devices and opto-electronic systems. We provide the 
most comprehensive solutions of custom designs for both civil and 
defense application. *





--

С уважение: Д.Мазнеков
IT/ERP/Анализи
Optix Co. Bulgaria
Tel:+359/357-64125-117
Моб:+359/88-5166659
www.optixco.com


Visit us at EUROSATORY in Paris (14-18.06.2010)- Bulgarian Pavilion
Visit us at OPTATEC in Frankfurt (15-18.06.2010)- Booth Hall 3, C 33

***
OPTIX Co. Disclaimer  ISO 27001:2005 [ F1 ]
This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. 
OPTIX Co. is an industry leader in the field of optics, opto-mechanical devices and opto-electronic systems. We provide the most comprehensive solutions of custom designs for both civil and defense application.

***

SV: default dumptype DUMP

2010-06-09 Thread Gunnarsson, Gunnar
 

Gunnarsson, Gunnar wrote:
 Does DUMP dumptype have any properties that can be redefined  ?
 I need to follwing task:
  
 stop the application,
 dettach the mirror,
 ufsdump
 attach the mirror
  
 This can be done with gtar but can this be done with native backup 
 tools as well ? I
Hoogendyk, Chris wrote:


Haven't seen an answer to this yet, so I'll hazard a comment and question.

 One approach is to do a wrapper, as in
 http://wiki.zmanda.com/index.php/Backup_client#Chris_Hoogendyk.27s_Example,
 where I'm doing an fssnap before the ufsdump and following it with deleting 
 the snapshot. You could modify it to fit your needs. That wrapper also has a 
  stop application for xntpd (which is a real time
 application) when doing an fssnap of the root partition because of a bug in 
 fssnap.


 What version are you using?

I'm using 2.6.* but I'm upgrading to 3.1.0.

I'm running Solaris 10 and I can't use fssnap for UFS becuase it's not 
supported in a cluster evironment. ZFS didn't work out either
because it is using variable block size in the filesystem which breaks part of 
the application so the last resort is using a 3-way mirror
and doing detach stopping the application and then restart it, go through with 
backup and then detach the third-mirror and resync.

What are the improvement for scripting in version 3.1.0 and how can this be 
wrapped into the client ?
Since the filesystem contians a lot of files ( few millions ) I belive that 
ufsdump works better than gtar.

Thanks Gunnar Gunnarsson 



Re: After upgrading to 3.1.0: ETIMEOUT must be positive

2010-06-09 Thread Jean-Louis Martineau

Hi,

It was a fix because setting etimeout to 0 was a bug, but I forgot about 
negative etimeout.

The attached patch should fix it.

Jean-Louis

Dustin J. Mitchell wrote:

On Tue, Jun 8, 2010 at 3:58 PM, Marc Muehlfeld
marc.muehlf...@medizinische-genetik.de wrote:
  

  ETIMEOUT must be positive

But the manpage says:

etimeout int
. A negative value will be interpreted as a total amount of time to wait
per client instead of per disk.

Who's wrong? Manpage or program code?



Well, it was changed in this commit:

commit 1a2051ece2e27fea65b9bf05dac235a7e358f52a
Author: Jean-Louis Martineau martin...@zmanda.com
Date:   Thu Dec 17 17:41:01 2009 +

* common-src/conffile.c: etimeout must be positive.
* common-src/protocol.c: Fix possible timeout of 0.


git-svn-id:
https://amanda.svn.sourceforge.net/svnroot/amanda/amanda/tr...@2358
a8d146d6-cc15-0410-8900-af154a0219e0

I don't remember the motivation for the change, though - maybe JLM
does.  But the upshot is that it looks like the manpage was not
properly updated.

Dustin

  


diff --git a/common-src/conffile.c b/common-src/conffile.c
index aed45c4..70c3149 100644
--- a/common-src/conffile.c
+++ b/common-src/conffile.c
@@ -518,6 +518,7 @@ static void ckseen(seen_t *seen);
  * a parser table entry.  They call conf_parserror if the value in their
  * second argument is invalid.  */
 static void validate_nonnegative(conf_var_t *, val_t *);
+static void validate_non_zero(conf_var_t *, val_t *);
 static void validate_positive(conf_var_t *, val_t *);
 static void validate_runspercycle(conf_var_t *, val_t *);
 static void validate_bumppercent(conf_var_t *, val_t *);
@@ -1135,7 +1136,7 @@ conf_var_t server_var [] = {
{ CONF_INPARALLEL   , CONFTYPE_INT  , read_int , CNF_INPARALLEL   , validate_inparallel },
{ CONF_DUMPORDER, CONFTYPE_STR  , read_str , CNF_DUMPORDER, NULL },
{ CONF_MAXDUMPS , CONFTYPE_INT  , read_int , CNF_MAXDUMPS , validate_positive },
-   { CONF_ETIMEOUT , CONFTYPE_INT  , read_int , CNF_ETIMEOUT , validate_positive },
+   { CONF_ETIMEOUT , CONFTYPE_INT  , read_int , CNF_ETIMEOUT , validate_non_zero },
{ CONF_DTIMEOUT , CONFTYPE_INT  , read_int , CNF_DTIMEOUT , validate_positive },
{ CONF_CTIMEOUT , CONFTYPE_INT  , read_int , CNF_CTIMEOUT , validate_positive },
{ CONF_DEVICE_OUTPUT_BUFFER_SIZE, CONFTYPE_SIZE , read_size, CNF_DEVICE_OUTPUT_BUFFER_SIZE, validate_positive },
@@ -4101,6 +4102,33 @@ validate_nonnegative(
 }
 
 static void
+validate_non_zero(
+struct conf_var_s *np,
+val_t*val)
+{
+switch(val-type) {
+case CONFTYPE_INT:
+	if(val_t__int(val) == 0)
+	conf_parserror(_(%s must not be 0), get_token_name(np-token));
+	break;
+case CONFTYPE_INT64:
+	if(val_t__int64(val) == 0)
+	conf_parserror(_(%s must not be 0), get_token_name(np-token));
+	break;
+case CONFTYPE_TIME:
+	if(val_t__time(val) == 0)
+	conf_parserror(_(%s must not be 0), get_token_name(np-token));
+	break;
+case CONFTYPE_SIZE:
+	if(val_t__size(val) == 0)
+	conf_parserror(_(%s must not be 0), get_token_name(np-token));
+	break;
+default:
+	conf_parserror(_(validate_non_zero invalid type %d\n), val-type);
+}
+}
+
+static void
 validate_positive(
 struct conf_var_s *np,
 val_t*val)


Re: After upgrading to 3.1.0: ETIMEOUT must be positive

2010-06-09 Thread Marc Muehlfeld

Am 09.06.2010 12:01, schrieb Jean-Louis Martineau:

It was a fix because setting etimeout to 0 was a bug, but I forgot about
negative etimeout.
The attached patch should fix it.


Patch applied. Recompiled. Works.

Thanks.



--
Marc Muehlfeld (IT-Leiter)
Zentrum fuer Humangenetik und Laboratoriumsmedizin Dr. Klein und Dr. Rost
Lochhamer Str. 29 - D-82152 Martinsried
Telefon: +49(0)89/895578-0 - Fax: +49(0)89/895578-78
http://www.medizinische-genetik.de


Re: Cleanup vtape space Amanda-2.6.1

2010-06-09 Thread Dustin J. Mitchell
On Wed, Jun 9, 2010 at 12:09 AM, Dimiter Maznekov
d.mazne...@optixco.com wrote:
 After long long holliday I'm returning in company and see this message:
 FAILURE DUMP SUMMARY:
    www.site.org /var/www/htdocs/ISU lev 1  FAILED [Not enough holding disk
 space]
    www.site.org /var/www/htdocs/ISU lev 1  FAILED [out of holding space in
 degraded mode]
 Partition vtapes are full of dumps.
 I'd not run for a long time amflush to flush it on the tape drive due to 2
 month holliday.

 My question is - how to clean up old and unecessery data in vtapes ?

I think you mean how to clean up old and unnecessary data in holding
disk, right?

You can use amadmin holding delete, as you suggested.

Dustin

-- 
Open Source Storage Engineer
http://www.zmanda.com



Re: Can't recover with 2.6.1p2 client from 3.1.0 server

2010-06-09 Thread Marc Muehlfeld

Am 09.06.2010 16:43, schrieb Dustin J. Mitchell:

The messages will have gone into amidxtaped.*.debug..


But just the following files were created, until the
 amrecover - can't talk to tape server: service amidxtaped:
message came up:

/tmp/amanda/server/KDD/amcheck.20100609130719.debug
/tmp/amanda/server/KDD/chg-glue.20100609130719.debug
/tmp/amanda/server/KDD/amindexd.20100609130101.debug
/tmp/amanda/server/KDD/amcheck.20100609130716.debug
/tmp/amanda/amandad/amandad.20100609130101.debug






Re: Can't recover with 2.6.1p2 client from 3.1.0 server

2010-06-09 Thread Dustin J. Mitchell
On Wed, Jun 9, 2010 at 9:50 AM, Marc Muehlfeld
marc.muehlf...@medizinische-genetik.de wrote:
 Am 09.06.2010 16:43, schrieb Dustin J. Mitchell:

 The messages will have gone into amidxtaped.*.debug..

 But just the following files were created, until the
 amrecover - can't talk to tape server: service amidxtaped:
 message came up:

Ah, there must be a typo in the amidxtaped changes.  Try running
amidxtaped directly from the command line - it will probably give you
a syntax error of some sort, and hopefully something with a fairly
obvious fix?

Dustin

-- 
Open Source Storage Engineer
http://www.zmanda.com


ZWC and exclude/include lists

2010-06-09 Thread Chris Nighswonger
Does ZWC honor exclude/include lists?

I have a DLE like:

foo.bar.com C:\\Documents\ and\ Settings {
  exclude list C:\\.exclude
  zwc-compress
  estimate server
}

c:\.exclude includes several entries like:

.\user1
.\user2

Looking at a tcpdump of the resulting transactions, I see the exclude
list passed to the client, but the client still dumps the entirety of
c:\documents and settings.

Am I missing some syntax error here?

Or perhaps this is the purpose of templates in the ZWC?

Kind Regards,
Chris


Re: ZWC and exclude/include lists

2010-06-09 Thread John Hein
Sorry to hijack your thread, but I tried 'exclude file' a few months
ago and they didn't work either.

Chris Nighswonger wrote at 11:00 -0400 on Jun  9, 2010:
  Does ZWC honor exclude/include lists?
  
  I have a DLE like:
  
  foo.bar.com C:\\Documents\ and\ Settings {
exclude list C:\\.exclude
zwc-compress
estimate server
  }
  
  c:\.exclude includes several entries like:
  
  .\user1
  .\user2
  
  Looking at a tcpdump of the resulting transactions, I see the exclude
  list passed to the client, but the client still dumps the entirety of
  c:\documents and settings.
  
  Am I missing some syntax error here?
  
  Or perhaps this is the purpose of templates in the ZWC?
  
  Kind Regards,
  Chris


Re: ZWC and exclude/include lists

2010-06-09 Thread Paddy Sreenivasan
On Wed, Jun 9, 2010 at 8:00 AM, Chris Nighswonger
cnighswon...@foundations.edu wrote:
 Does ZWC honor exclude/include lists?

 I have a DLE like:

 foo.bar.com C:\\Documents\ and\ Settings {
  exclude list C:\\.exclude
  zwc-compress
  estimate server
 }


include is not supported. exclude is supported. See
http://forums.zmanda.com/showthread.php?t=2701 for
more information.

Paddy



Re: ZWC and exclude/include lists

2010-06-09 Thread Chris Nighswonger
On Wed, Jun 9, 2010 at 2:00 PM, Paddy Sreenivasan pa...@zmanda.com wrote:
 On Wed, Jun 9, 2010 at 8:00 AM, Chris Nighswonger
 cnighswon...@foundations.edu wrote:
 Does ZWC honor exclude/include lists?

 I have a DLE like:

 foo.bar.com C:\\Documents\ and\ Settings {
  exclude list C:\\.exclude
  zwc-compress
  estimate server
 }


 include is not supported. exclude is supported. See
 http://forums.zmanda.com/showthread.php?t=2701 for
 more information.

A couple more questions to help clarify things for me:

1. So exclude list/file is not supported, only the vanilla exclude?

2. Should I be using ZWC templates for this instead?

Kind Regards,
Chris



Re: ZWC and exclude/include lists

2010-06-09 Thread Paddy Sreenivasan
 A couple more questions to help clarify things for me:

 1. So exclude list/file is not supported, only the vanilla exclude?

Yes. only vanilla exclude is supported.


 2. Should I be using ZWC templates for this instead?

There is no need to use ZWC templates for exclusion.


 Kind Regards,
 Chris




-- 
Amanda http://amanda.zmanda.com
ZRM for MySQL http://www.zmanda.com/backup-mysql.html


Re: ZWC and exclude/include lists

2010-06-09 Thread Charles Curley
On Wed, 9 Jun 2010 11:19:11 -0700
Paddy Sreenivasan pa...@zmanda.com wrote:

  A couple more questions to help clarify things for me:
 
  1. So exclude list/file is not supported, only the vanilla
  exclude?
 
 Yes. only vanilla exclude is supported.

You may also find this thread useful:
http://forums.zmanda.com/showthread.php?t=2701

In short, quote your excluded files, and make the slashes backward
slashed (\) and double them (\\). E.g.:

exclude E:\\IA\\test

-- 

Charles Curley  /\ASCII Ribbon Campaign
Looking for fine software   \ /Respect for open standards
and/or writing?  X No HTML/RTF in email
http://www.charlescurley.com/ \No M$ Word docs in email

Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB