Giter Club home page Giter Club logo

docker-nfs-ganesha-ceph's Introduction

NFS Ganesha

A user mode nfs server implemented in a container. Supports serving NFS (v3, 4.0, 4.1, 4.1 pNFS, 4.2) and 9P. This container is also configured with the nfs-ganesha Ceph FSAL backend.

Currently generates a config for just serving a local path over nfs. However supplying GANESHA_CONFIGFILE would allow ganesha to be pointed to a bind mounted config file for other FASLs/more advanced configuration.

Versions

  • ganesha: 2.8

Environment Variables

  • GANESHA_LOGFILE: log file location, defaults to /dev/stdout
  • GANESHA_CONFIGFILE: location of ganesha.conf, defaults to /etc/ganesha/ganesha.conf
  • GANESHA_OPTIONS: command line options to pass to ganesha, defaults to -N NIV_EVENT
  • GANESHA_EPOCH: ganesha epoch value
  • GANESHA_EXPORT_ID: ganesha unique export id, defaults to 77
  • GANESHA_EXPORT: export location, defaults to /export
  • GANESHA_PSEUDO_PATH: NFSv4 pseudo-path of the export, defaults to /
  • GANESHA_NFS_PROTOCOLS: nfs protocols to support, defaults to 3,4
  • GANESHA_TRANSPORTS: nfs transports to support, defaults to UDP,TCP
  • GANESHA_BOOTSTRAP_CONFIG: write fresh config file on start, defaults to yes
  • GANESHA_ACCESS: export access acl list, defaults to *
  • GANESHA_ROOT_ACCESS: export root access acl list, defaults to *
  • STARTUP_SCRIPT: location of a shell script to execute on start

Environment Placement in Config File

EXPORT
{
  # Export Id (mandatory, each EXPORT must have a unique Export_Id)
  Export_Id = ${GANESHA_EXPORT_ID};

  # Exported path (mandatory)
  Path = ${GANESHA_EXPORT};

  # Pseudo Path (for NFS v4)
  Pseudo = ${GANESHA_PSEUDO_PATH};

  # Access control options
  Access_Type = RW;
  Squash = No_Root_Squash;

  # NFS protocol options
  SecType = "sys";
  Transports = ${GANESHA_TRANSPORTS};
  Protocols = ${GANESHA_NFS_PROTOCOLS};

  # Exporting FSAL
  FSAL {
    Name = VFS;
  }
}

Usage

docker run -d \
--name nfs \
-v /local/export/path:/export \
ananace/nfs-ganesha-ceph \

Credits

docker-nfs-ganesha-ceph's People

Contributors

ananace avatar mitcdh avatar apnar avatar ricordel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.