[ale] cleaning out /tmp
Michael B. Trausch
mike at trausch.us
Mon Sep 3 11:24:21 EDT 2007
Jeff Lightner, on 09/03/2007 10:31 AM said:
> lost+found is used by journaled filesystems as a location to store those
> files it couldn't completely identify by (fully qualified path) name
> during a "full" fsck. It dumps them in there with numeric names so that
> you can examine them and decide whether you want to keep them. (Sort
> of like the old chkdisk CHK0000# files you'd get sometimes after running
> DOS' chkdisk.)
>
> Since it is /tmp and you intend to delete all the files on a reboot
> anyway there's no real benefit to having it there - on the flip side
> since it takes a single inode and few bytes (when empty) there seems to
> be no real reason not to leave it alone.
>
> By the way - if you did cron a clean out rather than only have it happen
> on reboots you'd want to insure that the clean out script was only
> deleting files not currently "open" by some process. Running fuser or
> lsof against the files you intend to delete before doing so to be sure
> they're not open would be a good idea in such a script.
>
Isn't this why some places simply have cron reboot their server once per
week or something like that?
-- Mike
--
Michael B. Trausch Internet Mail & Jabber: mike at trausch.us
Phone: (404) 592-5746 x1 http://www.trausch.us/
Mobile: (678) 522-7934 VoIP: 6453 at sip.trausch.us, 861384 at fwd
Pidgin 2.1.1 and plugins for Ubuntu Feisty! http://www.trausch.us/pidgin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
More information about the Ale
mailing list