Multiple Instances of nDVPΒΆ

Multiple instances of nDVP are needed when you desire to have multiple storage configurations available simultaneously. The key to multiple instances is to give them different names using the --alias option with the containerized plugin, or --volume-driver option when instantiating the nDVP driver on the host.

Docker Managed Plugin (Docker >= 1.13 / 17.03)

  1. Launch the first instance specifying an alias and configuration file

    docker plugin install --grant-all-permissions --alias silver netapp/ndvp-plugin:17.07 config=silver.json
    
  2. Launch the second instance, specifying a different alias and configuration file

    docker plugin install --grant-all-permissions --alias gold netapp/ndvp-plugin:17.07 config=gold.json
    
  3. Create volumes specifying the alias as the driver name

    # gold volume
    docker volume create -d gold --name ntapGold
    
    # silver volume
    docker volume create -d silver --name ntapSilver
    

Traditional (Docker <=1.12)

  1. Launch the plugin with an NFS configuration using a custom driver ID:

    sudo netappdvp --volume-driver=netapp-nas --config=/path/to/config-nfs.json
    
  2. Launch the plugin with an iSCSI configuration using a custom driver ID:

    sudo netappdvp --volume-driver=netapp-san --config=/path/to/config-iscsi.json
    
  3. Provision Docker volumes each driver instance:

    • NFS

      docker volume create -d netapp-nas --name my_nfs_vol
      
    • iSCSI

      docker volume create -d netapp-san --name my_iscsi_vol