can't find volumes
"Heinz J . Mauelshagen" <[email protected]> wrote ..
Quoted 5 lines
Mark,
that's probably the missing /proc in your chroot environment.
It is ?
Before chrooting, I do (mind you, this is from a livecd environment)
vgscan
vgchange -ay
mount /dev/lv/ide /mnt/gentoo
mount /dev/hde7 /mnt/gentoo/boot
mount -t proc proc /mnt/gentoo/proc
chroot /mnt/gentoo /bin/bash
(where /mnt/gentoo is the root of the to be installed linux system) If that isn't the right thing to do, then how do I do it right ?
Many thanx already, hope I can get some more help.
best regards
Mark
<--- previous mail follows from on here --->
"Heinz J . Mauelshagen" <[email protected]> wrote ..
Quoted 79 lines · On Thu, Jun 26, 2003 at 12:12:24PM +0200, [email protected] wrote:
Quoted 3 lines
Hi, I come seeking sage advice :)
Anyways, I've been busy installing a new Linux system using Gentoo. I
am running this on a spare box, Duron 800 w 300mb, with the harddisk connected to the Promise ATA 100 onboard controller as
/dev/hde8.Quoted 12 lines
Al goes well, and I create the following partitions
/dev/hde6 swap /dev/hde7 ext3 fs /boot /dev/hde8 lvmI also create the pv on
/dev/hde8and a logical volume at/dev/lv/ide
/dev/lv/ideis my /Quoted 1 line
From my running livecd I then chroot'ed into
/dev/lv/ide, and then thetroubles began. When I run vgscan when chroot'ed it doesn't find any volume groups. When I run vgchange, i claims that the VDGA record doesn't match the kernel, and urges me to run vgscan, running vgscan doesn't solve this problem since it doesn't find the volume groups.
Quoted 2 lines
ls -l
/dev/lv/ideshows me that my volume group indeed doesn't excist.However, the mount command shows me that
/dev/lv/ideis mounted at root. So in summary, I can't find the volumegroup, even tough I am working on/in it.Quoted 2 lines
I decided to go ahead anyways, and created a initrd using
lvmcreate_initrd(based on the kernel i made, 2.4.21 ) it does this, and when I boot it loads this initrd as it is supposed to. It neatly finds my
/dev/hdaand/dev/hdbcdroms, and once insmod'ed it also find/dev/hde, but the it runs vgscan and finds no volumegroups, that causes vgchange to not find anything either. That causes the kernel to panic, since it cannot find root.Quoted 2 lines
Weird thing is, if I boot with any other rescue/livecd, such as SuSE
rescue, knoppix or gentoo live cd, I can vgscan and vgchange -ay to find my volume group and logical volume. But once chroot'ed or booting to my new system, I cannot and will not find it.
Quoted 2 lines
Does anyone have any suggestions on why vgscan doesn't find anything
and how to solve this ?
Quoted 2 lines
Many thanx in advance, I have been strugling with this one for almost
a week now, and I am out of options. I have been able to install lvm as root on quite a few systems before, including a LFS system, but right now, I am stumped.
Quoted 6 lines
best regards
MarkWhen I boot from a livecd image, such as
Signature · 21 lines
Regards, Heinz -- The LVM Guy -- *** Software bugs are stupid. Nevertheless it needs not so stupid people to solve them *** =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Heinz Mauelshagen Sistina Software Inc. Senior Consultant/Developer Am Sonnenhang 11 56242 Marienrachdorf Germany [email protected] +49 2626 141200 FAX 924446 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- _______________________________________________ linux-lvm mailing list [email protected] http://lists.sistina.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/