On 2013/10/29 5:21 PM, "Weilin Chang" <Weilin.Chang(a)huawei.com> wrote:
I tried to compile e2fsprogs from its source codes. The compilation
failed because db.h was missing. Does anyone compile the tool from its
source code before? Where does this file locate? Is it ok to use
different version of e2fsprogs than
the one provided in the luster release?
This is a really old version of e2fsprogs (over 3 years old). There are a
lot of bug fixes in e2fsprogs since 1.41.10 was released. You should use a
newer version from http://downloads.whamcloud.com/public/e2fsprogs/latest/
for any new installations. In most cases, you can just use the compiled
If you want to build your own, you either need to install db4-devel or
lfsck in order to build the Lustre e2fsprogs. You can't use the unpatched
e2fsprogs because it doesn't support features that Lustre uses in ldiskfs.
Thank you for your help.
Here were the error messages generated while compiling e2fsprogs:
making all in e2fsck
make: Entering directory
In file included from ../../e2fsck/unix.c:62:
../../e2fsck/lfsck.h:15:16: error: db.h: No such file or directory
Lustre Software Architect
Intel High Performance Data Division