On 05/04/16 00:23, Frank Filz wrote: 





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. 




Hi, 

Sorry for the late reply. 

As Frank mentioned in the previous mail, you might need implement above pNFS 
ops. 
Also you need to set pnfs_mds and pnfs_ds flags to true in the export 
structure. 
For FSAL_GLUSTER entire file will be present in the DS (no stripping is 
performed). 
If your FSAL does not store as file but as object please refer FSAL_CEPH (in 
which 
mapping of object to file is performed).If you have any clarification regarding 
FSAL_GLUSTER 
implementation, please reach us out via mail. 

Regards, 
Jiffin 


<blockquote>






- Steve 





On Friday, April 1, 2016 3:14 PM, Frank Filz < [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] >; 
[email protected] ; 
[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] > 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] ; 
[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; 


} 





        



        


This email has been checked for viruses by Avast antivirus software. 
www.avast.com 











        

        


This email has been checked for viruses by Avast antivirus software. 
www.avast.com 










                

This email has been checked for viruses by Avast antivirus software. 
www.avast.com 


------------------------------------------------------------------------------ 


_______________________________________________
Nfs-ganesha-devel mailing list [email protected] 
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel 

</blockquote>


------------------------------------------------------------------------------
_______________________________________________
Nfs-ganesha-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to