[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: [linux-lvm] root on lvm2 on raid5 problem... kernel 2.6.x



Thanks to all who replied!  I'm sorry that I wasn't able to try the
recommendations out sooner, but I wasn't able to access the machine other
than remotely for a few days.

I did solve the problem by using Jeff Layton's much-appreciated
lvm2create_initrd script that he sent out recently.  However I did try out a
few more things before that that I thought to reply on for posterity...

First I checked the lvm.conf file and masked out all "^hd" entries with the
filter option.
	filter = [ "r/^hd/" ]

I also double-checked that the --ignorelockingfailure option was passed to
the vgchange command:
	/sbin/lvm vgchange --ignorelockingfailure -P -a y

I still got the same error when rebooting, however.  I did not try the
--mknodes option with vgscan, as was suggested, since the problem had
already been fixed with the initrd image generated by Mr. Layton's script (I
did both of these in one "step").  I may try the --mknodes option when I get
a chance later just to see if that works and will let everyone know if it
does.

Thanks again,
    Geoff





-----Original Message-----
From: Jeff Layton [mailto:jtlayton poochiereds net]
Sent: Sunday, February 08, 2004 9:37 AM
To: linux-lvm sistina com
Subject: Re: [linux-lvm] root on lvm2 on raid5 problem... kernel 2.6.x


How do you have lvm.conf set up on the initrd image? In particular, are
you filtering out the underlying devices for your RAID5 partition? I'm
not sure what that error means, but that's the only big gotcha that I
know of that you haven't already covered...
-- Jeff


On Thu, 2004-02-05 at 15:37, Weber, Geoffrey M. wrote:
> Hello all,
> 
> I've done quite a bit of research and worked on it quite a while, but I am
> having problems booting to a lvm2 on raid5 configuration.  Here are the
> details:
> 
> - RAID and ioctl v4 are compiled into the kernel (not as modules).
> - /boot is on a raid1 device /dev/md0.
> - The other partitions are on LVM2 logical volumes riding on a raid5 (3
hard
> drives) on /dev/md1.
> - If I run "cat /proc/mdstat" from the initrd then I do see both raid
> devices running properly.
> - I am running a custom initrd that I built off of an evms initrd image
> because lvmcreate_initrd didn't work.
>     -- The custom initrd works on a different machine with LVM2 but no
> raid5.
>     -- I do run the script to setup /dev/mapper/control in the initrd as a
> preliminary step.
>     -- The nodes in the /dev/mapper/ and /dev/vg_raid5 directories are
setup
> exactly as it is in my "setup" partition (where I installed Knoppix to get
> everything started).
>     -- The error I get when running "lvm vgchange -ay" is:
>         device-mapper: dm-linear: Device lookup failed
> 
> In broader terms, I've tried setting up an initrd that will perform a
> "vgchange -a y" to allow the boot process to load correctly but keep
getting
> errors.  RAID and LVM2 (ioctl v4) support are compiled into the kernel(s)
> (2.6.0 and 2.6.1) and mount great if I boot on my original "installation"
> parition.  From the initrd image, however, vgchange is unable to activate
> the volumes.
> 
> I also want to note that I have gotten the same initrd image to work on a
> non-raid5 setup on a different machine.  I decided to use that image
because
> I couldn't get lvmcreate_initrd to work properly in either place, and it
> took me a while to get the right libraries, commands, /dev/mapper/control
> init/setup script, and /dev directory in the initrd all correct (I based
it
> off of the evms initrd image).  I did change the /dev directory on each
> machine to match the configuration of that machine (e.g. /dev/vg_raid5/*),
> so there shouldn't be any worries there I hope.
> 
> Has anyone gotten a root on LVM2 on raid5 setup going?  I would appreciate
> any advice I could get...
> 
> TIA,
>     Geoff
> 
> 
> 
> NOTICE: This electronic mail transmission may contain confidential
> information and is intended only for the person(s) named.  Any use,
copying
> or disclosure by any other person is strictly prohibited. If you have
> received this transmission in error, please notify the sender via e-mail.
> 
> 
> 
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm sistina com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
-- 
Jeff Layton <jtlayton poochiereds net>

_______________________________________________
linux-lvm mailing list
linux-lvm redhat com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/



NOTICE: This electronic mail transmission may contain confidential
information and is intended only for the person(s) named.  Any use, copying
or disclosure by any other person is strictly prohibited. If you have
received this transmission in error, please notify the sender via e-mail.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]