Re: initdb and data directories with lost+found

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Steve Stock <steve(at)technolope(dot)org>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: initdb and data directories with lost+found
Date: 2001-03-22 17:16:03
Message-ID: Pine.LNX.4.30.0103221813450.1208-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Steve Stock writes:

> Looks like initdb is just a tad too strict when checking to make sure
> the data directory is empty. Yesterday I created a new data directory
> as it's own filesystem (linux ext2), it includes a lost+found directory.

It is never a good idea to let initdb loose on a directory that might
possibly have some other purpose, including that of being the root
directory of an ext2 partition. Initdb or the database system can do
anything they want in that directory, so it's not good to save lost blocks
somewhere in the middle, even if chances are low you need them. I say,
create a subdirectory.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alfred Perlstein 2001-03-22 17:23:41 Re: pgindent run?
Previous Message Marko Kreen 2001-03-22 17:12:39 Re: Call for platforms