Date: Fri, 8 May 2015 12:39:50 -0600 (MDT) From: Warren Block <wblock@wonkity.com> To: Mike Tancsa <mike@sentex.net> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: enabling TRIM on an existing UFS file system ? Message-ID: <alpine.BSF.2.20.1505081236260.27229@wonkity.com> In-Reply-To: <554CCE55.9090307@sentex.net> References: <554CCE55.9090307@sentex.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 8 May 2015, 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. > > # tunefs -t enable /dev/ada0p2 > # 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) enabled > 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) > # exit > > But once I boot up, it seems to be disabled again ? Right. Don't 'exit' there after changing a setting. Instead, 'shutdown -r now' and check it again. Once the setting has been changed, it will stick. (Something about the filesystem details not being reread, but I forget the exact details.)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1505081236260.27229>