Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Apr 2012 04:03:58 +0700
From:      Erich Dollansky <erich@alogreentechnologies.com>
To:        freebsd-questions@freebsd.org
Cc:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>, Alejandro Imass <aimass@yabarana.com>
Subject:   Re: UFS Crash and directories now missing
Message-ID:  <201204290403.58388.erich@alogreentechnologies.com>
In-Reply-To: <CAHieY7ToprF89C7yoeWkX8Pqom-=PY9tk2raNuNGHsbnhukXmg@mail.gmail.com>
References:  <CAHieY7Tt_mMvjLjdfEL8Kp7scb%2BHwmC_P%2Bpz5U02gOVPavjupA@mail.gmail.com> <alpine.BSF.2.00.1204280921250.9361@wojtek.tensor.gdynia.pl> <CAHieY7ToprF89C7yoeWkX8Pqom-=PY9tk2raNuNGHsbnhukXmg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Saturday 28 April 2012 20:15:25 Alejandro Imass wrote:
> On Sat, Apr 28, 2012 at 3:22 AM, Wojciech Puchar
> <wojtek@wojtek.tensor.gdynia.pl> wrote:
> >> I somewhat agree, but it wasn't a person. I am the only administrator,
> >> the only one with root access. The jails were effectively moved to the
> >> /usr/local/etc/apache22 of the single that survived at the top level.
> >> I'm thinking something between mount, EzJail, the journal and the way
> >> MySQL created a great deal of head contention, so something must have
> >> gotten corrupted at the directory level like you state, but the
> >> strange part is no _data_ corruption as such, because I was able to
> >> physically archive the jails, move them to the correct directory and
> >
> >
> > no matter what you do FreeBSD DOES NOT ramdomly move directories. if you are
> > sure you didn't move it yourself then it must be machine hardware problem
> > but still unlikely.
> 
> After a little more research, ___it it NOT unlikely at all___ that
> under high distress and a hard boot, UFS could have somehow corrupted
> the directory structure, whilst maintaining the data intact. From what
> I've learned so far, UFS is actually divided into 2 layers: one that
> controls the directory structure and metadata and a lower layer
> containing the data, so the directories being screwed up and the data
> intact it is actually quite possible.
> 
> What I'm trying to do is figure out is how it happened, and try
> prevent it from happening again, so instead of dismissing it as
> impossibility, I think we all should spend a little time figuring out
> how these things can happen and determine how it can be prevented or
> reduced.

somebody mentioned the links. Did you use links in the jails to access the data? If then the directories of the jails got screwed, the links are gone but the original data is still there. The damaged directory might got fixed during the first reboot after the crash and you never noticed the fix.

Erich



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204290403.58388.erich>