From owner-freebsd-geom@FreeBSD.ORG Tue Jan 7 00:38:59 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 10BE94C8 for ; Tue, 7 Jan 2014 00:38:59 +0000 (UTC) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BFAA91D24 for ; Tue, 7 Jan 2014 00:38:58 +0000 (UTC) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 7294428426; Tue, 7 Jan 2014 01:38:56 +0100 (CET) Received: from [192.168.1.2] (ip-89-177-49-222.net.upcbroadband.cz [89.177.49.222]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 85A2828429; Tue, 7 Jan 2014 01:38:55 +0100 (CET) Message-ID: <52CB4C9E.3020904@quip.cz> Date: Tue, 07 Jan 2014 01:38:54 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.19) Gecko/20110420 Lightning/1.0b1 SeaMonkey/2.0.14 MIME-Version: 1.0 To: Steven Hartland Subject: Re: Is TRIM working with gmirror? References: <52A90049.7050001@quip.cz> <18C59233568D3A475FF0D843@study64.tdx.co.uk> <52CB2915.7060602@quip.cz> <7FBCC53840FA45928B9F527EA235B632@multiplay.co.uk> In-Reply-To: <7FBCC53840FA45928B9F527EA235B632@multiplay.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 00:38:59 -0000 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 -------------- Thank you for your time anyway. Miroslav Lachman