Giter VIP home page Giter VIP logo

cifs-csi's Introduction

Build Status Go Report Card

CSI driver for CIFS

Container Storage Interface (CSI) driver, provisioner, and attacher for CIFS (SMB, Samba, Windows Share) network filesystems.

Supported matrix

Client Target Status
Linux Linux(Samba) WIP
Linux Windows -
Windows Linux(Samba) -
Windows Windows -

Test

NOTE: First, you must change your samba server to accept net rpc {add,delete}. Please refer to example steps

Get csc tool from https://github.com/rexray/gocsi/tree/master/csc

Get plugin info

$ csc identity plugin-info --endpoint tcp://127.0.0.1:10000
"csi-cifsplugin"	"0.3.0"

Create a volume

$ export X_CSI_SECRETS=admin_name="YOUR CIFS ADMIN USER",admin_password="YOUR CIFS ADMIN PASSWORD"

$ csc controller --endpoint tcp://127.0.0.1:10000 create-volume \
                 --params server=$CIFS_SERVER --params path="/tmp" \
                 testvol
csi-cifs-9bd0415d-c226-11e8-8086-54e1ad486e52

NodePublish a volume

$ export CIFS_SERVER="Your Server IP (Ex: 10.10.10.10)"
$ csc node publish --endpoint tcp://127.0.0.1:10000 \
                 --target-path /mnt/cifs \
                 --attrib server=192.168.121.127  csi-cifs-9bd0415d-c226-11e8-8086-54e1ad486e52
csi-cifs-9bd0415d-c226-11e8-8086-54e1ad486e52

NodeUnpublish a volume

$ csc node unpublish --endpoint tcp://127.0.0.1:10000 \
                    --target-path /mnt/cifs \
                    csi-cifs-9bd0415d-c226-11e8-8086-54e1ad486e52 
cifstestvol

Delete a volume

$ export X_CSI_SECRETS=admin_name="YOUR CIFS ADMIN USER",admin_password="YOUR CIFS ADMIN PASSWORD"

$ csc controller --endpoint tcp://127.0.0.1:10000 delete-volume csi-cifs-9bd0415d-c226-11e8-8086-54e1ad486e52

Get NodeID

$ csc node get-id --endpoint tcp://127.0.0.1:10000
CSINode

cifs-csi's People

Contributors

nak3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

happysky2046

cifs-csi's Issues

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.