Re: [ceph-users] Problems getting nfs-ganesha with cephfs backend to work.

2017-07-19 Thread Ramana Raja
On 07/20/2017 at 12:02 AM, Daniel Gryniewicz  wrote:
> On 07/19/2017 05:27 AM, Micha Krause wrote:
> > Hi,
> > 
> >> Ganesha version 2.5.0.1 from the nfs-ganesha repo hosted on
> >> download.ceph.com 
> > 
> > I didn't know about that repo, and compiled ganesha myself. The
> > developers in the #ganesha IRC channel pointed me to
> > the libcephfs version.
> > After recompiling ganesha with a kraken libcephfs instead of a jewel
> > version both errors went away.
> > 
> > I'm sure using a compiled Version from the repo you mention would have
> > worked out of the box.
> > 
> > Micha Krause
> > 
> 
> These packages aren't quite ready for use yet, the packaging work is
> still underway.  CCing Ali, who's doing the work.
> 
> Daniel

Ali told me that the rpm for Ganesha's CephFS FSAL(driver),
nfs-ganesha-ceph v2.5.0.1 (28th June) available at download.ceph.com,
was built using libcephfs2 of Ceph luminous release v12.0.3.

AFAIK Ali's working on building latest nfs-ganesha, and nfs-ganesha-ceph FSAL
(v2.5.0.4) rpms and debs using libcephfs2 in latest luminous release, 12.1.1.
You can expect them to be at download.ceph.com/nfs-ganesha sometime soon.

-Ramana
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] Problems getting nfs-ganesha with cephfs backend to work.

2017-07-19 Thread Daniel Gryniewicz

On 07/19/2017 05:27 AM, Micha Krause wrote:

Hi,

Ganesha version 2.5.0.1 from the nfs-ganesha repo hosted on 
download.ceph.com 


I didn't know about that repo, and compiled ganesha myself. The 
developers in the #ganesha IRC channel pointed me to

the libcephfs version.
After recompiling ganesha with a kraken libcephfs instead of a jewel 
version both errors went away.


I'm sure using a compiled Version from the repo you mention would have 
worked out of the box.


Micha Krause



These packages aren't quite ready for use yet, the packaging work is 
still underway.  CCing Ali, who's doing the work.


Daniel
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] Problems getting nfs-ganesha with cephfs backend to work.

2017-07-19 Thread Micha Krause

Hi,


Ganesha version 2.5.0.1 from the nfs-ganesha repo hosted on download.ceph.com 



I didn't know about that repo, and compiled ganesha myself. The developers in 
the #ganesha IRC channel pointed me to
the libcephfs version.
After recompiling ganesha with a kraken libcephfs instead of a jewel version 
both errors went away.

I'm sure using a compiled Version from the repo you mention would have worked 
out of the box.

Micha Krause

___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] Problems getting nfs-ganesha with cephfs backend to work.

2017-07-18 Thread David
You mentioned the Kernel client works but the Fuse mount would be a better
test in relation to the Ganesha FSAL.

The following config didn't give me the error you describe in 1) but I'm
mounting on the client with NFSv4, not sure about 2), is that dm-nfs?

EXPORT
{
Export_ID = 1;
Path = "/";
Pseudo = "/";
Access_Type = RW;
Squash = No_Root_Squash;
SecType = "none";
Protocols = "3", "4";
Transports = "TCP";

FSAL {
Name = CEPH;
}
}

Ganesha version 2.5.0.1 from the nfs-ganesha repo hosted on
download.ceph.com
CentOS 7.3 server and client


On Mon, Jul 17, 2017 at 2:26 PM, Micha Krause  wrote:

> Hi,
>
>
> > Change Pseudo to something like /mypseudofolder
>
> I tried this, without success, but I managed to get something working with
> version 2.5.
>
> I can mount the NFS export now, however 2 problems remain:
>
> 1. The root directory of the mount-point looks empty (ls shows no files),
> however directories
>and files can be accessed, and ls works in subdirectories.
>
> 2. I can't create devices in the nfs mount, not sure if ganesha supports
> this with other backends.
>
>
>
> Micha Krause
> ___
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] Problems getting nfs-ganesha with cephfs backend to work.

2017-07-17 Thread Micha Krause

Hi,


> Change Pseudo to something like /mypseudofolder

I tried this, without success, but I managed to get something working with 
version 2.5.

I can mount the NFS export now, however 2 problems remain:

1. The root directory of the mount-point looks empty (ls shows no files), 
however directories
   and files can be accessed, and ls works in subdirectories.

2. I can't create devices in the nfs mount, not sure if ganesha supports this 
with other backends.


Micha Krause
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] Problems getting nfs-ganesha with cephfs backend to work.

2017-07-17 Thread Ricardo Dias
Hi,

Not sure if using the root path in Pseudo is valid.

Change Pseudo to something like /mypseudofolder

And see if that solves the problem.

Ricardo

