Re: Files garbages after restore :-(

2005-12-02 Thread Jehan PROCACCIA

Ram Krishnamurthy wrote:


Hi Jehan
What do you mean by
> Since then, I fsck.ext3 -f the /var partition which caused me the
> problems, it works fine now (last 3 days) ,

What works fine? The restore? Are you not seeing the file corruption 
anymore?


Yes the restore worked fine, but maybe it's not due to the fact that I 
run fsck, but only because since those last 3 days, nobody was 
manipulating the files while they were dumped !?
Someone else on this list (Paul Bijnens) told me that it is most 
certainly due to that fact that I use dump to backup that partition , 
and if you read that :

http://dump.sourceforge.net/isdumpdeprecated.html
it could be a good explanation . so do you confirm that I should move to :

define dumptype root-tar {
   global
   program "GNUTAR"
   comment "root partitions dumped with tar"


Anyway, if you have other suggestion , I'll appreciate, because today my 
only solution is to move that backup from dump to tar . But will this 
solve definitly my problem, will tar create other ones ? which (tar/dump 
or soething else) is best finally ?


Thanks.




Thanks
tk


Jehan PROCACCIA wrote:


Hello
I've been saving partitions with amanda (dumps) for weeks now ... 
unfortunaltly while needing to restore a file I got garbage :-(


For exemple, here's what I expected from the file I needed:
[EMAIL PROTECTED] 
/var/www/html/server/settings/siteaccess/site_unite_server_en]

$ cat site.ini.append.php
[EMAIL PROTECTED] 
/data1/restore-server/21-11-2005/www/html/server/settings/siteaccess/site_unite_server_en] 


$ cat site.ini.append.php
$var3, 'templateValue' ) )
   $var3 = $var3->templateValue();
$var2 = ( ( $var3 ) == ( 'enabled' ) );
unset( $var3 );
while ( is_object( $var2 ) and method_exists( $var2, 'templateValue' ) )
   $var2 = $var2->templateValue();
unset( $var3 );
etc 

You can see that it's completly different ! source codes have 
replaces the initial php configuration code . It's as if one file was 
replaced with an other one, perhaps inodes were mismatched or 
something ...?

Is this problem already occured to someone on this list ?
Is amanda in cause , dump part, restore part ? , or it comes from  
outsite amanda tools , from the system (here redhat 4 running 
amanda-2.4.4p3-1) ?


I'am really confused about that problem, and cannot  be confident on 
my backups as long as I am not sure of what was the problem.
Since then, I fsck.ext3 -f the /var partition which caused me the 
problems, it works fine now (last 3 days) , but I'am  afraid of 
beeing once again  confronted to that problem.

Thanks of any help / sugestions .










