Adding and removing target portals
To add a portal to a target, use the vstorage-target target-portal add
command. For example:
# vstorage-target target-portal add -wwn iqn.2013-10.com.vstorage:test2 \ -addr 10.94.104.90 -tg 3d8364f5-b830-4211-85af-3a19d30ebac4
This command adds a portal with the IP address 10.94.104.90 and default port 3260 to the target with the IQN iqn.2013-10.com.vstorage:test2
in the target group with the ID 3d8364f5-b830-4211-85af-3a19d30ebac4
.
To delete a portal from a target, use the vstorage-target target-portal del
command. For example:
# vstorage-target target-portal del -wwn iqn.2013-10.com.vstorage:test2 \ -addr 10.94.104.90 -tg 3d8364f5-b830-4211-85af-3a19d30ebac4
This command deletes the portal created before.