ceph -v
ceph version 10.2.3 (ecc23778eb545d8dd55e2e4735b53cc93f92e65b)
nfs-ganesha:2.3 stable 

1. install ceph following docs.ceph.com  on node1
2.install librgw2-devel.x86_64 on node2
3.install nfs-ganmesha on node2
  cmake -DUSE_FSAL_RGW=ON ../src/
  make
  make install
 
4.vi /etc/cep/ceph.conf on node2
>> [global]
>> mon_host = 192.168.77.61

5 create ganesha.conf
EXPORT
{
        Export_ID=1;

        Path = "/";

        Pseudo = "/";

        Access_Type = RW;

        NFS_Protocols = 4;

        Transport_Protocols = TCP;

        FSAL {
                Name = RGW;
                User_Id = “admin";
                Access_Key_Id =“admin";
                Secret_Access_Key = “admin";
        }
}

RGW {
    ceph_conf = "/etc/ceph/ceph.conf";
}

6.sudo /usr/bin/ganesha.nfsd -L /var/log/ganesha.log -f 
/etc/ganesha/ganesha.conf -N NIV_EVENT -p /var/run/ganesha.nfsd.pid



> 在 2016年10月10日,下午2:17,Brad Hubbard <[email protected]> 写道:
> 
> On Sun, Oct 9, 2016 at 9:58 PM, yiming xie <[email protected]> wrote:
>> Thank your reply. I don’t know which configuration or step causes rados 
>> initialization to fail。
>> /usr/lib64/
>> librgw.so.2.0.0
>> librados.so.2.0.0
>> 
>> /etc/ceh/ceph.conf:
>> [global]
>> mon_host = 192.168.77.61
> 
> What document are you following and what version of ceph and
> nfs-ganesha are you running?
> 
> What configuration have you changed up to this point?
> 
>> 
>> 
>> 
>>> 在 2016年10月9日,下午4:33,Brad Hubbard <[email protected]> 写道:
>>> 
>>> Looks to me like it may have failed to initialise RADOS. Do you have 
>>> librados
>>> installed and configured (ceph.conf, etc.)?
>>> 
>>> librgw_create ->
>>> -> RGWLib::init
>>>   -> RGWStoreManager::get_storage
>>>     -> RGWStoreManager::init_storage_provider
>>>       -> RGWRados::initialize
>>>         -> init_rados
>>> 
>>> --
>>> HTH,
>>> Brad
>>> 
>>> On Sun, Oct 9, 2016 at 2:02 PM, yiming xie <[email protected]> wrote:
>>>> 
>>>> I start nfs-ganesha with FSAL_RGW failed, the nfs-ganesha log is:
>>>> "create_export :FSAL :CRIT :RGW module: librgw init failed (-5)”
>>>> 
>>>> ceph/src/rgw/librgw.cc:
>>>> int librgw_create(librgw_t* rgw, int argc, char **argv)
>>>> this interface return value equal -5 and it’s parameters as below:
>>>> 
>>>> argc=2
>>>> argv[0] = “nfs-ganesha”
>>>> argv[1] = “--conf=/etc/ceph/ceph.conf”
>>>> 
>>>> env:
>>>> nfs-genahsa(2.3)
>>>> librgw.so.2.0.0
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> ceph-users mailing list
>>>> [email protected]
>>>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>>>> 
>>> 
>>> 
>> 
> 
> 
> 
> -- 
> Cheers,
> Brad

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to