i’m setting up some rented server. it has 2x ssd drives on which i’ll be running raid1 with mdadm with ext4.
installation of debian wheezy went fine but i wanted to use fstrim to prevent write performance degradation over time. it did not work under 3.2.0 kernel giving me:
fstrim: /: FITRIM ioctl failed: Operation not supported
after quick googling i learned that it should work better with newer kernels.
so i’ve installed 3.10-0.bpo.3-amd64 from backports, rebooted and… nothing. server hanged giving me:
after some more googling i’ve stumbled on debian #718533 bug report describing similar situation. i have modified GRUB_CMDLINE_LINUX_DEFAULT in etc/default/grub to look as follows:
GRUB_CMDLINE_LINUX_DEFAULT="rootdelay=10 quiet"
then run:
root@host:~# update-grub Generating grub.cfg ... Found linux image: /boot/vmlinuz-3.10-0.bpo.3-amd64 Found initrd image: /boot/initrd.img-3.10-0.bpo.3-amd64 Found linux image: /boot/vmlinuz-3.2.0-4-amd64 Found initrd image: /boot/initrd.img-3.2.0-4-amd64 done root@host:~# grub-install /dev/sda Installation finished. No error reported. root@host:~# grub-install /dev/sdb Installation finished. No error reported.
and all works.