You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One performance tip for SSD storage technologies is the removal of continuous [TRIM](https://www.digitalocean.com/community/tutorials/how-to-configure-periodic-trim-for-ssd-storage-on-linux-servers).
291
+
292
+
Drives that have continuous TRIM enabled are mounted with the `discard` option. They can be found by running:
293
+
294
+
`findmnt -O discard`
295
+
296
+
_If_ there are drives that have this option, they can be remounted in place with the `-o` option:
297
+
298
+
`sudo mount -o remount,nodiscard /mnt/col`
299
+
300
+
In the _/etc/fstab_ file, the `discard` property needs to be removed so that when the drives get mounted on boot, continuous TRIM will not be enabled.
301
+
302
+
## Periodic TRIM ##
303
+
304
+
If continuous TRIM is disabled, periodic TRIM needs to be performed.
305
+
306
+
Create the cron script _/etc/cron.weekly/fstrim_:
307
+
308
+
```
309
+
#!/bin/sh
310
+
/usr/sbin/fstrim --all || true
311
+
```
312
+
313
+
Then make the script executable:
314
+
315
+
```bash
316
+
sudo chmod a+x /etc/cron.weekly/fstrim
317
+
```
318
+
319
+
## Hostname ##
320
+
321
+
Some distributions may not set the hostname to match the name set in the dashboard.
322
+
323
+
The name can be permanently changed using `hostnamectl`:
0 commit comments