Samba Question
I got amanda to work with samba (thanks!) It did produce the following error however. I am not a Windows person so I don't know, but I presume from the file name that this is something to do with the Windows swap space and it is normal. If so, should I expect to see it every day, or is there a way to prevent it? FAILED AND STRANGE DUMP DETAILS: /-- gorn.ameri //zena/C lev 0 STRANGE sendbackup: start [gorn.americom.com://zena/C level 0] sendbackup: info BACKUP=/usr/bin/smbclient sendbackup: info RECOVER_CMD=/usr/bin/smbclient -f... - sendbackup: info end | Added interface ip=192.168.2.1 bcast=192.168.2.255 nmask=255.255.255.0 ? ERRDOS - ERRbadshare opening remote file \WINDOWS\WIN386.SWP (\WINDOWS\) | tar: dumped 12935 tar files | Total bytes written: 639080448 sendbackup: size 624102 sendbackup: end \ Also, in backing up drive C on the zena PC... I ended up getting it to work by using: //zena/C It was just luck that I tried this because the examples I saw always referred to: //zena/C$ (or F$ or whatever) which did not work. Can anyone tell me what the C$ means and why (in my case) it worked only when I used C without the $ sign? Thanks, Dick
Re: Samba Question
On Wednesday 20 February 2002 08:47 am, Gene Matthews wrote: >On Tue, 2002-02-19 at 09:01, Joshua Baker-LePain wrote: >> Well, here's what I do to exclude the recycyle bin: >> >> define dumptype comp-high-smb { >> global >> comment "important partitions via tar (e.g. for samba)" >> compress client best >> priority medium >> exclude "./RECYCLER" >> } >> >> Give the ./ a try. > >So, can I have more than one exclude line in the dumptype > definition? Or am I only limited to one? > >Thanks, > >Gene There are instructions for generating a file that contains a list of stuff to skip. Applicatble to tar users only I believe. -- Cheers, Gene AMD K6-III@500mhz 320M Athlon1600XP@1400mhz 512M 98.5+% setiathome rank, not too shabby for a hillbilly
Re: Samba Question
On Wednesday 20 February 2002 08:47 am, Gene Matthews wrote: >On Tue, 2002-02-19 at 09:01, Joshua Baker-LePain wrote: >> Well, here's what I do to exclude the recycyle bin: >> >> define dumptype comp-high-smb { >> global >> comment "important partitions via tar (e.g. for samba)" >> compress client best >> priority medium >> exclude "./RECYCLER" >> } >> >> Give the ./ a try. > >So, can I have more than one exclude line in the dumptype > definition? Or am I only limited to one? > >Thanks, > >Gene There are instructions for generating a file that contains a list of stuff to skip. Applicatble to tar users only I believe. -- Cheers, Gene AMD K6-III@500mhz 320M Athlon1600XP@1400mhz 512M 98.5+% setiathome rank, not too shabby for a hillbilly
Re: Samba Question
On 20 Feb 2002 at 8:47am, Gene Matthews wrote > So, can I have more than one exclude line in the dumptype definition? Or > am I only limited to one? You're limited to one for samba backups. -- Joshua Baker-LePain Department of Biomedical Engineering Duke University
Re: Samba Question
On Tue, 2002-02-19 at 09:01, Joshua Baker-LePain wrote: > Well, here's what I do to exclude the recycyle bin: > > define dumptype comp-high-smb { > global > comment "important partitions via tar (e.g. for samba)" > compress client best > priority medium > exclude "./RECYCLER" > } > > Give the ./ a try. So, can I have more than one exclude line in the dumptype definition? Or am I only limited to one? Thanks, Gene > -- Gene Matthews Matthews Midrange Consulting, Inc. (678) 923-8327 (877) 882-6291 (toll free) http://mmc-inc.com
Re: Samba Question
On 19 Feb 2002 at 7:27am, [EMAIL PROTECTED] wrote > > You're exactly right -- that's the swap file, and you can't open it. You > > could exclude it in your dumptype, or just ignore the error. > > I would like to exclude it, but the sample amanda.conf file (from which > I derived the one I am using) says I can't, under the comments for > dumptypes: > > # dumptypes > ... > # exclude - specify files and directories to be excluded from the > # dump. Useful with gnutar only; silently ignored by dump and samba. > > Is this information outdated. That is, does it actually work with > samba? I tried: Yep -- that info is wrong and should probably be changed. docs/SAMBA has the proper info: Smbclient only supports excluding a single file from the command line, not a file of patterns like GNU tar. So "exclude" is supported from a dumptype but not "exclude list". > define dumptype americom-samba { > americom-standard > program "GNUTAR" > exclude "/WINDOWS/WIN386.SWP" > } > > but it did not work. Do I use backslashes, or is there anything else I > need to do? Well, here's what I do to exclude the recycyle bin: define dumptype comp-high-smb { global comment "important partitions via tar (e.g. for samba)" compress client best priority medium exclude "./RECYCLER" } Give the ./ a try. -- Joshua Baker-LePain Department of Biomedical Engineering Duke University
Re: Samba Question
> On 15 Feb 2002 at 6:02am, [EMAIL PROTECTED] wrote > > > It did produce the following error however. I am not a Windows person > > so I don't know, but I presume from the file name that this is something > > to do with the Windows swap space and it is normal. If so, should I > > expect to see it every day, or is there a way to prevent it? > > > > FAILED AND STRANGE DUMP DETAILS: > > > > /-- gorn.ameri //zena/C lev 0 STRANGE > > sendbackup: start [gorn.americom.com://zena/C level 0] > > sendbackup: info BACKUP=/usr/bin/smbclient > > sendbackup: info RECOVER_CMD=/usr/bin/smbclient -f... - > > sendbackup: info end > > | Added interface ip=192.168.2.1 bcast=192.168.2.255 nmask=255.255.255.0 > > ? ERRDOS - ERRbadshare opening remote file \WINDOWS\WIN386.SWP (\WINDOWS\) > > | tar: dumped 12935 tar files > > | Total bytes written: 639080448 > > sendbackup: size 624102 > > sendbackup: end > > \ > > You're exactly right -- that's the swap file, and you can't open it. You > could exclude it in your dumptype, or just ignore the error. I would like to exclude it, but the sample amanda.conf file (from which I derived the one I am using) says I can't, under the comments for dumptypes: # dumptypes ... # exclude - specify files and directories to be excluded from the # dump. Useful with gnutar only; silently ignored by dump and samba. Is this information outdated. That is, does it actually work with samba? I tried: define dumptype americom-samba { americom-standard program "GNUTAR" exclude "/WINDOWS/WIN386.SWP" } but it did not work. Do I use backslashes, or is there anything else I need to do? Thanks, Dick
Re: Samba Question
On 15 Feb 2002 at 6:02am, [EMAIL PROTECTED] wrote > It did produce the following error however. I am not a Windows person > so I don't know, but I presume from the file name that this is something > to do with the Windows swap space and it is normal. If so, should I > expect to see it every day, or is there a way to prevent it? > > FAILED AND STRANGE DUMP DETAILS: > > /-- gorn.ameri //zena/C lev 0 STRANGE > sendbackup: start [gorn.americom.com://zena/C level 0] > sendbackup: info BACKUP=/usr/bin/smbclient > sendbackup: info RECOVER_CMD=/usr/bin/smbclient -f... - > sendbackup: info end > | Added interface ip=192.168.2.1 bcast=192.168.2.255 nmask=255.255.255.0 > ? ERRDOS - ERRbadshare opening remote file \WINDOWS\WIN386.SWP (\WINDOWS\) > | tar: dumped 12935 tar files > | Total bytes written: 639080448 > sendbackup: size 624102 > sendbackup: end > \ You're exactly right -- that's the swap file, and you can't open it. You could exclude it in your dumptype, or just ignore the error. > Can anyone tell me what the C$ means and why (in my case) it worked only > when I used C without the $ sign? > C$ is the default administrative share that Windows always creates (*sigh*). This is done for every partition. I have no idea why you can't get that and can get C to work. Oh, and isn't the Warrior Princess going to be upset that you misspelled her name? ;) -- Joshua Baker-LePain Department of Biomedical Engineering Duke University
Samba Question
I got amanda to work with samba (thanks!) It did produce the following error however. I am not a Windows person so I don't know, but I presume from the file name that this is something to do with the Windows swap space and it is normal. If so, should I expect to see it every day, or is there a way to prevent it? FAILED AND STRANGE DUMP DETAILS: /-- gorn.ameri //zena/C lev 0 STRANGE sendbackup: start [gorn.americom.com://zena/C level 0] sendbackup: info BACKUP=/usr/bin/smbclient sendbackup: info RECOVER_CMD=/usr/bin/smbclient -f... - sendbackup: info end | Added interface ip=192.168.2.1 bcast=192.168.2.255 nmask=255.255.255.0 ? ERRDOS - ERRbadshare opening remote file \WINDOWS\WIN386.SWP (\WINDOWS\) | tar: dumped 12935 tar files | Total bytes written: 639080448 sendbackup: size 624102 sendbackup: end \ Also, in backing up drive C on the zena PC... I ended up getting it to work by using: //zena/C It was just luck that I tried this because the examples I saw always referred to: //zena/C$ (or F$ or whatever) which did not work. Can anyone tell me what the C$ means and why (in my case) it worked only when I used C without the $ sign? Thanks, Dick
Re: samba question...
Yann PURSON wrote: > > > > > > >> Total bytes listed: -993766132 > >> . > > > > > > Are you trying to backup files, or images larger than 2GB? > > I was just trying to backup a single directory with one small file in it > (it was just a test...)... > > > > > Have you applied the samba patches to AMANDA? > > No...sure it seems to be a good idea..I'll try it FYI, I am also having a similar problem and I *have* patched Amanda for samba. But if it helps you, then that's great! :) ERIC -- Eric Sproul, Systems Administrator Cornerstone Networks Inc. (http://www.cstone.net) - What if you're in hell, and you're mad at someone, where do you tell them to go?
Re: samba question...
> > >> Total bytes listed: -993766132 >> . > > > Are you trying to backup files, or images larger than 2GB? I was just trying to backup a single directory with one small file in it (it was just a test...)... > > Have you applied the samba patches to AMANDA? No...sure it seems to be a good idea..I'll try it > > We have seen this already, but other than "it's SAMBA's fault, not > AMANDA's" did not come up. Maybe you should also ask the SAMBA folks. > I am new to amanda, and also new to SAMBA...My first reaction was to ask my question in this mailing list before asking in an SAMBA mailing list... -- Yann PURSON - Administrateur systemes et reseaux ADNTIC - www.adntic.com 93, rue du Hocquet - 80.000 AMIENS Tel : 03.22.22.27.27 - Fax 03 22 22 03 57
Re: samba question...
>Total bytes listed: -993766132 >. Are you trying to backup files, or images larger than 2GB? Have you applied the samba patches to AMANDA? We have seen this already, but other than "it's SAMBA's fault, not AMANDA's" did not come up. Maybe you should also ask the SAMBA folks. -- Regards Chris Karakas Don´t waste your cpu time - crack rc5: http://www.distributed.net
Re: samba question...
Eric A. Sproul wrote: > Yann PURSON wrote: > >> FAILURE AND STRANGE DUMP SUMMARY: >> deuterium //NT-AGENCE/Public lev 0 FAILED [disk //NT-AGENCE/Public >> offline on deuterium?] > > > Yann, > I am having exactly the same problem. I have been asking on the samba > list about why smbclient reports a negative size for the dump. What OS > are you using on the backup client? What size files are stored in the > NT share? Amanda is on a Solaris systemWhat do you mean by the size files that are stored on the NT share...I was only doing a test with samba and I was trying to backup a single directory with a small file in it (50Kbytes...).. > I think the problem is related to large files (>2 GB). I am running > Linux, and there might be some issue with ext2fs limiting the filesize, > thus smbclient is confused about the total dump size. > > I still don't have a solution so if you come with anything, please post! > Thanks, > Eric Ok..I m looking for the solution, but I m new on system administration so everything is not clear for me... Thanks, -- Yann PURSON - Administrateur systemes et reseaux ADNTIC - www.adntic.com 93, rue du Hocquet - 80.000 AMIENS Tel : 03.22.22.27.27 - Fax 03 22 22 03 57
Re: samba question...
Yann PURSON wrote: > > FAILURE AND STRANGE DUMP SUMMARY: > deuterium //NT-AGENCE/Public lev 0 FAILED [disk //NT-AGENCE/Public > offline on deuterium?] Yann, I am having exactly the same problem. I have been asking on the samba list about why smbclient reports a negative size for the dump. What OS are you using on the backup client? What size files are stored in the NT share? I think the problem is related to large files (>2 GB). I am running Linux, and there might be some issue with ext2fs limiting the filesize, thus smbclient is confused about the total dump size. I still don't have a solution so if you come with anything, please post! Thanks, Eric -- Eric Sproul, Systems Administrator Cornerstone Networks Inc. (http://www.cstone.net) - When it rains, how come cows don't knock on the farmer's door and say, "Hey, let us in, we're all wearing leather out here!"
samba question...
I try to dump a directory from a NT server using amanda with samba...When I launch amcheck everything works fine but amdump refuse to backup my directory...I checked the log files from amanda. It seems that samba works because the sendsize.debug file contains all the directory from my NT server. At the end of this file I can read the following line : Total bytes listed: -993766132 . (no size line match in above smbclient output) . sendsize: pid 7 finish time Fri Dec 8 15:28:12 2000 But the amanda report says this : These dumps were to tape essai7. Tonight's dumps should go onto 1 tape: essai1. FAILURE AND STRANGE DUMP SUMMARY: deuterium //NT-AGENCE/Public lev 0 FAILED [disk //NT-AGENCE/Public offline on deuterium?] STATISTICS: Total Full Daily Dump Time (hrs:min)0:07 0:00 0:00 (0:03 start, 0:04 idle) Output Size (meg) 0.00.00.0 Original Size (meg) 0.00.00.0 Avg Compressed Size (%) -- -- -- Tape Used (%) 0.00.00.0 Filesystems Dumped0 0 0 Avg Dump Rate (k/s) -- -- -- Avg Tp Write Rate (k/s) -- -- -- NOTES: planner: Adding new disk deuterium://NT-AGENCE/Public. driver: WARNING: got empty schedule from planner taper: tape essai7 kb 0 fm 0 [OK] DUMP SUMMARY: DUMPER STATS TAPER STATS HOSTNAME DISK L ORIG-KB OUT-KB COMP% MMM:SS KB/s MMM:SS KB/s -- -- -- deuterium -AGENCE/Public 0 FAILED (brought to you by Amanda version 2.4.1p1) Can someone help me? -- Yann PURSON - Administrateur systemes et reseaux ADNTIC - www.adntic.com 93, rue du Hocquet - 80.000 AMIENS Tel : 03.22.22.27.27 - Fax 03 22 22 03 57