How to Create a Volume in NFS-Ganesha using Heketi

Solution Verified - Updated -

Environment

  • Red hat Gluster Storage 3.3, 3.4
  • NFS-Ganesha

Issue

  • What are the steps to create or remove an Heketi provisioned volume, exported by NFS-Ganesha?

Resolution

IMPORTANT: Please, be aware that NFS-Gahesna exported Gluster volumes are not supported in Openshift Container Storage. The instructions provided in this page are only for on-premise installations.

Follow these steps to create a NFS Ganesha volume using heketi

  • Create the volume using heketi-cli

    # heketi-cli volume create [options] volname
    
  • Enable nfs-ganesha option to share the volume

    # gluster vol set volname nfs-ganesha.enable on
    
  • Check the result using showmount

    # showmount -e
    

These are the steps to delete a NFS Ganesha volume with heketi

  • Disable the option nfs-ganesha

    # gluster vol set volname nfs-ganesha.enable off
    
  • Check the result executing

    # showmount -e
    
  • Delete the volume using heketi-cli

    # heketi-cli volume delete volname
    

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments