SUMM : Preserve Directory

From: Christian Miranda <cmiranda_at_gmd.com.pe>
Date: Wed, 24 Dec 1997 11:53:09 -0500

> Many thanks to all who responded and best of the holidays to all.
 :
> Dr. Tom Blinn,
> Declan Lennon
        alan_at_nabeth.cxo.dec.com[
        carmodym_at_wellsfargo.com
> mortimer_at_physics.uq.edu.au
>
>
>
This is my question :

> Today when I was starting my server I got a message similar like this
> :
> " Preserving Editor Files "
> And my server stops at this moment.
> I turn off my server and appears again in the second reboot.
> I start up my server in single user mode and when mount /usr I noticed
> it was complety full. (100%)
> I was checking the directories under /usr and I saw /usr/preserve a
> lot
> of files with a strange size. I remove this files and my /usr returns
> to
> its normally size.
> Coul some one tell me more about /usr/preserve ?
> Why appears strange size files? Why do not remove every time I shut
> down
> the server ?
>
>
>
>
*****************

> From: Dr. Tom Blinn, 603-884-0646[SMTP:tpb_at_zk3.dec.com]
>
> Look at the documented functionality for supported system editors like
> vi. /usr/preserve is really /var/preserve; as some editors (like vi)
> are running, they save off files that should be preserved when there
> is
> a system crash. The files are normally removed when the editor closes
> the session normally.
>
> In your case, the files apparently were sufficiently large that when
> the
> system was trying to recover the files, it ran out of space for doing
> so. I suspect you are running with your /var file system too small
> for
> normal operations; you should consider moving /var to a separate file
> system (disk partition), or increasing the size of /usr if you want to
> leave /var in /usr.
>
> Remember, the system writes files (logs and temp files and the like)
> in
> the /var file system, so it has to have enough space or you get things
> like the hang on reboot that you saw.
>
********
> From: Declan Lennon[SMTP:LennonD_at_MAIL.DEC.COM]
>
> From browsing various articles on this topic, I have come to the
> following conclusions:
>
> The editor files referred to in your startup are files that have
> (normally) been edited by vi or ex. If the editor doesn't exit
> normally
> the files are copied to /usr/var/preserve (which is linked to
> /usr/preserve). The script which does this is located in
> /sbin/init.d/preserve - it simply copies files from the /tmp directory
> into these preserve files.
>
> To see which files have crashed in your editor, type vi -r (or ex -r),
> and you can then re-edit the files listed. If nothing unusual shows up
> here, I think it may be possible that other applications are putting
> crash files in your /tmp directory, which are subsequently copied to
> the
> preserve files.
>
*************
> Hi
>
> > Coul some one tell me more about /usr/preserve ?
>
> That's where the editor buffer of vi and ex are saved if the system
> or editor crashes. The file can then be recovered to within a few key
>
> strokes of the last edit using `vi -r filename'.
>
> > Why appears strange size files? Why do not remove every time I shut
> down
> > the server ?
>
> Roots crontab should contain an entry like this:
>
> 15 4 * * * find /var/preserve -mtime +7 -type f -exec rm -f {} \;
>
> This runs at 4:15am every day and deletes all preserved files more
> than a week old. (/usr/preserve should be a link to
> /usr/var/preserve).
>
> If you had a lot of files there either you're missing the
> crontab entry which deletes them or some runaway process was
> creating them or maybe a user was having trouble with vi.
>
> It's too late now that you've deleted them but if you'd
> looked at a full listing of the files you would have found
> out who owned them and when they were created which might
> have helped you track down the problem.
>
**************

> From: carmodym_at_wellsfargo.com[SMTP:carmodym_at_wellsfargo.com]
>
> The preserve files are from interrupted vi sessions. Like someone got
> logged out, and couldn't do a save prior to the logout (or the network
> dropped during the vi session, or etc, etc). Anyway I usually keep
> only
> 14days worth of that stuff. You may want to keep none or all.
>
***********
> From: alan_at_nabeth.cxo.dec.com[SMTP:alan_at_nabeth.cxo.dec.com]
>
> Many text editors write temporary files in /tmp. In the
> event of system shutdown or crash, the temporary files
> are copied to /var/preserve (/usr/preserve is a link to
> /var/preserve) so that /tmp can be cleared. The temporary
> files are kept so that user can use the particular editor's
> recovery feature to recover much of the work they may have
> lost when the system crash, was shutdown or their connection
> terminated.
Received on Wed Dec 24 1997 - 18:06:43 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT