{"id":1942,"date":"2013-11-01T13:05:03","date_gmt":"2013-11-01T12:05:03","guid":{"rendered":"http:\/\/kudzia.eu\/b\/?p=1942"},"modified":"2013-11-01T13:14:07","modified_gmt":"2013-11-01T12:14:07","slug":"1942","status":"publish","type":"post","link":"https:\/\/kudzia.eu\/b\/2013\/11\/1942\/","title":{"rendered":""},"content":{"rendered":"<p>i&#8217;m setting up some rented server. it has 2x ssd drives on which i&#8217;ll be running raid1 with mdadm with ext4.<\/p>\n<p>installation of debian wheezy went fine but i wanted to use <a href=\"http:\/\/manpages.ubuntu.com\/manpages\/precise\/man8\/fstrim.8.html\">fstrim<\/a> to prevent write performance degradation over time. it did not work under 3.2.0 kernel giving me:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nfstrim: \/: FITRIM ioctl failed: Operation not supported\r\n<\/pre>\n<p>after <a href=\"http:\/\/www.bergercity.de\/linux\/mdadm-softraid-on-ssd-with-trim\/\">quick googling<\/a> i learned that it should work better with newer kernels. <\/p>\n<p>so i&#8217;ve installed 3.10-0.bpo.3-amd64 from <a href=\"http:\/\/backports.debian.org\/\">backports<\/a>, rebooted and&#8230; nothing. server hanged giving me:<br \/>\n<figure id=\"attachment_1943\" aria-describedby=\"caption-attachment-1943\" style=\"width: 716px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kudzia.eu\/b\/wp-content\/uploads\/2013\/11\/failedboot.png\" alt=\"early console in decompress_kernel  Decompressing Linux... Parsing ELF... done.  Booting the kernel.  Loading, please wait...  mdadm: No devices listed in conf file were found.  Gave up waiting for root device. Common problems:  - Boot args (cat \/proc\/cmdline)    - Check rootdelay= (did the system wait long enough?)    - Check root= (did the system wait for the right device?)   - Missing modules (cat \/proc\/modules; Is \/dev)  ALERT? \/dev\/disk\/by-uuid\/0148419a-f90a-42b3-b427-3398137ec1fe does not exist.  Dropping to a shell! \" width=\"716\" height=\"339\" class=\"size-full wp-image-1943\" srcset=\"https:\/\/kudzia.eu\/b\/wp-content\/uploads\/2013\/11\/failedboot.png 716w, https:\/\/kudzia.eu\/b\/wp-content\/uploads\/2013\/11\/failedboot-300x142.png 300w\" sizes=\"auto, (max-width: 716px) 100vw, 716px\" \/><figcaption id=\"caption-attachment-1943\" class=\"wp-caption-text\">early console in decompress_kernel<br \/>Decompressing Linux&#8230; Parsing ELF&#8230; done.<br \/>Booting the kernel.<br \/>Loading, please wait&#8230;<br \/>mdadm: No devices listed in conf file were found.<br \/>Gave up waiting for root device. Common problems:<br \/>&#8211; Boot args (cat \/proc\/cmdline)<br \/>&#8211; Check rootdelay= (did the system wait long enough?)<br \/>&#8211; Check root= (did the system wait for the right device?)<br \/>&#8211; Missing modules (cat \/proc\/modules; Is \/dev)<br \/>ALERT? \/dev\/disk\/by-uuid\/0148419a-f90a-42b3-b427-3398137ec1fe does not exist.<br \/>Dropping to a shell!<br \/><\/figcaption><\/figure><\/p>\n<p>after some more googling i&#8217;ve stumbled on debian <a href=\"http:\/\/bugs.debian.org\/cgi-bin\/bugreport.cgi?bug=718533\">#718533<\/a> bug report describing similar situation. i have modified GRUB_CMDLINE_LINUX_DEFAULT in etc\/default\/grub to look as follows:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nGRUB_CMDLINE_LINUX_DEFAULT=&quot;rootdelay=10 quiet&quot;\r\n<\/pre>\n<p>then run:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@host:~# update-grub\r\nGenerating grub.cfg ...\r\nFound linux image: \/boot\/vmlinuz-3.10-0.bpo.3-amd64\r\nFound initrd image: \/boot\/initrd.img-3.10-0.bpo.3-amd64\r\nFound linux image: \/boot\/vmlinuz-3.2.0-4-amd64\r\nFound initrd image: \/boot\/initrd.img-3.2.0-4-amd64\r\ndone\r\nroot@host:~# grub-install \/dev\/sda\r\nInstallation finished. No error reported.\r\nroot@host:~# grub-install \/dev\/sdb\r\nInstallation finished. No error reported.\r\n<\/pre>\n<p>and all works.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>i&#8217;m setting up some rented server. it has 2x ssd drives on which i&#8217;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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72,51],"tags":[],"class_list":["post-1942","post","type-post","status-publish","format-standard","hentry","category-rant","category-unimportant"],"_links":{"self":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/1942","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/comments?post=1942"}],"version-history":[{"count":8,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/1942\/revisions"}],"predecessor-version":[{"id":1951,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/1942\/revisions\/1951"}],"wp:attachment":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/media?parent=1942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/categories?post=1942"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/tags?post=1942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}