System crashes on adding mhvtl tape devices in LIO pscsi

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

System crashes on adding mhvtl tape devices in LIO pscsi

ankur.mathur
Hi,

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.

Step 1:
# 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
# though)
mkdir -p /sys/kernel/config/target/core/pscsi_0/tape

Step 2:
# Generate a unique WWN
uuidgen > /sys/kernel/config/target/core/pscsi_0/tape/wwn/vpd_unit_serial

Step 3:
# 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

Step 4:
echo /dev/nst0 > /sys/kernel/config/target/core/pscsi_0/tape/udev_path

Step 5: (******crash comes here*****)
# Enable the backstore
echo 1 > /sys/kernel/config/target/core/pscsi_0/tape/enable


OS details :
RHEL 7.5 3.10.0-862.el7.x86_64 #1 SMP Wed Mar 21 18:14:51 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux

targetcli details:
Name        : targetcli
Version     : 2.1.fb46
Release     : 1.el7

Reply | Threaded
Open this post in threaded view
|

Re: System crashes on adding mhvtl tape devices in LIO pscsi

Mark Harvey
Administrator
Can you define “crash” ?

Is it a segfault of the vtltape daemon or a kernel oops/panic ?
Regards from Australia
Mark Harvey
Reply | Threaded
Open this post in threaded view
|

Re: System crashes on adding mhvtl tape devices in LIO pscsi

ankur.mathur
Hi Mark,

I think it's a kernel panic and even I am not sure if this panic is coming from the LIO or from mhvtl.
vmcore-dmesg.txt

I have also attached the crash dump dmesg file. Please have a look when you get time.

Thank You.