> On 17 Jul 2017, at 09:45, Micha Krause  wrote:
> 
> Hi,
> 
> im trying to get nfs-ganesha to work with ceph as the FSAL Backend.
> 
> Um using Version 2.4.5, this is my ganeasha.conf:
> 
> EXPORT
> {
>Export_ID=1;
>Path = /;
>Pseudo = /;
>Access_Type = RW;
>Protocols = 3;
>Transports = TCP;
>FSAL {
>Name = CEPH;
>User_Id = "test-cephfs";
>Secret_Access_Key = "***";
>}
>CLIENT {
>Clients = client-fqdn;
>Access_Type = RO;
>}
> }
> 
> Here are some loglines from ganeshea indicating that there is a problem:
> 
> 17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
> load_fsal :NFS STARTUP :DEBUG :Loading FSAL CEPH with 
> /usr/lib/x86_64-linux-gnu/ganesha/libfsalceph.so
> 17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] init 
> :FSAL :DEBUG :Ceph module registering.
> 17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
> init_config :FSAL :DEBUG :Ceph module setup.
> 17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
> create_export :FSAL :CRIT :Unable to mount Ceph cluster for /.
> 17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
> mdcache_fsal_create_export :FSAL :MAJ :Failed to call create_export on 
> underlying FSAL Ceph
> 17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
> fsal_put :FSAL :INFO :FSAL Ceph now unused
> 17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
> fsal_cfg_commit :CONFIG :CRIT :Could not create export for (/) to (/)
> 17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
> build_default_root :CONFIG :DEBUG :Allocating Pseudo root export
> 17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
> pseudofs_create_export :FSAL :DEBUG :Created exp 0x55daf1020d80 - /
> 17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
> build_default_root :CONFIG :INFO :Export 0 (/) successfully created
> 17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] main 
> :NFS STARTUP :WARN :No export entries found in configuration file !!!
> 17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
> config_errs_to_log :CONFIG :CRIT :Config File (/etc/ganesha/ganesha.conf:25): 
> 1 validation errors in block FSAL
> 17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
> config_errs_to_log :CONFIG :CRIT :Config File (/etc/ganesha/ganesha.conf:25): 
> Errors processing block (FSAL)
> 17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
> config_errs_to_log :CONFIG :CRIT :Config File (/etc/ganesha/ganesha.conf:11): 
> 1 validation errors in block EXPORT
> 17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
> config_errs_to_log :CONFIG :CRIT :Config File (/etc/ganesha/ganesha.conf:11): 
> Errors processing block (EXPORT)
> 
> I have no problems mounting cephfs with the kernel-client on this machine, 
> using the same authentication data.
> 
> 
> Has anyone gotten this to work, and maybe could give me a hint on what I'm 
> doing wrong?
> 
> 
> 
> Micha Krause
> ___
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
> 

___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


[ceph-users] Problems getting nfs-ganesha with cephfs backend to work.

2017-07-17 Thread Micha Krause

Hi,

im trying to get nfs-ganesha to work with ceph as the FSAL Backend.

Um using Version 2.4.5, this is my ganeasha.conf:

EXPORT
{
Export_ID=1;
Path = /;
Pseudo = /;
Access_Type = RW;
Protocols = 3;
Transports = TCP;
FSAL {
Name = CEPH;
User_Id = "test-cephfs";
Secret_Access_Key = "***";
}
CLIENT {
Clients = client-fqdn;
Access_Type = RO;
}
}

Here are some loglines from ganeshea indicating that there is a problem:

17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
load_fsal :NFS STARTUP :DEBUG :Loading FSAL CEPH with 
/usr/lib/x86_64-linux-gnu/ganesha/libfsalceph.so
17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] init 
:FSAL :DEBUG :Ceph module registering.
17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
init_config :FSAL :DEBUG :Ceph module setup.
17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
create_export :FSAL :CRIT :Unable to mount Ceph cluster for /.
17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
mdcache_fsal_create_export :FSAL :MAJ :Failed to call create_export on 
underlying FSAL Ceph
17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
fsal_put :FSAL :INFO :FSAL Ceph now unused
17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
fsal_cfg_commit :CONFIG :CRIT :Could not create export for (/) to (/)
17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
build_default_root :CONFIG :DEBUG :Allocating Pseudo root export
17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
pseudofs_create_export :FSAL :DEBUG :Created exp 0x55daf1020d80 - /
17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
build_default_root :CONFIG :INFO :Export 0 (/) successfully created
17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] main 
:NFS STARTUP :WARN :No export entries found in configuration file !!!
17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
config_errs_to_log :CONFIG :CRIT :Config File (/etc/ganesha/ganesha.conf:25): 1 
validation errors in block FSAL
17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
config_errs_to_log :CONFIG :CRIT :Config File (/etc/ganesha/ganesha.conf:25): 
Errors processing block (FSAL)
17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
config_errs_to_log :CONFIG :CRIT :Config File (/etc/ganesha/ganesha.conf:11): 1 
validation errors in block EXPORT
17/07/2017 10:20:49 : epoch 596c7360 : ngw02 : ganesha.nfsd-16430[main] 
config_errs_to_log :CONFIG :CRIT :Config File (/etc/ganesha/ganesha.conf:11): 
Errors processing block (EXPORT)

I have no problems mounting cephfs with the kernel-client on this machine, 
using the same authentication data.


Has anyone gotten this to work, and maybe could give me a hint on what I'm 
doing wrong?



Micha Krause
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com