Adding or Removing a LUN

You cannot add or remove a virtual LUN directly from a virtual SCSI HBA. You must first add or remove a physical LUN and then run the ldm rescan-vhba command to synchronize the set of SCSI devices that are seen by the virtual SCSI HBA and virtual SAN. The commands to add or remove a physical LUN are specific to the topology of the virtual SAN's associated initiator port. For example, if the initiator port communicates with a physical SAN, you must use SAN administration commands to add a LUN to or remove a LUN from a SAN element.

ldm rescan-vhba vHBA-name domain-name

For example, the following command synchronizes the SCSI devices for the port0_vhba virtual SCSI HBA on the gdom domain:

primary# ldm rescan-vhba port0_vhba gdom