Centos 7 启用定期TRIM
启用定期TRIM
sudo systemctl enable fstrim.timer
sudo systemctl restart fstrim.timer
手动TRIM
sudo fstrim -a -v
debian8
sudo cp /usr/share/doc/util-linux/examples/fstrim.service /etc/systemd/system
sudo cp /usr/share/doc/util-linux/examples/fstrim.timer /etc/systemd/system