From owner-freebsd-geom@FreeBSD.ORG Tue Jan 7 01:41:32 2014 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 20E787D9 for ; Tue, 7 Jan 2014 01:41:32 +0000 (UTC) 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 AEFDE1203 for ; Tue, 7 Jan 2014 01:41:31 +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 md50007445002.msg for ; Tue, 07 Jan 2014 01:41:27 +0000 X-Spam-Processed: mail1.multiplay.co.uk, Tue, 07 Jan 2014 01:41:27 +0000 (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=1084efce83=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-geom@FreeBSD.org Message-ID: <41F7CA403B574953B72B6CF4D1DDE71D@multiplay.co.uk> From: "Steven Hartland" To: "Miroslav Lachman" <000.fbsd@quip.cz> References: <52A90049.7050001@quip.cz> <18C59233568D3A475FF0D843@study64.tdx.co.uk> <52CB2915.7060602@quip.cz> <7FBCC53840FA45928B9F527EA235B632@multiplay.co.uk> <52CB4C9E.3020904@quip.cz> Subject: Re: Is TRIM working with gmirror? Date: Tue, 7 Jan 2014 01:41:20 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit 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: Karl Pielorz , freebsd-geom@FreeBSD.org X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jan 2014 01:41:32 -0000 ----- Original Message ----- From: "Miroslav Lachman" <000.fbsd@quip.cz> To: "Steven Hartland" Cc: "Karl Pielorz" ; Sent: Tuesday, January 07, 2014 12:38 AM Subject: Re: Is TRIM working with gmirror? > Steven Hartland wrote: > [...] >> Delete's are only support by CAM currently so if your device is >> not connected to a CAM based driver e.g. daX or adaX then its >> likely not getting through to the device. > > It was mentioned in an original message: > > mirror/gm1ssdp2 COMPLETE ada2p2 (ACTIVE) > ada3p2 (ACTIVE) > > So disks are using CAM (devices ada2 + ada3, with ahci_load="YES" in > loader.conf) > > # camcontrol devlist > .. > .. > at scbus2 target 0 lun 0 (pass2,ada2) > at scbus3 target 0 lun 0 (pass3,ada3) > >> Not sure if this has been mentioned but you also need to have >> filesystem support, as your talking about gmirror I assume your >> using UFS which would need to be TRIM enabled using tunefs -t enable, >> see man tunefs for more info. > > Gmirror and FS was created on testmachine with FreeBSD 9.2 with > following commands: > > > gmirror label -v -b load gm1ssdp2 ada2p2 ada3p2 > > newfs -U -L Rtzt0ssddb -t mirror/gm1ssdp2 > > And as WARNING message says, FS is flagged with TRIM support enabled: > > -------------- > WARNING: /ssd_db: TRIM flag on fs but disk does not confirm that it > supports TRIM > -------------- Unless you have a specific reason for using gmirror I would strongly advise trying ZFS instead, it will definitely support TRIM in that config and comes with a host of other benefits too :) Regards Steve ================================================ 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.