Re: Newbie question.
http://wiki.zmanda.com/index.php/How_To:Set_Up_Virtual_Tapes -- Later, Darin On Tue, Mar 26, 2013 at 4:08 PM, Erik P. Olsen wrote: > Hi, > > I am looking at Amanda to solve my backup needs. Can Amanda work without > tape devices? > > I need to backup a Linux box, Fedora 18, which will also act as the server, > and a Windows 7 box, which will only act as client. > > Is that feasible? Which document will guide me through the configuration of > such backup scheme? > > Thanks in advance, > > -- > Erik > > Concordia parvę res crescunt discordia maximę dilabuntur
Re: Newbie question.
Erik, Yes - if you have enough disk to configure "virtual tapes" you can backup without physical tape. The docs are more than sufficient and numerous people on the amanda list have configured their amanda servers this way, myself included. On Tue, Mar 26, 2013 at 09:08:23PM +0100, Erik P. Olsen wrote: > Hi, > > I am looking at Amanda to solve my backup needs. Can Amanda work without > tape devices? > > I need to backup a Linux box, Fedora 18, which will also act as the server, > and a Windows 7 box, which will only act as client. > > Is that feasible? Which document will guide me through the configuration > of such backup scheme? > > Thanks in advance, > > -- > Erik > > Concordia parv? res crescunt discordia maxim? dilabuntur --- Brian R Cuttler [email protected] Computer Systems Support(v) 518 486-1697 Wadsworth Center(f) 518 473-6384 NYS Department of HealthHelp Desk 518 473-0773
Re: newbie question - change config in working backup server
>amanda do not use the dumptype when restoring, it use the information in >the backup. >It decrypt only encrypted backup. >if you enable encryption, the newer backup are encrypted, older backup >are still unencrypted and they are restorable. >jean-Louis Great ! Very good info. Thanks roberto
Re: newbie question - change config in working backup server
On 03/30/2012 02:03 PM, Charles Curley wrote: On Fri, 30 Mar 2012 10:21:45 -0700 (PDT) "[email protected]" wrote: No,I mean data storing encryptation, as this howto: http://www.crypt.gen.nz/papers/backup_encryption.html Ah, interesting. You might also check the zmanda wiki for more recent advice. I have not experimented with encrypting the backups as they are made in this manner, so maybe someone else can chime in. I conjecture that once you start making backups with encryption, the older dumps will not be immediately recoverable because they are not encrypted. If so, then starting over might be a good idea. Or you could proceed, knowing that you will have to change the dump type back to the unencrypted to recover old dumps. If you do monthly or annual snapshots, document that well! I solve the problem of encrypting my backups with a different mechanism. I back to disk, and rsync to another disk for offsite backup. I encrypt the file system on the offsite disks with ecryptfs. amanda do not use the dumptype when restoring, it use the information in the backup. It decrypt only encrypted backup. if you enable encryption, the newer backup are encrypted, older backup are still unencrypted and they are restorable. jean-Louis
Re: newbie question - change config in working backup server
On Fri, 30 Mar 2012 10:21:45 -0700 (PDT) "[email protected]" wrote: > No,I mean data storing encryptation, as this howto: > > http://www.crypt.gen.nz/papers/backup_encryption.html Ah, interesting. You might also check the zmanda wiki for more recent advice. I have not experimented with encrypting the backups as they are made in this manner, so maybe someone else can chime in. I conjecture that once you start making backups with encryption, the older dumps will not be immediately recoverable because they are not encrypted. If so, then starting over might be a good idea. Or you could proceed, knowing that you will have to change the dump type back to the unencrypted to recover old dumps. If you do monthly or annual snapshots, document that well! I solve the problem of encrypting my backups with a different mechanism. I back to disk, and rsync to another disk for offsite backup. I encrypt the file system on the offsite disks with ecryptfs. -- 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
Re: newbie question - change config in working backup server
>I assume you mean using SSH access so that transport is encrypted. >If you mean, encrypting the dumps, I can't answer that. Hello Charles and thanks for your help. No,I mean data storing encryptation, as this howto: http://www.crypt.gen.nz/papers/backup_encryption.html >In both cases, Amanda will pick up where it left off, with no problem. ok, thanks again. roberto
Re: newbie question - change config in working backup server
On Fri, 30 Mar 2012 08:55:49 -0700 (PDT) "[email protected]" wrote: > - If I modify the disklist file (adding/deleting/modify) the server > still working well or I must start from scratch following this > guide ? > > http://wiki.zmanda.com/index.php/FAQ:Ok,_I%27m_done_with_testing_Amanda,_now_I_want_to_put_it_in_production._How_can_I_reset_its_databases_so_as_to_start_from_scratch%3F > > - The same question if add encryptation support later in a working > system ? I should to start the backup from scratch ? I assume you mean using SSH access so that transport is encrypted. If you mean, encrypting the dumps, I can't answer that. > > Or amanda handles all this automatically? In both cases, Amanda will pick up where it left off, with no problem. If you add DLEs to the disklist, I suggest you add a few at a time so that Amanda can absorb the new ones gracefully. It will try to do level 0 (total) backups with new entries. You don't want to swamp your holding disk or tape drive by adding too many at once. -- 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
Re: newbie question about xinetd need restart all the time
hi Marc, Thank you for your great advice! Changing this "wait=yes" fixed my problem. Jinghua On Tue, 5 May 2009, Marc Muehlfeld wrote: [email protected] schrieb: May 5 08:00:19 baker7 xinetd[8633]: file descriptor of service amanda has been closed May 5 08:00:19 baker7 xinetd[8633]: select reported EBADF but no bad file descriptors were found Please send us your xinetd.conf. But also please check, if you set "wait = no". For udp it normally has to be "yes". This error could be caused by this. -- Marc Muehlfeld (Leitung IT) 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-780 http://www.medizinische-genetik.de
Re: newbie question about xinetd need restart all the time
[email protected] schrieb: May 5 08:00:19 baker7 xinetd[8633]: file descriptor of service amanda has been closed May 5 08:00:19 baker7 xinetd[8633]: select reported EBADF but no bad file descriptors were found Please send us your xinetd.conf. But also please check, if you set "wait = no". For udp it normally has to be "yes". This error could be caused by this. -- Marc Muehlfeld (Leitung IT) 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-780 http://www.medizinische-genetik.de
Re: newbie question about xinetd need restart all the time
hi Marc, Thank you for your helps! Here is what is in the messages: May 5 08:00:16 baker7 xinetd[8633]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in. May 5 08:00:16 baker7 xinetd[8633]: Started working: 1 available service May 5 08:00:19 baker7 xinetd[8633]: START: amanda pid=8639 from=132.239.185.235 May 5 08:00:19 baker7 xinetd[8633]: file descriptor of service amanda has been closed May 5 08:00:19 baker7 xinetd[8633]: select reported EBADF but no bad file descriptors were found May 5 08:00:49 baker7 xinetd[8633]: EXIT: amanda status=0 pid=8639 duration=30(sec) ps axf | grep xinetd 8633 ?Ss 0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid [r...@baker7 log]# /etc/init.d/xinetd status xinetd (pid 8633) is running... while there is no xinetd in netstat: netstat -taunp | grep xinetd there is amanda with netstat: netstat -taunp | grep amanda tcp0 0 :::132.239.185.235:22 :::132.239.185.23:51312 ESTABLISHED 8434/sshd: amanda [ Jinghua On Tue, 5 May 2009, Marc Muehlfeld wrote: [email protected] schrieb: After a while, it complains about network access problem. What does the xinetd and messages logfile says? Is there xinetd process still running? There should only be one xinetd process. # ps axf | grep xinetd Is xinetd still listening on the ports you configured it? # netstat -taunp | grep xinetd -- Marc Muehlfeld (Leitung IT) 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-780 http://www.medizinische-genetik.de
Re: newbie question about xinetd need restart all the time
[email protected] schrieb: After a while, it complains about network access problem. What does the xinetd and messages logfile says? Is there xinetd process still running? There should only be one xinetd process. # ps axf | grep xinetd Is xinetd still listening on the ports you configured it? # netstat -taunp | grep xinetd -- Marc Muehlfeld (Leitung IT) 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-780 http://www.medizinische-genetik.de
Re: newbie question about xinetd need restart all the time
On 2009-05-05 01:30, [email protected] wrote: I just tried install amanda from source on a centos 5.3 machine. Centos didn't have xinetd. I installed both xinetd and amanda. But amanda only work after immediate xinetd restart. After a while, it complains about network access problem. Thank you for your insight on how to stablize xinetd for amanda. I don't know where you got your CentOS from, but in mine the xinetd is installed by default. Even in the basic, minimal installs. And what are the "complains about network access problems"? Exact error messages do help to debug, for the time that my crystal ball is in the repair shop. -- Paul Bijnens, Xplanation Technology ServicesTel +32 16 397.525 Interleuvenlaan 86, B-3001 Leuven, BELGIUM Fax +32 16 397.552 *** * I think I've got the hang of it now: exit, ^D, ^C, ^\, ^Z, ^Q, ^^, * * quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, ~., * * stop, end, ^]c, +++ ATH, disconnect, halt, abort, hangup, KJOB, * * ^X^X, :D::D, kill -9 1, kill -1 $$, shutdown, init 0, Alt-F4, * * Alt-f-e, Ctrl-Alt-Del, Alt-SysRq-reisub, Stop-A, AltGr-NumLock, ... * * ... "Are you sure?" ... YES ... Phew ... I'm out * ***
Re: newbie question
On Tue, Jul 29, 2003 at 01:35:50PM -0400, Dalton, John L MONMOUTH ITS Multimax wrote: > > Just got amanda configured on a raidzone > but I don't think the changer file is correct > as it will not load tapes from the 29 storage > elements. > > Do I have to label every tape before it will > move them form storage? yes -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
Re: Newbie question : controlling Lotus Notes
On Tue, Jul 08, 2003 at 09:54:58AM +0200, [EMAIL PROTECTED] wrote: > > My question : Isn't it possible to have more control over the process; > say, restart Notes as soon as all its files (as indicated in the > configuration) are backed up so that the Notes appserver can already be > restarted while the 'rest' of the backup is still running ? > I want to get rid of this 'intermediate' file system copy of the lotus > files to another location prior to running the backup. > However, I want to restart the notes appserver as soon as possible. > I can think of two solutions: - running Amanda with a fake version of gnutar. This means to configure Amanda to use e.g. /usr/local/bin/amtar amtar is a shell script which stops notes, runs tar and starts notes again. - Configure Linux with LVM and use snapshots. Ciao Dietmar -- Alles Gute / best wishes Dietmar Goldbeck E-Mail: [EMAIL PROTECTED] Reporter (to Mahatma Gandhi): Mr Gandhi, what do you think of Western Civilization? Gandhi: I think it would be a good idea.
Re: Newbie question: merge incremental backup to full one
On Wed February 26 2003 11:15, Kablan BOGNINI wrote:
>Apologizes for the post because i don't give enough
>info.
>Here is.
>I have make backup on two different tapes say tape A
>and B from server_one.
>A is holding the full backup and B the incremental
>one.
>I have another server_two not using amanda where i
>want to restore those data ?
>What must i do to get all my data(full+incremental)
>restore on that server ?
You realise of course this has very little to do with the original
question. (-:
Take the tapes, and prefereably the drive, to the second machine,
even the controller card if need be, and install them to the point
of being operational. Or make sure the network is transparent so
you can access the drive from a shell on the target machine. I'm
not that great on the networking stuff, so I'd move the drive and
controller card. But thats just *my* personal preferences.
Make sure you have the following tools available on the second
machine.
mt
dd
tar (or (shudder) dump)
gzip
The files on the tape are laid out like this
amanda tape ID header (32k)
{
amanda - tar identifying header, may be 32k, I'm not sure
tar'd file represesnting one DLE
}
repeat the {} contents till last DLE is done, at which point an
attempted read of the next header will get you an EOT error.
then
all this assumes the use of the non-rewinding tape device alias.
1. rewind tape
2. dd if=tapedev bs=32k # will show you the tapes name
3. dd if=tapedev bs=32k # will tell you onscreen what the next file
on the tape is, and whether or not you need to pipe it thru gzip,
showing you the actual command line to use.
At this point, go make the target dir for this particular file, and
cd to it.
4. Follow the directions you got from step 3
5. repeat from step 3 until out of data on that tape
6. eject tape and insert 2nd one
7. repeat from 1 to 5.
8. move data to where you want it if the recovery wasn't pointed
there in the first place.
A simple concept, but lots of work. No mistakes allowed unless you
keep track of the file/DLE count so the tape can be rewound, and
then repositioned to the proper starting location with an "mt -f
device fsf filenumber" where device is say /dev/nst0 (you MUST use
the non-rewinding device for this) and where filenumber might be 26
if thats where you lost track of all the trees in this here forest.
:)
--
Cheers, Gene
AMD [EMAIL PROTECTED] 320M
[EMAIL PROTECTED] 512M
99.23% setiathome rank, not too shabby for a WV hillbilly
Re: Newbie question: merge incremental backup to full one
On Wed, 26 Feb 2003 at 5:15pm, Kablan BOGNINI wrote > Apologizes for the post because i don't give enough > info. > Here is. > I have make backup on two different tapes say tape A > and B from server_one. > A is holding the full backup and B the incremental > one. > I have another server_two not using amanda where i > want to restore those data ? > What must i do to get all my data(full+incremental) > restore on that server ? Extract the full backup, and then the incremental over top of that. docs/RESTORE talks about how to get data off tapes without the amanda tools. -- Joshua Baker-LePain Department of Biomedical Engineering Duke University
Re: Newbie question: merge incremental backup to full one
Apologizes for the post because i don't give enough info. Here is. I have make backup on two different tapes say tape A and B from server_one. A is holding the full backup and B the incremental one. I have another server_two not using amanda where i want to restore those data ? What must i do to get all my data(full+incremental) restore on that server ? --- Gene Heskett <[EMAIL PROTECTED]> a écrit : > On Wed February 26 2003 06:26, Kablan BOGNINI wrote: > >Hi, > > > >How can I merge incremental backup to full backup > >without using AMANDA ? > > On the same tape? For dependability reasons, amanda > won't do that > because she has no way of knowing when next > restarted, where on the > tape and how much of it has been used. In between > sessions, > someone may have ejected the tape and re-inserted > it, which would > rewind it. If amanda then does an incremental on > the same tape as > your only full, the full is over-written and lost. > Not a pleasant > scene with the boss if you should need to do a full > recovery 3 > hours after that incremental was done. > > Tape is cheap when compared to the cost of lost data > and the cost of > regenerating that lost data from scratch. > > Consider if the lost data is your only full, > uptodate copy of your > accounts receivable... Buy the tapes. > > -- > Cheers, Gene > AMD [EMAIL PROTECTED] 320M > [EMAIL PROTECTED] 512M > 99.23% setiathome rank, not too shabby for a WV hillbilly ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com
Re: Newbie question: merge incremental backup to full one
On Wed February 26 2003 06:26, Kablan BOGNINI wrote: >Hi, > >How can I merge incremental backup to full backup >without using AMANDA ? On the same tape? For dependability reasons, amanda won't do that because she has no way of knowing when next restarted, where on the tape and how much of it has been used. In between sessions, someone may have ejected the tape and re-inserted it, which would rewind it. If amanda then does an incremental on the same tape as your only full, the full is over-written and lost. Not a pleasant scene with the boss if you should need to do a full recovery 3 hours after that incremental was done. Tape is cheap when compared to the cost of lost data and the cost of regenerating that lost data from scratch. Consider if the lost data is your only full, uptodate copy of your accounts receivable... Buy the tapes. -- Cheers, Gene AMD [EMAIL PROTECTED] 320M [EMAIL PROTECTED] 512M 99.23% setiathome rank, not too shabby for a WV hillbilly
Re: Newbie question; Write Protected? just Permission denied?
> On Mon, 18 Nov 2002 at 5:42pm, Lewis Getschel wrote > > > I tried the erase as the amanda user, and I got permission denied. I > > suspect that amlabel is simply saying write-protected when in fact it is > > just permission denied. > > Yep. > > > As a newbie that has looked in the FOM, and read the mailing list for > > almost a week, I'm confused as to WHAT group I should compile under. > > Some people say operator, others disk, others xxx (take your pick > > ). Is the group you use more dependant on what distro you use > > (hence the permission issue?) Is the group my problem? > > You can assign the user/group of you run amanda as in any way which will > work for you. On Red Hat Linux, I do amanda:disk (as you did). Make sure > that /dev/nst0 has the proper ownership and permissions -- for me > /dev/nst0 is owned by root:disk with a mode of 660. > Thanks so much. Is was a permission issue. /dev/nst0 was set to 640 (as are hd* and st*). After changing to 660, the amanda user can now write to the tape drive. Now I just need to figure out why my scsi pcmcia card and the ethernet pcmcia card 'step on each other' so the system only works with ONE of them plugged in, not both. It must be some kind of conflict, but nothing seems obvious yet. -- __ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup
Re: Newbie question; Write Protected? just Permission denied?
On Mon, 18 Nov 2002 at 5:42pm, Lewis Getschel wrote > I tried the erase as the amanda user, and I got permission denied. I > suspect that amlabel is simply saying write-protected when in fact it is > just permission denied. Yep. > As a newbie that has looked in the FOM, and read the mailing list for > almost a week, I'm confused as to WHAT group I should compile under. > Some people say operator, others disk, others xxx (take your pick > ). Is the group you use more dependant on what distro you use > (hence the permission issue?) Is the group my problem? You can assign the user/group of you run amanda as in any way which will work for you. On Red Hat Linux, I do amanda:disk (as you did). Make sure that /dev/nst0 has the proper ownership and permissions -- for me /dev/nst0 is owned by root:disk with a mode of 660. -- Joshua Baker-LePain Department of Biomedical Engineering Duke University
Re: Newbie question: amncheck - unary operator expected
>It also works with tapedev "/dev/st0" ... You just think it does :-). It's going to bite you big time, though. You **must** use /dev/nst0. The /dev/st0 name is a "rewinding" device name. Whenever a program closes such a name, the tape is automatically rewound. Using /dev/nst0 leaves the tape positioned where it was between opens and closes. Amanda expects (insists) on you giving it the no-rewind name. There is essentially no reason to *ever* use the rewinding name. It's a bit of historical silliness that should be removed if any OS vendor ever has the guts to do so. >Well, I thought these variables are neccesary somewhere else because they're >existent in the chg-scssi-linux.conf example file: You've flipped changers on me. That config file is for chg-scsi, not chg-zd-mtx. Which one are you trying to (or do you want to) use? If you want to shift over to chg-scsi, that's fine. Then your config file is probably closer to reality. But if you want to use chg-zd-mtx, you need to look at the comments in the chg-zd-mtx script itself for what the config file looks like and rework it. >Greg John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]
Re: Newbie question: amncheck - unary operator expected
[EMAIL PROTECTED] 04/10/02 07:24PM >>> >>The current problem is that I'm getting the WARNING: tapedev is /dev/null, >>dumps will be thrown away >>but I have no tapedev "/dev/null" in my amanda.conf file. >Frank is right. You need to set tapedev to "/dev/nst0". It also works with tapedev "/dev/st0" - I tried this because my Hardware Browser (RedHat) reports: Tape Drives: HP C1553A, Device: /dev/st >>I'm not sure about my changer config file ... >It would help if you posted it. Here goes: ### number_configs 1 eject 0 sleep 90 cleanmax100 changerdev /dev/sga config 0 drivenum0 dev /dev/st scsitapedev /dev/st0 #or /dev/nst0 ? startuse1 enduse 5 statfile /usr/local/etc/amanda/Daily/tape0-slot cleancart 6 cleanfile /usr/local/etc/amanda/Daily/tape0-clean usagecount /usr/local/etc/amanda/Daily/totaltime tapestatus /usr/local/etc/amanda/Daily/tapestatus >>chg-scsi-linux.conf up just because the tapedrive is connected to the scsi >>card and my platform is Linux), replaced its dev entries (/dev/nst0, >>/dev/sg1) with /dev/sga and changed the values of startuse, enduse and >>cleancart. >Huh? Did you look at the comments in the script? There aren't any >variables named startuse, enduse or cleancart. Well, I thought these variables are neccesary somewhere else because they're existent in the chg-scssi-linux.conf example file: number_configs 1 eject 0 # Tapedrives need an eject command sleep 90 # Seconds to wait until the tape gets ready cleanmax100 # How many times could a cleaning tape get used changerdev /dev/sg2 # # Next comes the data for drive 0 # config 0 drivenum0 dev /dev/nst0 scsitapedev /dev/sg1 startuse0 # The slots associated with the drive 0 enduse 4 # statfile/usr/local/etc/amanda/DailySet1/tape0-slot # The file where the actual slot is stored cleancart 5 # the slot where the cleaningcartridge for drive 0 is located cleanfile /usr/local/etc/amanda/DailySet1/tape0-clean # The file where the cleanings are recorded usagecount /usr/local/etc/amanda/DailySet1/totaltime tapestatus /usr/local/etc/amanda/DailySet1/tapestatus # here will some status infos be stored #labelfile /usr/local/etc/amanda/DailySet1/labelfile # Use this if you have an barcode reader # >John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED] Thank you for your help. Thanks to you, thanks to the list I'm getting a better understanding of amanda. Greg
Re: Newbie question: amncheck - unary operator expected
>The current problem is that I'm getting the WARNING: tapedev is /dev/null, >dumps will be thrown away >but I have no tapedev "/dev/null" in my amanda.conf file. Frank is right. You need to set tapedev to "/dev/nst0". >I'm not sure about my changer config file ... It would help if you posted it. >chg-scsi-linux.conf up just because the tapedrive is connected to the scsi >card and my platform is Linux), replaced its dev entries (/dev/nst0, >/dev/sg1) with /dev/sga and changed the values of startuse, enduse and >cleancart. Huh? Did you look at the comments in the script? There aren't any variables named startuse, enduse or cleancart. >Greg John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]
Re: Newbie question: amncheck - unary operator expected
--On Wednesday, April 10, 2002 14:26:34 -0500 Greg Wardawy <[EMAIL PROTECTED]> wrote: > The current problem is that I'm getting the WARNING: tapedev is /dev/null, > dumps will be thrown away > but I have no tapedev "/dev/null" in my amanda.conf file. > Here goes the beginning part of amanda.conf: > > changerfile "/usr/local/etc/amanda/chg-scsi-linux" > changerdev "/dev/sga" > tpchanger "chg-zd-mtx" > I think you might also need tapedev specified in your amanda.conf, something like: tapedev "/dev/nst0" # the no-rewind tape device to be used Good luck, Frank -- Frank Smith[EMAIL PROTECTED] Systems Administrator Voice: 512-374-4673 Hoover's Online Fax: 512-374-4501
Re: Newbie question: amncheck - unary operator expected
> >>> [EMAIL PROTECTED] 04/09/02 12:17PM >>>
> >
> >I got it. Thanks a lot. I'll install it first thing tomorrow morning.
>
> Let me know how it goes. In theory :-), it's perfect. But I don't
> run mtx here so debugging has been a bit of an adventure. It's ever so
> faintly possible there is a minuscule portion of a tiny chance you'll
> find a problem. But if so, send me the output of what you tried, the
> corresponding /tmp/amanda/*debug file, and why you think it's wrong
> (in case it's not obvious).
Thank you for your help, John. I'm trying to use the script I've downloaded
from your ftp site. I removed my old amanda installation (it was installed
from redhat 7.2 rpm) and everything related to it. Then I installed
amanda-2.4.2p2 from the source, placed chg-zd-mtx.sh.in-243 in changer-src
renaming it to chg-zd-mtx.sh.in, run ./configure --with-user=amanda
--with-group=disk and make from the top and then make install from
changer-src.
The current problem is that I'm getting the WARNING: tapedev is /dev/null,
dumps will be thrown away
but I have no tapedev "/dev/null" in my amanda.conf file.
Here goes the beginning part of amanda.conf:
#amanda.conf
org "DailySet"
mailto "amanda wardawyg"
dumpuser "amanda"
inparallel 4
netusage 600 Kbps
dumpcycle 4 weeks
runspercycle 4 weeks
tapecycle 25 tapes
bumpsize 20 Mb
bumpdays 1
bumpmult 4
etimeout 300
runtapes 2
changerfile "/usr/local/etc/amanda/chg-scsi-linux"
changerdev "/dev/sga"
tpchanger "chg-zd-mtx"
tapetype DAT-120m
labelstr "^DailySet1[0-9][0-9]*$"
holdingdisk hd1 {
comment "main holding disk"
directory "/var/tmp"
use 1000 Mb
}
infofile "/usr/adm/amanda/Daily/curinfo"
logdir "/usr/adm/amanda/Daily"
indexdir "/usr/adm/amanda/Daily/index"
define tapetype DAT-120m {
comment "DAT tape (120m tapes)"
length 4000 mbytes
filemark 250 kbytes
speed 512 kbytes
}
###cut##
I'm not sure about my changer config file - I took an example file (I picked
chg-scsi-linux.conf up just because the tapedrive is connected to the scsi
card and my platform is Linux), replaced its dev entries (/dev/nst0,
/dev/sg1) with /dev/sga and changed the values of startuse, enduse and
cleancart.
OK, here goes amcheck output:
[
root@linver sbin]# su amanda -c"/usr/local/sbin/amcheck Daily"
Amanda Tape Server Host Check
-
WARNING: tapedev is /dev/null, dumps will be thrown away
Holding disk /var/tmp: 15421824 KB disk space available, that's plenty
NOTE: skipping tape checks
NOTE: info dir /usr/adm/amanda/Daily/curinfo: does not exist
NOTE: it will be created on the next run
Server check took 0.004 seconds
Amanda Backup Client Hosts Check
WARNING: linver: selfcheck request timed out. Host down? #I'll work on it
later - my comment
Client check: 1 host checked in 30.006 seconds, 1 problem found
(brought to you by Amanda 2.4.2p2)
and the contest of the corresponding debug file:
amcheck: debug 1 pid 21850 ruid 33 euid 0 start time Wed Apr 10 13:34:12 2002
amcheck: dgram_bind: socket bound to 0.0.0.0.766
amcheck: pid 21850 finish time Wed Apr 10 13:34:42 2002
I tried to put tapedev "/dev/sga" in amanda.conf but I've got:
amcheck-server: could not get changer info: cannot determine drive slot from
/dev/sga
and (with runtapes 1 and #tpchanger "chg-zd-mtx"):
ERROR: /dev/sga: rewinding tape: Permission denied
(expecting a new tape)
##
Thank you again
Greg
Re: Newbie question: amcheck - unary operator expected
>I got it. Thanks a lot. I'll install it first thing tomorrow morning. Let me know how it goes. In theory :-), it's perfect. But I don't run mtx here so debugging has been a bit of an adventure. It's ever so faintly possible there is a miniscule portion of a tiny chance you'll find a problem. But if so, send me the output of what you tried, the corresponding /tmp/amanda/*debug file, and why you think it's wrong (in case it's not obvious). >> Even in the old script there is a block of comments about the format >> of the config file. Just make sure you throw away all the lines you >> don't need (it doesn't handle comments) and put keyword=value entries >> in exactly like it says (the new version tries to be a bit more tolerant). > >I'm sorry I'm a bit confused here. Do I need to remove all unnecessary lines >from the chg-zd-mtx.sh file or from the mtx-changer.conf file? What I meant was, if you're going to use the old script: * take that section of comments that describe the config file * put them into your config file and uncomment each line, also removing all leading whitespace * remove anything faintly resembling a comment from the config file (e.g. the extra stuff at the end of the lines) * remove any lines that do not apply (e.g. if you don't have a cleaning cartridge) and change whatever other values as needed * Make sure all the settings are keyword=value, with keyword at the very start of the line (no leading whitespace), no whitespace around the equals sign, and no whitespace after the value. This will also work fine with the new script, it's just that it tries to be more tolerant of the comments, whitespace, etc. The real problem was that the old script didn't pay attention to comments, so if it saw something like this: # This is not real: keyword=value It would set keyword to value even though that's not what the installer had in mind. And when the installer just copied the comments from the script to the file, without removing the stuff that was not needed, madness ensued as variables got unexpected values. >Greg John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]
Re: Newbie question: amcheck - unary operator expected
On Monday 08 April 2002 16:46, you wrote: > >I'm a "brand new" if about amanda and mtx so please don't laugh too hard > > at me. ... > > We never laugh at new users!!! :-) > That's what I was thinking but, actually, I don't mind if somebody wants to laugh at me if at the same time I can learn something. > >in the mtx-changer.conf file I have: > >... > >statefile /var/lib/amanda/DailySet1/curinfo/localhost/_etc/state > >slot 1 /dev/sga > >slot 2 /dev/sga > >... > > Where did you get the idea behind this file? It doesn't match what > chg-zd-mtx is going to want. It looks like what you might set up for > chg-multi, not chg-zd-mtx. > Well, I found it somewhere on the Net, can't recall where and that was before I found the information about mtx. It looked right to me so I placed everything from my old changer.conf into the mtx-changer.conf having no idea what I should have in my changer config file. >You can get it at: > > ftp://gandalf.cc.purdue.edu/pub/amanda/chg-zd-mtx.sh.in-243 > > To install it: > > cd changer-src > Save your current chg-zd-mtx.sh.in > Copy the new file in as chg-zd-mtx.sh.in > cd .. > ./configure ... > make > cd changer-src > make install > I got it. Thanks a lot. I'll install it first thing tomorrow morning. > You might want to take a look at the script itself. It starts out with > a lengthy set of comments about how to set it up. > Wow! This script is great! What a gold mine! > Even in the old script there is a block of comments about the format > of the config file. Just make sure you throw away all the lines you > don't need (it doesn't handle comments) and put keyword=value entries > in exactly like it says (the new version tries to be a bit more tolerant). I'm sorry I'm a bit confused here. Do I need to remove all unnecessary lines from the chg-zd-mtx.sh file or from the mtx-changer.conf file? > John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED] Thanks a lot again, I really appreciate your help. Greg
Re: Newbie question: amcheck - unary operator expected
>I'm a "brand new" if about amanda and mtx so please don't laugh too hard at >me. ... We never laugh at new users!!! :-) Welcome! >in the mtx-changer.conf file I have: >... >statefile /var/lib/amanda/DailySet1/curinfo/localhost/_etc/state >slot 1 /dev/sga >slot 2 /dev/sga >... Where did you get the idea behind this file? It doesn't match what chg-zd-mtx is going to want. It looks like what you might set up for chg-multi, not chg-zd-mtx. >amcheck-server: could not get changer info: badly formed result from changer: >"/usr/lib/amanda/chg-zd-mtx: [: -eq: This came up a while back but I can't find it in my archives. This script has had a major overhaul for the next release. Would you mind trying it instead? You can get it at: ftp://gandalf.cc.purdue.edu/pub/amanda/chg-zd-mtx.sh.in-243 To install it: cd changer-src Save your current chg-zd-mtx.sh.in Copy the new file in as chg-zd-mtx.sh.in cd .. ./configure ... make cd changer-src make install You might want to take a look at the script itself. It starts out with a lengthy set of comments about how to set it up. >What am I missing here? I'm sure it's something about your config file and a variable in the (old) script that's not set where it should be. If you don't want to try the new version (which is fine), I think the following might be better: firstslot=1 lastslot=6 Even in the old script there is a block of comments about the format of the config file. Just make sure you throw away all the lines you don't need (it doesn't handle comments) and put keyword=value entries in exactly like it says (the new version tries to be a bit more tolerant). >Greg John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]
RE: Newbie question: amcheck - unary operator expected
Greg Wardawy [mailto:[EMAIL PROTECTED]] wrote: > Amanda Backup Client Hosts Check > > ERROR: localhost: [access as amanda not allowed from amanda@linver] > amandahostsauth failed > Client check: 1 host checked in 0.020 seconds, 1 problem found Hmmm... I can't help you with the others, but here's how to check what's up with this one: # cat /etc/passwd | grep "amanda-user-name here" this will give you back a line, one item of which will be the home directory of the amanda user. cd to that directory. make sure that the '.amandahosts' file exists in this directory. It should be owned by your amanda user, and have at least the line: linver amanda in it.. HTH, Ricky
Re: Newbie question (linux + ADIC FastStor 7000)
Thomas - I got all this to work finally. Trick was to get the CVS version of chg-zd-mtx and hack it a little. Our ADIC/mtx/mt combo returns different messages depending on status, so I had to make those changes. The problem with "slot 19 gives slot 2" was that the case statement in the script (/bin/sh style) read [$firstslot-$lastslot]) which is not going to regexp match tape "22". It was fixed in the latest version. Thanks to all! On Tue, 20 Mar 2001, Thomas Hepper wrote: > > I have a Slack 7.1 (2.2.18) setup with an Adic 7000 22-tape library. Did a > > clean make and install and am trying to get the tape controller to work. > > > > Should I be using chg-scsi or chg-zd-mtx? chg-scsi doesn't seem to like > > all 22 of the media slots ( see below -- note the "-1" on slots 8,9,10 ). > > Plus, it hasn't been loading the correct elements. Ie. "slot 19" gives me > > slot 2 instead... etc. etc... I think I should be changing to zd-mtx, yes? > > Hmm not sure about this. The -1 tells that the library has no idea from > where this > cartridge comes, so its not an problem, its only an info. > > What do you mean with slot 19 gives me slot 2 ??? > > So what are the problems you have :-), does chg-scsi move the tapes, did > amtape show > work etc, -- http://www.mchang.org/ http://decss.zoy.org/
Re: Newbie question (linux + ADIC FastStor 7000)
Hi, > I have a Slack 7.1 (2.2.18) setup with an Adic 7000 22-tape library. Did a > clean make and install and am trying to get the tape controller to work. > > Should I be using chg-scsi or chg-zd-mtx? chg-scsi doesn't seem to like > all 22 of the media slots ( see below -- note the "-1" on slots 8,9,10 ). > Plus, it hasn't been loading the correct elements. Ie. "slot 19" gives me > slot 2 instead... etc. etc... I think I should be changing to zd-mtx, yes? Hmm not sure about this. The -1 tells that the library has no idea from where this cartridge comes, so its not an problem, its only an info. What do you mean with slot 19 gives me slot 2 ??? So what are the problems you have :-), does chg-scsi move the tapes, did amtape show work etc, Thomas
Re: newbie question re barcodes
Barcodes are stored in a file showing which amlabel corresponds to which barcode. That way, if you request a specific amlabeled tape with some amanda util, it will check if that name is in the barcode file, then load the matching barcoded tape. Without barcodes, if you ask for a specific amlabeled tape, amanda will cycle through every tape until it finds the correct one. Barcodes are a speed increase, as that could take several hours with a large library. On Wed, 07 Mar 2001, Carey Jung wrote: > I've caught some conversation about tape libraries w/barcode readers. How > are they used, and what does amanda do with them? > > Regards, > Carey > > > > > > Carey Jung > IT Freedom > [EMAIL PROTECTED] > 512.419.0070, fax 419.0080 > > -- Jason Hollinden SMG Systems Admin
