Re: librgw init failed (-5) when starting nfs-ganesha

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

 




On Mon, Oct 10, 2016 at 4:37 PM, yiming xie <platoxym@xxxxxxxxx> wrote:
> 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

My understanding is this needs to be running on a working RADOS gateway node.

If that were the case you would be able to check rados connectivity was working
with something like the following.

$ sudo rados --id rgw.ceph-rgw0 --keyring /var/lib/ceph/radosgw/ceph-rgw.ceph-rgw0/keyring lspools

The id is the name of your RADOS gateway client and the keyring is the matching
keyring for that client both of these can be found in the ceph.conf of a working
RADOS gateway.

>
>
>
> 在 2016年10月10日,下午2:17,Brad Hubbard <bhubbard@xxxxxxxxxx> 写道:
>
> On Sun, Oct 9, 2016 at 9:58 PM, yiming xie <platoxym@xxxxxxxxx> 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 <bhubbard@xxxxxxxxxx> 写道:
>
> 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 <platoxym@xxxxxxxxx> 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
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
>
>
>
>
>
>
> --
> Cheers,
> Brad
>
>



-- 
Cheers,
Brad
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux