Changing LUN view details

To change LUN views for an initiator, use the vstorage-target view-set command. For example:

# vstorage-target view-set -luns 1 -tg ee764519-80e3-406e-b637-8d63712badf1 \
-wwn iqn.1994-05.com.redhat:1535946874d

This command allows the initiator with the IQN iqn.1994-05.com.redhat:1535946874d to access only LUN 1. Essentially, it deletes all LUN views for it excluding specified.