Hot-add Hot-remove: linux scsi subsystem

We've got erroneous scsi entry, remove it:
for n in `seq 0 0`; do echo $n; echo "scsi remove-single-device 1 0 0 $n" > /proc/scsi/scsi ; echo "scsi remove-single-device 0 0 0 $n" > /proc/scsi/scsi ; done
Now, we attached new FC LUN as 0:0:0:0 and 1:0:0:0
for n in `seq 0 0`; do echo $n; echo "scsi add-single-device 1 0 0 $n" > /proc/scsi/scsi ; echo "scsi add-single-device 0 0 0 $n" > /proc/scsi/scsi ; done
now, multipath -ll will show you, that multipath deteceted deviced with extra path to it, and created new device for it:
360060160e0b11c00d846a76e4be6dd11dm-12 DGC,VRAID
[size=140G][features=1 queue_if_no_path][hwhandler=1 emc]
\_ round-robin 0 [prio=1][active]
 \_ 1:0:0:0 sda 8:0   [active][ready]
 \_ round-robin 0 [prio=0][enabled]
  \_ 0:0:0:0 sde 8:64  [active][ready]

| Hot-add Hot-remove: linux scsi subsystem | | 2009.01.19-18:22.00

 Extreme fear can neither fight nor fly. -- William Shakespeare, "The Rape of Lucrece"