Re: Files garbages after restore :-(

2005-12-02 Thread Jon LaBadie
On Fri, Dec 02, 2005 at 09:46:57AM +0100, Jehan PROCACCIA wrote:
> Ram Krishnamurthy wrote:
> 
> >Hi Jehan
> >What do you mean by
> >> Since then, I fsck.ext3 -f the /var partition which caused me the
> >> problems, it works fine now (last 3 days) ,
> >
> >What works fine? The restore? Are you not seeing the file corruption 
> >anymore?
> 
> Yes the restore worked fine, but maybe it's not due to the fact that I 
> run fsck, but only because since those last 3 days, nobody was 
> manipulating the files while they were dumped !?
> Someone else on this list (Paul Bijnens) told me that it is most 
> certainly due to that fact that I use dump to backup that partition , 
> and if you read that :
> http://dump.sourceforge.net/isdumpdeprecated.html
> it could be a good explanation . so do you confirm that I should move to :
> 
> define dumptype root-tar {
>global
>program "GNUTAR"
>comment "root partitions dumped with tar"
> 
> 
> Anyway, if you have other suggestion , I'll appreciate, because today my 
> only solution is to move that backup from dump to tar . But will this 
> solve definitly my problem, will tar create other ones ? which (tar/dump 
> or soething else) is best finally ?
> 

You really think there is a "universal best"?  Tar has its own problems
including increased time of backup and inability to handle some extended
types of file attributes.

Do your client OS/filesystem combos support ext3 snapshots?
Some recent ones do?  If so, you could set things up to make a
snapshot just before the amdump, use dump on that non-changing
snapshot, then delete the snapshot after the dump.

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


Re: Files garbages after restore :-(

2005-12-02 Thread Jehan PROCACCIA

Jon LaBadie wrote:


On Fri, Dec 02, 2005 at 09:46:57AM +0100, Jehan PROCACCIA wrote:
 


Ram Krishnamurthy wrote:

   


Hi Jehan
What do you mean by
 


Since then, I fsck.ext3 -f the /var partition which caused me the
problems, it works fine now (last 3 days) ,
   

What works fine? The restore? Are you not seeing the file corruption 
anymore?
 

Yes the restore worked fine, but maybe it's not due to the fact that I 
run fsck, but only because since those last 3 days, nobody was 
manipulating the files while they were dumped !?
Someone else on this list (Paul Bijnens) told me that it is most 
certainly due to that fact that I use dump to backup that partition , 
and if you read that :

http://dump.sourceforge.net/isdumpdeprecated.html
it could be a good explanation . so do you confirm that I should move to :

define dumptype root-tar {
  global
  program "GNUTAR"
  comment "root partitions dumped with tar"


Anyway, if you have other suggestion , I'll appreciate, because today my 
only solution is to move that backup from dump to tar . But will this 
solve definitly my problem, will tar create other ones ? which (tar/dump 
or soething else) is best finally ?


   



You really think there is a "universal best"?  Tar has its own problems
including increased time of backup and inability to handle some extended
types of file attributes.

Do your client OS/filesystem combos support ext3 snapshots?
Some recent ones do?  If so, you could set things up to make a
snapshot just before the amdump, use dump on that non-changing
snapshot, then delete the snapshot after the dump.
 

No, I never tried ext3 snapshots ! I never heard of it :-( , any links 
of where I can get information on that ?
I suppose it depends on kernel versions ? on my redhat4 it's 
2.6.9-22.0.1.ELsmp.

indeed that might be a good solution .


Re: Files garbages after restore :-(

2005-12-02 Thread Jon LaBadie
On Fri, Dec 02, 2005 at 04:15:08PM +0100, Jehan PROCACCIA wrote:
> Jon LaBadie wrote:
> 
> >Do your client OS/filesystem combos support ext3 snapshots?
> >Some recent ones do?  If so, you could set things up to make a
> >snapshot just before the amdump, use dump on that non-changing
> >snapshot, then delete the snapshot after the dump.
> > 
> >
> No, I never tried ext3 snapshots ! I never heard of it :-( , any links 
> of where I can get information on that ?
> I suppose it depends on kernel versions ? on my redhat4 it's 
> 2.6.9-22.0.1.ELsmp.
> indeed that might be a good solution .
> 

I've not used the feature.  I think the command was snapfs and "may"
have required the filesystems to be managed under LVM.

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


Re: Which ports to open in which direction...

2005-12-02 Thread Paddy Sreenivasan
Thanks, David for starting the section on wiki.zmanda.com.

Kevin Till (cc'ed in the email) is also working to document port usage
in Amanda.

Paddy

On 12/1/05, David Leangen <[EMAIL PROTECTED]> wrote:
>
> Thanks!
>
> > There is a document called PORT.USAGE.  Available in the source
> > "docs" directory or at amanda.org.
>
> Actually, the precise URL is:
>
>   http://www.amanda.org/docs/portusage.html
>
>
> Ok, well, I've tried to decipher the doc, but I'm not quite sure about a
> few things.
>
> I started writing a simplified doc on the wiki for people who need to
> set up a network like mine.
>
>   http://wiki.zmanda.com/index.php/Configuration_with_iptables
>
>
> It would be really great to get a little advice on how the traffic is
> passed around. I read the doc, but it's still a bit unclear to me. The
> page above says which program uses what port, but there seem to be a few
> holes that require more research.
>
>
> If anybody is interested in editing this article on the wiki, please do
> so! I think (hope) that this doc could be useful for others, too.
>
>
> Thank you!
> Dave
>
>
>
>
>


--

Amanda documentation: http://wiki.zmanda.com
Amanda forums: http://forums.zmanda.com



Re: please check your config and use a config file for chg-scsi

2005-12-02 Thread Richard Pyne
On 1 Dec 2005 at 8:16, Richard Pyne wrote:

> On 1 Dec 2005 at 13:25, Alexander Jolk wrote:
> 
> > Richard Pyne wrote:
> > > I am STILL trying to get amanda set up to run with an adic
> > > Scalar 458 changer with three DLT4000 drives.
> > [...]
> > > I decided to try to label a tape. After that failed
> > > miserably, I decided to take a step back and just try to get
> > > chg-scsi to work.
> > 
> > Is there a reason you cannot use chg-zd-mtx?  If your changer
> > works with mtx, that might be simpler to set up.
> > 
> > Alex
> 
> No reason at all other than there is nothing in the 
> documentation that would indicate that it is a better choice. The
> docs seem to indicate that the chg-scsi is a more direct
> interface, especially for the Linux 2.6 kernel that has changer
> support.
> 
> I am still baffled that my earlier request for configuration
> suggestions only got one reply and that was to say "read the
> wiki" which provided no more insight than the other docs. Is no
> one out there using an adic Scalar tape library? It seems odd
> that if no one is using it that chg-scsi recognizes it
> specifically.
> 
> I'll give chg-zd-mtx a try.

Well, I have chg-zd-mtx working. In the process, I remembered 
why I had chosen chg-scsi originally. The main reason is that it 
detectes when a drive is requesting to be cleaned and will 
initiate a clean cycle when needed rather than by access count.

It is too bad that neither ch-zd-mtx nore chg-scsi support RAIT 
as that is the way I would like to eventially go.

My desire is to set up automated backups that back up everything 
that was changed on a daily basis and does a complete backup of 
the production file systems at least once a week. I also want to 
be able to do system file systems (/etc, /, /usr, etc.) on 
demand.

Again, any configuration suggestions will be greatly 
appreciated.

--Richard



Using ftape? Let me know.

2005-12-02 Thread Ian Turner
Hello all,

Is anyone actually using the ftape driver at the moment? I will be
making changes to the amanda code, and want to make sure I don't
accidentaly step on ftape VTBL support. So, if someone can volunteer to
test out some patches over the next several months, it would be very
useful.

Even if you are not able to test the upcoming patches, please let me know if 
you are using ftape, and taking advantage of VTBL support. This will help me 
to understand the importance of this support going forward.

If you are using the ftape driver, please post your comments on the Amanda 
forums here: 
http://forums.zmanda.com/showthread.php?p=20

Sincerely,

--Ian Turner
  (Amanda developer)

-- 
Forums for Amanda discussion: http://forums.zmanda.com/


Re: Which ports to open in which direction...

2005-12-02 Thread Kevin Till

David Leangen wrote:


  http://wiki.zmanda.com/index.php/Configuration_with_iptables

Hi Dave,

does your current setup work for you? I guess it should work most of the
time. In your case, it'll fail when it couldn't find an open port in tcp
5:50100 or in udp 700:710.

Currently, amanda will try the tcpportrange/udpportrange first. If it
couldn't find an open port in that range, it will try to get ANY open
port. In this case, it will fail in your firewall setup.

I'm working to correct this mis-behavior.

--
Thank you!
Kevin Till

Amanda documentation: http://wiki.zmanda.com
Amanda forums:http://forums.zmanda.com



Re: Which ports to open in which direction...

2005-12-02 Thread Kevin Till

David Leangen wrote:


  http://wiki.zmanda.com/index.php/Configuration_with_iptables

Hi Dave,

does your current setup work for you? I guess it should work most of the 
time. In your case, it'll fail when it couldn't find an open port in tcp 
5:50100 or in udp 700:710.


Currently, amanda will try the tcpportrange/udpportrange first. If it 
couldn't find an open port in that range, it will try to get ANY open 
port. In this case, it will fail in your firewall setup.


I'm working to correct this mis-behavior.

--
Thank you!
Kevin Till

Amanda documentation: http://wiki.zmanda.com
Amanda forums:http://forums.zmanda.com


Re: please check your config and use a config file for chg-scsi

2005-12-02 Thread Jon LaBadie
On Fri, Dec 02, 2005 at 11:13:01AM -0700, Richard Pyne wrote:
> On 1 Dec 2005 at 8:16, Richard Pyne wrote:
> 
> > I'll give chg-zd-mtx a try.
> 
> Well, I have chg-zd-mtx working. In the process, I remembered 
> why I had chosen chg-scsi originally. The main reason is that it 
> detectes when a drive is requesting to be cleaned and will 
> initiate a clean cycle when needed rather than by access count.

I've not looked at the code, but if chg-scsi detects it via the
status request it might show up in the "mtx status" output.  If so,
then it would be 'easy' :) to add that capability to chg-zd-mtx.

> 
> It is too bad that neither ch-zd-mtx nore chg-scsi support RAIT 
> as that is the way I would like to eventially go.
> 

Amanda does support a form of it own RAIT.  But I don't think it
is well tested as few people report trying or using it.

> My desire is to set up automated backups that back up everything 
> that was changed on a daily basis and does a complete backup of 
> the production file systems at least once a week. I also want to 
> be able to do system file systems (/etc, /, /usr, etc.) on 
> demand.
> 
> Again, any configuration suggestions will be greatly 

dumpcycle 7
tapecycle "something greater than 14"
runspercycle 5 or 6 or 7

Amdump can be run anytime by hand specifying the hosts and DLEs.
You can also force, with amadmin, a level 0 of any DLEs for the
next amdump run.

A separate config could be setup sharing many of the control files
(disklist, indexes, curinfo, tapelist, changer.conf, ...) but with
record set to no and a dumpcycle of 0 (always level 0).  Then you
could run amdump for that config and leave the standard one alone.
Be careful they don't try to run at the same time.


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


Re: amrecover from the DMZ

2005-12-02 Thread Kevin Till

Matt Hyclak wrote:

On Thu, Nov 10, 2005 at 02:32:41PM -0500, Guy Dallaire enlightened us:


2005/11/10, Matt Hyclak <[EMAIL PROTECTED]>:




Which ports does amrecover use to contact the tape server ?



10082 tcp and 10083 tcp.



amrecover needs a privileged tcp port to connect to the server.  It's 
the only amanda program that requires privileged "TCP" port


--
Thank you!
Kevin Till

Amanda documentation: http://wiki.zmanda.com
Amanda forums:http://forums.zmanda.com


Re: Files garbages after restore :-(

2005-12-02 Thread Gene Heskett
On Friday 02 December 2005 08:33, Jon LaBadie wrote:
>On Fri, Dec 02, 2005 at 09:46:57AM +0100, Jehan PROCACCIA wrote:
>> Ram Krishnamurthy wrote:
>> >Hi Jehan
>> >What do you mean by
>> >
>> >> Since then, I fsck.ext3 -f the /var partition which caused me the
>> >> problems, it works fine now (last 3 days) ,
>> >
>> >What works fine? The restore? Are you not seeing the file corruption
>> >anymore?
>>
>> Yes the restore worked fine, but maybe it's not due to the fact that
>> I run fsck, but only because since those last 3 days, nobody was
>> manipulating the files while they were dumped !?
>> Someone else on this list (Paul Bijnens) told me that it is most
>> certainly due to that fact that I use dump to backup that partition ,
>> and if you read that :
>> http://dump.sourceforge.net/isdumpdeprecated.html
>> it could be a good explanation . so do you confirm that I should move
>> to :
>>
>> define dumptype root-tar {
>>global
>>program "GNUTAR"
>>comment "root partitions dumped with tar"
>>
>>
>> Anyway, if you have other suggestion , I'll appreciate, because today
>> my only solution is to move that backup from dump to tar . But will
>> this solve definitly my problem, will tar create other ones ? which
>> (tar/dump or soething else) is best finally ?
>
>You really think there is a "universal best"?  Tar has its own problems
>including increased time of backup and inability to handle some
> extended types of file attributes.
>
>Do your client OS/filesystem combos support ext3 snapshots?
>Some recent ones do?  If so, you could set things up to make a
>snapshot just before the amdump, use dump on that non-changing
>snapshot, then delete the snapshot after the dump.

Someone reported here, a month or so back, that Jorg Schillings 'Star'
also worked with amanda, and I know its supposed to properly handle
that stuff, just never got a round tuit to try it with.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
99.36% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2005 by Maurice Eugene Heskett, all rights reserved.



Re: amrecover from the DMZ

2005-12-02 Thread Matt Hyclak
On Fri, Dec 02, 2005 at 04:16:07PM -0800, Kevin Till enlightened us:
> Matt Hyclak wrote:
> >On Thu, Nov 10, 2005 at 02:32:41PM -0500, Guy Dallaire enlightened us:
> >
> >>2005/11/10, Matt Hyclak <[EMAIL PROTECTED]>:
> 
> 
> Which ports does amrecover use to contact the tape server ?
> 
> >>>
> >>>10082 tcp and 10083 tcp.
> >>>
> 
> amrecover needs a privileged tcp port to connect to the server.  It's 
> the only amanda program that requires privileged "TCP" port

I read that the other way around as what port *on* the server. The
priviledged port on the client is what necessitates running amrecover as
root. 

Glad we got that cleared up :-)

Matt

-- 
Matt Hyclak
Department of Mathematics 
Department of Social Work
Ohio University
(740) 593-1263