Re: [Nfs-ganesha-devel] Help!!! nfs client can't see any buckets when client mount on nfs-ganesha rgw

2016-09-29 Thread yiming xie
Matt:
sorry ,I forget to tell you that I can’t create new directories in /home/cep/xx 

[cep@localhost ~]$ cd xx
[cep@localhost xx]$ pwd
/home/cep/xx
[cep@localhost xx]$ sudo mkdir test_tt
mkdir: cannot create directory ‘test_tt’: Read-only file system
[cep@localhost xx]$ 

[cep@localhost ~]$ mount | grep xx
192.168.77.61:/ on /home/cep/xx type nfs4 
(rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.77.64,local_lock=none,addr=192.168.77.61)

> 在 2016年9月29日,下午9:09,Matt Benjamin  写道:
> 
> 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" mailto:plato...@gmail.com>>
>> To: "Matt Benjamin" mailto: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  
>> >
>>2016-09-28 02:31  s3://nike_bucket  > >
>>2016-08-10 14:07  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


Re: [Nfs-ganesha-devel] Help!!! nfs client can't see any buckets when client mount on nfs-ganesha rgw

2016-09-29 Thread Matt Benjamin
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" 
> To: "Matt Benjamin" 
> 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 
> 2016-09-28 02:31  s3://nike_bucket 
> 2016-08-10 14:07  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


Re: [Nfs-ganesha-devel] Help!!! nfs client can't see any buckets when client mount on nfs-ganesha rgw

2016-09-28 Thread Matt W. Benjamin
Hi,

I don't notice anything offhand.  If mount succeeded, the most likely thing is 
that the Access Key you've used can't see them.  Can you create new 
buckets/objects?

Matt

- "yiming xie"  wrote:

> env :centos7, nfs-ganesha 2.3, jewel
> nfs server :192.168.77.61
> 1.cmake && 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
> 2016-09-28 02:31 s3://nike_bucket
> 2016-08-10 14:07 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。
> 
> 
> --
> 
> ___
> Nfs-ganesha-devel mailing list
> Nfs-ganesha-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

-- 
Matt Benjamin
CohortFS, LLC.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103

http://cohortfs.com

tel.  734-761-4689 
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


[Nfs-ganesha-devel] Help!!! nfs client can't see any buckets when client mount on nfs-ganesha rgw

2016-09-27 Thread yiming xie
env :centos7, nfs-ganesha 2.3,  jewel
nfs server :192.168.77.61
1.cmake && 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
2016-09-28 02:31  s3://nike_bucket
2016-08-10 14:07  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。

--
___
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel