Hi,matt: I will try to start nfs-ganesha according your ganesha.conf with my private parameters. I created ganesha.conf according to “/usr/share/doc/ganesha/config_samples/rgw.conf”. The all contents of 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"; } The all contents of /etc/ceph/ceph.conf: [global] fsid = 9dddf9d6-951b-4da7-9943-7eb7623dc2f4 mon_initial_members = node2 mon_host = 172.16.121.132 auth_cluster_required = cephx auth_service_required = cephx auth_client_required = cephx osd_pool_default_size = 2 Best regards Yiming xie > 在 2016年10月10日,下午9:53,Matt Benjamin <mbenjamin@xxxxxxxxxx> 写道: > > Hi Yiming, > > Can you share the contents of the RGW and FSAL blocks of your ganesha.conf? > > For comparison, here's one that I use (keys sanitized): > > """ > EXPORT > { > # Export Id (mandatory, each EXPORT must have a unique Export_Id) > Export_Id = 77; > > # Exported path (mandatory) > Path = "/"; > > # Pseudo Path (required for NFS v4) > Pseudo = "/"; > > # Required for access (default is None) > # Could use CLIENT blocks instead > Access_Type = RW; > > SecType = "sys"; > > Protocols = 3,4; > > #Delegations = Readwrite; > > Squash = No_Root_Squash; > > # Exporting FSAL > FSAL { > Name = RGW; > User_Id = "testuser"; > Access_Key_Id = "acckey"; > Secret_Access_Key = "secretkey"; > } > } > > RGW { > ceph_conf = "/opt/ceph-rgw/etc/ceph/ceph.conf"; > init_args = "-d --debug-rgw=16"; > } > > NFS_Core_Param > { > Nb_Worker = 12; > } > > NFSV4 { > Graceless = true; > Allow_Numeric_Owners = true; > Only_Numeric_Owners = true; > } > > LOG { > # Default_Log_Level is unknown token?? > #Default_Log_Level = NIV_FULL_DEBUG; > Components { > #ALL = FULL_DEBUG; > MEMLEAKS = FATAL; > FSAL = FULL_DEBUG; > NFSPROTO = FATAL; > NFS_V4 = FATAL; > EXPORT = FATAL; > FILEHANDLE = FATAL; > DISPATCH = FATAL; > CACHE_INODE = FATAL; > CACHE_INODE_LRU = FATAL; > HASHTABLE = FATAL; > HASHTABLE_CACHE = FATAL; > DUPREQ = FATAL; > INIT = DEBUG; > MAIN = DEBUG; > IDMAPPER = FATAL; > NFS_READDIR = FATAL; > NFS_V4_LOCK = FATAL; > CONFIG = FATAL; > CLIENTID = FATAL; > SESSIONS = FATAL; > PNFS = FATAL; > RW_LOCK = FATAL; > NLM = FATAL; > RPC = FATAL; > NFS_CB = FATAL; > THREAD = FATAL; > NFS_V4_ACL = FATAL; > STATE = FATAL; > # 9P = FATAL; > # 9P_DISPATCH = FATAL; > FSAL_UP = FATAL; > DBUS = FATAL; > } > Facility { > name = FILE; > destination = "/tmp/ganesha-rgw.log"; > enable = active; > } > } > """ > > Regards, > > Matt > > ----- Original Message ----- >> From: "yiming xie" <platoxym@xxxxxxxxx> >> To: ceph-devel@xxxxxxxxxxxxxxx >> Cc: "Matt Benjamin" <mbenjamin@xxxxxxxxxx> >> Sent: Saturday, October 8, 2016 3:23:31 AM >> Subject: librgw init failed (-5) >> >> 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 > > -- > Matt Benjamin > Red Hat, Inc. > 315 West Huron Street, Suite 140A > Ann Arbor, Michigan 48103 > > http://www.redhat.com/en/technologies/storage > > tel. 734-707-0660 > fax. 734-769-8938 > cel. 734-216-5309 > H -- 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