archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Problems with raid1 and LVM and initrd
@ 1999-10-07 18:26 Torsten Neumann
  1999-10-07 22:38 ` Fernando Dammous
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Torsten Neumann @ 1999-10-07 18:26 UTC (permalink / raw)
  To: LVM for Linux


I hope I get the problem description right, the fault machine is miles away.

I'm trying to setup LVM on top of a md-raid1 device, and then put my root
filesystem on it. Setting up raid1 was no problem, setting up LVM on top of
it - no problem. Setting up a second VG on other partitions - no problem.

Disk partitions looks something like
	/dev/sda1	/dev/sdb1	256 MB swap area
	/dev/sda2	/dev/sdb2	32  MB /boot for vmlinux and initrd
	/dev/sda3	/dev/sdb3	2048MB /dev/md0 -> vg00
	/dev/sda4	/dev/sdb4	rest   vg01

My linuxrc does something like this
	mount /proc
	insmod raid1
	ckraid --fix /etc/raid1.conf
	mdadd -ar
	insmod lvm
	vgchange -a y
	umount /proc

The problem is the vgscan call. It doesn't find vg00, it just finds vg01.
Inserting some debug code ( pvdisplay, pvscan, bash ) in the above it looks
to me that /dev/md0 is correctly initialized. But the lvm-commands just
returns error codes. The result is an error while booting the
real-root-device, since there are no drivers it couldn't boot. (init not
( By the way does anybody know how to debug initrd ?  I wanted to make an 
"pvscan -d >foo" but how to I get the output out of ramdisk )

Booting from a third disk and execute the linuxrc script by hand works just
fine, all vg's are seen and useable.

Everythings works, execpt if I start it via initrd.

Any Ideas ?


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-27 16:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-07 18:26 [linux-lvm] Problems with raid1 and LVM and initrd Torsten Neumann
1999-10-07 22:38 ` Fernando Dammous
1999-10-08 19:21 ` Torsten Neumann
2020-11-27 16:16 ` Michael Marxmeier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).