UFS Crash and directories now missing

Alejandro Imass aimass at yabarana.com
Sat Apr 28 03:07:51 UTC 2012

On Fri, Apr 27, 2012 at 11:00 PM, Erich Dollansky
<erich at alogreentechnologies.com> wrote:
> Hi,
> On Saturday 28 April 2012 09:33:47 Alejandro Imass wrote:
>> On Fri, Apr 27, 2012 at 7:52 PM, Alejandro Imass <aimass at yabarana.com> wrote:
>> >
>> > We had a server crash and required a hard reboot. The system is on one
>> > disk and another disc mounts /usr/jails and everything runs in jails,
>> > pristine base system, and the base system is working perfectly.
>> >
>> > The second volume, the one with the jails mounted but every jail
>> > directory disappeared except one. df still shows the data being used
>> > so I'm guessing it's a logical error in the directory structure or
>> > something. I unmounted the drive and ran fsck and reported no
>> > problems. df shows the data being use so where is the data??
>> >
> what is du saying?
>> OK, so here is an update, maybe someone has some clue here....
>> All the jails wound up in the /usr/local/etc/apache22 of the only
>> surviving jail which is the http proxy to all the other jails.
> You want to say that all the data you were looking for have been moved to this directory?

EXACTLY THAT. In fact the data is intact and I have already backed-up
everything to another disk.

>> Right before the server crashed I noticed MySQL at 100% o several CPUs
>> and the server was on it's knees, so I'm wondering.... was this an
>> attack? is it possible that Apache or MySQL moved the files??
>> I mean the jails are there, I'm even backing them up right now.... but
>> how did these directories move here?????
>> Anybody has ANY logical explanation???
> Journaling is new to me. Could this be the cause?

Maybe so, I have no idea.

Maybe it's because EzJail mount volumes with each jail or some other
wild explanation. I honestly have never seen this before. I am just
glad that UFS was nice enough to keep my data somewhere at least, and
after my bad experiences with ZFS I can now say with a lot more
certainty that UFS rocks. I mean something got screwed up but the data
was not lost.

Hope someone can shed some light here..

> Erich

More information about the freebsd-questions mailing list