Adding nodes to target groups
To add a node to a target group, create a configuration file with details about target WWN and portal. The target will be created automatically on the added node. One node can be added to multiple target groups, and the same network interfaces on it can be used simultaneously by multiple targets from different groups.
For example:
# vstorage-target node-add -node bbfd0e7a26b1406d \ -tg 3d8364f5-b830-4211-85af-3a19d30ebac4 -targets target.json
This command adds the node with the ID bbfd0e7a26b1406d
to the target group with the ID 3d8364f5-b830-4211-85af-3a19d30ebac4
. It also creates a target on it according to the target.json configuration file that looks as follows:
[ { "NodeId": "bbfd0e7a26b1406d", "WWN": "iqn.2013-10.com.vstorage:test2", "Portals": [ { "Addr": "10.94.104.89", "Port": 3260 } ] } ]