[Lustre-discuss] Error while installing lustre as OSS on opensolaris
Ricardo M. Correia
Ricardo.M.Correia at Sun.COM
Wed Jun 24 09:34:30 PDT 2009
Hi Onane,
On Qua, 2009-06-24 at 17:31 +0300, Onane wrote:
> That is, the document
> (http://wiki.lustre.org/index.php/Lustre_OSS/MDS_with_ZFS_DMU) is
> overdated. Where can I find the document that explains how to install
> lustre (as OSS) for the in-kernel version ?
Sorry, but an in-kernel version of Lustre for OpenSolaris is not
available. Currently, Lustre is only available for Linux.
Best regards,
Ricardo
>
>
> On Tue, Jun 23, 2009 at 4:29 PM, Kevin Van Maren
> <Kevin.Vanmaren at sun.com> wrote:
> The user-space uOSS has been dropped in favor of the in-kernel
> version -- I doubt it is being maintained.
>
> Kevin
>
>
>
> Onane wrote:
>
> Hello,
>
> Following the document below, I am trying to install
> lustre (as oss) on Nexenta which has opensolaris
> kernel
>
> http://wiki.lustre.org/index.php/Lustre_OSS/MDS_with_ZFS_DMU
>
> According to the doc, "The uOSS-DMU can run on Solaris
> or Linux. MDS/MGS/clients run only on Linux."
>
> So, I followed the steps. For 'sh autogen.sh',
> './configure' etc. there were no problem.
> But, when I tried 'make' step there were some errors:
>
> ----------
> gcc -o lib/zpool/vdev_cache.os -c -pipe -Wall -Werror
> -std=c99 -Wno-switch -Wno-unused -Wno-missing-braces
> -Wno-parentheses -Wno-uninitialized
> -fno-strict-aliasing -DZFS_NO_KERNEL -D_GNU_SOURCE
> -D_POSIX_PTHREAD_SEMANTICS -D__EXTENSIONS__
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
> -D_REENTRANT -DTEXT_DOMAIN=\"lustre\" -ggdb -O2 -fPIC
> -I. -Ilib/zfscommon/include -Ilib/avl/include
> -Ilib/nvpair/include -Ilib/port/include
> lib/zpool/vdev_cache.c
> cc1: warnings being treated as errors
> lib/zpool/vdev_cache.c: In function 'vdev_cache_read':
> lib/zpool/vdev_cache.c:278: warning: implicit
> declaration of function 'P2CROSS'
> scons: *** [lib/zpool/vdev_cache.os] Error 1
> scons: building terminated because of errors.
> make[3]: *** [all] Error 2
> make[3]: Leaving directory
> `/export/home/portakal/lustre/lustre/zfs-lustre'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/export/home/portakal/lustre/lustre'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/export/home/portakal/lustre'
> make: *** [all] Error 2
> ----------
>
> It says "implicit declaration of function 'P2CROSS'".
> So, I opened vdev_cache.c and added a prototype for
> P2CROSS like "#define P2CROSS(x, y, align) (((x) ^
> (y)) > (align) - 1)" (btw, was this a bug ?)
>
> After that, I tried 'make' step again
>
> But now, it gives another error:
>
> ----------
> gcc -g -Wall -fPIC -D_GNU_SOURCE -g -O2
> -L../../lnet/utils -o lustre_uoss
> lustre_uoss-lustre_uoss.o ../../lustre/ost/libost.a ../../lustre/ofd/libofd.a ../../lustre/mgc/libmgc.a ../../lustre/obdclass/libobdclass.a ../../lustre/ptlrpc/libptlrpc.a ../../lustre/dmu-osd/libdmuosd.a ../../lustre/lvfs/liblvfs_dmu.a -L /export/home/portakal/lustre/lustre/zfs-lustre/src/lib/udmu -lldmu-udmu -L /export/home/portakal/lustre/lustre/zfs-lustre/src/lib/ctl -lldmu-ctl-server -L /export/home/portakal/lustre/lustre/zfs-lustre/src/lib/zpool -lldmu-zpool -L /export/home/portakal/lustre/lustre/zfs-lustre/src/lib/zfscommon -lldmu-zfscommon -L /export/home/portakal/lustre/lustre/zfs-lustre/src/lib/nvpair -lldmu-nvpair -L /export/home/portakal/lustre/lustre/zfs-lustre/src/lib/avl -lldmu-avl -L /export/home/portakal/lustre/lustre/zfs-lustre/src/lib/umem -lumem -L /export/home/portakal/lustre/lustre/zfs-lustre/src/lib/port -lldmu-port -lpthread -lz ../../lnet/lnet/liblnet.a ../../lnet/ulnds/socklnd/libsocklnd.a ../../lnet/libcfs/libcfs.a -lnsl -lsocket -lrt -lm
> ../../lnet/libcfs/libcfs.a(libcfs_a-posix-lock.o): In
> function `sema_init':
> /export/home/portakal/lustre/lnet/libcfs/posix-lock.c:46: multiple definition of `sema_init'
> collect2: ld returned 1 exit status
> make[4]: *** [lustre_uoss] Error 1
> make[4]: Leaving directory
> `/export/home/portakal/lustre/lustre/utils'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory
> `/export/home/portakal/lustre/lustre/utils'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/export/home/portakal/lustre/lustre'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/export/home/portakal/lustre'
> make: *** [all] Error 2
> ----------
>
>
> What sould I do to overcome solve this problem ? I
> opened posix-lock.c and could not see any multiple
> definition of 'sema_init'. These errors are caused by
> another reason I guess. In my opinion, I cannot solve
> this by modifying source code.
>
>
> Thanks in advance
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Lustre-discuss mailing list
> Lustre-discuss at lists.lustre.org
> http://lists.lustre.org/mailman/listinfo/lustre-discuss
>
>
>
> _______________________________________________
> Lustre-discuss mailing list
> Lustre-discuss at lists.lustre.org
> http://lists.lustre.org/mailman/listinfo/lustre-discuss
More information about the lustre-discuss
mailing list