Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jan 2014 01:41:20 -0000
From:      "Steven Hartland" <killing@multiplay.co.uk>
To:        "Miroslav Lachman" <000.fbsd@quip.cz>
Cc:        Karl Pielorz <kpielorz_lst@tdx.co.uk>, freebsd-geom@FreeBSD.org
Subject:   Re: Is TRIM working with gmirror?
Message-ID:  <41F7CA403B574953B72B6CF4D1DDE71D@multiplay.co.uk>
References:  <52A90049.7050001@quip.cz> <18C59233568D3A475FF0D843@study64.tdx.co.uk> <52CB2915.7060602@quip.cz> <7FBCC53840FA45928B9F527EA235B632@multiplay.co.uk> <52CB4C9E.3020904@quip.cz>

next in thread | previous in thread | raw e-mail | index | archive | help

----- Original Message ----- 
From: "Miroslav Lachman" <000.fbsd@quip.cz>
To: "Steven Hartland" <killing@multiplay.co.uk>
Cc: "Karl Pielorz" <kpielorz_lst@tdx.co.uk>; <freebsd-geom@FreeBSD.org>
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
> ..
> ..
> <Samsung SSD 840 PRO Series DXM05B0Q>  at scbus2 target 0 lun 0 (pass2,ada2)
> <Samsung SSD 840 PRO Series DXM05B0Q>  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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41F7CA403B574953B72B6CF4D1DDE71D>