Note: This has been tested with Flocker 1.6.1.
- A physical or virtual clustered Data ONTAP system
- A storage virtual machine (SVM) using iSCSI
- A Linux machine running Flocker
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
- Start the multi-pathing daemon:
sudo mpathconf --enable --with_multipathd y
- Ensure that iscsid, and multipathd are enabled and running:
sudo systemctl enable iscsid multipathd
sudo systemctl start iscsid multipathd
- Discover the iSCSI targets:
sudo iscsiadm -m discoverydb -t st -p <DATA_LIF_IP> --discover
- Login to the discovered iSCSI targets:
sudo iscsiadm -m node -p <DATA_LIF_IP> --login
- Start and enable iscsi:
sudo systemctl enable iscsi
sudo systemctl start iscsi
- Install the NetApp clustered Data ONTAP plugin:
sudo /opt/flocker/bin/pip install git+https://github.com/NetApp/netapp-flocker-driver.git
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.