Re: "Incremental tape too low" when using amrestore
Hans van Zijst wrote: Funny that you mention tar. The reason why I chose dump is that dump was supposed to handle open files better than tar. Plus, I don't like the idea of atime being updated because of a backup. Tar and dump handle open files just as bad. Or maybe tar is a little better in that the gnutar does not generate a corrupt archive. Only the active file itself could be in some inconsistent state. Dump could generate a corrupt archive that makes restore crash/dump core (although, I've never seen this happen -- but I only use dump sporadically). To avoid modifying the atime, some of my systems do backups using filesystem snapshots, and the backup is made on the readonly, stable copy of the snapshot. No more problems with modification of atime nor active filesytems/open files. -- 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: "Incremental tape too low" when using amrestore
Hi Paul, Funny that you mention tar. The reason why I chose dump is that dump was supposed to handle open files better than tar. Plus, I don't like the idea of atime being updated because of a backup. Anyway, I couldn't find anything about this in the changelogs of dump/restore between my version and the latest one. Plus, I think this would be a rather silly bug, as I can't imagine too many people unmounting their filesystems before running dump... Maybe I should consider switching to tar. In the meantime, let's hope I won't have to do a restore from scratch... I checked the tapes, and there are no restoresymtables on it anywhere. Thanks for your help so far. Kind regards, Hans van Zijst On Wednesday 21 April 2004 14:06, Paul Bijnens wrote: > > AFAIK, this wouldn't have the effect of the message "Incremental dump > too low". Because dump dumps the diskblocks themselves, an active > filesystem could screw up the dumpprocess itself. The restore command > would get confused, but not about deciding which level it expects. > > The restore process should leave a file "restoresymtable" in the root > directory to pass information between incremental restore passes. > Could it be that such a file was restored from the level 0, > overwriting the current one and indicating that a level 2 or more > was expected? > > ps. I switched to tar a long time ago, mainly because I run a mixed > environment and I need to be able to restore onto a completely different > architecture. __ This message has been checked for all known viruses __ De informatie verzonden met dit e-mailbericht is uitsluitend bestemd voor de geadresseerde. Openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking van deze informatie aan derden is niet toegestaan. Wij aanvaarden geen aansprakelijkheid voor de juiste en volledige overbrenging van de inhoud van een verzonden e-mail bericht, noch voor tijdige ontvangst ervan. __ HTTP://WWW.Syncera.NL __
Re: "Incremental tape too low" when using amrestore
Hans van Zijst wrote: "Restore can get confused when doing incremental restores from dumps that were made on active file systems." Of course I make backups of active file systems. If this really is the problem, I can't imagine I'm the only one who ran into it. Or am I just the only one who's ever tested a bare metal recovery? ;) AFAIK, this wouldn't have the effect of the message "Incremental dump too low". Because dump dumps the diskblocks themselves, an active filesystem could screw up the dumpprocess itself. The restore command would get confused, but not about deciding which level it expects. The restore process should leave a file "restoresymtable" in the root directory to pass information between incremental restore passes. Could it be that such a file was restored from the level 0, overwriting the current one and indicating that a level 2 or more was expected? ps. I switched to tar a long time ago, mainly because I run a mixed environment and I need to be able to restore onto a completely different architecture. -- 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: "Incremental tape too low" when using amrestore
Hmm, just found this stashed away in the bugs section of restore's manual: "Restore can get confused when doing incremental restores from dumps that were made on active file systems." Of course I make backups of active file systems. If this really is the problem, I can't imagine I'm the only one who ran into it. Or am I just the only one who's ever tested a bare metal recovery? ;) Has anyone here documented such a recovery with Amanda using dump/restore? Kind regards, Hans van Zijst On Wednesday 21 April 2004 11:31, Hans van Zijst wrote: > I tried a bare metal recovery yesterday, but without the success I had > hoped for. I restored the latest level 0 dump and then tried to restore > the incremental dump over it. First step worked like a charm, but as soon > as I restored the incremental tape, I got the error: > > "restore: Incremental tape too low" __ This message has been checked for all known viruses __ De informatie verzonden met dit e-mailbericht is uitsluitend bestemd voor de geadresseerde. Openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking van deze informatie aan derden is niet toegestaan. Wij aanvaarden geen aansprakelijkheid voor de juiste en volledige overbrenging van de inhoud van een verzonden e-mail bericht, noch voor tijdige ontvangst ervan. __ HTTP://WWW.Syncera.NL __
Re: "Incremental tape too low" when using amrestore
Paul, Every machine here runs Amanda 2.4.4p2. I'm sure the tapes that amadmin lists, are the correct ones: Dagtape-04 was made last thursday and on fridays I make a full dump, using another configuration. This monday and tuesday I went on with "Dagelijks". I got exactly the same message yesterday as I got today. I had hoped the problem might solve itself if I could restore from a fresher incremental dump than yesterday, but no. On Wednesday 21 April 2004 12:12, Paul Bijnens wrote: > > You didn't mention the version of amanda on the server. > It used to be (pre-2.4.3 I believe, not sure) that "info" listed > all incremental levels, even those that were older than the level > minus one. > > So it could have listed: > > Dumps: lev datestmp tape file origK compK secs > > 0 20040416 Dagtape-04 22 1318285 2636570 362 > > 1 20040415 Dagtape-02 19 67215 134430 51 > > Notice the datestmp on the level 1. That level 1 is not needed > for restores, but older amanda versions did list them. > 20040416 was last friday, and if you had the problem in the weekend, > the incremental backup from the weekend did not succeed, and the old > amanda version would have listed the not-useful tape from the previous > incremental. > > Did you get the same message with the replayed scenario? Or are the > error messages from the real restore on monday only? __ This message has been checked for all known viruses __ De informatie verzonden met dit e-mailbericht is uitsluitend bestemd voor de geadresseerde. Openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking van deze informatie aan derden is niet toegestaan. Wij aanvaarden geen aansprakelijkheid voor de juiste en volledige overbrenging van de inhoud van een verzonden e-mail bericht, noch voor tijdige ontvangst ervan. __ HTTP://WWW.Syncera.NL __
Re: "Incremental tape too low" when using amrestore
Hans van Zijst wrote: I tried a bare metal recovery yesterday, but without the success I had hoped for. I restored the latest level 0 dump and then tried to restore the incremental dump over it. First step worked like a charm, but as soon as I restored the incremental tape, I got the error: "restore: Incremental tape too low" Amdump uses "dump" to make dumps, so I use "restore" to put them back. Here's what I did. First, I checked which tapes I needed: amadmin Dagelijks info xxx / "Dagelijks" is my daily set, incremental. Amanda gave me the following list: - Current info for xxx.xxx.xx /: Stats: dump rates (kps), Full: 7283.0, 2961.0, -1.0 Incremental: 2635.0, 2577.0, 2358.0 compressed size, Full: -100.0%,-100.0%,-100.0% Incremental: -100.0%,-100.0%,-100.0% Dumps: lev datestmp tape file origK compK secs 0 20040416 Dagtape-04 22 1318285 2636570 362 1 20040421 Dagtape-02 19 67215 134430 51 - (I replayed yesterday's scenario today, so the dates are rather recent) You didn't mention the version of amanda on the server. It used to be (pre-2.4.3 I believe, not sure) that "info" listed all incremental levels, even those that were older than the level minus one. So it could have listed: > Dumps: lev datestmp tape file origK compK secs > 0 20040416 Dagtape-04 22 1318285 2636570 362 > 1 20040415 Dagtape-02 19 67215 134430 51 Notice the datestmp on the level 1. That level 1 is not needed for restores, but older amanda versions did list them. 20040416 was last friday, and if you had the problem in the weekend, the incremental backup from the weekend did not succeed, and the old amanda version would have listed the not-useful tape from the previous incremental. Did you get the same message with the replayed scenario? Or are the error messages from the real restore on monday only? -- 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: "Incremental tape too low" when using amrestore
Hi Gertjan, Two reasons. First, "UNIX Backup and recovery" (O'Reilly) says: "amrecover should not be used to do full system recovery with vendor restore tools [...] Full system recovery with vendor restore should be done with amrestore." Makes sense. And the second reason is that I want to build a few scripts so that my colleague can take over things when I'm not around. I'd rather not drop him in an interactive shell (he's used to another type of interface, commonly used on workstations *grin*) I tried "recover if -" btw, and that does work. Strange, because it's the same image. But I don't quite trust it. I'm a bit afraid that an interactive restore won't delete files that were deleted between level 0 and 1. And there are hosts that contain sensitive data that should really be gone if deleted. Kind regards, Hans On Wednesday 21 April 2004 11:39, Gertjan van Oosten wrote: > Hello Hans, > > As quoted from Hans van Zijst <[EMAIL PROTECTED]>: > > I tried a bare metal recovery yesterday, > > Why didn't you just use amrecover? It prompts you to insert the right > tapes in the tape server as needed, without you having to figure it out > yourself. > > Kind regards, __ This message has been checked for all known viruses __ De informatie verzonden met dit e-mailbericht is uitsluitend bestemd voor de geadresseerde. Openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking van deze informatie aan derden is niet toegestaan. Wij aanvaarden geen aansprakelijkheid voor de juiste en volledige overbrenging van de inhoud van een verzonden e-mail bericht, noch voor tijdige ontvangst ervan. __ HTTP://WWW.Syncera.NL __
Re: "Incremental tape too low" when using amrestore
Hello Hans, As quoted from Hans van Zijst <[EMAIL PROTECTED]>: > I tried a bare metal recovery yesterday, Why didn't you just use amrecover? It prompts you to insert the right tapes in the tape server as needed, without you having to figure it out yourself. Kind regards, -- -- Gertjan van Oosten, [EMAIL PROTECTED], West Consulting B.V., +31 15 2191 600