From owner-freebsd-current@FreeBSD.ORG Sat May 9 10:24:56 2015 Return-Path: Delivered-To: freebsd-current@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 1BEFEEC3 for ; Sat, 9 May 2015 10:24:56 +0000 (UTC) Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [IPv6:2a00:1450:400c:c05::230]) (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 A8067151F for ; Sat, 9 May 2015 10:24:55 +0000 (UTC) Received: by widdi4 with SMTP id di4so51034517wid.0 for ; Sat, 09 May 2015 03:24:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=TPXhzfEPUTyd+/o9ePl/NFsupznW75EGUw5Lp9+gclw=; b=pHffXZUpJsqi/O3FJGcARMxw8MicieLnrZaa//s8k2mpIYTF3TQ1eAAnZSlaqE05HR lXU0SVBiliVDFY0Yc0GGP0OdLrA0IpG7vk3KF4WEle4WD1rnDVQYDmqjRwMOBNN3B6ZV sdwSHU5k2ffr6QT27hnCbqaQC8L1w9RtVmnZgkwiUnWoMjno5UcynrhS6fAUTLfsqsiI uJaMP3hzI5gAySaA/oPFmfAvhSXZFnCfnTRKLp0F9VH3ysC+oP9QXyf7azZGLCcjeRhK NsEpPvsxm5cGqU+AuUlp8iIIPB7xZpKCfaN68zqUR1UuI5szbyvh5/ttfJhWFkrQUe6L YzQg== X-Received: by 10.180.78.199 with SMTP id d7mr5135589wix.94.1431167093786; Sat, 09 May 2015 03:24:53 -0700 (PDT) Received: from localhost ([91.225.203.160]) by mx.google.com with ESMTPSA id 16sm12641332wjs.41.2015.05.09.03.24.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 May 2015 03:24:53 -0700 (PDT) Date: Sat, 9 May 2015 13:24:51 +0300 From: Mykola Golub To: Daisuke Aoyama Cc: freebsd-current@freebsd.org Subject: Re: hastd fail and panic on MAXPHYS=1m Message-ID: <20150509102450.GA35014@gmail.com> References: <8A0CADA1C80C4310BFFA1828554F473C@ad.peach.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8A0CADA1C80C4310BFFA1828554F473C@ad.peach.ne.jp> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 May 2015 10:24:56 -0000 On Fri, May 08, 2015 at 06:02:03AM +0900, Daisuke Aoyama wrote: > Hi all, > > I have problem with MAXPHYS=1m. (I don't know MAXPHYS=1m works on HAST.) > > I put "options MAXPHYS=(1024*1024)" in kernel config. > Then, update primary node to the kernel and world. > If the role back to primary on the machine, writing to the hast device cause an error and panic. > > I didn't check carefully, but it seems that geom_gate.ko use MAXPHYS=1m and hastd use > MAXPHYS=128k. > Of course, secondary is MAXPHYS=128k at this time. > > Is it an expected result? Putting "options MAXPHYS..." in kernel config does not change the value for userspace (hastd). You might want to try adding to make.conf: CFLAGS += -DMAXPHYS=1048576 and rebuild userspace (or just hastd). Also, running the secondary with smaller MAXPHYS will likely fail too. If you can't reinstall simultaneously I suggest running only the updated primary (don't starting the secondary) until the secondary is updated. -- Mykola Golub