* [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
Hi,
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
vgscan
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
found)
( 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 ?
Regards
Torsten
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] Problems with raid1 and LVM and initrd
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
2 siblings, 0 replies; 4+ messages in thread
From: Fernando Dammous @ 1999-10-07 22:38 UTC (permalink / raw)
To: Torsten Neumann, LVM for Linux
Hi
----- Original Message -----
From: Torsten Neumann <torsten@londo.rhein-main.de>
To: LVM for Linux <linux-lvm@msede.com>
Sent: Thursday, October 07, 1999 3:26 PM
Subject: [linux-lvm] Problems with raid1 and LVM and initrd
> Hi,
> Everythings works, execpt if I start it via initrd.
>
> Any Ideas ?
I had a similar problem. (I'm not using RAID).
There was a difference among /dev and /etc/lvmtab from the real-root-device
and your correspondents in the initrd (it lacked /dev/vg00 / *).
I copied /dev and /etc/lvmtab and I re-built the initrd.
Today no longer vg01 exists, just vg00. Everything works fine.
BTW: my SWAP also lives in a LV (only /boot is out) .
I hope this helps !
> Regards
> Torsten
Cheers,
Fernando
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] Problems with raid1 and LVM and initrd
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
2 siblings, 0 replies; 4+ messages in thread
From: Torsten Neumann @ 1999-10-08 19:21 UTC (permalink / raw)
To: linux-lvm
I <torsten@londo.rhein-main.de> wrote:
[ snip ]
> 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
> found)
Finally I found what was wrong, because it may be of interest for others:
If starting vgscan,pvscan from my ramdisk they "only" look in /dev/md/ for
md block-devices. They didn't use /dev/md0. Creating /dev/md/ and a
symlink /dev/md/md0 -> /dev/md0 solved the problem.
I didn't figured out why vgscan behaves different when starting via initrd
vs. "normal" bootup-sequence. As said before booting from a 3rd drive works
and there was also no /dev/md dir.
Torsten
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] Problems with raid1 and LVM and initrd
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
2 siblings, 0 replies; 4+ messages in thread
From: Michael Marxmeier @ 2020-11-27 16:16 UTC (permalink / raw)
To: torsten; +Cc: linux-lvm
> 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.
[snip]
> 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
> found)
This could be related to a consistency problem with the dynamically
assigned LVM minors. vgscan creates a /etc/lvmtab and /etc/lvmtab.d
(and the correcsponding dev files -- can't remember of head) on your
_ramdisk_. Later LVM tries to access the possibly inconsistent data
(and dev files) on your hard disk.
Please have a look at
http://linux.msede.com/lvm/mlist/archive/0382.html
http://linux.msede.com/lvm/mlist/archive/0383.html
Please try the following:
I assume the vgscan on the ram disk completes w/o problem.
Could you transfer the /etc/lvmtab, /etc/lvmtab.d/*
to your hard disk and make sure the LVM dev files are the same?
You should be able to simply call an interactive shell in the
linuxrc.
Hope this helps
Michael
--
Michael Marxmeier Marxmeier Software AG
E-Mail: mike@msede.com Besenbruchstrasse 9
Phone : +49 202 2431440 42285 Wuppertal, Germany
Fax : +49 202 2431420 http://www.msede.com/
^ 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).