tape labeling scheme
How can I identify amanda tapes by level of dump? I can label a tape that had a full dump on Nov1 as daily111 but I can't label a tape that had a full dump on Nov 24th as daily1124. Yes - amlabel -f daily 111 or use a letter to represent the month - NO - amanda@sundev1 [amanda] % amlabel daily daily11N amlabel: label daily11N doesn't match labelstr "^daily[0-9][0-9]*$" NO - amanda@sundev1 [amanda] % amlabel daily daily1102 tape has not been labeled. any ideas how to track this? #tapetype DAT # what kind of tape it is (see tapetypes below) tapetype SEAGATE-SCORPION-40 labelstr "^daily[0-9][0-9]*$" # label constraint regex: all tapes must match -- Denise E. Ives [EMAIL PROTECTED] Systems Engineer734.822.2037 Multilingual Internet Domain Name Registrations - http://www.walid.com
Re: tape labeling scheme
Date: Tue, 14 Nov 2000 18:03:01 + (GMT) From: Denise Ives [EMAIL PROTECTED] How can I identify amanda tapes by level of dump? I can label a tape that had a full dump on Nov1 as daily111 but I can't label a tape that had a full dump on Nov 24th as daily1124. I'm sorry, but I think the question indicates a misunderstanding. You may well have things set up so that the idea of a (single) "level of dump" on the tape corresponds to something that an observer could reference... but I submit that such a configuration would be rather anomalous for amanda. (Granted, I set things up so that there are respects in which my amanda configuration is rather anomalous, too) But usually, amanda will use a mixture of levels during a given dump run, and the resulting backup images will get written to some set of tapes. As a result, each tape is likely to have a mixture of full and incremental (often, of differing levels) backup images on it. That's (generally) OK; amanda keeps track of what is where, so you can restore any object that is backed up to its state as of any date it was backed up. Where things get potentailly messy with this scheme is with "disaster recovery preparedness" -- you would need to keep an entire dumpcycle's worth of media in the "safe location" of your choice. (And if that is off-site, you no longer have access to these media while you are on-site.) Other folks have written about what they do, in ways that are likely better than I could, so I'll stop here. Cheers, david -- David Wolfskill [EMAIL PROTECTED] UNIX System Administrator Desk: 650/577-7158 TIE: 8/499-7158 Cell: 650/759-0823
Re: tape labeling scheme
How can I identify amanda tapes by level of dump? ... Jonathan and David are correct that normally you would not do this as Amanda may scatter dump levels all over the place w.r.t. the tapes. But they have clearly not been following the "Saga of Denise" in the list :-). In summary, Denise is being forced to run Amanda into just the holding disk for every run in the week except one. Just before that one day, she will do an amflush to dump the holding disk, then an "amadmin XX force" to request all full dumps, then a normal amdump to tape. She also has a very limited number of tapes, four, which implies using two for the amflush (incremental) and two for the amdump (full). In this limited environment, she could reasonably expect to know what goes on what tapes w.r.t. levels, at least full vs. incremental. I can label a tape that had a full dump on Nov1 as daily111 but I can't label a tape that had a full dump on Nov 24th as daily1124. I don't think most people relabel tapes every time, and certainly not with meaningful encoding of such things as the date they were used. The typical method is to just create a set of tapes and let Amanda cycle around through them, i.e. daily00, daily01, daily02, daily03. Why do you want to relabel them each time? Amanda will tell you (via amadmin or amrecover) which tape has which dump image on it. NO - amanda@sundev1 [amanda] % amlabel daily daily11N amlabel: label daily11N doesn't match labelstr "^daily[0-9][0-9]*$" This just says you need to "enhance" your labelstr. Maybe something like: "^daily[0-9A-Z][0-9A-Z]*$" There is an admin here who suggested I modify the labelstr. Will this work? Yes, however ... - you should modify labelstr to "$[0-9][0-9][0-9]" ... that is not a valid regular expression, or at least not the one you want. Image all your tape labels in a file and what grep pattern you would use to match them. Denise E. Ives John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]