🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #16180

Re: Inn-1.5.1's file space recovery problem

#16180
From: Hugh Messenger
Date: Sun, 23 Mar 1997 00:00
34 lines
1847 bytes


Christopher D Dukes <cddukes@unity.ncsu.edu> wrote in article
<5h1h8i$p5f@uni00nw.unity.ncsu.edu>...
> I am running inn 1.5.1 on an AIX 4.1.5 box.
> I am having an odd problem with expire.
> When the old history file is removed for the new history file to replace
> it, the space is not being recovered.
> The space is recovered upon reboot.
> 
> Has anyone else seen this problem?
> Is this an inn fault, an AIX fault, or both?

If this is the same problem I was seeing a while back on OSF, it's a
generic problem.  News.daily builds the new history as history.n (or
whatever, YMMV), then renames it to history.  If you use 'lsof' or some
such utility to show open files and their inode numbers, you'll probably
find that a number of nnrpd's still have the old history file open when the
rename happens.  This casues UNIX to create a new file, with new inode, for
the renamed history.n, and leave the old history in place.  It's invisible
to the file system, as it's been unlinked from the directory structure, but
the file remains on disk, taking up space, until the last open file handle
is closed.

I think I fixed this my having news.daily do a cp of /dev/null to the old
history just before the rename.

   -- hugh




Technical Details
Message-ID: <01bc37a6$8726d860$af9193d0@cerebus>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <01bc36e6$03f38440$e4e893cf@valued-cu> <5h1h8i$p5f@uni00nw.unity.ncsu.edu>

Show Full Headers
Complete Article Headers
Message-ID: <01bc37a6$8726d860$af9193d0@cerebus>
Subject: Re: Inn-1.5.1's file space recovery problem
Date: Sun, 23 Mar 1997 00:00:00 +0000
From: "Hugh Messenger" <hugh@hiwaay.net>
References: <01bc36e6$03f38440$e4e893cf@valued-cu> <5h1h8i$p5f@uni00nw.unity.ncsu.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 228191037
Organization: Not Much
Newsgroups: news.software.nntp