Hi Yiming, I -did- reply to a question basically similar to this on nfs-ganesha-devel, i believe, as "m...@cohortfs.com"? I tried, anyway, maybe there's an issue with that list subscription. Sorry, if so.
Anyway, what I wrote was 1) I don't see anything wrong, offhand, but 2) the issue is most likely related to permissions. If "mount" succeeds, then that should mean that the access_key and secret_key you provided in the FSAL block are valid. It doesn't necessarily mean you would see anything, though, if the existing buckets and objects were created by different user(s). That is, you should see buckets created by the NFS user you're mounting with for sure, and maybe others, depending on ACLs, iirc. My next question is, can you create new directories (buckets!) in /home/ceph using NFS? If you can, you should be able to see them over S3 using, again, the same S3 user credentials. Regards, Matt ----- Original Message ----- > From: "yiming xie" <plato...@gmail.com> > To: "Matt Benjamin" <mbenja...@redhat.com> > Sent: Wednesday, September 28, 2016 10:56:21 PM > Subject: Help!!! nfs client can't see any buckets when client mount on > nfs-ganesha rgw > > I have sent this question to ganesha-devel list,but no any replies. > So I can only ask for help to you. I'm sorry to bother you. > > env :centos7, nfs-ganesha 2.3, jewel > nfs server :192.168.77.61 > 1.cmake -DUSE_FSAL_RGW=ON -DRGW_LIBRARY=/usr/lib64 ../src/ && make && make > install > > 2.vi /etc/ganesha/ganesha.conf > EXPORT > { > Export_ID=1; > > Path = "/"; > > Pseudo = "/"; > > Access_Type = RW; > > NFS_Protocols = 4; > > Transport_Protocols = TCP; > > FSAL { > Name = RGW; > User_Id = "testuid"; > Access_Key_Id ="N6WENRWBZJWZ9ARS1UDD"; > Secret_Access_Key = "testsecret"; > } > } > > RGW { > ceph_conf = "/etc/ceph/ceph.conf"; > } > > 3. cp nfs-ganesha/src/scripts/systemd/* /usr/lib/systemd/system/ > > 4. systemctl start nfs-ganesha.service > systemctl status nfs-ganesha > nfs-ganesha.service - NFS-Ganesha file server > Loaded: loaded (/usr/lib/systemd/system/nfs-ganesha.service; disabled; > vendor preset: disabled) > Active: active (running) since Wed 2016-09-28 14:02:02 CST; 4s ago > > > 5. client host: > s3cmd ls > 2016-09-22 10:29 s3://foo1209_bucket <s3://foo1209_bucket> > 2016-09-28 02:31 s3://nike_bucket <s3://nike_bucket> > 2016-08-10 14:07 s3://test_bucket <s3://test_bucket> > > sudo mount -t nfs 192.168.77.61:/ /home/cep/xx > ls /home/cep/xx > xx is empty. Can not see any buckets name. > > Which steps may be wrong? Wait your reply,thanks。 -- 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 ------------------------------------------------------------------------------ _______________________________________________ Nfs-ganesha-devel mailing list Nfs-ganesha-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel