On Sat, 2007-10-20 at 22:38 +0400, Michael Tokarev wrote: > Justin Piszcz wrote: > > > > On Fri, 19 Oct 2007, Doug Ledford wrote: > > > >> On Fri, 2007-10-19 at 13:05 -0400, Justin Piszcz wrote: > [] > >>> Got it, so for RAID1 it would make sense if LILO supported it (the > >>> later versions of the md superblock) > >> > >> Lilo doesn't know anything about the superblock format, however, lilo > >> expects the raid1 device to start at the beginning of the physical > >> partition. In otherwords, format 1.0 would work with lilo. > > Did not work when I tried 1.x with LILO, switched back to 00.90.03 and > > it worked fine. > > There are different 1.x - and the difference is exactly this -- location > of the superblock. In 1.0, superblock is located at the end, just like > with 0.90, and lilo works just fine with it. It gets confused somehow > (however I don't see how really, because it uses bmap() to get a list > of physical blocks for the files it wants to access - those should be > in absolute numbers, regardless of the superblock locaction) when the > superblock is at the beginning (v 1.1 or 1.2). > > /mjt It's been a *long* time since I looked at the lilo raid1 support (I wrote the original patch that Red Hat used, I have no idea if that's what the lilo maintainer integrated though). However, IIRC, it uses bmap on the file, which implies it's via the filesystem mounted on the raid device. And the numbers are not absolute I don't think except with respect to the file system. So, I think the situation could be made to work if you just taught lilo that on version 1.1 or version 1.2 superblock raids that it should add the data offset of the raid to the bmap numbers (which I think are already added to the partition offset numbers). -- Doug Ledford <dledford@xxxxxxxxxx> GPG KeyID: CFBFF194 http://people.redhat.com/dledford Infiniband specific RPMs available at http://people.redhat.com/dledford/Infiniband
Attachment:
signature.asc
Description: This is a digitally signed message part