targetcli - unable to create FC target due to module qla2xxx

Bug #1390158 reported by oliver8888
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
targetcli (Ubuntu)
New
Undecided
Unassigned

Bug Description

#Hello,

#I am not qualified to authoritatively state where the optimal place for options qla2xxx qlini_mode="disabled" should be---but documentation indicates it should be placed into /etc/modprobe.d/qla2xxx.conf and when placed into here, it appears a modprobe qla2xxx is being run somewhere within the startup of targetcli and this appears to take precedent to options within /etc/modprobe.d/qla2xxx.conf

#my setup:
#clean install of ubuntu server 14.04 LTS 64-bit

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
#
#Hardware Qlogic QLA2564

#I've followed guidance from wiki:
#http://www.linux-iscsi.org/wiki/Fibre_Channel
echo 'options qla2xxx qlini_mode="disabled"' > /etc/modprobe.d/qla2xxx.conf

#reboot
targetcli
/qla2xxx create WWWN
#Creation of target fails, a lot of unnecessary error output.

# validate qla2xxx module is in target mode....
cat /sys/module/qla2xxx/parameters/qlini_mode
enabled
#This should read: disabled

service target stop
rmmod qla2xxx
modprobe options qla2xxx qlini_mode="disabled"
cat /sys/module/qla2xxx/parameters/qlini_mode
disabled

service target start
/qla2xxx create WWWN
# success

shutdown -r now
cat /sys/module/qla2xxx/parameters/qlini_mode
enabled
# qla2xxx modules are again no longer in target mode for targetcli....

# workaround --such that options qla2xxx qlini_mode="disabled" is in place upon reboot:
# Disclaimer: this is probably not the proper place for it----but if if i edited /etc/target/qla2xxx_start.sh such that first line includes options qla2xxx qlini_mode="disabled" and i reboot, i can create targets with targetcli as intended

Revision history for this message
Gio (giogranda85) wrote :

You simply forgot to do mkinitramfs after creating qla2xxx.conf with the updated driver parameters

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.