[Bug 575240] Re: iscsid does not start automatically having iscsi root

Jonathan McCune jonmccune at gmail.com
Thu Jul 12 14:15:01 UTC 2012


Okay, I have success building the open-iscsi userspace from source.

$ git clone git://github.com/mikechristie/open-iscsi.git
# HEAD is at commit dd73b7d12b6bc5f4f4d08c2ac7dcfc5f00f6fd29
$ cd open-iscsi
$ make
$ make install
$ update-initramfs -c -k all
# manually copy /boot/init* to the appropriate iscsi target via scp to the fileserver itself

Now, after booting, 'ps -ef | grep iscsi' shows two instances of iscsid
running. 'iscsiadm -m session -P 1' returns the expected output, and I
can mount my /boot just fine.

I have not tried backing out Mark's "initramfs patch to roll in iscsid".

One strange thing is that my client (ahem.. initiator) connected to all
of the available targets on the iscsi server, not just the one of
interest to me.  So far no harm done, so I may not spend the time to
track it down.

Thanks Mark, for the tips.

Regards,
-Jon

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

Title:
  iscsid does not start automatically having iscsi root

Status in “open-iscsi” package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: open-iscsi

  Affected package: open-iscsi

     # apt-cache policy open-iscsi
     open-iscsi:
       Installed: 2.0.871-0ubuntu4
       Candidate: 2.0.871-0ubuntu4
       Version table:
      *** 2.0.871-0ubuntu4 0
             500 http://es.archive.ubuntu.com/ubuntu/ lucid/main Packages
             100 /var/lib/dpkg/status

  Fresh install of Ubuntu Server 10.04 (official release, no RC).
  root filesystem in iSCSI.
  /boot in a separate filesystem.
  swap in a dedicated partition (in iSCSI as well).

  Tested on both real and virtual machines.

  Boot process seems to be OK.
  root filesystem is correctly mounted.
  "iscsiadm -m session" shows connection to the target:

     # iscsiadm -m session
     tcp: [1] 192.168.21.128:3260,2 iqn.1986-03.com.sun:02:55ea9bbb-38e6-4161-ae96-80b1b0aa08fa

  But increasing debug level, we can see we are getting an 111 error
  when contacting iscsid (111 = connection refused):

     # iscsiadm -m session -P1
     Target: iqn.1986-03.com.sun:02:55ea9bbb-38e6-4161-ae96-80b1b0aa08fa
             Current Portal: 192.168.21.128:3260,2
             Persistent Portal: 192.168.21.128:3260,2
                     **********
                     Interface:
                     **********
                     Iface Name: default
                     Iface Transport: tcp
                     Iface Initiatorname: iqn.1993-08.org.debian:01:e0f7a4361e16
                     Iface IPaddress: 192.168.21.38
                     Iface HWaddress: <empty>
                     Iface Netdev: <empty>
                     SID: 1
     iscsiadm: can not connect to iSCSI daemon (111)!
                     iSCSI Connection State: Unknown
                     iSCSI Session State: LOGGED_IN
                     Internal iscsid Session State: Unknown

  The problem is that iscsid is not running:

     # /etc/init.d/open-iscsi status
      * iscsid is not running

     # ps -efa | grep -i iscsi
     root       232     2  0 17:15 ?        00:00:00 [iscsi_eh]
     root       238     2  0 17:15 ?        00:00:00 [iscsi_q_2]
     root       851   782  0 17:32 pts/0    00:00:00 grep --color=auto -i iscsi

  open-iscsi SysV init scripts are installed (according to
  /var/lib/dpkg/info/open-iscsi.postinst):

     # find /etc/rc*.d -iname "*iscsi*"
     /etc/rc0.d/S41open-iscsi
     /etc/rc1.d/S41open-iscsi
     /etc/rc6.d/S41open-iscsi
     /etc/rcS.d/S25open-iscsi

  iscsid must be running in order to handle connection errors to the
  iSCSI target, among many other things.

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: open-iscsi 2.0.871-0ubuntu4
  ProcVersionSignature: Ubuntu 2.6.32-21.32-server 2.6.32.11+drm33.2
  Uname: Linux 2.6.32-21-server x86_64
  Architecture: amd64
  Date: Tue May  4 17:16:25 2010
  InstallationMedia: Ubuntu-Server 10.04 LTS "Lucid Lynx" - Release amd64 (20100427)
  ProcEnviron:
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: open-iscsi

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/575240/+subscriptions




More information about the foundations-bugs mailing list