Detaching iSCSI volumes from target groups

To detach a volume from a target group, use the vstorage-target tg-detach command. LUN 0 must be detached last. For example:

# vstorage-target tg-detach -id 3d8364f5-b830-4211-85af-3a19d30ebac4 \
-volume d5cc3c13-cfb4-4890-a20d-fb80e2a56278

This command detaches the volume with the ID d5cc3c13-cfb4-4890-a20d-fb80e2a56278 from the target group with the ID 3d8364f5-b830-4211-85af-3a19d30ebac4.