All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Lib snappy error
@ 2016-06-28  2:55 Ramesh Chander
  2016-06-28  3:05 ` Somnath Roy
  0 siblings, 1 reply; 10+ messages in thread
From: Ramesh Chander @ 2016-06-28  2:55 UTC (permalink / raw)
  To: ceph-devel; +Cc: Sage Weil (sweil@redhat.com)

Creating sym link at  /usr/lib/ceph/compressor/libceph_snappy.so from .libs/libceph_snappy.so.2.0.0 works for me

Not sure what is the right way though.

-Ramesh

> -----Original Message-----
> From: Ramesh Chander
> Sent: Tuesday, June 28, 2016 8:07 AM
> To: ceph-devel@vger.kernel.org
> Cc: Sage Weil (sweil@redhat.com)
> Subject: Lib snappy error
>
> Hi All,
>
> I am getting this error whatever I do:
>
> [New Thread 0x7ffff1d70700 (LWP 14659)]
> 2016-06-28 08:00:02.395492 7ffff2d72700 -1
> bdev(store_test_temp_dir/block) _aio_thread got (4) Interrupted system
> call
> 2016-06-28 08:00:02.395755 7ffff7fda6c0 -1 load failed
> dlopen(/usr/lib/ceph/compressor/libceph_snappy.so):
> /usr/lib/ceph/compressor/libceph_snappy.so: cannot open shared object
> file: No such file or directory
> 2016-06-28 08:00:02.395766 7ffff7fda6c0 -1 create cannot load compressor of
> type snappy
> 2016-06-28 08:00:02.395769 7ffff7fda6c0 -1 bluestore(store_test_temp_dir)
> _set_compression unable to initialize snappy compressor
>
> I did full make. Did clean and make again but still it fails everytime.
>
> I see in the path that it is looking for
> /usr/lib/ceph/compressor/libceph_snappy.so even though I am not installing
> ceph and using Vstart.
>
> Any idea what is wrong here?
>
> -Ramesh
PLEASE NOTE: The information contained in this electronic mail message is intended only for the use of the designated recipient(s) named above. If the reader of this message is not the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender by telephone or e-mail (as shown above) immediately and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: Lib snappy error
  2016-06-28  2:55 Lib snappy error Ramesh Chander
@ 2016-06-28  3:05 ` Somnath Roy
  2016-06-28  3:08   ` Ramesh Chander
  0 siblings, 1 reply; 10+ messages in thread
From: Somnath Roy @ 2016-06-28  3:05 UTC (permalink / raw)
  To: Ramesh Chander, ceph-devel; +Cc: Sage Weil (sweil@redhat.com)

Did you do 'make install' ?


-----Original Message-----
From: ceph-devel-owner@vger.kernel.org [mailto:ceph-devel-owner@vger.kernel.org] On Behalf Of Ramesh Chander
Sent: Monday, June 27, 2016 7:56 PM
To: ceph-devel@vger.kernel.org
Cc: Sage Weil (sweil@redhat.com)
Subject: RE: Lib snappy error

Creating sym link at  /usr/lib/ceph/compressor/libceph_snappy.so from .libs/libceph_snappy.so.2.0.0 works for me

Not sure what is the right way though.

-Ramesh

> -----Original Message-----
> From: Ramesh Chander
> Sent: Tuesday, June 28, 2016 8:07 AM
> To: ceph-devel@vger.kernel.org
> Cc: Sage Weil (sweil@redhat.com)
> Subject: Lib snappy error
>
> Hi All,
>
> I am getting this error whatever I do:
>
> [New Thread 0x7ffff1d70700 (LWP 14659)]
> 2016-06-28 08:00:02.395492 7ffff2d72700 -1
> bdev(store_test_temp_dir/block) _aio_thread got (4) Interrupted system 
> call
> 2016-06-28 08:00:02.395755 7ffff7fda6c0 -1 load failed
> dlopen(/usr/lib/ceph/compressor/libceph_snappy.so):
> /usr/lib/ceph/compressor/libceph_snappy.so: cannot open shared object
> file: No such file or directory
> 2016-06-28 08:00:02.395766 7ffff7fda6c0 -1 create cannot load 
> compressor of type snappy
> 2016-06-28 08:00:02.395769 7ffff7fda6c0 -1 
> bluestore(store_test_temp_dir) _set_compression unable to initialize 
> snappy compressor
>
> I did full make. Did clean and make again but still it fails everytime.
>
> I see in the path that it is looking for 
> /usr/lib/ceph/compressor/libceph_snappy.so even though I am not 
> installing ceph and using Vstart.
>
> Any idea what is wrong here?
>
> -Ramesh
PLEASE NOTE: The information contained in this electronic mail message is intended only for the use of the designated recipient(s) named above. If the reader of this message is not the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender by telephone or e-mail (as shown above) immediately and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: Lib snappy error
  2016-06-28  3:05 ` Somnath Roy
@ 2016-06-28  3:08   ` Ramesh Chander
  2016-06-28  3:12     ` Somnath Roy
  0 siblings, 1 reply; 10+ messages in thread
From: Ramesh Chander @ 2016-06-28  3:08 UTC (permalink / raw)
  To: Somnath Roy, ceph-devel; +Cc: Sage Weil (sweil@redhat.com)

No I did't, is that mandatory even for dev environments?

Looks like path is hardcoded in any script.


