From owner-freebsd-questions@FreeBSD.ORG Fri Nov 21 03:15:36 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 603F81BA; Fri, 21 Nov 2014 03:15:36 +0000 (UTC) Received: from m59-178.qiye.163.com (m59-178.qiye.163.com [123.58.178.59]) by mx1.freebsd.org (Postfix) with ESMTP id 150A99A8; Fri, 21 Nov 2014 03:15:32 +0000 (UTC) Received: from [192.168.2.131] (unknown [218.76.35.77]) by m59-178.qiye.163.com (HMail) with ESMTPSA id C6D391480CA5; Fri, 21 Nov 2014 11:06:29 +0800 (CST) Message-ID: <546EAC35.2070603@bjhit.com> Date: Fri, 21 Nov 2014 11:06:29 +0800 From: =?UTF-8?B?5YWo5a6P5bmz?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org Subject: how to use ctld export iscsi lun for Xenserver 6.2? X-HM-Spam-Status: e1koWUFPN1dZCBgUCR5ZQUlLVUJLQkJCQkNPTE9KSUpKV1kJDhceCFlBWS grPSQoND0vPToyNyQyNSQzPjo*PilBS1VLQDYjJCI#KCQyNSQzPjo*PilBS1VLQCsvKSQ1NCQyNS QzPjo*PilBSVVLQD8iNTo2MjgkMiskNTQkMjUkMz46Pz4pQUtVS0A2LjcvMiQpOCsvJCgyNjI3Oi kkMjUkMz46Pz4pQU5VS0AyKyROJDYyNS4vPiQ4NS8kSyRKS0FLVUtAMiskSiQ2MjUuLz4kODUvJE skSktBS1VLQDIrJC80PzoiJDg1LyRLJEpLS0FLVUtAMiskSiQzNC4pJDg1LyRLJEpLS0FLVUtAMi skSEskNjI1Li8#JDg1LyRLJE5LQUtVS0A1NC8kPTo2NC4oJD80NjoyNSQoKz0kPToyN0FKS1VLQD 01JDY6IiRPSkIkMzcxJEokS0NLSEtPQUtVSEhAKC45JD5BSlVOTkA9NSQoLjkkPjUsNCk*KCQzNz EkSktLSUtKQUtVSUNAPTUkPSk#PiQzNzEkS0xLTktPQUpVTE5ZBg++ X-HM-Sender-Digest: e1kSHx4VD1lBWUc6OQg6HDo*Kjo5LC0qAQoaQhM8ExxPFC1VSlVKT0pN TkhCSkJKSU5IVTMWGhIXVQoOGhUkEwsSFRw7GRETEg9VGBQWRVlXWQweGVlBHRoXCB5XWQgBWUFJ S0lPQ003V1kSC1lBWUlKQ1VMTVVITlVMTFkG X-HM-Tid: 0a49d050b272649fc6d391480ca5 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2014 03:15:36 -0000 Hi,everybody! I'm new to freebsd,I'm first use maillist.I'm Chinese,so English is not my mother language. Recently I know Freebsd native support ISCSI by ctld.I use samsung 840 evo SSD disk for ISCSI lun. *My partition schema is GPT,like below:* root@freebsd10ssd:~ # gpart show ada0 => 34 1953525101 ada0 GPT (932G) 34 128 1 freebsd-boot (64K) 162 209715072 2 freebsd-ufs (100G) 209715234 104857600 3 freebsd-ufs (50G) 314572834 6 - free - (3.0K) 314572840 524288000 4 freebsd-ufs (250G) 838860840 419430400 5 freebsd-zfs (200G) 1258291240 695233888 6 freebsd-ufs (332G) 1953525128 7 - free - (3.5K) *My ctl.conf file like this:* root@freebsd10ssd:~ # cat /etc/ctl.conf #auth-group ag0 { # chap username1 secretsecret # chap username2 anothersecret #} portal-group san { discovery-auth-group no-authentication listen 172.19.22.12 } target iqn.2014-11.local.heetian:target0 { auth-group no-authentication # auth-group ag0 portal-group san lun 0 { path /dev/ada0p6 blocksize 4K # size 100G } } From Xencenter add new-sr "Software iSCSI" sucessful. When I test create virtual disk,error displaying: From Xenserver console,use lvs command I find the vhd created. *SOS,My question is how to use ctld export iscsi lun for Xenserver?* PS:I use Ubuntu 1404+LIO SCSI target as SAN,the Xenserver can create vhd file file. Below are Xenserver log /var/log/messages. Nov 21 09:41:25 xs15-13 xapi: [ info|xs15-13|3366|Async.SR.create R:46f2a30b95d2|storage_access] SR 9386f78a-505d-ecba-f1f0-ecf6825af7f0 will be implemented by /services/SM/lvmoiscsi in VM OpaqueRef:4d9efad7-2f79-a40b-0493-3320dcadc656 Nov 21 09:41:26 xs15-13 kernel: [70794.299478] scsi8 : iSCSI Initiator over TCP/IP Nov 21 09:41:27 xs15-13 iscsid: connection3:0 is operational now Nov 21 09:41:32 xs15-13 xapi: [error|xs15-13|3366|Async.SR.create R:46f2a30b95d2|storage_access] Re-raising as SR_BACKEND_FAILURE_107 [ ; The SCSIid parameter is missing or incorrect; LIO-ORG 45f8b1af-dba3-4730-aedb-76ff8b60c407 0 85899345920 3600140545f8b1afdba34730aedb76ff8 ] Nov 21 09:41:49 xs15-13 kernel: [70817.669446] scsi9 : iSCSI Initiator over TCP/IP Nov 21 09:41:50 xs15-13 iscsid: connection4:0 is operational now Nov 21 09:42:12 xs15-13 xapi: [ info|xs15-13|3181 INET 0.0.0.0:80|SR.create R:90cd22c16884|storage_access] SR 7fdb950b-7572-038d-9a75-3d2dcd5b88fd will be implemented by /services/SM/lvmoiscsi in VM OpaqueRef:4d9efad7-2f79-a40b-0493-3320dcadc656 Nov 21 09:42:13 xs15-13 kernel: [70841.549700] scsi10 : iSCSI Initiator over TCP/IP Nov 21 09:42:14 xs15-13 iscsid: connection5:0 is operational now Nov 21 09:42:20 xs15-13 xapi: [ info|xs15-13|3429 UNIX /var/xapi/xapi|PBD.plug R:3f02278f6c44|storage_access] SR 7fdb950b-7572-038d-9a75-3d2dcd5b88fd will be implemented by /services/SM/lvmoiscsi in VM OpaqueRef:4d9efad7-2f79-a40b-0493-3320dcadc656 Nov 21 09:42:20 xs15-13 xapi: [ info|xs15-13|3429 UNIX /var/xapi/xapi|PBD.plug R:3f02278f6c44|storage_impl] SR.attach dbg:OpaqueRef:3f02278f-6c44-3371-4b15-4182b0e56f04 sr:7fdb950b-7572-038d-9a75-3d2dcd5b88fd device_config:[port:3260; SCSIid:3600140545f8b1afdba34730aedb76ff8; target:172.19.22.16; targetIQN:iqn.2003-01.org.linux-iscsi.ubuntu-22-16.x8664:sn.3434f50e44e2] Nov 21 09:42:21 xs15-13 kernel: [70849.179546] scsi11 : iSCSI Initiator over TCP/IP Nov 21 09:42:21 xs15-13 iscsid: connection6:0 is operational now Nov 21 09:42:26 xs15-13 xapi: [ info|xs15-13|3429 UNIX /var/xapi/xapi|PBD.plug R:3f02278f6c44|xapi] Not registering SM plugin lvmoiscsi (version 1.0 < 2.0) Nov 21 09:43:25 xs15-13 xapi: [ info|xs15-13|3515|Async.SR.create R:23f0b2cdc897|storage_access] SR 2b5dec7c-a1a8-b835-25e9-9e408dec1db0 will be implemented by /services/SM/lvmoiscsi in VM OpaqueRef:4d9efad7-2f79-a40b-0493-3320dcadc656 Nov 21 09:43:25 xs15-13 xapi: [error|xs15-13|3515|Async.SR.create R:23f0b2cdc897|storage_access] Re-raising as SR_BACKEND_FAILURE_96 [ ; The request is missing or has an incorrect target IQN parameter; 0 172.19.22.12 iqn.2014-11.local.heetian:target0 1 172.19.22.12 * ] Nov 21 09:43:28 xs15-13 xapi: [ info|xs15-13|3525|Async.SR.create R:18b51f1c1efc|storage_access] SR 08331dd9-af8f-e62a-ebd4-d5d5ab8f3927 will be implemented by /services/SM/lvmoiscsi in VM OpaqueRef:4d9efad7-2f79-a40b-0493-3320dcadc656 Nov 21 09:43:29 xs15-13 kernel: [70917.219510] scsi12 : iSCSI Initiator over TCP/IP Nov 21 09:43:30 xs15-13 iscsid: connection7:0 is operational now Nov 21 09:43:35 xs15-13 xapi: [error|xs15-13|3525|Async.SR.create R:18b51f1c1efc|storage_access] Re-raising as SR_BACKEND_FAILURE_107 [ ; The SCSIid parameter is missing or incorrect; FREEBSD MYSERIAL0 0 355959750656 1FREEBSD_MYDEVID_0 ] Nov 21 09:43:37 xs15-13 kernel: [70926.039512] scsi13 : iSCSI Initiator over TCP/IP Nov 21 09:43:38 xs15-13 iscsid: connection8:0 is operational now Nov 21 09:43:56 xs15-13 xapi: [ info|xs15-13|3181 INET 0.0.0.0:80|SR.create R:04af809aa981|storage_access] SR 54d4dd14-0b89-768f-6d94-e9f20b3c0ae6 will be implemented by /services/SM/lvmoiscsi in VM OpaqueRef:4d9efad7-2f79-a40b-0493-3320dcadc656 Nov 21 09:43:57 xs15-13 kernel: [70945.639711] scsi14 : iSCSI Initiator over TCP/IP Nov 21 09:43:58 xs15-13 iscsid: connection9:0 is operational now Nov 21 09:44:04 xs15-13 xapi: [ info|xs15-13|3589 UNIX /var/xapi/xapi|PBD.plug R:24eeb0253bb2|storage_access] SR 54d4dd14-0b89-768f-6d94-e9f20b3c0ae6 will be implemented by /services/SM/lvmoiscsi in VM OpaqueRef:4d9efad7-2f79-a40b-0493-3320dcadc656 Nov 21 09:44:05 xs15-13 kernel: [70953.279502] scsi15 : iSCSI Initiator over TCP/IP Nov 21 09:44:05 xs15-13 iscsid: connection10:0 is operational now Nov 21 09:44:11 xs15-13 xapi: [ info|xs15-13|3589 UNIX /var/xapi/xapi|PBD.plug R:24eeb0253bb2|xapi] Not registering SM plugin lvmoiscsi (version 1.0 < 2.0) Nov 21 09:45:01 xs15-13 xapi: [ info|xs15-13|3669|Async.PBD.unplug R:98cbed3238a4|xapi] Not unregistering SM plugin lvmoiscsi (version 1.0 < 2.0)