On Thu, Mar 24, 2022 at 02:47:11AM -0700, Chandrakanth patil wrote: > The megaraid_sas driver supports single LUN, that is LUN 0. And all other > LUNs are unsupported. > When a device scan on logical target with invalid lun is invoked through > sysfs that target itself is getting removed from the OS. So added a LUN > ID validation in the slave destroy to avoid the target deletion. Please set the max_lun member ins the host template isntead of papering over this in the driver.