Centos 7 启用定期TRIM

 •  Filed under centos, centos7

启用定期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