Re: How Can I Clean Up Files That Don't Exist?

2005-06-29 Thread Drew Tomlinson

On 6/28/2005 10:16 PM Chad Leigh -- Shire.Net LLC wrote:



On Jun 28, 2005, at 9:35 PM, Nikolas Britton wrote:


It looks, i'm not sure, like they're not vaild file names.



They appear like valid filenames to me (and like the names you get  
with courier for messages)


The issue is that tar is getting a file list and then the user is  
downloading (POP) or deleting or changing the status of a message  
(like reading it -- the filename itself encodes the read, deleted,  
etc status of a message) before tar actually archives it.  Or  
something like that.  The file system is changing out from underneath  
the OP.


make a snapshot first if this is an issue.

Chad


Thank you and Norberto for your replies.  Your explanations make sense 
for most cases but I don't think it applies to mine.  This is a small 
home system and the only mail users are myself and my wife.  Thus I had 
the luxury of stopping courier-imap and trying tar again.  Same errors.


Also, I don't think I can make a snapshot since I am on version 4.11.  
Ironically, I'm trying to get good backups so I can blow away my system 
and install version 5.4.  :)


Any other ideas?

Thanks,

Drew

--
Visit The Alchemist's Warehouse
Magic Tricks, DVDs, Videos, Books,  More!

http://www.alchemistswarehouse.com

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How Can I Clean Up Files That Don't Exist?

2005-06-29 Thread Mark Bucciarelli
On Wed, Jun 29, 2005 at 07:45:11AM -0700, Drew Tomlinson wrote:

 Any other ideas?

Any Windows shares involved?

m

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How Can I Clean Up Files That Don't Exist?

2005-06-29 Thread Norberto Meijome

Drew Tomlinson wrote:


Thank you and Norberto for your replies. 

np :)

Your explanations make sense 
for most cases but I don't think it applies to mine.  This is a small 
home system and the only mail users are myself and my wife.  Thus I had 
the luxury of stopping courier-imap and trying tar again.  Same errors.


- are the missing files the same every time you run the script / tar ?
- what does
ls -la ./user/Maildir/.Trash/cur/

show?

- could it be the fact that those file names contain : ? i dont think 
so, but it's worth giving it a try. If it is, u may want to check if 
it's a tar problem or a shell problem, in which case u may be able to 
change the default list delimiter to see if it makes any difference (i 
dont see why it $IFS would affect this..but )


let us know how it goes,
Beto

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


How Can I Clean Up Files That Don't Exist?

2005-06-28 Thread Drew Tomlinson

I used the following tar command to copy a file hierarchy:

tar cfp - -C /home . | tar xfpv - .

However when I hit user maildirs, many files get copied but I also get a 
lot of errors such as these:


./user/Maildir/.Trash/cur/1113462063.17964_0.blacklamb.mykitchentable.net:2,S
tar: 
./user/Maildir/.Trash/cur/1113462063.17964_0.blacklamb.mykitchentable.net\:2,S: 
Cannot open: No such file or directory


I use Courier IMAP 4.0.1,1 installed from ports if it makes any 
difference.  As far as I can tell, IMAP is working just fine.  Clients 
connect, get their messages, etc.


Any ideas on why there are so many files that don't exist?  And what is 
a good way to clean up my disk?


Thanks,

Drew

--
Visit The Alchemist's Warehouse
Magic Tricks, DVDs, Videos, Books,  More!

http://www.alchemistswarehouse.com

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How Can I Clean Up Files That Don't Exist?

2005-06-28 Thread Nikolas Britton
It looks, i'm not sure, like they're not vaild file names.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How Can I Clean Up Files That Don't Exist?

2005-06-28 Thread Drew Tomlinson

On 6/28/2005 8:35 PM Nikolas Britton wrote:


It looks, i'm not sure, like they're not vaild file names.

OK, that might be.  But then the question is why does tar try to copy 
those files if they are not valid?.  I assume tar is reading the 
directory structure and finding those file names as I'm not specifying 
them directly.  Any ideas?


Thanks,

Drew

--
Visit The Alchemist's Warehouse
Magic Tricks, DVDs, Videos, Books,  More!

http://www.alchemistswarehouse.com

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How Can I Clean Up Files That Don't Exist?

2005-06-28 Thread Lane
On Tuesday 28 June 2005 22:43, Drew Tomlinson wrote:
 On 6/28/2005 8:35 PM Nikolas Britton wrote:
 It looks, i'm not sure, like they're not vaild file names.

 OK, that might be.  But then the question is why does tar try to copy
 those files if they are not valid?.  I assume tar is reading the
 directory structure and finding those file names as I'm not specifying
 them directly.  Any ideas?

 Thanks,

 Drew
Perhaps the user issuing the 'tar' command does not have read access to these 
files and directories.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How Can I Clean Up Files That Don't Exist?

2005-06-28 Thread Norberto Meijome

Drew Tomlinson wrote:

I used the following tar command to copy a file hierarchy:

tar cfp - -C /home . | tar xfpv - .

However when I hit user maildirs, many files get copied but I also get a 
lot of errors such as these:


./user/Maildir/.Trash/cur/1113462063.17964_0.blacklamb.mykitchentable.net:2,S 

tar: 
./user/Maildir/.Trash/cur/1113462063.17964_0.blacklamb.mykitchentable.net\:2,S: 
Cannot open: No such file or directory




I've seen this happen many times, not related to one particular app, but 
always with temporary filenames / very transient filenames ( 
/proc/PID/, etc). I dont' know for sure, but I would say that there's 
a short lag between tar getting the list of files to process and 
actually working on them. By the time it gets to them, they are gone.


If you need to get a snapshot of a filesystem in a coherent form you 
need to make sure it doesnt change from under you - check the snapshot 
functionality in 5.x, or go single user or stop those processes creating 
temp files, which may not be an option. I suggest u ignore those messages.


HTH,
Beto
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How Can I Clean Up Files That Don't Exist?

2005-06-28 Thread Chad Leigh -- Shire.Net LLC


On Jun 28, 2005, at 9:35 PM, Nikolas Britton wrote:


It looks, i'm not sure, like they're not vaild file names.


They appear like valid filenames to me (and like the names you get  
with courier for messages)


The issue is that tar is getting a file list and then the user is  
downloading (POP) or deleting or changing the status of a message  
(like reading it -- the filename itself encodes the read, deleted,  
etc status of a message) before tar actually archives it.  Or  
something like that.  The file system is changing out from underneath  
the OP.


make a snapshot first if this is an issue.

Chad



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions- 
[EMAIL PROTECTED]




---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
[EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]