Onane
2009-Jun-23 12:18 UTC
[Lustre-discuss] Error while installing lustre as OSS on opensolaris
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.lustre.org/pipermail/lustre-discuss/attachments/20090623/8f87e2a7/attachment-0001.html
Kevin Van Maren
2009-Jun-23 13:29 UTC
[Lustre-discuss] Error while installing lustre as OSS on opensolaris
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 >
Onane
2009-Jun-24 14:31 UTC
[Lustre-discuss] Error while installing lustre as OSS on opensolaris
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 ? 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 >> >> > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.lustre.org/pipermail/lustre-discuss/attachments/20090624/4b5e153b/attachment-0001.html
Ricardo M. Correia
2009-Jun-24 16:34 UTC
[Lustre-discuss] Error while installing lustre as OSS on opensolaris
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
utku ulusahin
2009-Jun-24 20:00 UTC
[Lustre-discuss] Error while installing lustre as OSS on opensolaris
> > Hi all, > I am Onane''s work friend. > We have been trying to run lustre on solaris(nexenta - which is a kind of > ubuntu but that has opensolaris kernel) about two weeks. > We want to use ZFS file system, so we should use opensolaris. > According to the doc, "The uOSS-DMU can run on Solaris or Linux. > MDS/MGS/clients run only on Linux." > it is very important for us: it is impossible, isnot it??? > > thanks for everything... >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.lustre.org/pipermail/lustre-discuss/attachments/20090624/42e43441/attachment.html
Ricardo M. Correia
2009-Jun-24 20:18 UTC
[Lustre-discuss] Error while installing lustre as OSS on opensolaris
Hi Utku, Unfortunately, at the moment you can''t run Lustre with ZFS. The userspace port that you mentioned was only a demonstration. Its development has ended and it''s not being maintained anymore. A kernel port for Lustre to run on ZFS is under active development but not available yet. HTH, Ricardo On Qua, 2009-06-24 at 23:00 +0300, utku ulusahin wrote:> I am Onane''s work friend. > We have been trying to run lustre on solaris(nexenta - which > is a kind of ubuntu but that has opensolaris kernel) about two > weeks. > We want to use ZFS file system, so we should use opensolaris. > According to the doc, "The uOSS-DMU can run on Solaris or > Linux. MDS/MGS/clients run only on Linux." > it is very important for us: it is impossible, isnot it??? > > > thanks for everything... >