From owner-freebsd-scsi@FreeBSD.ORG Sat Nov 22 07:50:19 2014 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2F85E8B5 for ; Sat, 22 Nov 2014 07:50:19 +0000 (UTC) Received: from mail-wg0-x236.google.com (mail-wg0-x236.google.com [IPv6:2a00:1450:400c:c00::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AF7C1EFF for ; Sat, 22 Nov 2014 07:50:18 +0000 (UTC) Received: by mail-wg0-f54.google.com with SMTP id y10so8376423wgg.27 for ; Fri, 21 Nov 2014 23:50:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=BP+H+tr/naU1bRG4mv1NdQH3+8e7ZnQfYT1mA9oZ/6E=; b=icEx6ZJJbp8BVGWILhgq7vao1RUFm7gcuFOUPl45yUAqMJpDDKSA2PuyYebCHTLntB XBpe+l/WCd8QWfGDMSUx9SYeIvmAH/Q19mWoBCbq9SC8DMh9NpqbnPiVOKVtH/ZsLMW6 kOOb+Q6LuPMOGzvXRKhc/hwdXtjudS4pbEuuhCEXThpyGwTZPuQ2QCl7WekaoeMpUYz5 Jh62HIshlfvxkAaZoBfB6VOZl/W54YHucWa8KVR3slK7qWaLpkzqLRwEHmudhYcOIJt0 J1K3EtEHNjeGB2ctbl7Md3oORFIukQE3K2Hm2aVfTzeZ1GWlZW1VsAK9/X+HBQZaznma 7j0g== X-Received: by 10.194.92.148 with SMTP id cm20mr15485558wjb.88.1416642617155; Fri, 21 Nov 2014 23:50:17 -0800 (PST) Received: from brick.home (aeeg151.neoplus.adsl.tpnet.pl. [79.186.110.151]) by mx.google.com with ESMTPSA id t9sm11163887wjf.41.2014.11.21.23.50.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Nov 2014 23:50:16 -0800 (PST) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Sat, 22 Nov 2014 08:50:14 +0100 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= To: =?utf-8?B?5YWo5a6P5bmz?= Subject: Re: how to use ctld export iscsi lun for Xenserver 6.2? Message-ID: <20141122075014.GA3814@brick.home> Mail-Followup-To: =?utf-8?B?5YWo5a6P5bmz?= , freebsd-scsi@freebsd.org References: <546EAC35.2070603@bjhit.com> <20141121163924.GA31068@brick.home> <547019AD.7090101@bjhit.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <547019AD.7090101@bjhit.com> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-scsi@freebsd.org X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Nov 2014 07:50:19 -0000 On 1122T1305, 全宏平 wrote: > Thanks! > On 2014/11/22 0:39, Edward Tomasz Napierała wrote: > > On 1121T1106, 全宏平 wrote: > >> 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. > >> xenserver-create-iscsi-sr > >> When I test create virtual disk,error displaying: > > xenserver-create-vhd-failure > > What exactly is the error? > > > >> From Xenserver console,use lvs command I find the vhd created. > > xenserver-from-cli-view-vhd > > Does it work correctly? > > > > > I have paste some picture in mail,you can't see any more attachment? Ah, pictures. Now I see it. Still, I'm not sure what could be wrong here. Could you remove the "blocksize 4k" lines and try again?