enabling TRIM on an existing UFS file system ?

lokadamus at gmx.de lokadamus at gmx.de
Fri May 8 16:09:48 UTC 2015


On 05/08/15 16:55, Mike Tancsa wrote:
> 
> I noticed TRIM was not enabled on an existing SSD drive, so I thought I
> would shut the box to single usermode and enable it.
> 
> But once I boot up, it seems to be disabled again ?
> 
> 0(mdt)# tunefs -p /dev/ada0p2
> tunefs: POSIX.1e ACLs: (-a)                                disabled
> tunefs: NFSv4 ACLs: (-N)                                   disabled
> tunefs: MAC multilabel: (-l)                               disabled
> tunefs: soft updates: (-n)                                 enabled
> tunefs: soft update journaling: (-j)                       enabled
> tunefs: gjournal: (-J)                                     disabled
> tunefs: trim: (-t)                                         disabled
> tunefs: maximum blocks per file in a cylinder group: (-e)  4096
> tunefs: average file size: (-f)                            16384
> tunefs: average number of files in a directory: (-s)       64
> tunefs: minimum percentage of free space: (-m)             8%
> tunefs: space to hold for metadata blocks: (-k)            6408
> tunefs: optimization preference: (-o)                      time
> tunefs: volume label: (-L)
> 0(mdt)#
> 
> the SSD seems to report that it does support TRIM
> 
>     ---Mike
> 
I kick some lines of your mail.
Have you set the parameter in your fstab?
http://www.freebsd.org/cgi/man.cgi?query=tunefs

greetings


More information about the freebsd-questions mailing list