Re: UNREF DIR and LINK COUNT

From: Beardy (beardy_at_beardy.net)
Date: 08/24/04


Date: Tue, 24 Aug 2004 20:01:50 +0000

Robert Mazur wrote:
> I have a new v210 on which I config'd apache/tomcat, but no users
> accessing it yet, other than me to test a webapp. I needed to cycle
> the power down/up in order to place it in a rack.

Did you shut it down cleanly? Please don't pull power cables unless you
have a clustered failover scenario (and the knowledge to possibly
rebuild a server).

>
> Upon trying to restart tomcat, the system was telling me it could not
> write to the catalina log file, even as root. Tomcat (and the log
> file) is in slice 5 and still had 2 GB of space.

A filesystem can have 2TB, or 2ZB of space, but if its broke, its broke.
Put logging on the filesystem. I have only had one failure ever on a
logging FS when the log area became corrupted, but a full fsck fixed it.

>
> Desperate after trying to figure this out for a while, I restarted the
> machine and saw that when checking c1t0d0s5 the system said it was
> "not fine" and suggested running fsck. I ran fsck and got 3 or 4
> dozen of each of these when looking at s5:
> ----------------------------
> UNREF DIR I=51406 OWNER=root MODE=40755
> SIZE=512 MTIME=Aug 13 06:54 2004
> RECONNECT? y
>
> LINK COUNT DIR I=428678 OWNER=root MODE=40755
> SIZE=512 MTIME=Aug 16 06:44 2004 COUNT 0 SHOULD BE 2
> ADJUST? y
> ----------------------------
>
> Can someone tell me what these messages would indicate, and knowing
> this is a barely used system, if I should be weary of tossing it into
> production? I ran fsck twice until it didn't return any more
> unfavorable messages, and cycled the power successfully without
> errors, but I am wondering what happened?

The unref dir is where a directory structure exists, but has lost its
parent (owning) directory. The link count=0 error is where a directory
looks like its been removed, but is still referenced by other objects.
Boy, I should get royally flamed for my lack of in-depth knowledge on
this. Asbestos underwear at the ready ;-)

>
> Thanks,
> Rob

Bottom line - turn logging on on all your fileystems, patch the box up
as far as possible, and if you cannot cluster it for Production, then
toss it in, and get your CV up to date ;-)

Good luck.



Relevant Pages

  • Re: World Life Support
    ... as a utility power generation unit that can potentially reach 60% ... In mass production everything gets better and a whole lot cheaper, ... The world has sufficient air for everyone and it is not in short ... each and 5 plants per square meter. ...
    (sci.space.policy)
  • Re: Irish Electricity II
    ... On the nuclear front it's a bit like the original Sunningdale ... It is a no net carbon system true. ... The Endangered Species Act has cut back on some production to ... I'm getting to the point where I'm convinced that nuclear power is the ...
    (soc.culture.irish)
  • Re: Global Warming (was: Hooking Large Numbers of Computers Together...)
    ... Peak oil. ... production capacity; which means that any one producer has become critical. ... We cannot grow crops to replace the energy production. ... whatever energy we can get through wind and tidal power and solar ...
    (comp.arch)
  • Re: Who was it said the planet was cooling?
    ... It was all about reducing GG production. ... Nuclear emits no CO2. ... significant amount of the world's power. ... I wouldn't see synthetic gasoline as a long term solution though--fuel cell ...
    (rec.motorcycles)
  • Re: Low Noise saw (any saw ;)...)
    ... Even if a Dozuki saw and some specialized usage can produce the ... >that it can be done nearly fast enough to be worthwhile using for production ... make/maintain a reputation for quality over speed, then a handsaw will ... similar in time to lining up the cut on the power miter saw. ...
    (rec.woodworking)