{"id":40,"date":"2006-06-03T15:40:44","date_gmt":"2006-06-03T15:40:44","guid":{"rendered":"https:\/\/www.bishnet.net\/tim\/blog\/2006\/06\/03\/i-dont-have-a-good-history-with-freebsd-raid\/"},"modified":"2010-11-11T13:01:56","modified_gmt":"2010-11-11T13:01:56","slug":"i-dont-have-a-good-history-with-freebsd-raid","status":"publish","type":"post","link":"https:\/\/www.bishnet.net\/tim\/blog\/2006\/06\/03\/i-dont-have-a-good-history-with-freebsd-raid\/","title":{"rendered":"I don&#8217;t have a good history with FreeBSD RAID&#8230;"},"content":{"rendered":"<p>I&#8217;ve never got on well with software RAID systems on FreeBSD. I&#8217;ve tried gvinum (previously I used vinum), gmirror, and ataraid, all with varying degrees of success. The latest machine I built is using gmirror, and so far I&#8217;m happy.<\/p>\n<p>However, over the past few days I&#8217;ve been having problems with a system I built a couple of years ago. It originally used vinum on FreeBSD 5.2.1, but I recently upgraded it to 5.5 and switched to gvinum. A week or so ago I noticed that the second disk in the mirror was marked stale &#8211; I guessed it was an artifact of the upgrade to 5.5. So on Tuesday I decided to resync it.<\/p>\n<p>It went fine to start with, until syncing one partition produced a disk read error. This marked the whole original disk as bad, and I&#8217;d only half synced to the second disk. Thinking back I knew this disk had an error on, and I&#8217;d fully intended to replace it. Shame I didn&#8217;t do it at the time. Next I rebooted the machine to recover the disk from dead to stale, so I could force it back online. This is where the problems started.<\/p>\n<blockquote><p>GEOM_VINUM: subdisk swap.p1.s0 state change: down -> stale<br \/>\nGEOM_VINUM: subdisk root.p1.s0 state change: down -> stale<br \/>\nGEOM_VINUM: subdisk var.p1.s0 state change: down -> stale<br \/>\nGEOM_VINUM: subdisk usr.p1.s0 state change: down -> stale<\/p><\/blockquote>\n<p>That&#8217;s what welcomed me during bootup. Not too bad I hear you say? Well, that&#8217;s all I saw after that &#8211; it didn&#8217;t boot any further. I tried various things such as unloading the geom_vinum module, booting single user, booting the other disk, pulling one disk, but nothing worked.<\/p>\n<p>In desperation I booted an older kernel. It worked! Well, when I say worked, I mean it booted past this point and asked me for a root partition &#8211; but at least I could work with that. It wasn&#8217;t immediately obvious why it had worked; my theory is that it wasn&#8217;t the fact it was an older kernel, but that it was a different kernel version to the modules on the disk, making it refuse to load the geom_vinum module.<\/p>\n<p>So after getting things running again I decided to update to 6.1. I figured help would be more limited when running 5.5, and I could see changes had gone in to gvinum in 6.1. After a few hours this was done, but the result was the same; I booted to single user, typed &#8220;gvinum start&#8221;, and got the same message. Oddly this time the machine wasn&#8217;t entirely dead &#8211; I could still reboot it. But maybe this was because I&#8217;d launched it manually.<\/p>\n<p>Regardless of the cause of the problem I&#8217;m now stuck. I&#8217;ve got everything running off one disk fine, but I can&#8217;t get the RAID going. The only possibility I can see is redoing the RAID configuration, but to do this I&#8217;ll need to blast the existing config off the disks, and I&#8217;m nervous about that.<\/p>\n<p>The other option I&#8217;m considering is replacing the machine and starting again (it&#8217;s getting old now anyway). Maybe this time I&#8217;ll go for a hardware RAID solution, though \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve never got on well with software RAID systems on FreeBSD. I&#8217;ve tried gvinum (previously I used vinum), gmirror, and ataraid, all with varying degrees of success. The latest machine I built is using gmirror, and so far I&#8217;m happy. However, over the past few days I&#8217;ve been having problems with a system I built a couple of years ago. &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4],"tags":[],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry","category-computing","category-freebsd"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.bishnet.net\/tim\/blog\/wp-json\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bishnet.net\/tim\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bishnet.net\/tim\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bishnet.net\/tim\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bishnet.net\/tim\/blog\/wp-json\/wp\/v2\/comments?post=40"}],"version-history":[{"count":1,"href":"https:\/\/www.bishnet.net\/tim\/blog\/wp-json\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":373,"href":"https:\/\/www.bishnet.net\/tim\/blog\/wp-json\/wp\/v2\/posts\/40\/revisions\/373"}],"wp:attachment":[{"href":"https:\/\/www.bishnet.net\/tim\/blog\/wp-json\/wp\/v2\/media?parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bishnet.net\/tim\/blog\/wp-json\/wp\/v2\/categories?post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bishnet.net\/tim\/blog\/wp-json\/wp\/v2\/tags?post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}