System crashes on adding mhvtl tape devices in LIO pscsi
I have been trying to add mhVTL tape devices in LIO pscsi backstore using the script (mhvtl-1.6/scripts/lio_target_passthru.sh) provided in mhvtl-1.6 release but the kernel panics at the step of enabling the LIO backstore pscsi device (crash also happens with older version of mhvtl too).
Above script has the following steps to add mhvtl tapes in LIO pscsi backstore but it makes the system crash at step 5 mentioned below.
# Create backstore ('tape' is just the name here, you can also call
# it something else if you like; the other part of the path is fixed
mkdir -p /sys/kernel/config/target/core/pscsi_0/tape
# Generate a unique WWN
uuidgen > /sys/kernel/config/target/core/pscsi_0/tape/wwn/vpd_unit_serial
# Add the device (IDs taken from your lsscsi output)
echo scsi_host_id=2,scsi_channel_id=0,scsi_target_id=0,scsi_lun_id=0 > /sys/kernel/config/target/core/pscsi_0/tape/control