{"id":290,"date":"2015-02-27T11:15:42","date_gmt":"2015-02-27T11:15:42","guid":{"rendered":"http:\/\/tomas.papp.me.uk\/?p=290"},"modified":"2015-02-27T13:32:23","modified_gmt":"2015-02-27T13:32:23","slug":"problem-pri-bootovani-z-lvm-na-degradovaom-md-raid-1","status":"publish","type":"post","link":"https:\/\/tomas.papp.me.uk\/?p=290","title":{"rendered":"Problem pri bootovani z LVM na degradovaom MD RAID 1"},"content":{"rendered":"<pre>Jedna sa o bug\u00a0https:\/\/bugs.launchpad.net\/ubuntu\/+source\/lvm2\/+bug\/1351528<\/pre>\n<pre><\/pre>\n<pre id=\"yui_3_10_3_1_1425035085980_308\">workaround:\r\n- add break=premount to grub kernel line entry\r\n- for continued visibility of text boot output also remove quiet, splash and possibly set gxmode 640x480<\/pre>\n<pre>now @ initramfs prompt:\r\nmdadm --detail \/dev\/md0 should indicate a state of clean, degraded, array is started so this part is ok<\/pre>\n<pre>lvm lvs output attributes are as follows:\r\n-wi-d---- (instead of the expected -wi-a----)\r\nlvs manpage this means device tables are missing (device mapper?)<\/pre>\n<pre>FIX: simply run lvm vgchange -ay and exit initramsfs. This will lead to a booting system.\r\n\r\n\r\nChyba je sposobena nevypopulovanim \/dev\/mapper v pripade ze RAID je v degradovanom stave. \r\nWorkaround je: \r\n\r\n<\/pre>\n<p id=\"yui_3_10_3_1_1425043130094_311\">\u00a0\u00a0* Add new file \/usr\/share\/<wbr \/>initramfs-<wbr \/>tools\/scripts\/<wbr \/>init-premount\/<wbr \/>10hack-<wbr \/>raid-udev<\/p>\n<p>#!\/bin\/sh<br \/>\nsleep 5<br \/>\nudevadm trigger &#8211;action=add<br \/>\nexit 0<\/p>\n<p>chmod a+x\u00a0\/usr\/share\/<wbr \/>initramfs-<wbr \/>tools\/scripts\/<wbr \/>init-premount\/<wbr \/>10hack-<wbr \/>raid-udev<\/p>\n<p>* update-initramfs -u<\/p>\n<pre><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Jedna sa o bug\u00a0https:\/\/bugs.launchpad.net\/ubuntu\/+source\/lvm2\/+bug\/1351528 workaround: &#8211; add break=premount to grub kernel line entry &#8211; for continued visibility of text boot output also remove quiet, splash and possibly set gxmode 640&#215;480 now @ initramfs prompt: mdadm &#8211;detail \/dev\/md0 should indicate a state of clean, degraded, array is started so this part is ok lvm lvs output [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,7],"tags":[],"class_list":["post-290","post","type-post","status-publish","format-standard","hentry","category-uncategorized","category-hardware"],"_links":{"self":[{"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=\/wp\/v2\/posts\/290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=290"}],"version-history":[{"count":3,"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=\/wp\/v2\/posts\/290\/revisions"}],"predecessor-version":[{"id":293,"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=\/wp\/v2\/posts\/290\/revisions\/293"}],"wp:attachment":[{"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}