From owner-freebsd-stable@freebsd.org Fri Sep 22 05:36:50 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B796EE17494 for ; Fri, 22 Sep 2017 05:36:50 +0000 (UTC) (envelope-from emz@norma.perm.ru) Received: from elf.hq.norma.perm.ru (mail.norma.perm.ru [IPv6:2a00:7540:1::5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.norma.perm.ru", Issuer "Vivat-Trade UNIX Root CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 362B37EC0D for ; Fri, 22 Sep 2017 05:36:49 +0000 (UTC) (envelope-from emz@norma.perm.ru) Received: from webmail.norma.perm.ru (localhost [127.0.0.1]) by elf.hq.norma.perm.ru (8.15.2/8.15.2) with ESMTP id v8M5ajje039227 for ; Fri, 22 Sep 2017 10:36:45 +0500 (YEKT) (envelope-from emz@norma.perm.ru) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=norma.perm.ru; s=key; t=1506058606; bh=hMayBoSkpWkHsHb/FuJ5YI1Aj6JLTT0s1pHUHAsN9hc=; h=Date:From:To:Subject; b=BPjThdTEuBdMvWW7I0iIUJR20dpb/f1NHyXFbdqpSGewEr4lBk7AJhJTs+uy3E1KE 9mt1ZNk1xJOPjzw85n6muU9zpysLkb4KdfaVfhgheFen/G7MwVe6yLSxmF4DRCo8lN DsjA63o4d/pdHhbEZr0PVw5gXUcUjGORnHNK2DYc= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 22 Sep 2017 10:36:45 +0500 From: "Eugene M. Zheganin" To: freebsd-stable@freebsd.org Subject: ctld: only 579 iSCSI targets can be created Message-ID: <04e8820c2c6cc7a95d6ffdf257f00f7d@norman-vivat.ru> X-Sender: emz@norma.perm.ru User-Agent: Roundcube Webmail/0.8.6 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Sep 2017 05:36:50 -0000 Hi, I have old 11-STABLE as an iSCSI server, but out of the blue I encountered weird problem: only 579 targets can be created. I mean, I am fully aware that the out-of-the-box limit is 128 targets, with is enforced by the CTL_MAX_PORTS define, and I've set it to 1024 (and of course rebuilt and installed a new kernel), but when I add more that 579 targets I start to get the protocol errors: Sep 22 10:16:48 san1 ctld[8657]: 10.0.3.127 (iqn.1991-05.com.microsoft:worker296): protocol error: received invalid opcode 0x4 Sep 22 10:16:48 san1 ctld[8658]: 10.0.3.127 (iqn.1991-05.com.microsoft:worker296): protocol error: received invalid opcode 0x46 Sep 22 10:17:31 san1 ctld[8746]: 10.0.3.127 (iqn.1991-05.com.microsoft:worker296): protocol error: received invalid opcode 0x4 Sep 22 10:17:31 san1 ctld[8747]: 10.0.3.127 (iqn.1991-05.com.microsoft:worker296): protocol error: received invalid opcode 0x46 Sep 22 10:19:58 san1 ctld[9190]: 10.0.3.127 (iqn.1991-05.com.microsoft:worker296): protocol error: received invalid opcode 0x4 Sep 22 10:19:58 san1 ctld[9191]: 10.0.3.127 (iqn.1991-05.com.microsoft:worker296): protocol error: received invalid opcode 0x46 Sep 22 10:21:33 san1 ctld[9518]: 10.0.3.127 (iqn.1991-05.com.microsoft:worker296): protocol error: received invalid opcode 0x4 Sep 22 10:21:33 san1 ctld[9519]: 10.0.3.127 (iqn.1991-05.com.microsoft:worker296): protocol error: received invalid opcode 0x46 So, the question is - is it possible to have more than 579 targets and if yes - how can this be achieved ? Right now I'm experimenting with extending luns, not targets. One may think that I am merey greedy, but the thing is, I really have hundreds of initiatorsm and it's just logical to have as many targets as I do. Thanks. Eugene.