2017年2月24日 星期五

pfsense SSD Harddisk Enable TRIM

The first, you should identify your TRIM is enabled or disabled.

WebGUI Interface > Diagnostics > Command Prompt

















You also can press [8] on VGA console and type command "tunefs -p /"


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)


OK Now going to enabled TRIM



Now reboot your pfsense to Single User, when the following screen prompt up, Press "2" or "S" to boot Single User.

          __ ____
   _ __  / _/ ___|  ___ _ __  ___  ___
  | '_ \| |_\___ \ / _ \ '_ \/ __|/ _ \
  | |_) |  _|___) |  __/ | | \__ \  __/
  | .__/|_| |____/ \___|_| |_|___/\___|
  |_|


 +------------Welcome to pfSense-----------+
 |                                         |                 ______
 |  1. Boot Multi User [Enter]             |                /      \
 |  2. Boot [S]ingle User                  |          _____/    f   \
 |  3. [Esc]ape to loader prompt           |         /     \        /
 |  4. Reboot                              |        /   p   \______/  Sense
 |                                         |        \       /      \
 |  Options:                               |         \_____/        \
 |  5. [K]ernel: kernel (1 of 2)           |               \        /
 |  6. Configure Boot [O]ptions...         |                \______/
 |                                         |
 |                                         |
 |                                         |
 +-----------------------------------------+

run shell command  "cat /etc/fstab", show the following device, write down the highlight red color string, FStype is ufs.
cd /
cat /etc/fstab
# Device  Mountpoint FStype Options  Dump Pass#
/dev/ufsid/58b03b253575d41a  /  ufs rw  1 1
/dev/label/swap0  none  swap sw  0 0
Type the following command, highlight red color string should same as above.
# /sbin/tunefs -t enable /dev/ufsid/58b03b253575d41a
then press enter, if success will show the following message.

tunefs: issue TRIM to the disk set
then type reboot and verify the TRIM status again.
# /sbin/reboot


沒有留言:

張貼留言