Re: Network recovery with changer
On Wed, 2003-11-12 at 09:13, Stephen Walton wrote: > Thanks so much, Paul. I've installed the 2003-11-07 snapshot and made > the above change to my amanda.conf, and amrecover now uses the changer! > Should the amanda man page be changed to specifically state that > amrecover_changer should be the name of the tape changer script you're > using and not the name of a tape or changer device? To answer my own question: because it isn't needed. I violated a cardinal rule of both science and software testing, which is to change only one thing at a time. It turns out that I had made a small mistake in my configuration of the 2003-11-07 Amanda snapshot which resulted in amrecover still using the 2.4.4p1 version of amrestore rather than the one from the snapshot. Once I fixed that, setting amrecover_changer to "/dev/nst0" and "settape /dev/nst0" in amrecover worked as well. It does seem odd, though; can amrecover_changer be any arbitrary string to trigger use of the changer? -- Stephen Walton <[EMAIL PROTECTED]> Dept. of Physics & Astronomy, Cal State Northridge
Re: Network recovery with changer
On Mon, 2003-11-10 at 15:46, Paul Bijnens wrote: > Stephen Walton wrote: > > amanda.conf has the lines: > > > > tpchanger "chg-scsi"# the tape-changer glue script > > tapedev "0" > > changerfile "/etc/opt/amanda/daily/chg-scsi-compaq.conf" > > amrecover_changer "/dev/nst0" > > That should be: > > amrecover_changer "chg_scsi" Thanks so much, Paul. I've installed the 2003-11-07 snapshot and made the above change to my amanda.conf, and amrecover now uses the changer! Should the amanda man page be changed to specifically state that amrecover_changer should be the name of the tape changer script you're using and not the name of a tape or changer device? A great many of the other readers of this list, as well as me, interpreted the present man page as meaning the latter. -- Stephen Walton <[EMAIL PROTECTED]> Dept. of Physics & Astronomy, Cal State Northridge
Re: Network recovery with changer
On Mon, Nov 10, 2003 at 03:39:22PM -0800, Stephen Walton wrote: > On Mon, 2003-11-10 at 09:44, Paul Bijnens wrote: > > Stephen Walton wrote: > > > > > > > > I'm guessing from the responses I'm getting that no one else on the list > > > is even trying to use a changer directly from amrecover? > > > > Which version are you using? > > I was using 2.4.4p1 but after your message I gave the November 7 > snapshot a try. I suppose it fixes the problem of the lack of an > 'amrecover_check_header' line in my amanda.conf. However, it still > doesn't seem to work for me. > > I'm sure I'm being extraordinarily stupid here, but once more: my > amanda.conf has the lines: > > tpchanger "chg-scsi"# the tape-changer glue script > tapedev "0" > changerfile "/etc/opt/amanda/daily/chg-scsi-compaq.conf" > amrecover_changer "/dev/nst0" > > Which of these lines has to change, and what settape command in > amrecover do I use, in order to get amrecover to use the changer? The > amanda manpage notwithstanding, "settape /dev/nst0" with the above setup > does not work. Hi Stephen, >From amanda man page: amrecover_changer "string" Default: ''. Amrecover will use the changer if you use 'settape ' and that string is the same as the amrecover_changer setting. >From amrecover man page: settape [[server]:][tapedev|default] If you want amrecover to use your changer, the tapedev must be equal to the amrecover_changer setting on the server. You can use any string for amrecover_changer, but you must use the same string for the settape command in amrecover. Could you provide your amidxtaped..debug file? Jean-Louis -- Jean-Louis Martineau email: [EMAIL PROTECTED] Département IRO, Université de Montréal C.P. 6128, Succ. CENTRE-VILLETel: (514) 343-6111 ext. 3529 Montréal, Canada, H3C 3J7Fax: (514) 343-5834
Re: Network recovery with changer
Paul Bijnens wrote: Stephen Walton wrote: I was using 2.4.4p1 but after your message I gave the November 7 snapshot a try. I suppose it fixes the problem of the lack of an 'amrecover_check_header' line in my amanda.conf. However, it still doesn't seem to work for me. I'm sure I'm being extraordinarily stupid here, but once more: my amanda.conf has the lines: tpchanger "chg-scsi"# the tape-changer glue script tapedev "0" And I have my tapedev commented out too. changerfile "/etc/opt/amanda/daily/chg-scsi-compaq.conf" amrecover_changer "/dev/nst0" That should be: amrecover_changer "chg_scsi" And than maybe you need to specify in amrecover "settape chg_scsi". It works for my pseudo changer "chg_multi" with the file driver. I don't have a real changer. -- Paul @ Home
Re: Network recovery with changer
Stephen Walton wrote: I was using 2.4.4p1 but after your message I gave the November 7 snapshot a try. I suppose it fixes the problem of the lack of an 'amrecover_check_header' line in my amanda.conf. However, it still doesn't seem to work for me. I'm sure I'm being extraordinarily stupid here, but once more: my amanda.conf has the lines: tpchanger "chg-scsi"# the tape-changer glue script tapedev "0" changerfile "/etc/opt/amanda/daily/chg-scsi-compaq.conf" amrecover_changer "/dev/nst0" That should be: amrecover_changer "chg_scsi" And than maybe you need to specify in amrecover "settape chg_scsi". It works for my pseudo changer "chg_multi" with the file driver. I don't have a real changer. -- Paul @ Home
Re: Network recovery with changer
On Mon, 2003-11-10 at 09:44, Paul Bijnens wrote: > Stephen Walton wrote: > > > > > I'm guessing from the responses I'm getting that no one else on the list > > is even trying to use a changer directly from amrecover? > > Which version are you using? I was using 2.4.4p1 but after your message I gave the November 7 snapshot a try. I suppose it fixes the problem of the lack of an 'amrecover_check_header' line in my amanda.conf. However, it still doesn't seem to work for me. I'm sure I'm being extraordinarily stupid here, but once more: my amanda.conf has the lines: tpchanger "chg-scsi"# the tape-changer glue script tapedev "0" changerfile "/etc/opt/amanda/daily/chg-scsi-compaq.conf" amrecover_changer "/dev/nst0" Which of these lines has to change, and what settape command in amrecover do I use, in order to get amrecover to use the changer? The amanda manpage notwithstanding, "settape /dev/nst0" with the above setup does not work. -- Stephen Walton <[EMAIL PROTECTED]> Dept. of Physics & Astronomy, Cal State Northridge
Re: Network recovery with changer
On Monday 10 November 2003 12:16, Stephen Walton wrote: >On Sun, 2003-11-09 at 21:37, Jon LaBadie wrote: >> I don't think anyone said [tape and changer] had to be the same. >> Changer is (should be) /dev/sgX. >> Tape is (should be) /dev/nstX >> >> When it asks for changer try sg, when it asks for tape try nst. > >I think I did this. There is no 'setchanger' command in amrecover. > The manual page for amanda says that, if the argument to the > settape command in amrecover is the same as the value in > amrecover_changer in amanda.conf file, then amrecover will use the > changer. I have now tried setting amrecover_changer to > "/dev/nst0", "/dev/sg3", and "0" in amanda.conf, the last being the > same as what changerdev is set to. None of these work. > >I'm guessing from the responses I'm getting that no one else on the > list is even trying to use a changer directly from amrecover? I > know a lot of you have changers; is everyone else simply manually > using amtape to load the appropriate tape? I suppose if you have > multiple changer cartridges this is a low priority item, since you > probably have to swap cartridges to do a restore anyway. But what > about those of you with robots? Generally speaking Stephen, and for myself only, when the time comes to do a recovery, its usually a bare metal situation in that we're lucky to have tar, dd and gzip available. These might be used to extract enough of amanda to make the rest of the recovery work, but its not something I've tried. The one time I needed a just one file, and that was over a year ago, ISTR amrecover ran just fine, but the system was at that point 100% functional, I was nowhere near a bare metal situation. And I didn't use the changer, I just loaded up the tape I knew I needed, fired off dd to get the tapes files and extracted the file I needed from there with tar & gzip. I suspect that many of us more or less fall back to what we're familiar with and do that, even if amanda is supposed to be able to do that for us. Thats our fault of course, but in a recovery situation, the tendency is not to do any experimenting and possibly make it worse. I don't know that it will, but... -- Cheers, Gene AMD [EMAIL PROTECTED] 320M [EMAIL PROTECTED] 512M 99.27% setiathome rank, not too shabby for a WV hillbilly Yahoo.com attornies please note, additions to this message by Gene Heskett are: Copyright 2003 by Maurice Eugene Heskett, all rights reserved.
Re: Network recovery with changer
Stephen Walton wrote: I'm guessing from the responses I'm getting that no one else on the list is even trying to use a changer directly from amrecover? I know a lot of you have changers; is everyone else simply manually using amtape to load the appropriate tape? I suppose if you have multiple changer cartridges this is a low priority item, since you probably have to swap cartridges to do a restore anyway. But what about those of you with robots? Which version are you using? There was a bug in 2.4.4p1 that was fixed in the snapshot beginning July (and all later snapshots) As a workaround you need to specify the "amrecover_check_label yes" in your config file. See: http://groups.yahoo.com/group/amanda-hackers/message/3752 with patch: http://groups.yahoo.com/group/amanda-hackers/message/3753 Get a recent snapshots from: http://www.iro.umontreal.ca/~martinea/amanda/ (Snapshots contain only bugfixes; yes, they are reliable and stable.) -- Paul @ Home
Re: Network recovery with changer
On Sun, 2003-11-09 at 21:37, Jon LaBadie wrote: > I don't think anyone said [tape and changer] had to be the same. > Changer is (should be) /dev/sgX. > Tape is (should be) /dev/nstX > > When it asks for changer try sg, when it asks for tape try nst. I think I did this. There is no 'setchanger' command in amrecover. The manual page for amanda says that, if the argument to the settape command in amrecover is the same as the value in amrecover_changer in amanda.conf file, then amrecover will use the changer. I have now tried setting amrecover_changer to "/dev/nst0", "/dev/sg3", and "0" in amanda.conf, the last being the same as what changerdev is set to. None of these work. I'm guessing from the responses I'm getting that no one else on the list is even trying to use a changer directly from amrecover? I know a lot of you have changers; is everyone else simply manually using amtape to load the appropriate tape? I suppose if you have multiple changer cartridges this is a low priority item, since you probably have to swap cartridges to do a restore anyway. But what about those of you with robots? -- Stephen Walton <[EMAIL PROTECTED]> Dept. of Physics & Astronomy, Cal State Northridge
Re: Network recovery with changer
On Sun, Nov 09, 2003 at 09:07:36PM -0800, Stephen Walton wrote: > On Fri, 2003-11-07 at 16:15, Gene Heskett wrote: > > > Stephen Walton wrote: > > >I do know of the amrecover_changer parameter, and it is set to > > >"/dev/nst0"in my amanda.conf,.. > > > > I believe thats the wrong device, should it not be /dev/sgX?, > > No. Good idea, but if I set amrecover_changer to /dev/sg3, "settape > /dev/sg3" in amrecover, it tries to read /dev/sg3 as if it was a tape I don't think anyone said they had to be the same. Changer is (should be) /dev/sgX. Tape is (should be) /dev/nstX When it asks for changer try sg, when it asks for tape try nst. I don't know if it will work, but that is what I would expect. -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
Re: Network recovery with changer
On Fri, 2003-11-07 at 16:15, Gene Heskett wrote: > Stephen Walton wrote: > >I do know of the amrecover_changer parameter, and it is set to > >"/dev/nst0"in my amanda.conf,.. > > I believe thats the wrong device, should it not be /dev/sgX?, No. Good idea, but if I set amrecover_changer to /dev/sg3, "settape /dev/sg3" in amrecover, it tries to read /dev/sg3 as if it was a tape drive. "0" is what changerdev is set to, corresponding to the first device listed in chg-scsi.conf. This doesn't work either. Anyone else gotten this to work? -- Stephen Walton <[EMAIL PROTECTED]> Dept. of Physics & Astronomy, CSU Northridge
Re: Network recovery with changer
On Friday 07 November 2003 16:27, Stephen Walton wrote: >On Fri, 2003-11-07 at 09:33, Jon LaBadie wrote: >> On Fri, Nov 07, 2003 at 09:22:49AM -0800, Stephen Walton wrote: >> > what exactly do I put >> > in amanda.conf to have amrecover automatically change to the >> > correct tape? >> >> Did you check the amanda man page? >> >> amrecover_changer "string" > >Thanks for the response, Jon. It turns out that both questions I > asked (why was amrecover failing and how to get it to work with the > changer) are related. I found by experiment that I have to > "settape /dev/nst0" in amrecover before it will work, and then also > manually load the tape amrecover says it needs. > >I do know of the amrecover_changer parameter, and it is set to >"/dev/nst0"in my amanda.conf, but amrecover still does not change >tapes. The relevant lines from my configuration are I believe thats the wrong device, should it not be /dev/sgX?, where the X is derived from your /var/log/dmesg when it discovered the changer? >tpchanger "chg-scsi" >tapedev 0 >changerfile "/etc/opt/amanda/daily/chg-scsi-compaq.conf" >amrecover_changer "/dev/nst0" > >This does not work with amrecover but I'm unable to find a > combination which does. -- Cheers, Gene AMD [EMAIL PROTECTED] 320M [EMAIL PROTECTED] 512M 99.27% setiathome rank, not too shabby for a WV hillbilly Yahoo.com attornies please note, additions to this message by Gene Heskett are: Copyright 2003 by Maurice Eugene Heskett, all rights reserved.
Re: Network recovery with changer
On Fri, Nov 07, 2003 at 01:27:28PM -0800, Stephen Walton wrote: > On Fri, 2003-11-07 at 09:33, Jon LaBadie wrote: > > On Fri, Nov 07, 2003 at 09:22:49AM -0800, Stephen Walton wrote: > > > > > > what exactly do I put > > > in amanda.conf to have amrecover automatically change to the correct > > > tape? > > > > Did you check the amanda man page? > > > > amrecover_changer "string" > > Thanks for the response, Jon. It turns out that both questions I asked > (why was amrecover failing and how to get it to work with the changer) > are related. I found by experiment that I have to "settape /dev/nst0" > in amrecover before it will work, and then also manually load the tape > amrecover says it needs. > > I do know of the amrecover_changer parameter, and it is set to > "/dev/nst0"in my amanda.conf, but amrecover still does not change > tapes. The relevant lines from my configuration are > > tpchanger "chg-scsi" > tapedev 0 > changerfile "/etc/opt/amanda/daily/chg-scsi-compaq.conf" > amrecover_changer "/dev/nst0" > > This does not work with amrecover but I'm unable to find a combination > which does. As I noted, I've not used them. However I would not except your string "/dev/nst0" to be what it is looking for when the parameter name is "... changer". That is your tape drive isn't it? Perhaps the value it wants is the device of your changer, but I suspect that is in the *.conf file. So maybe it is the changer script name? Looks like yours is chg-scsi-compaq. jl -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
Re: Network recovery with changer
On Fri, 2003-11-07 at 09:33, Jon LaBadie wrote: > On Fri, Nov 07, 2003 at 09:22:49AM -0800, Stephen Walton wrote: > > > > what exactly do I put > > in amanda.conf to have amrecover automatically change to the correct > > tape? > > Did you check the amanda man page? > > amrecover_changer "string" Thanks for the response, Jon. It turns out that both questions I asked (why was amrecover failing and how to get it to work with the changer) are related. I found by experiment that I have to "settape /dev/nst0" in amrecover before it will work, and then also manually load the tape amrecover says it needs. I do know of the amrecover_changer parameter, and it is set to "/dev/nst0"in my amanda.conf, but amrecover still does not change tapes. The relevant lines from my configuration are tpchanger "chg-scsi" tapedev 0 changerfile "/etc/opt/amanda/daily/chg-scsi-compaq.conf" amrecover_changer "/dev/nst0" This does not work with amrecover but I'm unable to find a combination which does. -- Stephen Walton <[EMAIL PROTECTED]> Dept. of Physics & Astronomy, Cal State Northridge
Re: Network recovery with changer
On Fri, Nov 07, 2003 at 09:22:49AM -0800, Stephen Walton wrote: > > On a related topic, and one which I've searched in vain on the > FAQ-O-Matic and every place else for the answer: what exactly do I put > in amanda.conf to have amrecover automatically change to the correct > tape? Did you check the amanda man page? Mine shows these that I've not used but I think are what you seek. amrecover_do_fsf bool Default: off. Amrecover will call amrestore with the -f flag for faster positioning of the tape. amrecover_check_label bool Default: off. Amrecover will call amrestore with the -l flag to check the label. amrecover_changer "string" Default: ''. Amrecover will use the changer if you use 'settape ' and that string is the same as the amrecover_changer setting. -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
Network recovery with changer
Setup: all RedHat 8 shop, Amanda 2.4.4p1 locally compiled, HP DAT-4 changer on "server", some files which need to be recovered to "client". ambackup runs fine on "server": amverify as well as manual 'tar -tzvf' shows that the backups are fine. amrecover on server successfully runs and restores files to the server. I start amrecover on client in the usual way; "add" and "extract". amrecover tells me I need tape 1. ssh to server, use amtape to manually load tape needed. Tell amrecover to continue with extraction. amrecover gives following answer: Continue [?/Y/n/s/t]? y EOF, check amidxtaped.debug file on server. amrecover: short block 0 bytes Checking amidxtaped.debug file on server shows it believes amdump/amrecover to be running because /var/opt/amanda/daily/log exists. Well, of course it does, and it contains the single line INFO amidxtaped amidxtaped Quitting amrecover causes the creation of an amindexd.debug file in /tmp/amanda which contains a list of the contents of the desired backup file on the correct tape. So what is going on here? On a related topic, and one which I've searched in vain on the FAQ-O-Matic and every place else for the answer: what exactly do I put in amanda.conf to have amrecover automatically change to the correct tape? -- Stephen Walton <[EMAIL PROTECTED]> Dept. of Physics & Astronomy, Cal State Northridge