5. Moving iSCSI Targets between Virtuozzo Storage Clusters

You can move iSCSI targets between your Virtuozzo Storage clusters as follows:

  • from a Virtuozzo Storage cluster based on Virtuozzo 6 to a Virtuozzo Storage cluster with CLI management based on Virtuozzo 7,
  • from a Virtuozzo Storage cluster based on Virtuozzo 6 to a Virtuozzo Storage cluster with GUI management based on Virtuozzo 7,
  • from a Virtuozzo Storage cluster with CLI management based on Virtuozzo 7 to a Virtuozzo Storage cluster with GUI management based on Virtuozzo 7.

To move your iSCSI targets from one cluster to another, do the following:

  1. Stop iSCSI targets if they are running and unregister them from the server. For example:

    • on a Virtuozzo 6 server, for the iSCSI target iqn.2014-04.com.pstorage:test1, run:

      # pstorage-iscsi stop -t iqn.2014-04.com.pstorage:test1
      # pstorage-iscsi unregister -t iqn.2014-04.com.pstorage:test1
      
    • on a Virtuozzo 7 server, for the iSCSI target iqn.2014-04.com.vstorage:test1, run:

      # vstorage-iscsi stop -t iqn.2014-04.com.vstorage:test1
      # vstorage-iscsi unregister -t iqn.2014-04.com.vstorage:test1
      
  2. Configure the Virtuozzo Storage cluster where iSCSI targets will be moved:

  3. Copy the directory containing iSCSI targets from the the old Virtuozzo Storage cluster to the new cluster. The default locations of iSCSI targets are:

    • in Virtuozzo Storage based on Virtuozzo 6, /pstorage/<cluster_name>/iscsi/,
    • in Virtuozzo Storage with CLI management based on Virtuozzo 7, /vstorage/<cluster_name>/iscsi/,
    • in Virtuozzo Storage with GUI management based on Virtuozzo 7, /mnt/vstorage/vols/iscsi/.
  4. Register and start the copied iSCSI targets on the upgraded Virtuozzo 7 server. For example, for the iSCSI target iqn.2014-04.com.vstorage:test1, run:

    # vstorage-iscsi register -t iqn.2014-04.com.vstorage:test1
    # vstorage-iscsi start -t iqn.2014-04.com.vstorage:test1