From owner-freebsd-xen@freebsd.org Fri Mar 4 10:00:24 2016 Return-Path: Delivered-To: freebsd-xen@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 E073B9DA53C for ; Fri, 4 Mar 2016 10:00:24 +0000 (UTC) (envelope-from prvs=864cd69c8=roger.pau@citrix.com) Received: from SMTP02.CITRIX.COM (smtp02.citrix.com [66.165.176.63]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "mail.citrix.com", Issuer "Verizon Public SureServer CA G14-SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 78A3BD90 for ; Fri, 4 Mar 2016 10:00:24 +0000 (UTC) (envelope-from prvs=864cd69c8=roger.pau@citrix.com) X-IronPort-AV: E=Sophos;i="5.22,535,1449532800"; d="scan'208";a="343164187" Date: Fri, 4 Mar 2016 11:00:09 +0100 From: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= X-X-Sender: royger@mac To: =?UTF-8?Q?Gustau_P=C3=A9rez?= CC: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , FreeBSD XEN Subject: Re: Porting the block-iscsi hotplug script In-Reply-To: <56D7FEFE.9050000@gmail.com> Message-ID: References: <553DEB97.5000300@entel.upc.edu> <5556F21D.2050005@entel.upc.edu> <555EEFBA.5080902@citrix.com> <555EF542.3090002@citrix.com> <555F9B3F.1000600@entel.upc.edu> <55602512.1090702@citrix.com> <56C6FA2F.8040900@gmail.com> <56CAC8CB.8030107@gmail.com> <56CADEDA.4050007@citrix.com> <56CB0057.1060509@gmail.com> <56CB041E.1020009@citrix.com> <56CB2D90.5080809@gmail.com> <56CB34BA.6060809@citrix.com> <56CC24BD.6050609@gmail.com> <56CC32E5.5010101@citrix.com> <56CC7637.3080408@gmail.com> <56CF5668.6090605@citrix.com> <56D0091F.80408@gmail.com> <56D02863.7040100@citrix.com> <56D03D95.9090509@gmail.com> <56D04E5F.8070901@citrix.com> <56D42A28.8050701@gmail.com> <56D434FC.8030905@citrix.com> <56D57110.2060406@gmail.com> <56D587D8.6030702@citrix.com> <56D590EA.609@gmail.com> <56D591BA.4020303@gmail.com> <56D5929F.7040001@citrix.com> <56D5C722.3080205@gmail.com> <56D6B68D.8080809@citrix.com> <56D7FEFE.9050000@gmail.com> User-Agent: Alpine 2.20 (OSX 67 2015-01-07) MIME-Version: 1.0 X-DLP: MIA2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Mar 2016 10:00:25 -0000 On Thu, 3 Mar 2016, Gustau Pérez wrote: > El 2/03/16 a les 10:46, Roger Pau Monné ha escrit: > >> complains about one of the disks already declared in the xenstore. > >> However the store seem to be fine [3]. If I remove that disk from the > >> definition the domain boots just fine. > > According to [2], you are assigning the same vdev to both disks (xvda). > > This is not possible, you should change the second disk definition to: > > > > 'phy:/dev/zvol/dades/debian_1,xvdb,rw' > > > > Or any other xvd* value that's not xvda. > > Ah, you're right. Cut and paste betrayed me :) However perhaps the > error message may be misleading (it made me think the error was the > volume, no the given virtual disk). Patches are welcome :). > http://www.informit.com/articles/article.aspx?p=1160234 > > Very interesting. I'd need some time to read it through. > > I'm checking the libxl code and I'd like to pass more arguments to > the script. I'll modify libxl/libxl_freebsd.c to do so. I'll let you > know my experiments. What other parameters do you want to pass to your script that cannot be fetched from xenstore? IMHO I was planning to only pass the xenstore backend node and the action. Roger. From owner-freebsd-xen@freebsd.org Fri Mar 4 10:57:38 2016 Return-Path: Delivered-To: freebsd-xen@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 9012A9DA99B for ; Fri, 4 Mar 2016 10:57:38 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 294E08D6 for ; Fri, 4 Mar 2016 10:57:38 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: by mail-wm0-x22d.google.com with SMTP id l68so29292591wml.0 for ; Fri, 04 Mar 2016 02:57:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=NpG6wbs8iLRINWzfwjpCLWUCkbh9MghXnPzhpYmU1m0=; b=HtY/AEzfZjc17XyuRq/ACPtjTXaCZ+X35oJ5ZpksOyhgQnJe7Q7bv1Olfcz9+IWI0A +rzSpl7sQaPVmb1PBB44bmuj33S3f/orR5adEGoijxfUW0AcyJGD2nCkEzq3Ocl66oDv pNB2M4wJxZot1XPl00tbujVDz3JJcn+q/rasENqI2sd39RmMBI+DWV2T0MnGBYDAxxke NkkYOQH1VRVaCBd82kNPMZgDU8zDvhD63NZHBxL4NxaT9pK6DTqo6sHOOty1mR9aolEH YCUWhMtUf+Pm4mbLVZ55+wBKaIxeJQ96ZnIDYpRvckrnWF+wrOg1ka3TA1/k4FLtiBkj 78zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:cc:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=NpG6wbs8iLRINWzfwjpCLWUCkbh9MghXnPzhpYmU1m0=; b=JHGSdeJcmr8u6MZIQ64OEEI+FgDH9EiRtMfOQNz91KgsQvtL//xBmFKhTIp6jCGWIP XoWvGfuX2279UNx43gRmOenOE78d3DpfrKx8DFf3LWB4l0seJ67A7PcLXIV0R88lPMuR KlFmbJMFF71HxXjkw0vJ/iOjX9sFBIYAZs3SD3N2ISvNbuyJYGwUWKRVavAIw77sy2EA prVLm2MareO68TuUtcaP+Ntp8njg3WdhtqWNxh6lfe/VqiEyvHQb2K+BcmU1MiFuLqzW UCxeAUIpLTY9MnMnKKlId6aiH1JcAB1PTe/jmaJPzRRkxjwphIDxwG3JUHjvr9Vi+i8d rw/w== X-Gm-Message-State: AD7BkJLWqnYYNUSxHV27PUQbPO0WSMn/S6nxMy210he1W8SgieGSLy38szDSYO6wtYANCg== X-Received: by 10.28.85.137 with SMTP id j131mr4205782wmb.15.1457089056604; Fri, 04 Mar 2016 02:57:36 -0800 (PST) Received: from [10.0.2.151] ([147.83.40.10]) by smtp.googlemail.com with ESMTPSA id et11sm2748645wjc.30.2016.03.04.02.57.35 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 04 Mar 2016 02:57:35 -0800 (PST) Subject: Re: Porting the block-iscsi hotplug script To: FreeBSD XEN References: <553DEB97.5000300@entel.upc.edu> <5556F21D.2050005@entel.upc.edu> <555EEFBA.5080902@citrix.com> <555EF542.3090002@citrix.com> <555F9B3F.1000600@entel.upc.edu> <55602512.1090702@citrix.com> <56C6FA2F.8040900@gmail.com> <56CAC8CB.8030107@gmail.com> <56CADEDA.4050007@citrix.com> <56CB0057.1060509@gmail.com> <56CB041E.1020009@citrix.com> <56CB2D90.5080809@gmail.com> <56CB34BA.6060809@citrix.com> <56CC24BD.6050609@gmail.com> <56CC32E5.5010101@citrix.com> <56CC7637.3080408@gmail.com> <56CF5668.6090605@citrix.com> <56D0091F.80408@gmail.com> <56D02863.7040100@citrix.com> <56D03D95.9090509@gmail.com> <56D04E5F.8070901@citrix.com> <56D42A28.8050701@gmail.com> <56D434FC.8030905@citrix.com> <56D57110.2060406@gmail.com> <56D587D8.6030702@citrix.com> <56D590EA.609@gmail.com> <56D591BA.4020303@gmail.com> <56D5929F.7040001@citrix.com> <56D5C722.3080205@gmail.com> <56D6B68D.8080809@citrix.com> <56D7FEFE.9050000@gmail.com> From: =?UTF-8?Q?Gustau_P=c3=a9rez?= X-Enigmail-Draft-Status: N1110 Message-ID: <56D96A1E.8020900@gmail.com> Date: Fri, 4 Mar 2016 11:57:34 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Mar 2016 10:57:38 -0000 El 4/03/16 a les 11:00, Roger Pau Monné ha escrit: >> >> Ah, you're right. Cut and paste betrayed me :) However perhaps the >> error message may be misleading (it made me think the error was the >> volume, no the given virtual disk). > Patches are welcome :). > > What other parameters do you want to pass to your script that cannot be > fetched from xenstore? IMHO I was planning to only pass the xenstore > backend node and the action. > Hi Roger, I'm planning more or less the same, and I'll be happy to see my name there :) I did a simple patch [1] that passes that as arguments, but I'd like to do that via the environment, but that would mean mixing *args and env (I don't know if that's acceptable). If it is, please let me know and I'll rework (so to say) it. Thank you, Gustau [1] http://pastebin.com/AnXFkJzd