From owner-freebsd-current@FreeBSD.ORG Mon Sep 16 12:43:34 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A11038D6; Mon, 16 Sep 2013 12:43:34 +0000 (UTC) (envelope-from prvs=1971ec67ec=killing@multiplay.co.uk) Received: from mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1A5D32A8C; Mon, 16 Sep 2013 12:43:33 +0000 (UTC) Received: from r2d2 ([82.69.141.170]) by mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) (MDaemon PRO v10.0.4) with ESMTP id md50005982338.msg; Mon, 16 Sep 2013 13:43:30 +0100 X-Spam-Processed: mail1.multiplay.co.uk, Mon, 16 Sep 2013 13:43:30 +0100 (not processed: message from valid local sender) X-MDDKIM-Result: neutral (mail1.multiplay.co.uk) X-MDRemoteIP: 82.69.141.170 X-Return-Path: prvs=1971ec67ec=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk Message-ID: <8365CE736DC749DF95D0030A725211F6@multiplay.co.uk> From: "Steven Hartland" To: "Dmitriy Makarov" References: <1379069539.824504225.3b9xwugp@fmst-6.ukr.net><74C1D072-77BB-4D6C-B78F-C8D2731FA0CF@sarenet.es><1379333192.127359970.ma5jnbc5@fmst-6.ukr.net> <1379334340.567465877.0b1lli6r@fmst-6.ukr.net> Subject: Re: Re[3]: ZFS secondarycache on SSD problem on r255173 Date: Mon, 16 Sep 2013 13:43:29 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Cc: "Justin T. Gibbs" , freebsd-current@freebsd.org, Borja Marcos X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Mon, 16 Sep 2013 12:43:34 -0000 Thats correct the new code knows the what the ashift of the underlying disk should be so if it detects a vdev with a lower ashift you get this warning. I suspect the issue is that cache devices don't have an ashift, so when the check is done it gets a default value and hence the warning. I'd have to did some more to see how ashift in cache devices is or isn't implemented. Regards Steve ----- Original Message ----- From: "Dmitriy Makarov" To: "Steven Hartland" Cc: "Borja Marcos" ; ; "Justin T. Gibbs" Sent: Monday, September 16, 2013 1:29 PM Subject: Re[3]: ZFS secondarycache on SSD problem on r255173 > And have to say that ashift of a main pool doesn't matter. > I've tried to create pool with ashift 9 (default value) and with ashift 12 with creating gnops over gpart devices, export pool, > destroy gnops, import pool. There is the same problem with cache device. > > There is no problem with ZIL devices, they reports ashift: 12 > > children[1]: > type: 'disk' > id: 1 > guid: 6986664094649753344 > path: '/dev/gpt/zil1' > phys_path: '/dev/gpt/zil1' > whole_disk: 1 > metaslab_array: 67 > metaslab_shift: 25 > ashift: 12 > asize: 4290248704 > is_log: 1 > create_txg: 22517 > > Problem with cache devices only, but in zdb output tere is nothing at all about them. > > --- Исходное сообщение --- > От кого: "Steven Hartland" < killing@multiplay.co.uk > > Дата: 16 сентября 2013, 14:18:31 > > Cant say I've ever had a issue with gnop, but I haven't used it for > some time. > > I did have a quick look over the weekend at your issue and it looks > to me like warning for the cache is a false positive, as the vdev > for cache doesn't report an ashift in zdb so could well be falling > back to a default value. > > I couldn't reproduce the issue for log here, it just seems to work > for me, can you confirm what ashift is reported for your devices > using: zdb > > Regards > Steve > ----- Original Message ----- > From: "Borja Marcos" < > > --- > Дмитрий Макаров > > > --- > Дмитрий Макаров > ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk.