Index files problem
when i start amrecover i allways get the message "No index records for disk for specified date" this means in my amrecover i can not do an ls too see the content of the disk i selected with setdisk & setdate & sethost please help! i am using version Amanda-2.4.4 A look in my indexdir lists : ll /var/amanda/cartoon-film/index/localhost/ total 32 drwxr-xr-x 2 root wheel 512 Aug 18 10:18 _etc drwxr-xr-x 2 root wheel 512 Aug 18 10:18 _home drwxr-xr-x 2 root wheel 512 Aug 18 10:17 _raid_10 drwxr-xr-x 2 root wheel 512 Aug 18 10:19 _raid_11 drwxr-xr-x 2 root wheel 512 Aug 18 10:17 _raid_12 drwxr-xr-x 2 root wheel 512 Aug 18 10:16 _raid_13 drwxr-xr-x 2 root wheel 512 Aug 18 10:22 _raid_2 drwxr-xr-x 2 root wheel 512 Aug 18 10:18 _raid_3 drwxr-xr-x 2 root wheel 512 Aug 18 10:19 _raid_4 drwxr-xr-x 2 root wheel 512 Aug 18 10:18 _raid_5 drwxr-xr-x 2 root wheel 512 Aug 18 10:21 _raid_6 drwxr-xr-x 2 root wheel 512 Aug 18 10:22 _raid_7 drwxr-xr-x 2 root wheel 512 Aug 18 10:17 _raid_8 drwxr-xr-x 2 root wheel 512 Aug 18 10:17 _raid_9 drwxr-xr-x 2 root wheel 512 Aug 18 10:16 _usr_local_www_data-dist_calendar_ drwxr-xr-x 2 root wheel 512 Aug 18 10:20 _var so there are index files for the specified disk and date And it is the right dir as you can see here grep indexdir /usr/local/etc/amanda/cartoon-film/amanda.conf indexdir "/var/amanda/cartoon-film/index" # index directory And even in my dumptype : define dumptype root-tar { global program "GNUTAR" index yes } the index option is set to yes
Re: Index files problem
Karsten Fuhrmann wrote: when i start amrecover i allways get the message "No index records for disk for specified date" Does the file "/tmp/amanda/amindexd.DATETIMESTAMP.debug" tell you anything more? -- 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 * ***
PLS READ
Dear Sir This letter may come to you as a surprise because we have not met. The decision to write you is out of a sincere desire to establish a business/mutual relationship with you. I got your contact through the international trade and commerce chamber (ITCC) in Madrid. My name is Mr. Ali Sesay Karimu, the son of John Karimu (the former Secretary of state for finance) who was killed and mutilated by the military junta led by Major Paul Koroma after over-throwing the elected government of President Tijan Kabba. Though, I do not know to what extent you are familiar with events and disturbances in Sierra-Leone but it has consistent features in the CNN, BBC news bulletins. The pressure of war drove the rest of my family out of Sierra-Leone into exile in Spain where we have been living under political asylum for the past 3 years. Sadly, my mother died of cancer 3 months ago and was buried in Madrid. Prior to her death, she gave me a certificate for a secret deposit that my father made in a security company in Europe (destination will be disclosed later for security reason). The deposit which is worth $32,000.000 (Thirty-two Million U.S. Dollars) was money set apart for government propaganda against the rebel forces. He made the deposit in his name with the hope of converting it to his personal use at the end of the war but was killed as a result of his opposition to the rebel forces when the conflict intensified. I have contacted the Security Company to confirm the deposit and establish ownership. The money was however deposited as family treasure. Due to the death of my mother and the continued hostility in Sierra-Leone, I have decided to solicit the assistance of an honest and trustworthy person or company that will assist in investing the money. I cannot do it alone due to my present political status and total ignorance of the business world. You will be given a negotiable percentage of the money at the end of the transaction. If you are honest, trustworthy and interested in the above proposal, contact me immediately through the number/email address indicated above for more details. You must maintain absolute confidentiality to ensure success. Please, indicate your personal Tel./Fax nos. when replying. Regards, Ali Sesay Karimu.
Re: Skipped backups
On Fri, Jul 18, 2003 at 08:46:28AM -0500, Brendon Colby wrote: > Last weekend, the data center operators did not put in Saturday and > Sunday's tapes. Amanda still did the backup to the local disk of > course. On Monday, the next tape was put in, and the backups continued > on without complaint. I still have these two backups on disk though, > and I'm not sure what to do with them. Do I flush them to the next > tape and have them skip the rotation ahead one tape (a PITA)? What > other options do I have in a situation like this? If you have the space, you could also run amdump early when there is no or wrong tape in and then when they put in the next tape, flush both the old backups and the ones that were supposed to go on that tape. Wouldn't that land the tapes in sync again? (Well, apart from one tape not getting used.) -- Dennis Ritchie: "So fsck was originally called something else" Question: "What was it called?" Dennis Ritchie: Well, the second letter was different. -- Q&A at Usenix
Re: Index files problem
On Mon, Aug 18, 2003 at 10:49:21AM +0200, Karsten Fuhrmann wrote: > > > when i start amrecover i allways get the message > "No index records for disk for specified date" > > this means in my amrecover i can not do an ls too see the content of the > disk i selected with setdisk & setdate & sethost > please help! > > i am using version Amanda-2.4.4 > > A look in my indexdir lists : > ll /var/amanda/cartoon-film/index/localhost/ > total 32 > drwxr-xr-x 2 root wheel 512 Aug 18 10:18 _etc > drwxr-xr-x 2 root wheel 512 Aug 18 10:18 _home > drwxr-xr-x 2 root wheel 512 Aug 18 10:17 _raid_10 > drwxr-xr-x 2 root wheel 512 Aug 18 10:19 _raid_11 > drwxr-xr-x 2 root wheel 512 Aug 18 10:17 _raid_12 > drwxr-xr-x 2 root wheel 512 Aug 18 10:16 _raid_13 > drwxr-xr-x 2 root wheel 512 Aug 18 10:22 _raid_2 > drwxr-xr-x 2 root wheel 512 Aug 18 10:18 _raid_3 > drwxr-xr-x 2 root wheel 512 Aug 18 10:19 _raid_4 > drwxr-xr-x 2 root wheel 512 Aug 18 10:18 _raid_5 > drwxr-xr-x 2 root wheel 512 Aug 18 10:21 _raid_6 > drwxr-xr-x 2 root wheel 512 Aug 18 10:22 _raid_7 > drwxr-xr-x 2 root wheel 512 Aug 18 10:17 _raid_8 > drwxr-xr-x 2 root wheel 512 Aug 18 10:17 _raid_9 > drwxr-xr-x 2 root wheel 512 Aug 18 10:16 > _usr_local_www_data-dist_calendar_ > drwxr-xr-x 2 root wheel 512 Aug 18 10:20 _var > > so there are index files for the specified disk and date > And it is the right dir as you can see here Those are directories, not the index files. What, if anything, is in those directories. On my system those directories are owned by the amanda user, not by root and the group is amanda's group, not wheel. Perhaps amanda is unable to write the index files to these directories. -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
anyone used smbclient -T with the "r" option?
I'm trying to find someone with experience or documentation for the use of pattern matching in samba's smbclient when using its tar (-T) exclude and include options. My objective is to write an smbclient wrapper that would allow multiple items to be excluded via an file containing a list of patterns. I had my first significant success last evening, but can not use wildcard patterns. Each excluded file must be specifically listed. For seven samba shares, here was my total "STRANGE" report last evening. Normally it seems to be more than a page. FAILURE AND STRANGE DUMP SUMMARY: butch //tec/C lev 0 STRANGE ... /-- butch //tec/C lev 0 STRANGE sendbackup: start [butch://tec/C level 0] sendbackup: info BACKUP=/usr/sfw/bin/smbclient sendbackup: info RECOVER_CMD=/usr/sfw/bin/smbclient -f... - sendbackup: info end ? NT_STATUS_SHARING_VIOLATION opening remote file \WINNT\Temp\JET7D2A.tmp (\WINNT\Temp\) ? NT_STATUS_SHARING_VIOLATION opening remote file \WINNT\Temp\JETAEF6.tmp (\WINNT\Temp\) | tar: dumped 26444 files and directories | Total bytes written: 1827618304 sendbackup: size 1784784 sendbackup: end \ BTW the comments in amanda.conf regarding exclude and samba are not up to date. # exclude - specify files and directories to be excluded from the dump. # Useful with gnutar only; silently ignored by dump and samba. In fact you can do a single file exclude. But you can't do a list or an append (in my experience). My smbclient wrapper checks if this "excluded file" is in fact a file on the samba host rather than the client. If it is a file on the host, it is assumed to contain a list of files to be excluded. BTW2, the smbclient man page does indicate it can do Includes as well as Excludes. For fans of this feature, perhaps it can be incorporated into amanda backups using smbclient in the future. Maybe it already is, but I've not checked and if so, the comments are similarly out of date. Back to my inability to use patterns; The smbclient man page says to do an exclude on tar file creation you can do -TcX options. Further, it says adding an "r" (-TcXr) will let the files names to be patterns, either regular expressions or simple wildcards depending on smbclient compile options. Whenever I try to add the "r" option, even to an smbclient command line that excludes files properly with no wild cards, I get a message like "tar_re set on" but nothing at all is excluded, even things that were without the "r". FWIW, my samba install is the one supplied with Solaris 9, a version 2.2.???. I've looked for docs beyond the man page that describe the feature but have found nothing, and no example command lines. I looked for samba mailing lists and found either non-English lists :( or ones that in the last 500 messages or so did not even mention smbclient. Anyone care to share their experience using smbclient (or I guess smbtar) with the combination of "X" and "r" options? -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
amlabel i/o error
Hello there, we were doing backups on a hard drive, but now I'm going to use real tapes. Drive is a HP SureStore DLT1 vs80. AMANDA server (2.4.4p1) is on a RedHat Linux 8 machine (kernel 2.4.18-14). This is the configuration for the tape unit in amanda.conf: runtapes 1 tapedev "/dev/nst0" tapetype DLT labelstr "^Cesart[0-9][0-9]*$" define tapetype DLT { comment "DLT HP SureStore" length 40960 mb speed 3145 kps } So I started to run amlabel on my 5 tapes. The first two went ok, but 3, 4 and 5 gave me this error: amlabel: tape_rewind: rewinding tape: /dev/nst0: Input/output error But it did create a new label, and 'amcheck' don't throw any errors. What can generate this error ? Thanks.
Re: amlabel i/o error
Pascal Robert wrote: So I started to run amlabel on my 5 tapes. The first two went ok, but 3, 4 and 5 gave me this error: amlabel: tape_rewind: rewinding tape: /dev/nst0: Input/output error But it did create a new label, and 'amcheck' don't throw any errors. What can generate this error ? Thanks. Maybe hardware problems (bad cabling, scsi termination etc). Did you sacrifice the chicken before connecting your drive? Any kernel messages in /var/log/messages or dmesg? -- 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 * ***
3hole.ps change
My first toc printout, I'm so excited. Very handy except it says: To restore: position tape at the start of the file and run: dd if=$TAPE bs=32k skip=1 | zcat | restore -ibf 2 - ^^^ Very unhandy if you're using tar, maybe 3.hole.ps should take an argument or magically figure this out? No big deal but it would be an improvement. Thanks, Steve
RE: anyone used smbclient -T with the "r" option?
samba3rc1 enables you to use regular expresions with smbtar. I did not tried using this functionality, but I was able to hack samba3rc1 to be usable under amanda. I will post the changed files to Intelicom's site for DL. will post the url. now im busy coding. Regards, gregor
Re: amlabel i/o error
If there is not a label on the tape in the first time - i.e brand new tape i have seen i/o errors and the tape gets written fine. It is also perfectly usable. This happenned to me with LTO drives Tom > Pascal Robert wrote: > > > So I started to run amlabel on my 5 tapes. The first two went ok, but > > 3, 4 and 5 gave me this error: > > > > amlabel: tape_rewind: rewinding tape: /dev/nst0: Input/output error > > > > But it did create a new label, and 'amcheck' don't throw any errors. > > What can generate this error ? Thanks. > > Maybe hardware problems (bad cabling, scsi termination etc). > Did you sacrifice the chicken before connecting your drive? > Any kernel messages in /var/log/messages or dmesg? > > > > -- > 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: anyone used smbclient -T with the "r" option?
I tried the regular expresion and excluding files, and it works just fine. regards, gregor
Re: anyone used smbclient -T with the "r" option?
On Mon, Aug 18, 2003 at 09:17:47PM +0200, Gregor Ibic wrote: > I tried the regular expresion and excluding files, and it works just fine. > Samba version 3? Or a version 2? Here are some smbclient sample lines (the args from my wrapper log) I've been trying. See any problem compared with your attempts. 1. Generated by amanda, unmodified by my wrapper: CmdLine: \\tec\E -U administrator -E -W tec -d0 -TXqc - /bins Properly excludes the PC file "E:\bins". Could be ./bins or /bins in my experience. 2. Same line as above generated by amanda, modified by my wrapper to: CmdLine: \\tec\E -U administrator -E -W tec -d0 -TXqcr - /bins Whether given as /bins or ./bins, it is not excluded if the "r" is present. Though I did not expect it to matter, I've tried different positions for the "r", like -TrXqc, -TXrqc. Still does not get excluded. 3. Similar line to the first, but giving the file to be excluded with with a wildcard. Unmodified by my wrapper: CmdLine: \\tec\E -U administrator -E -W tec -d0 -TXqc - /bin? The E:\bins file was not excluded as the wildcarding was not turned on. Similarly for wildcards of ".", "*", and ".*". Also, a "*" or ".*" in front of the "/" in the file name. 4. Similar line number 3, but then modified by my wrapper to add the "r": CmdLine: \\tec\E -U administrator -E -W tec -d0 -TXqcr - /bin? Again, could not get it to exclude anything. Also tried things like *.html. In each case where the "r" is given, there is a message in the amdump report about the tar_re search being set: /-- butch //tec/E lev 0 STRANGE sendbackup: start [butch://tec/E level 0] sendbackup: info BACKUP=/usr/sfw/bin/smbclient sendbackup: info RECOVER_CMD=/usr/sfw/bin/smbclient -f... - sendbackup: info end ? tar_re_search set | tar: dumped 20 files and directories | Total bytes written: 355328 sendbackup: size 347 sendbackup: end \ Which makes it sound like something should be trying wildcard matching. Either "regular expression" or simple patterns as per the man page. Any ideas? -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
RE: anyone used smbclient -T with the "r" option?
Samba3rc1. i tried to exclude smbclient //server/share -TcaqrX backup.tar "*.doc" and it worked then tried to exclude pagefile.sys smbclient //server/share -TcaqrX backup.tar "pagefile.sys" didnt work / but it is not a proper regular expression. this is ok. smbclient //server/share -TcaqrX backup.tar "*pagefile.sys" worked fine that's it. i moded samba like i said, but im a little wondered why i get segfault on selecting some directories in amrecover. regards, gregor