Re: rbd create command fails to create image

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I tried both ways. none of them worked.

BTW, Yehuda said the new class should be v1.2. why I saw 1.0.0 in the
error message:

Loading class: /usr/lib64/rados-classes/libcls_rbd.so.1.0.0: Error:
Could not detect class name.




On Sat, Aug 7, 2010 at 7:38 PM, Thomas Mueller <thomas@xxxxxxxxxxxxxx> wrote:
> Am Fri, 06 Aug 2010 09:44:16 -0700 schrieb Sage Weil:
>
>> Hi Xiaoguang,
>>
>> The problem is that /usr/lib/rados-classes/* shouldn't have symbols
>> stripped.  I'm no rpmbuild expert, but a search for 'rpmbuild strip'
>> turned up a few things.  Can you see if the below patch fixes the
>> problem for you?
>>
>> Thanks!
>> sage
>>
>>
>> diff --git a/ceph.spec.in b/ceph.spec.in index 20e0251..f068edd 100644
>> --- a/ceph.spec.in
>> +++ b/ceph.spec.in
>> @@ -64,6 +64,7 @@ conjunction with any FastCGI capable web server.
>>  make -j$(getconf _NPROCESSORS_ONLN) CFLAGS="$RPM_OPT_FLAGS"
>>  CXXFLAGS="$RPM_OPT_FLAGS"
>>
>>  %install
>> +export DONT_STRIP=1
>>  rm -rf $RPM_BUILD_ROOT
>>  make install DESTDIR=$RPM_BUILD_ROOT
>>  find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
>
> I'm not a rpm expert either. :) but grepping /usr/lib/rpm did not reveal
> any DONT_STRIP information.
>
> the strip'ing is done by "%__os_install_post" macro:
>
> %__os_install_post        \
>      /usr/lib/rpm/brp-compress \
>      /usr/lib/rpm/brp-strip \
>      /usr/lib/rpm/brp-strip-comment-note \
>
> maybe redefining it in spec like this:
>
> %define __os_install_post /usr/lib/rpm/brp-compress
>
> may help?
>
> either way, it disables strip'ing for all the files. Is this good? :)
>
> - Thomas
>
>
> --
> 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


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux