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 Hybrid Server 7
From a Virtuozzo Storage cluster based on Virtuozzo 6 to a Virtuozzo Storage cluster with GUI management based on Virtuozzo Hybrid Server 7
From a Virtuozzo Storage cluster with CLI management based on Virtuozzo Hybrid Server 7 to a Virtuozzo Storage cluster with GUI management based on Virtuozzo Hybrid Server 7
To move your iSCSI targets from one cluster to another, do the following:
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 Hybrid Server 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
Configure the Virtuozzo Storage cluster where iSCSI targets will be moved:
For a cluster with CLI management, follow the instructions given in Preparing to Work with iSCSI Targets.
For a cluster with GUI management, assign the network role iSCSI to the node’s network interface in the Virtuozzo Storage management panel (see Configuring Node Network Interfaces).
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 Hybrid Server 7,
/vstorage/<cluster_name>/iscsi/
,in Virtuozzo Storage with GUI management based on Virtuozzo Hybrid Server 7,
/mnt/vstorage/vols/iscsi/
.
Register and start the copied iSCSI targets on the upgraded Virtuozzo Hybrid Server 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