Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Chennai Docker Meetup 2017

Chennai Docker Meetup 2017

Persistent Storage for Containers using OpenEBS containerized storage for containers

Rahulkrishnan R A

June 03, 2017
Tweet

More Decks by Rahulkrishnan R A

Other Decks in Technology

Transcript

  1. iSCSI RPC RPC Jiva BackEnd Container Jiva FrontEnd Node Node

    Node Jiva BackEnd Container bitbucket UseCase of OpenEBS Jiva
  2. How to get Jiva Image ? Use “docker search openebs/jiva”

    $ docker search openebs/jiva NAME DESCRIPTION STARS openebs/jiva OpenEBS is purpose built storage for conta... 3 openebs/jiva-ci jiva images generated by Travis CI 0
  3. Pull the jiva Image ? $ docker pull openebs/jiva Using

    default tag: latest latest: Pulling from openebs/jiva Digest: sha256:71c59687b59e6dc7b454817c94fd4a9069e01f7b1780c7257931edacd7dff2c Status: Image is up to date for openebs/jiva:latest
  4. Jiva Front End Container $docker run -d --network="host" -P --expose

    3260 --expose 9501 \ openebs/jiva launch controller \ --frontend gotgt --frontendIP 172.31.28.114 vol1 10G
  5. Jiva Backend Container Creation $ docker run -d --network="host" -P

    --expose 9502-9504 \ --expose 9700-9800 -v /mnt/store1:/store1 \ openebs/jiva launch replica --frontendIP 172.31.28.114 \ --listen 172.31.45.197:9502 --size 10G /store1 $ mkdir /mnt/store1
  6. 3260 - iscsi target listener at the frontend 9501 -

    frontend is listening for management commands. 9502 - backends are listening for management commands. 9503 - backends are listening for a connection from frontend for data transfer. 9504 - backends are listening for data sync initiation with other backends when the backend comes up. 9700-9800 - sync threads while syncing data Ports used by Jiva frontend and backend
  7. curl http://<frontend IP>:9501/v1/replicas Check the health of jiva Monitor data

    is synced in all backend ? curl http://<Replica IP>:9502/v1/stats
  8. iSCSI Initiator Install $sudo apt install open-iscsi $iscsiadm -m discovery

    -t st -p 192.168.0.10 Check for the target $iscsiadm -m node -T \ "iqn.2016-09.com.openebs.jiva:vol" \ -p "172.31.28.114:3260" --login Login to the iSCSI target iSCSI Initiator Setp
  9. Attach volume to the Bitbucket container $docker run -d -v

    /bitbucket:/var/atlassian/application-data/bitbucket \ -p 7990:7990 -p 7999:7999 \ atlassian/bitbucket-server