Description of problem: Currently the targets presented to the initiator as 1IET10001000. If I set up two hosts serving targets, and connect from the same initiator host, I get two identical WWNs, which creates confusion and renders the second host's tagets unusable for LVM setups. Version-Release number of selected component (if applicable): scsi-target-utils-0.0-6.20091205snap.el5_5.2 How reproducible: always Steps to Reproduce: 1.install two rhel 5.5 hosts with scsi-target utils 2.create a target on both 3.connect to both from the same initiator host Actual results: multipath -ll shows: 1IET_00010001 dm-1 RHEV GSS,VIRTUAL-DISK [size=100G][features=0][hwhandler=0][rw] \_ round-robin 0 [prio=0][active] \_ 2:0:0:1 sdb 8:16 [active][ready] Trying to use the second target with pvcreate returns Can't initialize physical volume "/dev/mpath/1IET_00010001" of volume group "5a6800e6-5985-4db7-add1-db4cf7bc037a" without -ff Expected results: WWN line to be configurable, or concatenated with a unique string to avoid confusion Additional info:
Sorry, I did not see this until today. You can do this by setting the scsi_sn or scsi_id params. Example in targets.conf <target iqn.2008-09.com.example:server.target5> <backing-store /dev/sdb1> scsi_sn somevalue scsi_id someothervalue