> -----Original Message-----
> From: Somnath Roy
> Sent: Tuesday, June 28, 2016 8:35 AM
> To: Ramesh Chander; ceph-devel@vger.kernel.org
> Cc: Sage Weil (sweil@redhat.com)
> Subject: RE: Lib snappy error
>
> Did you do 'make install' ?
>
>
> -----Original Message-----
> From: ceph-devel-owner@vger.kernel.org [mailto:ceph-devel-
> owner@vger.kernel.org] On Behalf Of Ramesh Chander
> Sent: Monday, June 27, 2016 7:56 PM
> To: ceph-devel@vger.kernel.org
> Cc: Sage Weil (sweil@redhat.com)
> Subject: RE: Lib snappy error
>
> Creating sym link at  /usr/lib/ceph/compressor/libceph_snappy.so from
> .libs/libceph_snappy.so.2.0.0 works for me
>
> Not sure what is the right way though.
>
> -Ramesh
>
> > -----Original Message-----
> > From: Ramesh Chander
> > Sent: Tuesday, June 28, 2016 8:07 AM
> > To: ceph-devel@vger.kernel.org
> > Cc: Sage Weil (sweil@redhat.com)
> > Subject: Lib snappy error
> >
> > Hi All,
> >
> > I am getting this error whatever I do:
> >
> > [New Thread 0x7ffff1d70700 (LWP 14659)]
> > 2016-06-28 08:00:02.395492 7ffff2d72700 -1
> > bdev(store_test_temp_dir/block) _aio_thread got (4) Interrupted system
> > call
> > 2016-06-28 08:00:02.395755 7ffff7fda6c0 -1 load failed
> > dlopen(/usr/lib/ceph/compressor/libceph_snappy.so):
> > /usr/lib/ceph/compressor/libceph_snappy.so: cannot open shared object
> > file: No such file or directory
> > 2016-06-28 08:00:02.395766 7ffff7fda6c0 -1 create cannot load
> > compressor of type snappy
> > 2016-06-28 08:00:02.395769 7ffff7fda6c0 -1
> > bluestore(store_test_temp_dir) _set_compression unable to initialize
> > snappy compressor
> >
> > I did full make. Did clean and make again but still it fails everytime.
> >
> > I see in the path that it is looking for
> > /usr/lib/ceph/compressor/libceph_snappy.so even though I am not
> > installing ceph and using Vstart.
> >
> > Any idea what is wrong here?
> >
> > -Ramesh
> PLEASE NOTE: The information contained in this electronic mail message is
> intended only for the use of the designated recipient(s) named above. If the
> reader of this message is not the intended recipient, you are hereby notified
> that you have received this message in error and that any review,
> dissemination, distribution, or copying of this message is strictly prohibited. If
> you have received this communication in error, please notify the sender by
> telephone or e-mail (as shown above) immediately and destroy any and all
> copies of this message in your possession (whether hard copies or
> electronically stored copies).
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the
> body of a message to majordomo@vger.kernel.org More majordomo info at
> http://vger.kernel.org/majordomo-info.html
PLEASE NOTE: The information contained in this electronic mail message is intended only for the use of the designated recipient(s) named above. If the reader of this message is not the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender by telephone or e-mail (as shown above) immediately and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: Lib snappy error
  2016-06-28  3:08   ` Ramesh Chander
@ 2016-06-28  3:12     ` Somnath Roy
  2016-06-28  3:13       ` Ramesh Chander
  2016-06-28  3:49       ` Sage Weil
  0 siblings, 2 replies; 10+ messages in thread
From: Somnath Roy @ 2016-06-28  3:12 UTC (permalink / raw)
  To: Ramesh Chander, ceph-devel; +Cc: Sage Weil (sweil@redhat.com)

'Make install' will put all the libraries in the path  (--prefix) you opted for during autogen (default /usr). You should do that in your dev env also just in case you have different version present.

-----Original Message-----
From: Ramesh Chander
Sent: Monday, June 27, 2016 8:08 PM
To: Somnath Roy; ceph-devel@vger.kernel.org
Cc: Sage Weil (sweil@redhat.com)
Subject: RE: Lib snappy error

No I did't, is that mandatory even for dev environments?

Looks like path is hardcoded in any script.


