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@xxxxxxxxxxxx> 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@xxxxxxxxxx: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@xxxxxxxxxxxxxxx > >>> Cc: Sage Weil (sweil@xxxxxxxxxx) > >>> 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@xxxxxxxxxxxxxxx > >>>> Cc: Sage Weil (sweil@xxxxxxxxxx) > >>>> Subject: RE: Lib snappy error > >>>> > >>>> Did you do 'make install' ? > >>>> > >>>> > >>>> -----Original Message----- > >>>> From: ceph-devel-owner@xxxxxxxxxxxxxxx [mailto:ceph-devel- > >>>> owner@xxxxxxxxxxxxxxx] On Behalf Of Ramesh Chander > >>>> Sent: Monday, June 27, 2016 7:56 PM > >>>> To: ceph-devel@xxxxxxxxxxxxxxx > >>>> Cc: Sage Weil (sweil@xxxxxxxxxx) > >>>> 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@xxxxxxxxxxxxxxx > >>>>> Cc: Sage Weil (sweil@xxxxxxxxxx) > >>>>> 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@xxxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxx > >> 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@xxxxxxxxxxxxxxx > > 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@xxxxxxxxxxxxxxx > 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@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html