Public bug reported:

#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

** Affects: targetcli (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1390158

Title:
  targetcli - unable to create FC target due to module qla2xxx

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/targetcli/+bug/1390158/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to