> -----Original Message-----
> From: Somnath Roy
> Sent: Tuesday, June 28, 2016 8:35 AM
> To: Ramesh Chander; ceph-devel@vger.kernel.org
> Cc: Sage Weil (sweil@redhat.com)
> Subject: RE: Lib snappy error
>
> Did you do 'make install' ?
>
>
> -----Original Message-----
> From: ceph-devel-owner@vger.kernel.org [mailto:ceph-devel-
> owner@vger.kernel.org] On Behalf Of Ramesh Chander
> Sent: Monday, June 27, 2016 7:56 PM
> To: ceph-devel@vger.kernel.org
> Cc: Sage Weil (sweil@redhat.com)
> Subject: RE: Lib snappy error
>
> Creating sym link at  /usr/lib/ceph/compressor/libceph_snappy.so from
> .libs/libceph_snappy.so.2.0.0 works for me
>
> Not sure what is the right way though.
>
> -Ramesh
>
> > -----Original Message-----
> > From: Ramesh Chander
> > Sent: Tuesday, June 28, 2016 8:07 AM
> > To: ceph-devel@vger.kernel.org
> > Cc: Sage Weil (sweil@redhat.com)
> > Subject: Lib snappy error
> >
> > Hi All,
> >
> > I am getting this error whatever I do:
> >
> > [New Thread 0x7ffff1d70700 (LWP 14659)]
> > 2016-06-28 08:00:02.395492 7ffff2d72700 -1
> > bdev(store_test_temp_dir/block) _aio_thread got (4) Interrupted
> > system call
> > 2016-06-28 08:00:02.395755 7ffff7fda6c0 -1 load failed
> > dlopen(/usr/lib/ceph/compressor/libceph_snappy.so):
> > /usr/lib/ceph/compressor/libceph_snappy.so: cannot open shared
> > object
> > file: No such file or directory
> > 2016-06-28 08:00:02.395766 7ffff7fda6c0 -1 create cannot load
> > compressor of type snappy
> > 2016-06-28 08:00:02.395769 7ffff7fda6c0 -1
> > bluestore(store_test_temp_dir) _set_compression unable to initialize
> > snappy compressor
> >
> > I did full make. Did clean and make again but still it fails everytime.
> >
> > I see in the path that it is looking for
> > /usr/lib/ceph/compressor/libceph_snappy.so even though I am not
> > installing ceph and using Vstart.
> >
> > Any idea what is wrong here?
> >
> > -Ramesh
> PLEASE NOTE: The information contained in this electronic mail message
> is intended only for the use of the designated recipient(s) named
> above. If the reader of this message is not the intended recipient,
> you are hereby notified that you have received this message in error
> and that any review, dissemination, distribution, or copying of this
> message is strictly prohibited. If you have received this
> communication in error, please notify the sender by telephone or
> e-mail (as shown above) immediately and destroy any and all copies of
> this message in your possession (whether hard copies or electronically stored copies).
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel"
> in the body of a message to majordomo@vger.kernel.org More majordomo
> info at http://vger.kernel.org/majordomo-info.html
PLEASE NOTE: The information contained in this electronic mail message is intended only for the use of the designated recipient(s) named above. If the reader of this message is not the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender by telephone or e-mail (as shown above) immediately and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: Lib snappy error
  2016-06-28  3:12     ` Somnath Roy
@ 2016-06-28  3:13       ` Ramesh Chander
  2016-06-28  3:49       ` Sage Weil
  1 sibling, 0 replies; 10+ messages in thread
From: Ramesh Chander @ 2016-06-28  3:13 UTC (permalink / raw)
  To: Somnath Roy, ceph-devel; +Cc: Sage Weil (sweil@redhat.com)

Ok,

That makes sense.

Thanks :)

> -----Original Message-----
> From: Somnath Roy
> Sent: Tuesday, June 28, 2016 8:42 AM
> To: Ramesh Chander; ceph-devel@vger.kernel.org
> Cc: Sage Weil (sweil@redhat.com)
> Subject: RE: Lib snappy error
>
> 'Make install' will put all the libraries in the path  (--prefix) you opted for
> during autogen (default /usr). You should do that in your dev env also just in
> case you have different version present.
>
> -----Original Message-----
> From: Ramesh Chander
> Sent: Monday, June 27, 2016 8:08 PM
> To: Somnath Roy; ceph-devel@vger.kernel.org
> Cc: Sage Weil (sweil@redhat.com)
> Subject: RE: Lib snappy error
>
> No I did't, is that mandatory even for dev environments?
>
> Looks like path is hardcoded in any script.
>
>
> > -----Original Message-----
> > From: Somnath Roy
> > Sent: Tuesday, June 28, 2016 8:35 AM
> > To: Ramesh Chander; ceph-devel@vger.kernel.org
> > Cc: Sage Weil (sweil@redhat.com)
> > Subject: RE: Lib snappy error
> >
> > Did you do 'make install' ?
> >
> >
> > -----Original Message-----
> > From: ceph-devel-owner@vger.kernel.org [mailto:ceph-devel-
> > owner@vger.kernel.org] On Behalf Of Ramesh Chander
> > Sent: Monday, June 27, 2016 7:56 PM
> > To: ceph-devel@vger.kernel.org
> > Cc: Sage Weil (sweil@redhat.com)
> > Subject: RE: Lib snappy error
> >
> > Creating sym link at  /usr/lib/ceph/compressor/libceph_snappy.so from
> > .libs/libceph_snappy.so.2.0.0 works for me
> >
> > Not sure what is the right way though.
> >
> > -Ramesh
> >
> > > -----Original Message-----
> > > From: Ramesh Chander
> > > Sent: Tuesday, June 28, 2016 8:07 AM
> > > To: ceph-devel@vger.kernel.org
> > > Cc: Sage Weil (sweil@redhat.com)
> > > Subject: Lib snappy error
> > >
> > > Hi All,
> > >
> > > I am getting this error whatever I do:
> > >
> > > [New Thread 0x7ffff1d70700 (LWP 14659)]
> > > 2016-06-28 08:00:02.395492 7ffff2d72700 -1
> > > bdev(store_test_temp_dir/block) _aio_thread got (4) Interrupted
> > > system call
> > > 2016-06-28 08:00:02.395755 7ffff7fda6c0 -1 load failed
> > > dlopen(/usr/lib/ceph/compressor/libceph_snappy.so):
> > > /usr/lib/ceph/compressor/libceph_snappy.so: cannot open shared
> > > object
> > > file: No such file or directory
> > > 2016-06-28 08:00:02.395766 7ffff7fda6c0 -1 create cannot load
> > > compressor of type snappy
> > > 2016-06-28 08:00:02.395769 7ffff7fda6c0 -1
> > > bluestore(store_test_temp_dir) _set_compression unable to initialize
> > > snappy compressor
> > >
> > > I did full make. Did clean and make again but still it fails everytime.
> > >
> > > I see in the path that it is looking for
> > > /usr/lib/ceph/compressor/libceph_snappy.so even though I am not
> > > installing ceph and using Vstart.
> > >
> > > Any idea what is wrong here?
> > >
> > > -Ramesh
> > PLEASE NOTE: The information contained in this electronic mail message
> > is intended only for the use of the designated recipient(s) named
> > above. If the reader of this message is not the intended recipient,
> > you are hereby notified that you have received this message in error
> > and that any review, dissemination, distribution, or copying of this
> > message is strictly prohibited. If you have received this
> > communication in error, please notify the sender by telephone or
> > e-mail (as shown above) immediately and destroy any and all copies of
> > this message in your possession (whether hard copies or electronically
> stored copies).
> > --
> > To unsubscribe from this list: send the line "unsubscribe ceph-devel"
> > in the body of a message to majordomo@vger.kernel.org More
> majordomo
> > info at http://vger.kernel.org/majordomo-info.html
PLEASE NOTE: The information contained in this electronic mail message is intended only for the use of the designated recipient(s) named above. If the reader of this message is not the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender by telephone or e-mail (as shown above) immediately and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: Lib snappy error
  2016-06-28  3:12     ` Somnath Roy
  2016-06-28  3:13       ` Ramesh Chander
@ 2016-06-28  3:49       ` Sage Weil
  2016-06-28 12:40         ` Igor Fedotov
  1 sibling, 1 reply; 10+ messages in thread
From: Sage Weil @ 2016-06-28  3:49 UTC (permalink / raw)
  To: Somnath Roy; +Cc: Ramesh Chander, ceph-devel

On Tue, 28 Jun 2016, Somnath Roy wrote:
> 'Make install' will put all the libraries in the path (--prefix) you 
> opted for during autogen (default /usr). You should do that in your dev 
> env also just in case you have differene version present.

I wouldn't recommand make install, actually.

This should work:

git clone git@github.com:ceph/ceph
cd ceph
./do_cmake.sh
cd build
make ceph_test_objectstore
ln -s . lib/compressor
cat  <<EOM > ceph.conf
[global]
plugin dir = lib
EOM
bin/ceph_test_objecstore ...

I'll fix up do_cmake.sh shortly so that it sets up the symlinks and 
ceph.conf the first time around.  Note that running ../src/vstart.sh will 
also create the symlinks and a ceph.conf that will make 
ceph_test_objectstore happy.

sage




> 
> -----Original Message-----
> From: Ramesh Chander
> Sent: Monday, June 27, 2016 8:08 PM
> To: Somnath Roy; ceph-devel@vger.kernel.org
> Cc: Sage Weil (sweil@redhat.com)
> Subject: RE: Lib snappy error
> 
> No I did't, is that mandatory even for dev environments?
> 
> Looks like path is hardcoded in any script.
> 
> 
> > -----Original Message-----
> > From: Somnath Roy
> > Sent: Tuesday, June 28, 2016 8:35 AM
> > To: Ramesh Chander; ceph-devel@vger.kernel.org
> > Cc: Sage Weil (sweil@redhat.com)
> > Subject: RE: Lib snappy error
> >
> > Did you do 'make install' ?
> >
> >
> > -----Original Message-----
> > From: ceph-devel-owner@vger.kernel.org [mailto:ceph-devel-
> > owner@vger.kernel.org] On Behalf Of Ramesh Chander
> > Sent: Monday, June 27, 2016 7:56 PM
> > To: ceph-devel@vger.kernel.org
> > Cc: Sage Weil (sweil@redhat.com)
> > Subject: RE: Lib snappy error
> >
> > Creating sym link at  /usr/lib/ceph/compressor/libceph_snappy.so from
> > .libs/libceph_snappy.so.2.0.0 works for me
> >
> > Not sure what is the right way though.
> >
> > -Ramesh
> >
> > > -----Original Message-----
> > > From: Ramesh Chander
> > > Sent: Tuesday, June 28, 2016 8:07 AM
> > > To: ceph-devel@vger.kernel.org
> > > Cc: Sage Weil (sweil@redhat.com)
> > > Subject: Lib snappy error
> > >
> > > Hi All,
> > >
> > > I am getting this error whatever I do:
> > >
> > > [New Thread 0x7ffff1d70700 (LWP 14659)]
> > > 2016-06-28 08:00:02.395492 7ffff2d72700 -1
> > > bdev(store_test_temp_dir/block) _aio_thread got (4) Interrupted
> > > system call
> > > 2016-06-28 08:00:02.395755 7ffff7fda6c0 -1 load failed
> > > dlopen(/usr/lib/ceph/compressor/libceph_snappy.so):
> > > /usr/lib/ceph/compressor/libceph_snappy.so: cannot open shared
> > > object
> > > file: No such file or directory
> > > 2016-06-28 08:00:02.395766 7ffff7fda6c0 -1 create cannot load
> > > compressor of type snappy
> > > 2016-06-28 08:00:02.395769 7ffff7fda6c0 -1
> > > bluestore(store_test_temp_dir) _set_compression unable to initialize
> > > snappy compressor
> > >
> > > I did full make. Did clean and make again but still it fails everytime.
> > >
> > > I see in the path that it is looking for
> > > /usr/lib/ceph/compressor/libceph_snappy.so even though I am not
> > > installing ceph and using Vstart.
> > >
> > > Any idea what is wrong here?
> > >
> > > -Ramesh
> > PLEASE NOTE: The information contained in this electronic mail message
> > is intended only for the use of the designated recipient(s) named
> > above. If the reader of this message is not the intended recipient,
> > you are hereby notified that you have received this message in error
> > and that any review, dissemination, distribution, or copying of this
> > message is strictly prohibited. If you have received this
> > communication in error, please notify the sender by telephone or
> > e-mail (as shown above) immediately and destroy any and all copies of
> > this message in your possession (whether hard copies or electronically stored copies).
> > --
> > To unsubscribe from this list: send the line "unsubscribe ceph-devel"
> > in the body of a message to majordomo@vger.kernel.org More majordomo
> > info at http://vger.kernel.org/majordomo-info.html
> PLEASE NOTE: The information contained in this electronic mail message is intended only for the use of the designated recipient(s) named above. If the reader of this message is not the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender by telephone or e-mail (as shown above) immediately and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).
> 
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Lib snappy error
  2016-06-28  3:49       ` Sage Weil
