Re: q: amrecover, directories okay but no files
How about the indexes for the questionable DLE's. Do they show the files you expect were in fact backed up? The indexes should show everything on the tape. If indexes are the listings you get when you ls in amrecover, then the indexes seem to stop at certain subdirectories. That is, when I ls in the subdirectory (listed in the index) where the file to be recovered is, I only get a . (no files listed even though the original machine had plenty of files in that directory). You could also try amrestore, recovery everything to an empty directory and see if the files are there. Okay, I'll try that.
Re: q: amrecover, directories okay but no files
gj wrote: If indexes are the listings you get when you ls in amrecover, then the indexes seem to stop at certain subdirectories. That is, when I ls in the subdirectory (listed in the index) where the file to be recovered is, I only get a . (no files listed even though the original machine had plenty of files in that directory). Actually, indexes are files on Amanda server, in a directory specified by 'indexdir' parameter in amanda.conf. Look into these index files to see if they list all the files that they should. The 'quite recent' version of tar may very well be a culprit. There was a discussion on this topic on the list recently and it was found that several versions of tar, such as 1.13.9x and 1.14.x are not very well compatible with Amanda. Versions 1.13.19 and 1.13.25 are the ones that are traditionally recommended on this list, also no problems have been found with version 1.15.1. -- Toomas Aas
Errors when trying to run amlabel and amcheck
Hi Again I have nuked the default binary (rpm within SuSE Yast2 and installaed and run source configuration amanda 2.4.4. Thus I have configured amanda.conf ,disklist and tapelist which is currently empty as I had to create it and then run the following command as amanda. myserver:/local/sw/amanda # su amanda -c /local/sw/amanda/bckup/sbin/amlabel DailySet1 DailySet101 rewinding amlabel: tape_rewind: tape open: /dev/nst0: Permission denied I have a DDS-4 tape which I am trying to label. myserver:/local/sw/amanda/bckup/sbin # ls -al total 677 drwxr-xr-x 2 amanda disk616 Apr 18 14:25 . drwxr-xr-x 7 amanda disk168 Apr 18 13:30 .. -rwxr-xr-x 1 amanda disk 60477 Apr 18 14:25 amadmin -rwxr-x--- 1 amanda disk 86322 Apr 18 14:25 amcheck -rwxr-xr-x 1 amanda disk 1820 Apr 18 14:25 amcheckdb I have also tried having a look at debugging dir /tmp/amanda-dbg but the error msg when I try to less as Root or amanda is no file or directory. So I am unable to view the logs generated. [EMAIL PROTECTED]:/tmp/amanda-dbg ls -al total 86 drwx--S--- 2 amanda users 1056 Apr 18 14:42 . drwxrwxrwt 15 root root 728 Apr 18 14:49 .. -rw--- 1 amanda users 261 Apr 16 15:14 amcheck.20050416151410.debug -rw--- 1 amanda users 261 Apr 16 15:15 amcheck.20050416151552.debug -rw--- 1 amanda users 256 Apr 16 15:20 amcheck.20050416152039.debug -rw--- 1 amanda users 261 Apr 16 15:26 amcheck.20050416152620.debug -rw--- 1 amanda users 261 Apr 16 15:37 amcheck.20050416153725.debug -rw--- 1 amanda users 233 Apr 18 13:10 amcheck.20050418131041.debug -rw--- 1 amanda users 263 Apr 18 13:37 amcheck.20050418133757.debug -rw--- 1 amanda users 233 Apr 18 13:38 amcheck.20050418133808.debug -rw--- 1 amanda users 256 Apr 18 13:41 amcheck.20050418134113.debug -rw--- 1 amanda users 233 Apr 18 13:41 amcheck.20050418134119.debug -rw--- 1 amanda users 256 Apr 18 14:40 amcheck.20050418144036.debug -rw--- 1 amanda users 256 Apr 18 14:42 amcheck.20050418144230.debug -rw--- 1 amanda users 233 Apr 18 14:42 amcheck.20050418144243.debug -rw--- 1 amanda users 216 Apr 18 14:30 amlabel.20050418143015.debug -rw--- 1 amanda users 216 Apr 18 14:30 amlabel.20050418143043.debug -rw--- 1 amanda users 207 Apr 18 14:31 amlabel.20050418143125.debug -rw--- 1 amanda users 198 Apr 18 14:33 amlabel.20050418143312.debug -rw--- 1 amanda users 198 Apr 18 14:36 amlabel.20050418143611.debug -rw--- 1 amanda users 198 Apr 18 14:36 amlabel.20050418143619.debug -rw--- 1 amanda users 198 Apr 18 14:36 amlabel.20050418143649.debug -rw--- 1 amanda users 198 Apr 18 14:39 amlabel.20050418143950.debug [EMAIL PROTECTED]:/tmp/amanda-dbg Cheers Chuck -- Unix/ Linux Systems Administrator The Surgical Material Testing Laboratory (SMTL), Princess of Wales Hospital Coity Road Bridgend, United Kingdom, CF31 1RQ. Tel: +44 1656 752820 Fax: +44 1656 752830
Re: Errors when trying to run amlabel and amcheck
Chuck Amadi wrote: I have nuked the default binary (rpm within SuSE Yast2 and installaed and run source configuration amanda 2.4.4. ... -rwxr-x--- 1 amanda disk 86322 Apr 18 14:25 amcheck The above line indicate you did not install correctly. You should make install as root. And generally, you should run ./configure --... and make as a non-priviledged user (i.e. not root), although this does not introduces errors. Doing the make install not as root messes up the privilegdes: some commands needs to owned by root and have the be setuid bit set. -- 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 * ***
Errors when running amcheck DailySet1
I hope this is encouraging myserver:/local/sw/amanda/bckup/libexec # su amanda -c /local/sw/amanda/bckup/sbin/amcheck DailySet1 Amanda Tape Server Host Check - WARNING: program /local/sw/amanda/bckup/libexec/planner: not setuid-root WARNING: program /local/sw/amanda/bckup/libexec/dumper: not setuid-root WARNING: program /local/sw/amanda/bckup/sbin/amcheck: not setuid-root Holding disk /dumps/amanda: 140763252 KB disk space available, that's plenty Holding disk /dumps/amanda: 140763252 KB disk space available, that's plenty ERROR: /dev/nst0: Permission denied (expecting a new tape) NOTE: skipping tape-writable test NOTE: info dir /var/lib/amanda/DailySet1/curinfo/myserver/_etc: does not exist NOTE: index dir /var/lib/amanda/DailySet1/index/myserver/_etc: does not exist Server check took 0.002 seconds Amanda Backup Client Hosts Check WARNING: myserver: selfcheck request timed out. Host down? Client check: 1 host checked in 30.003 seconds, 1 problem found (brought to you by Amanda 2.4.4p4) myserver:/local/sw/amanda/bckup/libexec # I have created info dir /var/lib/amanda/DailySet1/curinfo/myserver/ and index dir /var/lib/amanda/DailySet1/index/myserver/ But I was under the impression that my install options would sort out the sticky bit and I didn't expect to set this myself I have followed the install insructions to the letter and idea please. Cheers Chuck -- Unix/ Linux Systems Administrator The Surgical Material Testing Laboratory (SMTL), Princess of Wales Hospital Coity Road Bridgend, United Kingdom, CF31 1RQ. Tel: +44 1656 752820 Fax: +44 1656 752830
Re: Errors when trying to run amlabel and amcheck
Chuck Amadi wrote: Hi cheers for your reply. I honestly set this up as ./configure as amanada make as amanda and make install as Root. I have kept to the install and I have read the doc's. OK, I believe you, but when everyone else in the world does a make install, then the amcheck binary ends up owned by root and with suid bit on. Now you'll have to find out why that is not so on your system. -rwxr-x--- 1 amanda disk 86322 Apr 18 14:25 amcheck -- 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: Errors when trying to run amlabel and amcheck
Hi again Paul Bijnens I noticed that myself I am going run a make clean and re-install again . Cheers Chuck On Mon, 2005-04-18 at 16:41 +0200, Paul Bijnens wrote: Chuck Amadi wrote: Hi cheers for your reply. I honestly set this up as ./configure as amanada make as amanda and make install as Root. I have kept to the install and I have read the doc's. OK, I believe you, but when everyone else in the world does a make install, then the amcheck binary ends up owned by root and with suid bit on. Now you'll have to find out why that is not so on your system. -rwxr-x--- 1 amanda disk 86322 Apr 18 14:25 amcheck -- Unix/ Linux Systems Administrator The Surgical Material Testing Laboratory (SMTL), Princess of Wales Hospital Coity Road Bridgend, United Kingdom, CF31 1RQ. Tel: +44 1656 752820 Fax: +44 1656 752830
After make distclean and re install amanda Now get permission error .
Hi reinstalled amanda as Root make distclean As amanda ./configure --( My preferences) As amanada make As Root make install Thus checked /local/sw/amanda/bckup/sbin/amcheck ls -al command the output as below: -rwsr-x--- 1 root disk 86322 Apr 18 16:03 amcheck But when I run the following amcheck command myserver:/local/sw/amanda/bckup/sbin # su amanda -c /local/sw/amanda/bckup/sbin/amcheck zsh: permission denied: /local/sw/amanda/bckup/sbin/amcheck myservefr:/local/sw/amanda/bckup/sbin # Im going a bit crazy Now! as I assume the sticky bit would sort out the permission issue. Cheers Chuck -- Unix/ Linux Systems Administrator The Surgical Material Testing Laboratory (SMTL), Princess of Wales Hospital Coity Road Bridgend, United Kingdom, CF31 1RQ. Tel: +44 1656 752820 Fax: +44 1656 752830
Re: After make distclean and re install amanda Now get permission error .
* Chuck Amadi [EMAIL PROTECTED] [20050418 11:17]: Hi reinstalled amanda as Root make distclean As amanda ./configure --( My preferences) As amanada make As Root make install Thus checked /local/sw/amanda/bckup/sbin/amcheck ls -al command the output as below: -rwsr-x--- 1 root disk 86322 Apr 18 16:03 amcheck But when I run the following amcheck command myserver:/local/sw/amanda/bckup/sbin # su amanda -c /local/sw/amanda/bckup/sbin/amcheck zsh: permission denied: /local/sw/amanda/bckup/sbin/amcheck myservefr:/local/sw/amanda/bckup/sbin # Im going a bit crazy Now! as I assume the sticky bit would sort out the permission issue. root squash on NFS mounted disk perhaps? jf Cheers Chuck -- Unix/ Linux Systems Administrator The Surgical Material Testing Laboratory (SMTL), Princess of Wales Hospital Coity Road Bridgend, United Kingdom, CF31 1RQ. Tel: +44 1656 752820 Fax: +44 1656 752830
Re: After make distclean and re install amanda Now get permission error .
--On Monday, April 18, 2005 16:17:16 +0100 Chuck Amadi [EMAIL PROTECTED] wrote: Hi reinstalled amanda as Root make distclean As amanda ./configure --( My preferences) As amanada make As Root make install Thus checked /local/sw/amanda/bckup/sbin/amcheck ls -al command the output as below: -rwsr-x--- 1 root disk 86322 Apr 18 16:03 amcheck But when I run the following amcheck command myserver:/local/sw/amanda/bckup/sbin # su amanda -c /local/sw/amanda/bckup/sbin/amcheck zsh: permission denied: /local/sw/amanda/bckup/sbin/amcheck myservefr:/local/sw/amanda/bckup/sbin # Im going a bit crazy Now! as I assume the sticky bit would sort out the permission issue. It would, assuming your amanda user belongs to the group 'disk'. Does it? Frank Cheers Chuck -- Unix/ Linux Systems Administrator The Surgical Material Testing Laboratory (SMTL), Princess of Wales Hospital Coity Road Bridgend, United Kingdom, CF31 1RQ. Tel: +44 1656 752820 Fax: +44 1656 752830 -- Frank Smith [EMAIL PROTECTED] Sr. Systems Administrator Voice: 512-374-4673 Hoover's Online Fax: 512-374-4501
Re: After make distclean and re install amanda Now get permission error .
On Mon, Apr 18, 2005 at 04:17:16PM +0100, Chuck Amadi wrote: Hi reinstalled amanda as Root make distclean As amanda ./configure --( My preferences) As amanada make As Root make install Thus checked /local/sw/amanda/bckup/sbin/amcheck ls -al command the output as below: -rwsr-x--- 1 root disk 86322 Apr 18 16:03 amcheck But when I run the following amcheck command myserver:/local/sw/amanda/bckup/sbin # su amanda -c /local/sw/amanda/bckup/sbin/amcheck zsh: permission denied: /local/sw/amanda/bckup/sbin/amcheck myservefr:/local/sw/amanda/bckup/sbin # Im going a bit crazy Now! as I assume the sticky bit would sort out the permission issue. For some things amanda absolutely needs root privileges. But there is a principle which amanda trys to adhere to of least privileges for the task. So although the binary amcheck is now properly owned by root, properly setuid'ed, and probably properly group owned by disk, for some tasks amcheck may create child processes that lack root privilege. One of those I think is disk (if using dump rather than tar) and tape access. It may be necessary to check the permissions on your devices to ensure they are group disk readable and for the tape, writable. As to executing amcheck, note that the owner root can execute it, members of group disk can execute it, but the rest of the world can not. Were you root when you executed it, no you were amanda. So you the user had to be a member of group disk to execute it. What group(s) does user 'amanda' have rights to? Did you get them after doing the 'su' command? The cmd 'id' will tell you the latter. -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
Re: After make distclean and re install amanda Now get permission error .
HI again Yes my disk are writable by disk group ls -al /dev/nst0 crw-rw 1 root disk 9, 128 30 2004 nst0 Cheers Chuck On Mon, 2005-04-18 at 11:51 -0400, Jon LaBadie wrote: On Mon, Apr 18, 2005 at 04:17:16PM +0100, Chuck Amadi wrote: Hi reinstalled amanda as Root make distclean As amanda ./configure --( My preferences) As amanada make As Root make install Thus checked /local/sw/amanda/bckup/sbin/amcheck ls -al command the output as below: -rwsr-x--- 1 root disk 86322 Apr 18 16:03 amcheck But when I run the following amcheck command myserver:/local/sw/amanda/bckup/sbin # su amanda -c /local/sw/amanda/bckup/sbin/amcheck zsh: permission denied: /local/sw/amanda/bckup/sbin/amcheck myservefr:/local/sw/amanda/bckup/sbin # Im going a bit crazy Now! as I assume the sticky bit would sort out the permission issue. For some things amanda absolutely needs root privileges. But there is a principle which amanda trys to adhere to of least privileges for the task. So although the binary amcheck is now properly owned by root, properly setuid'ed, and probably properly group owned by disk, for some tasks amcheck may create child processes that lack root privilege. One of those I think is disk (if using dump rather than tar) and tape access. It may be necessary to check the permissions on your devices to ensure they are group disk readable and for the tape, writable. As to executing amcheck, note that the owner root can execute it, members of group disk can execute it, but the rest of the world can not. Were you root when you executed it, no you were amanda. So you the user had to be a member of group disk to execute it. What group(s) does user 'amanda' have rights to? Did you get them after doing the 'su' command? The cmd 'id' will tell you the latter. -- Unix/ Linux Systems Administrator The Surgical Material Testing Laboratory (SMTL), Princess of Wales Hospital Coity Road Bridgend, United Kingdom, CF31 1RQ. Tel: +44 1656 752820 Fax: +44 1656 752830
Re: After make distclean and re install amanda Now get permission error .
Cheers I run id command as amanda and amanda belongs to users group But I have issued in my .configure command ./configure --with-user=amanda --with-group=disk --with-owner=amanda So I need to add amanda to disk group. So I run the usermod command as susch #usermod -G disk amanada #id command #uid=150(amanada) gid=100(users) groups=6(disk),100(users) and guess what it worked. myserver:/local/sw/amanda/bckup # su amanda -c /local/sw/amanda/bckup/sbin/amcheck DailySet1 Amanda Tape Server Host Check - Holding disk /dumps/amanda: 140763180 KB disk space available, that's plenty Holding disk /dumps/amanda: 140763180 KB disk space available, that's plenty ERROR: /dev/nst0: not an amanda tape (expecting a new tape) NOTE: skipping tape-writable test NOTE: info dir /var/lib/amanda/DailySet1/curinfo/myserver/_etc: does not exist NOTE: index dir /var/lib/amanda/DailySet1/index/myserever/_etc: does not exist Server check took 10.389 seconds Amanda Backup Client Hosts Check WARNING: myserver: selfcheck request timed out. Host down? Client check: 1 host checked in 30.002 seconds, 1 problem found (brought to you by Amanda 2.4.4p4) myserver:/local/sw/amanda/bckup # I hope Im geetting there slowly but surely. Cheers Mon, 2005-04-18 at 11:51 -0400, Jon LaBadie wrote: On Mon, Apr 18, 2005 at 04:17:16PM +0100, Chuck Amadi wrote: Hi reinstalled amanda as Root make distclean As amanda ./configure --( My preferences) As amanada make As Root make install Thus checked /local/sw/amanda/bckup/sbin/amcheck ls -al command the output as below: -rwsr-x--- 1 root disk 86322 Apr 18 16:03 amcheck But when I run the following amcheck command myserver:/local/sw/amanda/bckup/sbin # su amanda -c /local/sw/amanda/bckup/sbin/amcheck zsh: permission denied: /local/sw/amanda/bckup/sbin/amcheck myservefr:/local/sw/amanda/bckup/sbin # Im going a bit crazy Now! as I assume the sticky bit would sort out the permission issue. For some things amanda absolutely needs root privileges. But there is a principle which amanda trys to adhere to of least privileges for the task. So although the binary amcheck is now properly owned by root, properly setuid'ed, and probably properly group owned by disk, for some tasks amcheck may create child processes that lack root privilege. One of those I think is disk (if using dump rather than tar) and tape access. It may be necessary to check the permissions on your devices to ensure they are group disk readable and for the tape, writable. As to executing amcheck, note that the owner root can execute it, members of group disk can execute it, but the rest of the world can not. Were you root when you executed it, no you were amanda. So you the user had to be a member of group disk to execute it. What group(s) does user 'amanda' have rights to? Did you get them after doing the 'su' command? The cmd 'id' will tell you the latter. -- Unix/ Linux Systems Administrator The Surgical Material Testing Laboratory (SMTL), Princess of Wales Hospital Coity Road Bridgend, United Kingdom, CF31 1RQ. Tel: +44 1656 752820 Fax: +44 1656 752830
Possibly dumb question.
Under normal conditions should amanda try to fill each tape? I want amanda to dump whatever it can up until the limit set by tapesize. I am keeping 30 tapes on disk, and burning the oldest slot to DVD daily, and re-labeling it (so it shows as a new tape). I just don't want to waste any space on the dvd, or have to think about it once I get it setup.
Re: Possibly dumb question.
--On Monday, April 18, 2005 13:50:55 -0700 Mike [EMAIL PROTECTED] wrote: Under normal conditions should amanda try to fill each tape? Amanada doesn't try to fill the tape, it tries to balance the amount written per run. It generally does that well if you don't have DLEs that are very large relative to your tape size. While sometimes full dumps do get promoted (run sooner than when next due) in order to help level tape usage, they won't all get promoted to fill up the tape. One of my configs uses 100GB tapes that generally run between 45-55 GB per run, Before it was using 50GB tapes with a runtapes of 2, and most days it just used one tape. I want amanda to dump whatever it can up until the limit set by tapesize. I'm not sure how you would get it to do that, possibly adjusting bumpsize would cause more promotions. I am keeping 30 tapes on disk, and burning the oldest slot to DVD daily, and re-labeling it (so it shows as a new tape). I just don't want to waste any space on the dvd, or have to think about it once I get it setup. Unless this is for home use, the cost of media (tape, disk, or DVD) is nothing compared with the cost of replacing lost data. Backups have a tendency to grow over time, so even if your DVD isn't full now, it probably soon will be. Frank -- Frank Smith [EMAIL PROTECTED] Sr. Systems Administrator Voice: 512-374-4673 Hoover's Online Fax: 512-374-4501
Restart back at tape 0038
I am using amanda and have been happy with it, but now there is a 20GB dump in my holding area and amanda has repeatedly tried flush it to tape and flushed nothing to the tape. I am taking care of the 20GB dump file, but I now need to reset amanda to expect tape 0038 which had no data dumped to it. How do I do this? I am getting ready to split up my amanda config to prevent the problem in the future, although truthfully, I do not understand how this problem arose. I am investigating and will likely have a question about it in the future. Vicki
Re: Restart back at tape 0038
Hi Vicki, Vicki Stanfield wrote: I am using amanda and have been happy with it, but now there is a 20GB dump in my holding area and amanda has repeatedly tried flush it to tape and flushed nothing to the tape. I am taking care of the 20GB dump file, but I now need to reset amanda to expect tape 0038 which had no data dumped to it. How do I do this? are you sure that no active backups might be on that tape ? to make sure, check it using amadmin config find | grep 0038. if you're sure nothing really required is on 0038, do an amrmtape for this tape and amlabel it again as 0038. I am getting ready to split up my amanda config to prevent the problem in the future, although truthfully, I do not understand how this problem arose. I am investigating and will likely have a question about it in the future. amflush config should clean things up and dump all holding disks for config to tape. if it doesn't, go and read logs (most setups will write log files into /tmp/amanda/ ... if you see files on your holding disk and do not care about it (i would), do an amcleanup config, but i would 1st search why amflush doesn't work. anyways, if you do an amcleanup, you might have to live without the possibility to do a desaster restore (depends on your config). Cheers, Peter
RE: Restart back at tape 0038
Vicki: I have in the past needed to reuse a tape that had the backups fail for some reason or another and just reset the date code in /var/spool/amanda/config/tapelist to 0 instead of say, 20050318 DailySet101. So long as the date isn't set, AMANDA will think it's a new tape regardless of what the date code on the actual tape reads. -- Nick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vicki Stanfield Sent: Monday, April 18, 2005 4:06 PM To: amanda-users@amanda.org Subject: Restart back at tape 0038 I am using amanda and have been happy with it, but now there is a 20GB dump in my holding area and amanda has repeatedly tried flush it to tape and flushed nothing to the tape. I am taking care of the 20GB dump file, but I now need to reset amanda to expect tape 0038 which had no data dumped to it. How do I do this? I am getting ready to split up my amanda config to prevent the problem in the future, although truthfully, I do not understand how this problem arose. I am investigating and will likely have a question about it in the future. Vicki