Skip to content

Stephenitis/netapp-flocker-driver

 
 

Repository files navigation

NetApp clustered Data ONTAP Backend Plugin for ClusterHQ/Flocker

Note: This has been tested with Flocker 1.6.1.

Pre-requisites

  • A physical or virtual clustered Data ONTAP system
  • A storage virtual machine (SVM) using iSCSI
  • A Linux machine running Flocker

Installation

  1. Install the following system packages on your system:

    • RHEL / CentOS
      • lsscsi
      • iscsi-initiator-utils
      • sg3_utils
      • device-mapper-multipath
      • python-devel - needed for lxml
      • libxml2-devel - needed for lxml
      • libxslt-devel - needed for lxml
sudo yum install -y lsscsi iscsi-initiator-utils sg3_utils device-mapper-multipath python-devel libxml2-devel libxslt-devel
  1. Start the multi-pathing daemon:
sudo mpathconf --enable --with_multipathd y
  1. Ensure that iscsid, and multipathd are enabled and running:
sudo systemctl enable iscsid multipathd
sudo systemctl start iscsid multipathd
  1. Discover the iSCSI targets:
sudo iscsiadm -m discoverydb -t st -p <DATA_LIF_IP> --discover
  1. Login to the discovered iSCSI targets:
sudo iscsiadm -m node -p <DATA_LIF_IP> --login
  1. Start and enable `iscsi`:
sudo systemctl enable iscsi
sudo systemctl start iscsi
  1. Install the NetApp clustered Data ONTAP plugin:
sudo /opt/flocker/bin/pip install git+https://github.com/NetApp/netapp-flocker-driver.git

Usage

Modify the Flocker agent configuration file at /etc/flocker/agent.yml and add the following backend:

dataset:
  backend: "netapp_flocker_driver"
  username: <USERNAME>
  password: <PASSWORD>
  hostname: <HOSTNAME>
  vserver: <VSERVER>
  poolname: <POOLNAME>

Replace the following values:

  • <USERNAME> = Your username
  • <PASSWORD> = Your password
  • <HOSTNAME> = The cluster IP
  • <VSERVER> = The Storage Virtual Machine (SVM)
  • <POOLNAME> = The volume where LUNs will be created

Restart the flocker-dataset-agent to pick up your changes.

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%