@ 2016-06-28 12:40         ` Igor Fedotov
  2016-06-28 12:50           ` Alyona Kiselyova
  0 siblings, 1 reply; 10+ messages in thread
From: Igor Fedotov @ 2016-06-28 12:40 UTC (permalink / raw)
  To: Sage Weil, Somnath Roy; +Cc: Ramesh Chander, ceph-devel

Shouldn't we remove compressor subfolder at all and store compressor 
libraries a level up?


On 28.06.2016 6:49, Sage Weil wrote:
> On Tue, 28 Jun 2016, Somnath Roy wrote:
>> 'Make install' will put all the libraries in the path (--prefix) you
>> opted for during autogen (default /usr). You should do that in your dev
>> env also just in case you have differene version present.
> I wouldn't recommand make install, actually.
>
> This should work:
>
> git clone git@github.com:ceph/ceph
> cd ceph
> ./do_cmake.sh
> cd build
> make ceph_test_objectstore
> ln -s . lib/compressor
> cat  <<EOM > ceph.conf
> [global]
> plugin dir = lib
> EOM
> bin/ceph_test_objecstore ...
>
> I'll fix up do_cmake.sh shortly so that it sets up the symlinks and
> ceph.conf the first time around.  Note that running ../src/vstart.sh will
> also create the symlinks and a ceph.conf that will make
> ceph_test_objectstore happy.
>
> sage
>
>
>
>
>> -----Original Message-----
>> From: Ramesh Chander
>> Sent: Monday, June 27, 2016 8:08 PM
>> To: Somnath Roy; ceph-devel@vger.kernel.org
>> Cc: Sage Weil (sweil@redhat.com)
>> Subject: RE: Lib snappy error
>>
>> No I did't, is that mandatory even for dev environments?
>>
>> Looks like path is hardcoded in any script.
>>
>>
>>> -----Original Message-----
>>> From: Somnath Roy
>>> Sent: Tuesday, June 28, 2016 8:35 AM
>>> To: Ramesh Chander; ceph-devel@vger.kernel.org
>>> Cc: Sage Weil (sweil@redhat.com)
>>> Subject: RE: Lib snappy error
>>>
>>> Did you do 'make install' ?
>>>
>>>
>>> -----Original Message-----
>>> From: ceph-devel-owner@vger.kernel.org [mailto:ceph-devel-
>>> owner@vger.kernel.org] On Behalf Of Ramesh Chander
>>> Sent: Monday, June 27, 2016 7:56 PM
>>> To: ceph-devel@vger.kernel.org
>>> Cc: Sage Weil (sweil@redhat.com)
>>> Subject: RE: Lib snappy error
>>>
>>> Creating sym link at  /usr/lib/ceph/compressor/libceph_snappy.so from
>>> .libs/libceph_snappy.so.2.0.0 works for me
>>>
>>> Not sure what is the right way though.
>>>
>>> -Ramesh
>>>
>>>> -----Original Message-----
>>>> From: Ramesh Chander
>>>> Sent: Tuesday, June 28, 2016 8:07 AM
>>>> To: ceph-devel@vger.kernel.org
>>>> Cc: Sage Weil (sweil@redhat.com)
>>>> Subject: Lib snappy error
>>>>
>>>> Hi All,
>>>>
>>>> I am getting this error whatever I do:
>>>>
>>>> [New Thread 0x7ffff1d70700 (LWP 14659)]
>>>> 2016-06-28 08:00:02.395492 7ffff2d72700 -1
>>>> bdev(store_test_temp_dir/block) _aio_thread got (4) Interrupted
>>>> system call
>>>> 2016-06-28 08:00:02.395755 7ffff7fda6c0 -1 load failed
>>>> dlopen(/usr/lib/ceph/compressor/libceph_snappy.so):
>>>> /usr/lib/ceph/compressor/libceph_snappy.so: cannot open shared
>>>> object
>>>> file: No such file or directory
>>>> 2016-06-28 08:00:02.395766 7ffff7fda6c0 -1 create cannot load
>>>> compressor of type snappy
>>>> 2016-06-28 08:00:02.395769 7ffff7fda6c0 -1
>>>> bluestore(store_test_temp_dir) _set_compression unable to initialize
>>>> snappy compressor
>>>>
>>>> I did full make. Did clean and make again but still it fails everytime.
>>>>
>>>> I see in the path that it is looking for
>>>> /usr/lib/ceph/compressor/libceph_snappy.so even though I am not
>>>> installing ceph and using Vstart.
>>>>
>>>> Any idea what is wrong here?
>>>>
>>>> -Ramesh
>>> PLEASE NOTE: The information contained in this electronic mail message
>>> is intended only for the use of the designated recipient(s) named
>>> above. If the reader of this message is not the intended recipient,
>>> you are hereby notified that you have received this message in error
>>> and that any review, dissemination, distribution, or copying of this
>>> message is strictly prohibited. If you have received this
>>> communication in error, please notify the sender by telephone or
>>> e-mail (as shown above) immediately and destroy any and all copies of
>>> this message in your possession (whether hard copies or electronically stored copies).
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe ceph-devel"
>>> in the body of a message to majordomo@vger.kernel.org More majordomo
>>> info at http://vger.kernel.org/majordomo-info.html
>> PLEASE NOTE: The information contained in this electronic mail message is intended only for the use of the designated recipient(s) named above. If the reader of this message is not the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender by telephone or e-mail (as shown above) immediately and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).
>>
>>
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Lib snappy error
  2016-06-28 12:40         ` Igor Fedotov
@ 2016-06-28 12:50           ` Alyona Kiselyova
  2016-06-30 15:06             ` Sage Weil
  0 siblings, 1 reply; 10+ messages in thread
From: Alyona Kiselyova @ 2016-06-28 12:50 UTC (permalink / raw)
  To: Igor Fedotov; +Cc: Sage Weil, Somnath Roy, Ramesh Chander, ceph-devel

>> Shouldn't we remove compressor subfolder at all and store compressor libraries a level up?
PluginRegistry class expects by default, that plugins of different
types are in separated directories. I added in one of PRs (not merged
yet) possibility to search libs in level-up directory too, if they are
not found in separated. May be it'll be a good variant, to have the
both possibilities.
-------------------------------
Best regards,
Alyona Kiseleva


On Tue, Jun 28, 2016 at 3:40 PM, Igor Fedotov <ifedotov@mirantis.com> wrote:
> Shouldn't we remove compressor subfolder at all and store compressor
> libraries a level up?
>
>
>
> On 28.06.2016 6:49, Sage Weil wrote:
>>
>> On Tue, 28 Jun 2016, Somnath Roy wrote:
>>>
>>> 'Make install' will put all the libraries in the path (--prefix) you
>>> opted for during autogen (default /usr). You should do that in your dev
>>> env also just in case you have differene version present.
>>
>> I wouldn't recommand make install, actually.
>>
>> This should work:
>>
>> git clone git@github.com:ceph/ceph
>> cd ceph
>> ./do_cmake.sh
>> cd build
>> make ceph_test_objectstore
>> ln -s . lib/compressor
>> cat  <<EOM > ceph.conf
>> [global]
>> plugin dir = lib
>> EOM
>> bin/ceph_test_objecstore ...
>>
>> I'll fix up do_cmake.sh shortly so that it sets up the symlinks and
>> ceph.conf the first time around.  Note that running ../src/vstart.sh will
>> also create the symlinks and a ceph.conf that will make
>> ceph_test_objectstore happy.
>>
>> sage
>>
>>
>>
>>
>>> -----Original Message-----
>>> From: Ramesh Chander
>>> Sent: Monday, June 27, 2016 8:08 PM
>>> To: Somnath Roy; ceph-devel@vger.kernel.org
>>> Cc: Sage Weil (sweil@redhat.com)
>>> Subject: RE: Lib snappy error
>>>
>>> No I did't, is that mandatory even for dev environments?
>>>
>>> Looks like path is hardcoded in any script.
>>>
>>>
>>>> -----Original Message-----
>>>> From: Somnath Roy
>>>> Sent: Tuesday, June 28, 2016 8:35 AM
>>>> To: Ramesh Chander; ceph-devel@vger.kernel.org
>>>> Cc: Sage Weil (sweil@redhat.com)
>>>> Subject: RE: Lib snappy error
>>>>
>>>> Did you do 'make install' ?
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: ceph-devel-owner@vger.kernel.org [mailto:ceph-devel-
>>>> owner@vger.kernel.org] On Behalf Of Ramesh Chander
>>>> Sent: Monday, June 27, 2016 7:56 PM
>>>> To: ceph-devel@vger.kernel.org
>>>> Cc: Sage Weil (sweil@redhat.com)
>>>> Subject: RE: Lib snappy error
>>>>
>>>> Creating sym link at  /usr/lib/ceph/compressor/libceph_snappy.so from
>>>> .libs/libceph_snappy.so.2.0.0 works for me
>>>>
>>>> Not sure what is the right way though.
>>>>
>>>> -Ramesh
>>>>
>>>>> -----Original Message-----
>>>>> From: Ramesh Chander
>>>>> Sent: Tuesday, June 28, 2016 8:07 AM
>>>>> To: ceph-devel@vger.kernel.org
>>>>> Cc: Sage Weil (sweil@redhat.com)
>>>>> Subject: Lib snappy error
>>>>>
>>>>> Hi All,
>>>>>
>>>>> I am getting this error whatever I do:
>>>>>
>>>>> [New Thread 0x7ffff1d70700 (LWP 14659)]
>>>>> 2016-06-28 08:00:02.395492 7ffff2d72700 -1
>>>>> bdev(store_test_temp_dir/block) _aio_thread got (4) Interrupted
>>>>> system call
>>>>> 2016-06-28 08:00:02.395755 7ffff7fda6c0 -1 load failed
>>>>> dlopen(/usr/lib/ceph/compressor/libceph_snappy.so):
>>>>> /usr/lib/ceph/compressor/libceph_snappy.so: cannot open shared
>>>>> object
>>>>> file: No such file or directory
>>>>> 2016-06-28 08:00:02.395766 7ffff7fda6c0 -1 create cannot load
>>>>> compressor of type snappy
>>>>> 2016-06-28 08:00:02.395769 7ffff7fda6c0 -1
>>>>> bluestore(store_test_temp_dir) _set_compression unable to initialize
>>>>> snappy compressor
>>>>>
>>>>> I did full make. Did clean and make again but still it fails everytime.
>>>>>
>>>>> I see in the path that it is looking for
>>>>> /usr/lib/ceph/compressor/libceph_snappy.so even though I am not
>>>>> installing ceph and using Vstart.
>>>>>
>>>>> Any idea what is wrong here?
>>>>>
>>>>> -Ramesh
>>>>
>>>> PLEASE NOTE: The information contained in this electronic mail message
>>>> is intended only for the use of the designated recipient(s) named
>>>> above. If the reader of this message is not the intended recipient,
>>>> you are hereby notified that you have received this message in error
>>>> and that any review, dissemination, distribution, or copying of this
>>>> message is strictly prohibited. If you have received this
>>>> communication in error, please notify the sender by telephone or
>>>> e-mail (as shown above) immediately and destroy any and all copies of
>>>> this message in your possession (whether hard copies or electronically
>>>> stored copies).
>>>> --
>>>> To unsubscribe from this list: send the line "unsubscribe ceph-devel"
>>>> in the body of a message to majordomo@vger.kernel.org More majordomo
>>>> info at http://vger.kernel.org/majordomo-info.html
>>>
>>> PLEASE NOTE: The information contained in this electronic mail message is
>>> intended only for the use of the designated recipient(s) named above. If the
>>> reader of this message is not the intended recipient, you are hereby
>>> notified that you have received this message in error and that any review,
>>> dissemination, distribution, or copying of this message is strictly
>>> prohibited. If you have received this communication in error, please notify
>>> the sender by telephone or e-mail (as shown above) immediately and destroy
>>> any and all copies of this message in your possession (whether hard copies
>>> or electronically stored copies).
>>>
>>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Lib snappy error
  2016-06-28 12:50           ` Alyona Kiselyova
