I haven’t actually done much with the pNFS portion of Ganesha, however I can try and point you in the right direction…
You will need to implement the following FSAL methods for sure: layoutget layoutreturn layoutcommit getdeviceinfo fs_ds_addr_size fsal_pnfs_ds (assuming Ganesha will be your ds) fsal_pnfs_ds_ops (assuming Ganesha will be your ds) getdevicelist fs_layouttypes fs_layout_blocksize (if you support block layouts) the various fsal_pnfs_fs_ops (assuming Ganesha will be your ds) the various fsal_dsh_ops (assuming Ganesha will be your ds) Frank From: steve landiss [mailto:[email protected]] Sent: Friday, April 1, 2016 5:52 PM To: Frank Filz <[email protected]>; [email protected]; [email protected] Subject: Re: [Nfs-ganesha-devel] Unable to export any path with the VFS FSAL Makes sense. Frank, I have a basic FSAL backend working, but what would be the easiest way to have my FSAL implementation enable PNFS? That is, I want the client to ask me which machine my file lives on. Looking at the gluster code for a few hours now and it's not entirely obvious to me as to how to enable my FSAL to allow for this operation. - Steve On Friday, April 1, 2016 3:14 PM, Frank Filz <[email protected] <mailto:[email protected]> > wrote: Ganesha was updated to use compiled in location to find FSAL modules. Master is Ganesha V2.3 and config has changed somewhat over time. Unfortunately documentation has not kept up with the code… Frank From: steve landiss [mailto:[email protected]] Sent: Friday, April 1, 2016 1:45 PM To: Frank Filz <[email protected] <mailto:[email protected]> >; [email protected] <mailto:[email protected]> ; [email protected] <mailto:[email protected]> Subject: Re: [Nfs-ganesha-devel] Unable to export any path with the VFS FSAL This is the latest code (master clone). Turns out that it only looks for the shared objects under /usr/lib64/ganesha even though I specify the FSAL_Shared_Library. Am I doing something wrong? Thanks Steve On Friday, April 1, 2016 1:16 PM, Frank Filz <[email protected] <mailto:[email protected]> > wrote: What version of Ganesha are you using? From: steve landiss [mailto:[email protected]] Sent: Friday, April 1, 2016 12:14 PM To: [email protected] <mailto:[email protected]> ; [email protected] <mailto:[email protected]> Subject: [Nfs-ganesha-devel] Unable to export any path with the VFS FSAL Hi, I am unable to export any path with my VFS config. Attached below is the config I am using. When I start nfs-ganesha, nothing shows up when ai do a showmount -e localhost. Any help is appreciated Thanks Steve FSAL { VFS { FSAL_Shared_Library = "/src/nfs-ganesha-2.2.0-0.1.1-Source/build/FSAL/FSAL_VFS/vfs/libfsalvfs.so"; } } EXPORT_DEFAULTS { Access_Type = RW; Protocols = 3,4; Transports = TCP; SecType = sys; Squash = none; } EXPORT { # Export Id (mandatory, each EXPORT must have a unique Export_Id) Export_Id = 77; # Exported path (mandatory) Path = "/mnt"; # Pseudo Path (required for NFS v4) Pseudo = "/mnt"; # Required for access (default is None) # Could use CLIENT blocks instead Access_Type = RW; Squash = No_root_squash; Disable_ACL = TRUE; Protocols = "3,4"; Transports = "UDP,TCP"; SecType = "sys"; # Exporting FSAL FSAL { Name = VFS; volume = "/mnt"; } } NFS_Core_Param { Nb_Worker = 32; } _____ <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> This email has been checked for viruses by Avast antivirus software. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> _____ <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> This email has been checked for viruses by Avast antivirus software. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
------------------------------------------------------------------------------
_______________________________________________ Nfs-ganesha-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel
