Solved clone from mechanical HDD to SSD

Hello,

I have cloned my FreeBSD 11.2 from a mechanical HDD to an SSD using a third party tool, all works fine.
But do I need to make any configuration to my setup since the installation has been done to a HDD ?
 
There's, from the system's point of view, no difference between an SSD or an HDD. They're both treated as disks.
 
Dear rjohn,
please have a look at http://www.wonkity.com/~wblock/docs/html/ssd.html for a reference. I think trim should be enabled. I am not sure if it can be enabled after creation of the file system.
May be you should have a look at tunefs(8). The option tunefs -t enable should enable TRIM. But please do not trust be blindly. There are more experienced members as SirDice who can tell you how to check if TRIM is enabled and how to enable it correctly.
 
If he's using ZFS, trim should be enabled by default. If using UFS, you may need to enable it separately with the command already mentioned above.
 
i am using ufs
Code:
freebsd# gpart show
=>       63  500118129  ada0  MBR  (238G)
         63       1985        - free -  (993K)
       2048  234442752     1  freebsd  [active]  (112G)
  234444800  265673392        - free -  (127G)

=>        0  234442752  ada0s1  BSD  (112G)
          0  226492416       1  freebsd-ufs  (108G)
  226492416    7949166       2  freebsd-swap  (3.8G)
  234441582       1170          - free -  (585K)
Code:
freebsd# tunefs -p /dev/ada0s1
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)

rebooted in single mode : tunefs -t enable /dev/ad0s1
and :
tunefs: trim: (-t) enabled

Thank you.
 
Back
Top