@ 2016-06-30 15:06             ` Sage Weil
  0 siblings, 0 replies; 10+ messages in thread
From: Sage Weil @ 2016-06-30 15:06 UTC (permalink / raw)
  To: Alyona Kiselyova; +Cc: Igor Fedotov, Somnath Roy, Ramesh Chander, ceph-devel

On Tue, 28 Jun 2016, Alyona Kiselyova wrote:
> >> Shouldn't we remove compressor subfolder at all and store compressor libraries a level up?
> PluginRegistry class expects by default, that plugins of different
> types are in separated directories. I added in one of PRs (not merged
> yet) possibility to search libs in level-up directory too, if they are
> not found in separated. May be it'll be a good variant, to have the
> both possibilities.

See

	https://github.com/ceph/ceph/pull/10067

sage


> -------------------------------
> Best regards,
> Alyona Kiseleva
> 
> 
> On Tue, Jun 28, 2016 at 3:40 PM, Igor Fedotov <ifedotov@mirantis.com> wrote:
> > Shouldn't we remove compressor subfolder at all and store compressor
> > libraries a level up?
> >
> >
> >
> > On 28.06.2016 6:49, Sage Weil wrote:
> >>
> >> On Tue, 28 Jun 2016, Somnath Roy wrote:
> >>>
> >>> 'Make install' will put all the libraries in the path (--prefix) you
> >>> opted for during autogen (default /usr). You should do that in your dev
> >>> env also just in case you have differene version present.
> >>
> >> I wouldn't recommand make install, actually.
> >>
> >> This should work:
> >>
> >> git clone git@github.com:ceph/ceph
> >> cd ceph
> >> ./do_cmake.sh
> >> cd build
> >> make ceph_test_objectstore
> >> ln -s . lib/compressor
> >> cat  <<EOM > ceph.conf
> >> [global]
> >> plugin dir = lib
> >> EOM
> >> bin/ceph_test_objecstore ...
> >>
> >> I'll fix up do_cmake.sh shortly so that it sets up the symlinks and
> >> ceph.conf the first time around.  Note that running ../src/vstart.sh will
> >> also create the symlinks and a ceph.conf that will make
> >> ceph_test_objectstore happy.
> >>
> >> sage
> >>
> >>
> >>
> >>
> >>> -----Original Message-----
> >>> From: Ramesh Chander
> >>> Sent: Monday, June 27, 2016 8:08 PM
> >>> To: Somnath Roy; ceph-devel@vger.kernel.org
> >>> Cc: Sage Weil (sweil@redhat.com)
> >>> Subject: RE: Lib snappy error
> >>>
> >>> No I did't, is that mandatory even for dev environments?
> >>>
> >>> Looks like path is hardcoded in any script.
> >>>
> >>>
> >>>> -----Original Message-----
> >>>> From: Somnath Roy
> >>>> Sent: Tuesday, June 28, 2016 8:35 AM
> >>>> To: Ramesh Chander; ceph-devel@vger.kernel.org
> >>>> Cc: Sage Weil (sweil@redhat.com)
> >>>> Subject: RE: Lib snappy error
> >>>>
> >>>> Did you do 'make install' ?
> >>>>
> >>>>
> >>>> -----Original Message-----
> >>>> From: ceph-devel-owner@vger.kernel.org [mailto:ceph-devel-
> >>>> owner@vger.kernel.org] On Behalf Of Ramesh Chander
> >>>> Sent: Monday, June 27, 2016 7:56 PM
> >>>> To: ceph-devel@vger.kernel.org
> >>>> Cc: Sage Weil (sweil@redhat.com)
> >>>> Subject: RE: Lib snappy error
> >>>>
> >>>> Creating sym link at  /usr/lib/ceph/compressor/libceph_snappy.so from
> >>>> .libs/libceph_snappy.so.2.0.0 works for me
> >>>>
> >>>> Not sure what is the right way though.
> >>>>
> >>>> -Ramesh
> >>>>
> >>>>> -----Original Message-----
> >>>>> From: Ramesh Chander
> >>>>> Sent: Tuesday, June 28, 2016 8:07 AM
> >>>>> To: ceph-devel@vger.kernel.org
> >>>>> Cc: Sage Weil (sweil@redhat.com)
> >>>>> Subject: Lib snappy error
> >>>>>
> >>>>> Hi All,
> >>>>>
> >>>>> I am getting this error whatever I do:
> >>>>>
> >>>>> [New Thread 0x7ffff1d70700 (LWP 14659)]
> >>>>> 2016-06-28 08:00:02.395492 7ffff2d72700 -1
> >>>>> bdev(store_test_temp_dir/block) _aio_thread got (4) Interrupted
> >>>>> system call
> >>>>> 2016-06-28 08:00:02.395755 7ffff7fda6c0 -1 load failed
> >>>>> dlopen(/usr/lib/ceph/compressor/libceph_snappy.so):
> >>>>> /usr/lib/ceph/compressor/libceph_snappy.so: cannot open shared
> >>>>> object
> >>>>> file: No such file or directory
> >>>>> 2016-06-28 08:00:02.395766 7ffff7fda6c0 -1 create cannot load
> >>>>> compressor of type snappy
> >>>>> 2016-06-28 08:00:02.395769 7ffff7fda6c0 -1
> >>>>> bluestore(store_test_temp_dir) _set_compression unable to initialize
> >>>>> snappy compressor
> >>>>>
> >>>>> I did full make. Did clean and make again but still it fails everytime.
> >>>>>
> >>>>> I see in the path that it is looking for
> >>>>> /usr/lib/ceph/compressor/libceph_snappy.so even though I am not
> >>>>> installing ceph and using Vstart.
> >>>>>
> >>>>> Any idea what is wrong here?
> >>>>>
> >>>>> -Ramesh
> >>>>
> >>>> PLEASE NOTE: The information contained in this electronic mail message
> >>>> is intended only for the use of the designated recipient(s) named
> >>>> above. If the reader of this message is not the intended recipient,
> >>>> you are hereby notified that you have received this message in error
> >>>> and that any review, dissemination, distribution, or copying of this
> >>>> message is strictly prohibited. If you have received this
> >>>> communication in error, please notify the sender by telephone or
> >>>> e-mail (as shown above) immediately and destroy any and all copies of
> >>>> this message in your possession (whether hard copies or electronically
> >>>> stored copies).
> >>>> --
> >>>> To unsubscribe from this list: send the line "unsubscribe ceph-devel"
> >>>> in the body of a message to majordomo@vger.kernel.org More majordomo
> >>>> info at http://vger.kernel.org/majordomo-info.html
> >>>
> >>> PLEASE NOTE: The information contained in this electronic mail message is
> >>> intended only for the use of the designated recipient(s) named above. If the
> >>> reader of this message is not the intended recipient, you are hereby
> >>> notified that you have received this message in error and that any review,
> >>> dissemination, distribution, or copying of this message is strictly
> >>> prohibited. If you have received this communication in error, please notify
> >>> the sender by telephone or e-mail (as shown above) immediately and destroy
> >>> any and all copies of this message in your possession (whether hard copies
> >>> or electronically stored copies).
> >>>
> >>>
> >> --
> >> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> >> the body of a message to majordomo@vger.kernel.org
> >> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >
> >
> > --
> > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Lib snappy error
@ 2016-06-28  2:36 Ramesh Chander
  0 siblings, 0 replies; 10+ messages in thread
From: Ramesh Chander @ 2016-06-28  2:36 UTC (permalink / raw)
  To: ceph-devel; +Cc: Sage Weil (sweil@redhat.com)

Hi All,

I am getting this error whatever I do:

[New Thread 0x7ffff1d70700 (LWP 14659)]
2016-06-28 08:00:02.395492 7ffff2d72700 -1 bdev(store_test_temp_dir/block) _aio_thread got (4) Interrupted system call
2016-06-28 08:00:02.395755 7ffff7fda6c0 -1 load failed dlopen(/usr/lib/ceph/compressor/libceph_snappy.so): /usr/lib/ceph/compressor/libceph_snappy.so: cannot open shared object file: No such file or directory
2016-06-28 08:00:02.395766 7ffff7fda6c0 -1 create cannot load compressor of type snappy
2016-06-28 08:00:02.395769 7ffff7fda6c0 -1 bluestore(store_test_temp_dir) _set_compression unable to initialize snappy compressor

I did full make. Did clean and make again but still it fails everytime.

I see in the path that it is looking for /usr/lib/ceph/compressor/libceph_snappy.so even though I am not installing ceph and using Vstart.

Any idea what is wrong here?

-Ramesh
PLEASE NOTE: The information contained in this electronic mail message is intended only for the use of the designated recipient(s) named above. If the reader of this message is not the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender by telephone or e-mail (as shown above) immediately and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-06-30 15:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-28  2:55 Lib snappy error Ramesh Chander
2016-06-28  3:05 ` Somnath Roy
2016-06-28  3:08   ` Ramesh Chander
2016-06-28  3:12     ` Somnath Roy
2016-06-28  3:13       ` Ramesh Chander
2016-06-28  3:49       ` Sage Weil
2016-06-28 12:40         ` Igor Fedotov
2016-06-28 12:50           ` Alyona Kiselyova
2016-06-30 15:06             ` Sage Weil
  -- strict thread matches above, loose matches on Subject: below --
2016-06-28  2:36 Ramesh Chander

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.