Can't hot-add LUN0 from EMC Unity

When mapping storage through to a host, be careful of conflicts from the existing dummy LUN ID 0.

When presenting the first LUN to a Linux host from a new controller (in preparation for migrating from an existing array), LUN ID 0 was automatically assigned. It turns out, the array removes the dummy LUN and assigns the new LUN on the same ID (unless you manually override the automatic assignment). I wasn't in a position to reboot the system (which would have also helped), so I mapped the LUN using a different LUN ID instead.

I was seeing the following error in dmesg:

[7291218.265391] scsi 11:0:5:0: Direct-Access     DGC      LUNZ             4400 PQ: 0 ANSI: 6
[7291218.281081] sd 11:0:5:0: Attached scsi generic sg9 type 0
[7291218.281880] sd 11:0:5:0: [sdi] Read Capacity(16) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[7291218.282348] sd 11:0:5:0: [sdi] Sense Key : Illegal Request [current]
[7291218.282588] sd 11:0:5:0: [sdi] Add. Sense: Logical unit not supported
[7291218.283020] sd 11:0:5:0: [sdi] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[7291218.283488] sd 11:0:5:0: [sdi] Sense Key : Illegal Request [current]
[7291218.283729] sd 11:0:5:0: [sdi] Add. Sense: Logical unit not supported
[7291218.284663] sd 11:0:5:0: [sdi] Test WP failed, assume Write Enabled
[7291218.284962] sd 11:0:5:0: [sdi] Asking for cache data failed
[7291218.285202] sd 11:0:5:0: [sdi] Assuming drive cache: write through
[7291218.286327] sd 11:0:5:0: [sdi] Read Capacity(16) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[7291218.286792] sd 11:0:5:0: [sdi] Sense Key : Illegal Request [current]
[7291218.287035] sd 11:0:5:0: [sdi] Add. Sense: Logical unit not supported
[7291218.288018] sd 11:0:5:0: [sdi] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[7291218.288482] sd 11:0:5:0: [sdi] Sense Key : Illegal Request [current]
[7291218.288728] sd 11:0:5:0: [sdi] Add. Sense: Logical unit not supported
[7291218.290388] sd 11:0:5:0: [sdi] Attached SCSI disk
[7293153.012375]  rport-12:0-5: blocked FC remote port time out: removing target and saving binding
[7293153.012845]  rport-11:0-4: blocked FC remote port time out: removing target and saving binding