Space in directory name
Hi I use amanda 2.4.4p3 and have a problem with a space ( ) in a directory name in a disklist. How do I specify a directory name with a space in it? I have a directory called /disk1/vmuser/Virtual Machines/puck on a host, and I try with host /disk1/vmuser/Virtual_Machines/puck comp-user-tar in the diskelist. A result from amcheck -c CONFIG: Amanda Backup Client Hosts Check ERROR: host: [Can't open exclude file 'Machines/puck/.exclude': No such file or directory] ERROR: host: [could not access Machines/puck (/disk1/vmuser/Virtual): No such file or directory] ERROR: host: [Can't open exclude file '/home/Virtual-Machines/kastra/.exclude': No such file or directory] Client check: 1 host checked in 0.018 seconds, 3 problems found (brought to you by Amanda 2.4.4p3) -- mvh Hans Sandsdalen -- HANS = High Availability, No Superman -- http://www.spacetec.no begin:vcard fn:Hans Sandsdalen n:Sandsdalen;Hans org:Kongsberg Spacetec;Drift adr;quoted-printable:;;Prestvannvegen 38;Troms=C3=B8;;9292;Norge email;internet:[EMAIL PROTECTED] title:System Manager tel;cell:97762632 x-mozilla-html:FALSE url:http://www.spacetec.no version:2.1 end:vcard
Logs and reporting
Hi All, I am using amanda 2.5.2 and according to amcheck all is ok. Except that i do not have logs and cannot see if backup is occuring or not. Is there any thing else to enable to get logs and reports or any data on the console. Kind Regards, Prashant few output # [EMAIL PROTECTED]:~$ /usr/sbin/amcheck fullback Amanda Tape Server Host Check - Holding disk /var/tmp/amanda: 16103076 kB disk space available, using 1024000 kB as requested read label `FULLBACK-01', date `20080919' cannot overwrite active tape FULLBACK-01 (expecting a new tape) NOTE: conf info dir /var/lib/amanda/fullback/curinfo does not exist NOTE: it will be created on the next run. NOTE: index dir /var/lib/amanda/fullback/index/localhost does not exist NOTE: it will be created on the next run. Server check took 0.659 seconds Amanda Backup Client Hosts Check WARNING: Usage of fully qualified hostname recommended for Client localhost. WARNING: Usage of fully qualified hostname recommended for Client localhost. ERROR: localhost: [can not read/write /var/amanda/gnutar-lists/.: No such file or directory] ERROR: localhost: [can not read/write /etc/amandates: No such file or directory] Client check: 1 host checked in 0.061 seconds, 2 problems found (brought to you by Amanda 2.5.2) # Amanda.conf ## [EMAIL PROTECTED]:~$ /usr/sbin/amdump fullback [EMAIL PROTECTED]:~$ [EMAIL PROTECTED]:~$ more /etc/amanda/fullback/amanda.conf org Bluebarracuda - Daily Tape mailto root dumpuser amanda inparallel 4 netusage 600 # a filesystem is due for a full backup once every day dumpcycle 0 days tapecycle 10 tapes runspercycle 1 runtapes 1 bumpsize 20 MB bumpdays 1 bumpmult 4 tapedev /dev/nst0 tapetype LTO-4 labelstr ^FULLBACK-[0-9][0-9]*$ infofile /var/lib/amanda/fullback/curinfo# database filename logdir /var/lib/amanda/fullback# log directory indexdir /var/lib/amanda/fullback/index # index directory amrecover_do_fsf yes amrecover_check_label yes holdingdisk hd1 { comment main holding disk directory /var/tmp/amanda use 1000 Mb # chunksize 2 Gb # size of chunk if you want big dump to be } define tapetype LTO-4 { comment HP LTO4 800Gb - Compression Off length 802816 mbytes filemark 0 kbytes speed 52616 kps } define dumptype global { # index yes # record no } define dumptype always-full { global comment Full dump of this filesystem always compress none priority high dumpcycle 0 } define dumptype root-tar { global program GNUTAR comment root partitions dumped with tar compress none index #exclude list /usr/local/lib/amanda/exclude.gtar priority low } [EMAIL PROTECTED]:~$
Re: Space in directory name
Hans Sandsdalen wrote: Hi I use amanda 2.4.4p3 and have a problem with a space ( ) in a directory name in a disklist. How do I specify a directory name with a space in it? You can't, newer version can do it easily. Easiest solution is to create a simlink: cd /disk1/vmuser ln -s Virtual\ Machines/puck Virtual_Machines/puck and backup /disk1/vmuser/Virtual_Machines/puck New newer release, you can do: host /disk1/vmuser/Virtual Machines/puck comp-user-tar Jean-Louis I have a directory called /disk1/vmuser/Virtual Machines/puck on a host, and I try with host /disk1/vmuser/Virtual_Machines/puck comp-user-tar in the diskelist. A result from amcheck -c CONFIG: Amanda Backup Client Hosts Check ERROR: host: [Can't open exclude file 'Machines/puck/.exclude': No such file or directory] ERROR: host: [could not access Machines/puck (/disk1/vmuser/Virtual): No such file or directory] ERROR: host: [Can't open exclude file '/home/Virtual-Machines/kastra/.exclude': No such file or directory] Client check: 1 host checked in 0.018 seconds, 3 problems found (brought to you by Amanda 2.4.4p3)
Re: Logs and reporting
On Mon, Sep 29, 2008 at 8:30 AM, Prashant Ramhit [EMAIL PROTECTED] wrote: I am using amanda 2.5.2 and according to amcheck all is ok. Except that i do not have logs and cannot see if backup is occuring or not. Is there any thing else to enable to get logs and reports or any data on the console. From the amcheck output, it doesn't look like you've ever run an amdump. When you run amdump, what happens? Do you get a report by email? Dustin -- Storage Software Engineer http://www.zmanda.com
Re: Logs and reporting
Hi Dustin, I've run amdump several times and but there is nothing on the console. The log files are not created either. [EMAIL PROTECTED]:/etc/amanda$ /usr/sbin/amcheck fullback Amanda Tape Server Host Check - Holding disk /var/tmp/amanda: 16102596 kB disk space available, using 1024000 kB as requested read label `FULLBACK-01', date `20080919' cannot overwrite active tape FULLBACK-01 (expecting a new tape) NOTE: conf info dir /var/lib/amanda/fullback/curinfo does not exist NOTE: it will be created on the next run. NOTE: index dir /var/lib/amanda/fullback/index/localhost does not exist NOTE: it will be created on the next run. Server check took 0.525 seconds Amanda Backup Client Hosts Check WARNING: Usage of fully qualified hostname recommended for Client localhost. WARNING: Usage of fully qualified hostname recommended for Client localhost. WARNING: Usage of fully qualified hostname recommended for Client localhost. Client check: 1 host checked in 0.014 seconds, 0 problems found (brought to you by Amanda 2.5.2) [EMAIL PROTECTED]:/etc/amanda$ Any thing I can do to get more debug info. Thanks Prashant Dustin J. Mitchell wrote: On Mon, Sep 29, 2008 at 8:30 AM, Prashant Ramhit [EMAIL PROTECTED] wrote: I am using amanda 2.5.2 and according to amcheck all is ok. Except that i do not have logs and cannot see if backup is occuring or not. Is there any thing else to enable to get logs and reports or any data on the console. From the amcheck output, it doesn't look like you've ever run an amdump. When you run amdump, what happens? Do you get a report by email? Dustin
Re: Logs and reporting
On Mon, Sep 29, 2008 at 9:35 AM, Prashant Ramhit [EMAIL PROTECTED] wrote: I've run amdump several times and but there is nothing on the console. amdump does not output anything to the console. The log files are not created either. Run amdump under sh -x to see what's failing? Dustin -- Storage Software Engineer http://www.zmanda.com
Re: Logs and reporting
Hi Dustin, Thanks for your reply. The output is as follows [EMAIL PROTECTED]:/etc/amanda$ sh -x /usr/sbin/amdump fullback + sh -x /usr/sbin/amdump fullback + prefix=/usr + exec_prefix=/usr + sbindir=/usr/sbin + libexecdir=/usr/libexec/amanda + confdir=/etc/amanda + PATH=/usr/sbin:/usr/libexec/amanda:/usr/bin:/bin:/usr/sbin:/sbin:/usr/ucb + export PATH + USE_VERSION_SUFFIXES=no + test no = yes + SUF= + '[' 1 -lt 1 ']' + exit_status=0 + conf=fullback + '[' '!' -d /etc/amanda/fullback ']' + shift + cd /etc/amanda/fullback ++ amgetconf fullback logdir + logdir=/var/lib/amanda/fullback + '[' 0 -ne 0 ']' + errfile=/var/lib/amanda/fullback/amdump ++ amgetconf fullback tapecycle + tapecycle=10 + '[' 0 -ne 0 ']' ++ amgetconf fullback dumpuser + dumpuser=amanda + '[' 0 -ne 0 ']' + runuser=amanda + '[' 0 -ne 0 ']' + test -f hold + test -f /var/lib/amanda/fullback/amdump + test -f /var/lib/amanda/fullback/log + umask 077 + exit_code=0 + touch /var/lib/amanda/fullback/amdump + exit_code=0 + '[' 0 -ne 0 ']' + exec I do not receive mail notification as well. Kind Regards, Prashant Dustin J. Mitchell wrote: On Mon, Sep 29, 2008 at 9:35 AM, Prashant Ramhit [EMAIL PROTECTED] wrote: I've run amdump several times and but there is nothing on the console. amdump does not output anything to the console. The log files are not created either. Run amdump under sh -x to see what's failing? Dustin
Re: Logs and reporting
What is the exit status of amdump? Have you checked that all necessary directories exist and have the proper permissions? curinfo, log directories, etc. Dustin -- Storage Software Engineer http://www.zmanda.com
Re: Logs and reporting
Prashant Ramhit wrote: Hi All, Thanks for your help. Attached is the amdump.1 Do you think its because it is not using the tape FULLBACK-01. How can I make it to reuse fullback-01 again. Do the following two command: amrmtape fullbackfullback-01 amlabel -f fullback fullback-01 Your 'mailto' is set to 'root', did it receive the email report? Jean-Louis
Re: Logs and reporting
Title: Blue Barracuda Hi All, I set amanda user to receive the mail. And this is the mail report Date: Mon, 29 Sep 2008 17:28:29 +0100 From: Amanda Backup System [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Bluebarracuda - Daily Tape AMANDA MAIL REPORT FOR September 29, 2008 Hostname: backupserver Org : Bluebarracuda - Daily Tape Config : fullback Date : September 29, 2008 These dumps were to tape FULLBACK-01. The next tape Amanda expects to use is: a new tape. STATISTICS: Total Full Incr. Estimate Time (hrs:min) 0:00 Run Time (hrs:min) 0:00 Dump Time (hrs:min) 0:00 0:00 0:00 Output Size (meg) 0.0 0.0 0.0 Original Size (meg) 0.0 0.0 0.0 Avg Compressed Size (%) -- -- -- Filesystems Dumped 1 1 0 Avg Dump Rate (k/s) 1000.0 1000.0 -- Tape Time (hrs:min) 0:00 0:00 0:00 Tape Size (meg) 0.0 0.0 0.0 Tape Used (%) 0.0 0.0 0.0 Filesystems Taped 1 1 0 Chunks Taped 0 0 0 Avg Tp Write Rate (k/s) 12.4 12.4 -- USAGE BY TAPE: Label Time Size % Nb Nc FULLBACK-01 0:00 32k 0.0 1 0 NOTES: planner: Last full dump of localhost:/cache on tape overwritten in 1 run. driver: WARNING: This is not the first amdump run today. Enable the usetimestamps option in the configuration file if you want to run amdump more than once per calendar day. taper: tape FULLBACK-01 kb 64 fm 1 [OK] big estimate: localhost /cache 0 est: 64k out 32k But the next time i run it i will say *** A TAPE ERROR OCCURRED: [No writable valid tape found]. Some dumps may have been left in the holding disk. Run amflush to flush them to tape. The next tape Amanda expects to use is: a new tape. Is there any possibility to make it use the same tape over and over again for this backup. [EMAIL PROTECTED]:~$ more /etc/amanda/fullback/tapelist 20080929 FULLBACK-01 reuse Kind Regards, Prashant Jean-Louis Martineau wrote: Prashant Ramhit wrote: Hi All, Thanks for your help. Attached is the amdump.1 Do you think its because it is not using the tape FULLBACK-01. How can I make it to reuse fullback-01 again. Do the following two command: amrmtape fullbackfullback-01 amlabel -f fullback fullback-01 Your 'mailto' is set to 'root', did it receive the email report? Jean-Louis -- Prashant Ramhit Technical [EMAIL PROTECTED] d: +44 (0)20 7923 6870 t: +44 (0)20 7923 6840 www.bluebarracuda.com
amcheck fails
Hello everybody, I have a backup solution up and running for all the enterprise servers based on a 2.4.5 server et 2.4.5 client under Gentoo. The latest server delivered are under RHEL 5. So I installed the oldest client-backup I found: 2.5.1. And when I install the rpm, it created everything for user amandabackup. As all the other servers are using user amanda, I am trying to modify the configuration to use this user (amanda). When I launch amcheck from the server, I receive following error: ERROR: NAK almerysw: getpwnam(amandabackup) fails Looking at amandad logs of the client, I find this: amandad: time 0.000:CONFIGURE_COMMAND='./configure' '--build=i386-redhat-linux' '--prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--libexecdir=/usr/lib/amanda' '--datadir=/usr/share' '--sysconfdir=/etc' '--sharedstatedir=/var/lib/amanda' '--localstatedir=/var/lib/amanda' '--libdir=/usr/lib' '--includedir=/usr/include' '--infodir=/usr/info' '--mandir=/usr/share/man' '--with-gnutar=/bin/tar' '--with-gnutar-listdir=/var/lib/amanda/gnutar-lists' '--with-dumperdir=/usr/lib/amanda' '--with-index-server=localhost' '--with-tape-server=localhost' '--with-user=amandabackup' '--with-group=disk' '--with-owner=paddy' '--with-fqdn' '--with-bsd-security' '--with-bsdtcp-security' '--with-bsdudp-security' '--with-ssh-security' '--with-assertions' So I think that the problem is with the option --with-user=amandabackup Where can I modify the behavior of amanda so that it runs with amanda user? Is it possible to install the rpm configured to use amanda username? Thanks in advance for your help. I already missed 2 backups, it's getting urgent... I hope I gave enough details, don't hesitate to ask if something is missing. Have a nice day Pierre
amanda publicity
Just received notice that Linux Magazine, online at least, has an article on amanda. Author is Jeremy Garcia. This is the URL after I logged in: http://www.linux-mag.com/id/7055 This got me to the login screen: http://www.elabs7.com/ct.html?rtr=ons=ax0v,bvp7,33o,hupc,lstk,3o5a,7gpa jl -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 12027 Creekbend Drive (703) 787-0884 Reston, VA 20194 (703) 787-0922 (fax)