From owner-freebsd-scsi@FreeBSD.ORG Mon Nov 17 10:18:30 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 8C3CC1A1 for ; Mon, 17 Nov 2014 10:18:30 +0000 (UTC) Received: from BLU004-OMC1S20.hotmail.com (blu004-omc1s20.hotmail.com [65.55.116.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48D35DC5 for ; Mon, 17 Nov 2014 10:18:30 +0000 (UTC) Received: from BLU436-SMTP193 ([65.55.116.8]) by BLU004-OMC1S20.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Mon, 17 Nov 2014 02:17:23 -0800 X-TMN: [XiOX57omw15S30YTDhrOX6CaM8zPINZ9] X-Originating-Email: [moremore2@outlook.com] Message-ID: Date: Mon, 17 Nov 2014 18:17:17 +0800 From: k simon User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org Subject: HDD slow down in heavy load Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 17 Nov 2014 10:17:22.0966 (UTC) FILETIME=[AD76CB60:01D0024F] 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: Mon, 17 Nov 2014 10:18:30 -0000 Hi, List, I observed sometimes DragonflyBSD do much better than FB in heavy load , eg. squid or zabbix's postgresql database. The difference may related to DFBSD have enhanced CAM DA driver to separate read and write streams, allowing concurrent write completion in the face of many stalled read requests. It's released within DFBSD V2.10 at 2011: http://leaf.dragonflybsd.org/mailarchive/commits/2011-04/msg00062.html http://leaf.dragonflybsd.org/mailarchive/commits/2011-04/msg00061.html I guess I'm alone for notice it. Regards Simon From owner-freebsd-scsi@FreeBSD.ORG Mon Nov 17 19:34:01 2014 Return-Path: Delivered-To: freebsd-scsi@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 3C8748F6 for ; Mon, 17 Nov 2014 19:34:01 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "funkthat.com", Issuer "funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0C492A54 for ; Mon, 17 Nov 2014 19:34:00 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id sAHJXxB0034693 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 17 Nov 2014 11:34:00 -0800 (PST) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id sAHJXxt6034692; Mon, 17 Nov 2014 11:33:59 -0800 (PST) (envelope-from jmg) Date: Mon, 17 Nov 2014 11:33:59 -0800 From: John-Mark Gurney To: k simon Subject: Re: HDD slow down in heavy load Message-ID: <20141117193359.GP24601@funkthat.com> Mail-Followup-To: John-Mark Gurney , k simon , freebsd-scsi@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Mon, 17 Nov 2014 11:34:00 -0800 (PST) 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: Mon, 17 Nov 2014 19:34:01 -0000 k simon wrote this message on Mon, Nov 17, 2014 at 18:17 +0800: > I observed sometimes DragonflyBSD do much better than FB in heavy > load , eg. squid or zabbix's postgresql database. > The difference may related to DFBSD have enhanced CAM DA driver to > separate read and write streams, allowing concurrent write completion in > the face of many stalled read requests. > It's released within DFBSD V2.10 at 2011: > http://leaf.dragonflybsd.org/mailarchive/commits/2011-04/msg00062.html > http://leaf.dragonflybsd.org/mailarchive/commits/2011-04/msg00061.html > I guess I'm alone for notice it. Have you verified w/ camcontrol tags that you have no remaining tags available? camcontrol tags -v will inform you of the current counts... If you do see dev_active == dev_openinings, then yes, it might be interested to explore this... I have a feeling that if your server is so heavily loaded that all tags are busy, you should probably improve your system w/ more spindles or better disks or ssds or something of the like... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-scsi@FreeBSD.ORG Mon Nov 17 21:15:56 2014 Return-Path: Delivered-To: freebsd-scsi@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 52055558 for ; Mon, 17 Nov 2014 21:15:56 +0000 (UTC) Received: from smtp.infotech.no (smtp.infotech.no [82.134.31.41]) by mx1.freebsd.org (Postfix) with ESMTP id CEE867EF for ; Mon, 17 Nov 2014 21:15:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.infotech.no (Postfix) with ESMTP id 55EF020416D; Mon, 17 Nov 2014 22:15:49 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.6.6 (20110518) (Debian) at infotech.no Received: from smtp.infotech.no ([127.0.0.1]) by localhost (smtp.infotech.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FunZXPzMNJuy; Mon, 17 Nov 2014 22:15:47 +0100 (CET) Received: from [192.168.48.86] (host-192.252-174-100.dyn.295.ca [192.252.174.100]) by smtp.infotech.no (Postfix) with ESMTPA id B5B9A2041BD; Mon, 17 Nov 2014 22:15:46 +0100 (CET) Message-ID: <546A657A.1040903@interlog.com> Date: Mon, 17 Nov 2014 16:15:38 -0500 From: Douglas Gilbert Reply-To: dgilbert@interlog.com User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: FreeBSD-scsi Subject: [Announce] sg3_utils-1.40 available plus other betas Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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: Mon, 17 Nov 2014 21:15:56 -0000 sg3_utils is a package of command line utilities for sending SCSI and some ATA commands to devices. Although written for Linux, almost all utilities are ported to FreeBSD. There are also ports to Solaris, Windows (cygwin and MinGW) and Tru64. In version 1.40 there are three new utilities and major additions to several others, see the ChangeLog below. For an overview of sg3_utils and downloads see this page: http://sg.danny.cz/sg/sg3_utils.html The sg_ses utility (for enclosure devices) is discussed at: http://sg.danny.cz/sg/sg_ses.html A full changelog can be found at: http://sg.danny.cz/sg/p/sg3_utils.ChangeLog Changelog for sg3_utils-1.40 [20141110] [svn: r620] - sg_write_verify: new utility for WRITE AND VERIFY - sg_ses_microcode: new utility - sg_sat_read_gplog: new utility - sg_senddiag: add --maxlen= option - sg_copy_results: correct response length calculations - sg_format: make '-FFF' bypass mode sense/select - add --mode=MP to supply alternate mode page, default remains read-write error recovery mpage - output unit serial number and LU name prior to - sg_inq: expand Block limits VPD page output - fix --cmddt output if not supported by device - more sanity checks on vendor supplied fields - sg_vpd: add --all option - more TPC VPD page decoding - add zoned block device characteristics page - more sanity checks on vendor supplied fields - sg_ses: fix problem with --index=sse (and ssc) - mask status element before using as control - defeat previous item with --mask (ignore) option - SAS connector status element: add overcurrent bit - handle element descriptor names that count a trailing NULL - add --warn option mainly for broken joins - add optional descriptions to -ee output - sync with ses3r07 - sg_sanitize: add --desc and --zero options - output unit serial number and LU name prior to - sg_rep_zones: corrections, sync with zbc-r01c - sg_persist: split help into two pages, '-hh' for 2nd - sg_logs: refine tape drive output - sg_raw: with -vvv decode T10 CDB name - do not output/print data-in if error - sg_opcodes: add --compact field - sg_senddiag: add --page=PG option - sg_reset: add words for EAGAIN from reset ioctl - sg_sat_*: mention t_type and multiple_count fields - win32: sg_scan: handle larger configurations - sg_lib: trim trailing spaces in dStrHex() and friends - sg_lib_data: sync asc/ascq codes with T10 20140924 - clean up service action string functions - sg_ll_unmap_v2(): fix group number - sg_ll_inquiry(), sg_ll_mode_sense*(), sg_ll_log_sense(): use resid to clear unfilled data-in buffer - sg_unaligned.h: add header for building parameters - examples/sg_tst_async: new Linux sg test utility Changelog for sg3_utils-1.39 [20140612] [svn: r588] ... Other packages with FreeBSD ports that might be of interest are: smp_utils: http://sg.danny.cz/sg/smp_utils.html sdparm: http://sg.danny.cz/sg/sdparm.html ddpt: http://sg.danny.cz/sg/ddpt.html Latest betas of those packages can be found in the News section here: http://sg.danny.cz/sg/index.html Doug Gilbert From owner-freebsd-scsi@FreeBSD.ORG Tue Nov 18 02:32:50 2014 Return-Path: Delivered-To: freebsd-scsi@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 CB14CAD4 for ; Tue, 18 Nov 2014 02:32:50 +0000 (UTC) Received: from BLU004-OMC1S11.hotmail.com (blu004-omc1s11.hotmail.com [65.55.116.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 851BDC13 for ; Tue, 18 Nov 2014 02:32:49 +0000 (UTC) Received: from BLU436-SMTP47 ([65.55.116.7]) by BLU004-OMC1S11.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Mon, 17 Nov 2014 18:32:43 -0800 X-TMN: [kJnAdZ54rMbJksiYOHttbiwq2Ld3zOQg] X-Originating-Email: [moremore2@outlook.com] Message-ID: Date: Tue, 18 Nov 2014 10:32:38 +0800 From: k simon User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org Subject: Fwd: Re: HDD slow down in heavy load References: <546AAF7F.7000409@outlook.com> In-Reply-To: <546AAF7F.7000409@outlook.com> X-Forwarded-Message-Id: <546AAF7F.7000409@outlook.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 18 Nov 2014 02:32:42.0822 (UTC) FILETIME=[EE042E60:01D002D7] 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: Tue, 18 Nov 2014 02:32:50 -0000 Yes, you are right. Zabbix 1.8 postgres database design is ugly, when zabbix database do "housekeeping" means scan the fulltable again and again, the SQL query lost response and the tags dev_acive is full. Compred with FB\LINUX, I can't say DFBSD response immediately, but it can accomplish it in one minutes. And DFBSD have a feature named swapcache can speed up HDD, but I havn't test it. And I have changed the disk with a SSD yet, but I think FB can do somethings better. Simon From owner-freebsd-scsi@FreeBSD.ORG Tue Nov 18 09:29:55 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 87FD8BED for ; Tue, 18 Nov 2014 09:29:55 +0000 (UTC) Received: from exprod7og117.obsmtp.com (exprod7og117.obsmtp.com [64.18.2.6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 075AB979 for ; Tue, 18 Nov 2014 09:29:54 +0000 (UTC) Received: from mail-wg0-f44.google.com ([74.125.82.44]) (using TLSv1) by exprod7ob117.postini.com ([64.18.6.12]) with SMTP ID DSNKVGsRjC3vyMdNJNMN7ADT+3yvHtfA6VNE@postini.com; Tue, 18 Nov 2014 01:29:55 PST Received: by mail-wg0-f44.google.com with SMTP id b13so596930wgh.17 for ; Tue, 18 Nov 2014 01:29:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:thread-index:date:message-id :subject:to:content-type; bh=/Tq7947w3KNuVfJh5ICM8JZrKxzQ2SsGbG13RI1r+y4=; b=J4NI3cifwE9eG7M+3qJooPj9J+O8+UsJ5dyKDEwgmY37qApmVGy0cij+3Fri1i1eEk J+FzkN6YGaLV1sTmPpCdneGsLjbuc7G/7fTaBCdVxYmJ2cyKbjAV/lWttLOCqTAgvX7c VkJFBlF09TPgY6cn8/hOzvPZ3dbyHJ+DNeDVDMTKc0xMd6Aw3j0OyeDArCBe7DzvZdR+ bJ2dUE2rWhR445DDA3yc2PTSci6brPx6yawEPH6T3tJxd2ZmJktHAn9RT1COeQm7uq0I BCMWizj9RkjeOmFhpjaV2LnXAs/HuNvzaCqY4vCtF7cJjCGTOxTX0xIFs5mg18i5I1Sa /d7w== X-Received: by 10.180.93.37 with SMTP id cr5mr38447769wib.76.1416302587640; Tue, 18 Nov 2014 01:23:07 -0800 (PST) X-Gm-Message-State: ALoCoQlVXJDNYeCSn409QKpfpIodslM4Y9gA90pyK8gxjibk6hKYYxbjuQgS4Gb+sSv73VZ57yL3G0iCRGlhsB/UManeKPI0lgwy+dsCZDvFEpzdydqeLi0NBRwm5QPxSTfSW4OyCUuNj1mGGdgWc+r8lvLlDNg9CQ== X-Received: by 10.180.93.37 with SMTP id cr5mr38447757wib.76.1416302587526; Tue, 18 Nov 2014 01:23:07 -0800 (PST) From: Sibananda Sahu MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AdADETiG0sUzP80LRjqBjx4fqxwcgQ== Date: Tue, 18 Nov 2014 14:52:59 +0530 Message-ID: <2484c92146f4785b2744d8bd9b98f7f7@mail.gmail.com> Subject: Tag Command Queuing in FreeBSD To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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: Tue, 18 Nov 2014 09:29:55 -0000 Hi All, I just wanted to know if we have something in FreeBSD for the Tag Command Queuing support in our CAM mid layer as in linux: http://lwn.net/Articles/2297/ My primary question is: Is there anything in the *struct cam_sim* or in the *union ccb *that uses a tag or some sort of index per I/O transaction so that I can re-use in my HBA driver??? Thanks, Sibananda Sahu From owner-freebsd-scsi@FreeBSD.ORG Thu Nov 20 21:07: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 6139B311; Thu, 20 Nov 2014 21:07:19 +0000 (UTC) Received: from mail-lb0-x233.google.com (mail-lb0-x233.google.com [IPv6:2a00:1450:4010:c04::233]) (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 D2902C83; Thu, 20 Nov 2014 21:07:18 +0000 (UTC) Received: by mail-lb0-f179.google.com with SMTP id l4so2968614lbv.38 for ; Thu, 20 Nov 2014 13:07:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=a5v+IJ4nMgypX1+5mHsb9bu8mcFPgJLJe8jqBPBeNkw=; b=ovpaOnvVNGZk2e9+0zFsS7JkUW+yXncwg5vMPnBsi60CFxhYbsGsVqmRG611mt3Ozl 4eU4ouT9L33NI5k/fboiwOHNS9OwsuXnGUddCtFx0Wj7MIUvbdjiICDLLeVl6WSuRYZR 9IvLWnCySxMs4dCkFpsYNWm8xHRmKkkjAdGzKeFMpZm1QdV8dXa77ZP6WDlGbieShgW4 7bYOB3Xcxae2DXO3zWf6fG3kpGIfyvm+Tw65I5lGrlonInxheO+TebNpoJeOqvS6sBwb UgbYM7icNLywdc6FoWR7zb6+dxFe11xu1cpaaMnJLlTtbFMVVyHjKwEWWI/pq2Tg2r0J XkmQ== X-Received: by 10.152.42.226 with SMTP id r2mr364733lal.29.1416517636939; Thu, 20 Nov 2014 13:07:16 -0800 (PST) Received: from mavbook.mavhome.dp.ua ([134.249.139.101]) by mx.google.com with ESMTPSA id vr7sm769846lbb.21.2014.11.20.13.07.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Nov 2014 13:07:16 -0800 (PST) Sender: Alexander Motin Message-ID: <546E5802.8090904@FreeBSD.org> Date: Thu, 20 Nov 2014 23:07:14 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: pechter@gmail.com, FreeBSD-hardware@freebsd.org, freebsd-scsi@freebsd.org Subject: Re: Anyone working on the Marvell 88se64xx sas/sata chip driver? References: In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: Thu, 20 Nov 2014 21:07:19 -0000 On 15.11.2014 21:08, Bill Pechter wrote: > I've got a really nice Lenovo D20 that I need to share between > FreeBSD/Linux and Windows Server 2012 for some testing. > > I've got the Marvell driver up on Linux and Windows but it appears that I > have to move the SATA drives to the Intel SATA chips if I want to share > between FreeBSD/Linux/Windows. > > I hate to have to rebuild this all... Is there a test driver for the > 88se63xx/64xx drivers available in 10.1 or -stable? I'm afraid there is no such one. That family of controllers is neither mvs(4) nor ahci(4). It is completely separate design, providing quite low-level interface to SAS ports (that means that support for wide ports, expanders, target mapping, etc. should be done manually inside the driver). I had a wish to implement it at some point, but had no documentation. Now I have some documentation and even some (old now) hardware, but not sure how much widespread/applicable are those chips now. Complains like that happen not so often and I am not sure I want to spend few months of work on discontinued hardware. Has Marvell released anything new from that line, like 12Gbps SAS, that could be interesting? -- Alexander Motin From owner-freebsd-scsi@FreeBSD.ORG Fri Nov 21 03:15:36 2014 Return-Path: Delivered-To: freebsd-scsi@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-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: 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) From owner-freebsd-scsi@FreeBSD.ORG Fri Nov 21 05:12:18 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 C7506E7; Fri, 21 Nov 2014 05:12:18 +0000 (UTC) Received: from mail-ie0-x22d.google.com (mail-ie0-x22d.google.com [IPv6:2607:f8b0:4001:c03::22d]) (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 8F31F5F6; Fri, 21 Nov 2014 05:12:18 +0000 (UTC) Received: by mail-ie0-f173.google.com with SMTP id y20so4249011ier.18 for ; Thu, 20 Nov 2014 21:12:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=2DW0rOaFWXEysqAM9J4dpCZ0hbRK6nxf/cw7Iy4bu94=; b=tHT4lfv9g2/zms3vVBt/VhYdLmGZVXGQcWYCldGRibZOn8qv/VFj2TiFLAgGcEP62o xxVMA1tA8cM9da5o/SBVD0vUCE1wzRMQ4+R00pMJj3LDIK+rSrZvAme6Unbu/T48A1yR o/0rMKUAlFrJRbVpjdXbjZmnvnCWGmC0m1vsRavmqJ2KO2llgXzLOqrBLUmSQTB1tCV1 Xpo8z/T1XyNl2EeywmD0XbjS8hVztBvqIN+LssziUvGzTy541EOP1KJEDlRWrnzlZKj+ Ht6SpA6LYaZp/RI4T1q8VS5I/pV9HGdtkZqHvhd1B1ZForF3KCLOOLwOpHCBZGAmrJXo c/Aw== X-Received: by 10.50.93.6 with SMTP id cq6mr13455998igb.7.1416546738026; Thu, 20 Nov 2014 21:12:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.175.83 with HTTP; Thu, 20 Nov 2014 21:11:47 -0800 (PST) In-Reply-To: <546E5802.8090904@FreeBSD.org> References: <546E5802.8090904@FreeBSD.org> From: Jia-Shiun Li Date: Fri, 21 Nov 2014 13:11:47 +0800 Message-ID: Subject: Re: Anyone working on the Marvell 88se64xx sas/sata chip driver? To: Alexander Motin Content-Type: text/plain; charset=UTF-8 Cc: freebsd-scsi@freebsd.org, "freebsd-hardware@freebsd.org" , pechter@gmail.com 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: Fri, 21 Nov 2014 05:12:18 -0000 for 6G SAS there is hpt27xx blob driver for Highpoint cards using 88SE94xx. 12G SAS is 88SE1495, but there seems no products yet. -Jia-Shiun On Fri, Nov 21, 2014 at 5:07 AM, Alexander Motin wrote: > On 15.11.2014 21:08, Bill Pechter wrote: >> I've got a really nice Lenovo D20 that I need to share between >> FreeBSD/Linux and Windows Server 2012 for some testing. >> >> I've got the Marvell driver up on Linux and Windows but it appears that I >> have to move the SATA drives to the Intel SATA chips if I want to share >> between FreeBSD/Linux/Windows. >> >> I hate to have to rebuild this all... Is there a test driver for the >> 88se63xx/64xx drivers available in 10.1 or -stable? > > I'm afraid there is no such one. That family of controllers is neither > mvs(4) nor ahci(4). It is completely separate design, providing quite > low-level interface to SAS ports (that means that support for wide > ports, expanders, target mapping, etc. should be done manually inside > the driver). I had a wish to implement it at some point, but had no > documentation. Now I have some documentation and even some (old now) > hardware, but not sure how much widespread/applicable are those chips > now. Complains like that happen not so often and I am not sure I want to > spend few months of work on discontinued hardware. Has Marvell released > anything new from that line, like 12Gbps SAS, that could be interesting? > > -- > Alexander Motin > _______________________________________________ > freebsd-hardware@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hardware > To unsubscribe, send any mail to "freebsd-hardware-unsubscribe@freebsd.org" From owner-freebsd-scsi@FreeBSD.ORG Fri Nov 21 09:08:23 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 9F0ED1EF; Fri, 21 Nov 2014 09:08:23 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "funkthat.com", Issuer "funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id F3E9DFFE; Fri, 21 Nov 2014 09:08:22 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id sAL98MsP006100 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 21 Nov 2014 01:08:22 -0800 (PST) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id sAL98M8D006099; Fri, 21 Nov 2014 01:08:22 -0800 (PST) (envelope-from jmg) Date: Fri, 21 Nov 2014 01:08:22 -0800 From: John-Mark Gurney To: Jia-Shiun Li Subject: Re: Anyone working on the Marvell 88se64xx sas/sata chip driver? Message-ID: <20141121090822.GH99957@funkthat.com> Mail-Followup-To: John-Mark Gurney , Jia-Shiun Li , Alexander Motin , freebsd-scsi@freebsd.org, "freebsd-hardware@freebsd.org" , pechter@gmail.com References: <546E5802.8090904@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Fri, 21 Nov 2014 01:08:22 -0800 (PST) Cc: freebsd-scsi@freebsd.org, Alexander Motin , pechter@gmail.com, "freebsd-hardware@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: Fri, 21 Nov 2014 09:08:23 -0000 Jia-Shiun Li wrote this message on Fri, Nov 21, 2014 at 13:11 +0800: > for 6G SAS there is hpt27xx blob driver for Highpoint cards using > 88SE94xx. 12G SAS is 88SE1495, but there seems no products yet. In my exerience w/ the hpt27xx driver on 9.1-R, the card is terrible... Caused me no end of pain.. I replaced the card w/ an ahci native card (since I was hooking up SATA drivers), and now I'm happy... I couldn't get any support from Highpoint... Not really surprising considering the binary driver... > On Fri, Nov 21, 2014 at 5:07 AM, Alexander Motin wrote: > > On 15.11.2014 21:08, Bill Pechter wrote: > >> I've got a really nice Lenovo D20 that I need to share between > >> FreeBSD/Linux and Windows Server 2012 for some testing. > >> > >> I've got the Marvell driver up on Linux and Windows but it appears that I > >> have to move the SATA drives to the Intel SATA chips if I want to share > >> between FreeBSD/Linux/Windows. > >> > >> I hate to have to rebuild this all... Is there a test driver for the > >> 88se63xx/64xx drivers available in 10.1 or -stable? > > > > I'm afraid there is no such one. That family of controllers is neither > > mvs(4) nor ahci(4). It is completely separate design, providing quite > > low-level interface to SAS ports (that means that support for wide > > ports, expanders, target mapping, etc. should be done manually inside > > the driver). I had a wish to implement it at some point, but had no > > documentation. Now I have some documentation and even some (old now) > > hardware, but not sure how much widespread/applicable are those chips > > now. Complains like that happen not so often and I am not sure I want to > > spend few months of work on discontinued hardware. Has Marvell released > > anything new from that line, like 12Gbps SAS, that could be interesting? -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-scsi@FreeBSD.ORG Fri Nov 21 12:20:21 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 27126C2F; Fri, 21 Nov 2014 12:20:21 +0000 (UTC) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [IPv6:2607:f3e0:0:1::12]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D0CFB8DB; Fri, 21 Nov 2014 12:20:20 +0000 (UTC) Received: from [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a] (saphire3.sentex.ca [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a]) by smarthost1.sentex.ca (8.14.9/8.14.9) with ESMTP id sALCKI10021211; Fri, 21 Nov 2014 07:20:18 -0500 (EST) (envelope-from mike@sentex.net) Message-ID: <546F2E09.5060003@sentex.net> Date: Fri, 21 Nov 2014 07:20:25 -0500 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: John-Mark Gurney , Jia-Shiun Li , Alexander Motin , freebsd-scsi@freebsd.org, "freebsd-hardware@freebsd.org" , pechter@gmail.com Subject: Re: Anyone working on the Marvell 88se64xx sas/sata chip driver? References: <546E5802.8090904@FreeBSD.org> <20141121090822.GH99957@funkthat.com> In-Reply-To: <20141121090822.GH99957@funkthat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.75 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: Fri, 21 Nov 2014 12:20:21 -0000 On 11/21/2014 4:08 AM, John-Mark Gurney wrote: > Jia-Shiun Li wrote this message on Fri, Nov 21, 2014 at 13:11 +0800: >> for 6G SAS there is hpt27xx blob driver for Highpoint cards using >> 88SE94xx. 12G SAS is 88SE1495, but there seems no products yet. > > In my exerience w/ the hpt27xx driver on 9.1-R, the card is terrible... > Caused me no end of pain.. I replaced the card w/ an ahci native card > (since I was hooking up SATA drivers), and now I'm happy... > > I couldn't get any support from Highpoint... Not really surprising > considering the binary driver... I have had good results with the LSI cards, both based on the 3ware driver (tws) and the mfi driver. The cost of the previous gen 6G SAS 9240-8si is quite reasonable and I can get great speeds and good monitoring through the available native FreeBSD tools (3dm,tw_cli,MegaCli,mfiutil) ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ From owner-freebsd-scsi@FreeBSD.ORG Fri Nov 21 16:39:30 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 6EA92536; Fri, 21 Nov 2014 16:39:30 +0000 (UTC) Received: from mail-wi0-x234.google.com (mail-wi0-x234.google.com [IPv6:2a00:1450:400c:c05::234]) (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 EDE7C931; Fri, 21 Nov 2014 16:39:29 +0000 (UTC) Received: by mail-wi0-f180.google.com with SMTP id n3so9543581wiv.1 for ; Fri, 21 Nov 2014 08:39:28 -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=X0oPpS7bc7TbvH2DxUUwiRk7lUBk6l5ZNQZI7w4d0PU=; b=lfRDJHXsVNYdvncXfYNZuceAR5qw5G8rpbyo5zT9mpdg3YIWgEt/2AWF2lWzv+gYxL 3DrL+MRSuje80wDx2cn9zyFKpwQFmeoVYKDmD492ddIywibviDd2+/4MULcl6KxaLS+0 lPOiHevx4Ng3ZnQ247IU2HQ3LxRoz8JFztCahMeuPPV5Fl5+uavy0JX2USNMiRbFzo5i GXmh1ohUtw24+fzkL2FAQcLQldGhNQv0dhJSOW+thGUttIMr+F1kR7uKIvgg0IUwo1Vr LKXbbGA3xIEHkEjcrND8h4D+g74b7uTKCotbTIaVq32O09/TXhra4NR6juDrp1tOAXxT bF8g== X-Received: by 10.194.62.163 with SMTP id z3mr9457528wjr.74.1416587968422; Fri, 21 Nov 2014 08:39:28 -0800 (PST) Received: from brick.home (adhe195.neoplus.adsl.tpnet.pl. [79.184.160.195]) by mx.google.com with ESMTPSA id q9sm11951028wix.6.2014.11.21.08.39.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Nov 2014 08:39:27 -0800 (PST) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Fri, 21 Nov 2014 17:39:24 +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: <20141121163924.GA31068@brick.home> Mail-Followup-To: =?utf-8?B?5YWo5a6P5bmz?= , freebsd-scsi@freebsd.org, freebsd-questions@freebsd.org References: <546EAC35.2070603@bjhit.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <546EAC35.2070603@bjhit.com> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-scsi@freebsd.org, freebsd-questions@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: Fri, 21 Nov 2014 16:39:30 -0000 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. > > When I test create virtual disk,error displaying: What exactly is the error? > From Xenserver console,use lvs command I find the vhd created. Does it work correctly? From owner-freebsd-scsi@FreeBSD.ORG Sat Nov 22 05:12:21 2014 Return-Path: Delivered-To: freebsd-scsi@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 9C93A1F2; Sat, 22 Nov 2014 05:12:21 +0000 (UTC) Received: from m53-178.qiye.163.com (m53-178.qiye.163.com [123.58.178.53]) by mx1.freebsd.org (Postfix) with ESMTP id 83CC3B6; Sat, 22 Nov 2014 05:12:05 +0000 (UTC) Received: from [10.110.6.151] (unknown [58.20.74.208]) by m53-178.qiye.163.com (HMail) with ESMTPSA id 07DE013A811A; Sat, 22 Nov 2014 13:05:48 +0800 (CST) Message-ID: <547019AD.7090101@bjhit.com> Date: Sat, 22 Nov 2014 13:05:49 +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: trasz@FreeBSD.org Subject: Re: how to use ctld export iscsi lun for Xenserver 6.2? References: <546EAC35.2070603@bjhit.com> <20141121163924.GA31068@brick.home> In-Reply-To: <20141121163924.GA31068@brick.home> X-HM-Spam-Status: e1koWUFPN1dZCBgUCR5ZQUpIVU9LQkJCQkNPTE9KSUpKV1kJDhceCFlBWS grPSQrOigoJDI1JDM#Oj8#KUFLVUtANiMkIj4oJDI1JDM#Oj8#KUFLVUtAKy8pJCI#KCQyNSQzPj o*PilBS1VLQDg0LjUvKSIkODVBS1VLQCk#PDI0NSQ6KDI6QUtVS0ArKTQtMjU4PiQzLjU6NUFLVU tAPyI1OjYyOCQyKyQ1NCQyNSQzPjo*PilBS1VLQCk#OjckMiskMjUkKTk3JDI1JDM#Oj8#KUFKSV VLQDYuNy8yJCk4Ky8kKDI2Mjc6KSQyNSQzPjo*PilBTlVLQDIrJEokNjI1Li8#JDg1LyRLJEpLQU tVS0AyKyROJDYyNS4vPiQ4NS8kSyRKS0FLVUtAMiskSiQzNC4pJDg1LyRLJEpLS0FLVUtAMiskLz Q*OiIkODUvJEskSktLQUtVS0AyKyRISyQ2MjUuLz4kODUvJEskTktBS1VLQD01JDY6IiRPSkIkMz cxJEokS0NLSEtPQUtVSEhAPSskKT4kPSwkMzcxJEtDS0hLTUFWTFVOQCguOSQ#QUpVTk5APTUkKC 45JD41LDQpPygkMzcxJEpLS0lLSkFLVUlDQD01JD0pPj4kMzcxJEtMS05LT0FKVUxOWQY+ X-HM-Sender-Digest: e1kSHx4VD1lBWUc6Ni46Fxw*Pzo5PC1MLFExNz9DHzIKFDxVSlVKT0pN TUhJTE9CTkNMVTMWGhIXVQoOGhUkEwsSFRw7GRETEg9VGBQWRVlXWQweGVlBHRoXCB5XWQgBWUFJ S01PTkw3V1kSC1lBWU5DVUlLVUxPVUlLQ1kG X-HM-Tid: 0a49d5e44c42649907de013a811a Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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 05:12:21 -0000 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? *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. My Freebsd version 10.1,Xenserver version 6.2.0 Below are Xenserver log(partial) /var/log/messages. Nov 21 13:43:28 xs15-13 xapi: [ warn|xs15-13|3179 INET 0.0.0.0:80|event.from D:8e88774a5546|xapi] get_since_for_events: no in_memory_cache! Nov 21 13:43:29 xs15-13 vhd-util: libvhd::vhd_write: /dev/VG_XenStorage-355a9c22-7900-2817-9401-aa4f3d08332d/VHD-f8d1a6f3-1631-4d2f-90c8-6bc34cc7d1bd: write of 131072 returned 0, errno: -22 Nov 21 13:43:29 xs15-13 vhd-util: libvhd::vhd_write_batmap: /dev/VG_XenStorage-355a9c22-7900-2817-9401-aa4f3d08332d/VHD-f8d1a6f3-1631-4d2f-90c8-6bc34cc7d1bd: failed writing batmap: -22 Nov 21 13:43:29 xs15-13 vhd-util: libvhd::vhd_write: /dev/VG_XenStorage-355a9c22-7900-2817-9401-aa4f3d08332d/VHD-f8d1a6f3-1631-4d2f-90c8-6bc34cc7d1bd: write of 4194304 returned 0, errno: -22 Nov 21 13:43:29 xs15-13 xapi: [ info|xs15-13|3181 INET 0.0.0.0:80|sm_exec D:055c0a76e739|xapi] Session.destroy trackid=5ca5ee9f62c1adee62e1349086e046ea Nov 21 13:43:29 xs15-13 xapi: [error|xs15-13|3181 INET 0.0.0.0:80|VDI.create R:84e319df2581|storage_access] Re-raising as SR_BACKEND_FAILURE_78 [ ; VDI Creation failed [opterr=Command ['/usr/bin/vhd-util', 'create', '--debug', '-n', '/dev/VG_XenStorage-355a9c22-7900-2817-9401-aa4f3d08332d/VHD-f8d1a6f3-1631-4d2f-90c8-6bc34cc7d1bd', '-s', '8192', '-S', '2097152'] failed (22): ]; ] Nov 21 13:43:29 xs15-13 xapi: [ warn|xs15-13|3179 INET 0.0.0.0:80|event.from D:8e88774a5546|xapi] get_since_for_events: no in_memory_cache! 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) 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?