Skip to contentSkip to conversation

LVM and devfs

linux-lvm Stuart Felenstein 5 participants 8 messages Dec 15, 2003

lore
Share & tools
lore
#0 lore raw

I didn't see a search option in the archives and I apologize if this is more appropriate to the devfs list. I installed RedHat9 , and partitioned with DiskDruid using LVM. The only partition that is not LVM is /boot.
However I have now compiled kernel 2.4.23 with LVM and devfs and running into a problem with kernel panics. I'm not sure if having LVM is causing the issue. Even though I've tried many different append roots, looking at the working kernel in lilo.conf I see root = /dev/Volume00/LogVol01. So I'm' wondering how I translate that to /dev/ide/host0..... .

Here is my current /etc/fstab:
/dev/Volume00/LogVol01 / ext3
LABEL =/boot /boot ext3
/dev/Volume00/LogVol02 /cache ext3
/dev/Volume00/LogVol03 /myth ext3
none /proc proc
none /dev/shm tmpfs
/dev/Volume00/LogVol00 /swap swap
/dev/cdrom

Greatly appreciate some help, pointers and / or links. Thank you,
Stuart

#1 lore raw

I believe your problem is that you need an initrd that includes LVM stuff. Try the command "lvmcreate_initrd", then ensure that the new lvm_initrd file is loaded with lilo (I use grub so I can't help you with lilo). RH uses their own initrd, so you should be able to use the existing lilo.conf as a guide. If you have an unusual setup you may have to mount the initrd file, and edit it yourself.

Jord Tanner

Quoted 24 lines · Stuart Felenstein

I didn't see a search option in the archives and I apologize if this is more appropriate to the devfs list. I installed RedHat9 , and partitioned with DiskDruid using LVM. The only partition that is not LVM is /boot.
However I have now compiled kernel 2.4.23 with LVM and devfs and running into a problem with kernel panics. I'm not sure if having LVM is causing the issue. Even though I've tried many different append roots, looking at the working kernel in lilo.conf I see root = /dev/Volume00/LogVol01. So I'm' wondering how I translate that to /dev/ide/host0..... .

Here is my current /etc/fstab:
/dev/Volume00/LogVol01 / ext3
LABEL =/boot /boot ext3
/dev/Volume00/LogVol02 /cache ext3
/dev/Volume00/LogVol03 /myth ext3
none /proc proc
none /dev/shm tmpfs
/dev/Volume00/LogVol00 /swap swap
/dev/cdrom

Greatly appreciate some help, pointers and / or links. Thank you,
Stuart

Signature · 1 line
Jord Tanner <[email protected]>
#3 lore raw
In reply to Stuart Felenstein
Quoted 4 lines · Stuart Felenstein

I didn't see a search option in the archives and I apologize if this is more appropriate to the devfs list. I installed RedHat9 , and partitioned with DiskDruid using LVM. The only partition that is not LVM is /boot.

- devfs in not supported on redhat 9
- lvm created on a non devfs system do not work on a devfs system without tinkering and vice versa. devfs=nomount yelds even worse results
remove devfs from your kernel

L.

Signature · 6 lines
Luca Berra -- [email protected]
       Communication Media & Services S.r.l.
/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \
#2 lore raw
In reply to Jord Tanner

Thank you. I solved part of my problem by getting the devfs daemon loaded. Now working through the rest of the doc. I realized after some time that LVM can coexist with devfs and they are not going to bump heads.

Stuart

Jord Tanner <[email protected]> wrote:
I believe your problem is that you need an initrd that includes LVM stuff. Try the command "lvmcreate_initrd", then ensure that the new lvm_initrd file is loaded with lilo (I use grub so I can't help you with lilo). RH uses their own initrd, so you should be able to use the existing lilo.conf as a guide. If you have an unusual setup you may have to mount the initrd file, and edit it yourself.

Jord Tanner

Quoted 24 lines · Stuart Felenstein

I didn't see a search option in the archives and I apologize if this is more appropriate to the devfs list. I installed RedHat9 , and partitioned with DiskDruid using LVM. The only partition that is not LVM is /boot.
However I have now compiled kernel 2.4.23 with LVM and devfs and running into a problem with kernel panics. I'm not sure if having LVM is causing the issue. Even though I've tried many different append roots, looking at the working kernel in lilo.conf I see root = /dev/Volume00/LogVol01. So I'm' wondering how I translate that to /dev/ide/host0..... .

Here is my current /etc/fstab:
/dev/Volume00/LogVol01 / ext3
LABEL =/boot /boot ext3
/dev/Volume00/LogVol02 /cache ext3
/dev/Volume00/LogVol03 /myth ext3
none /proc proc
none /dev/shm tmpfs
/dev/Volume00/LogVol00 /swap swap
/dev/cdrom

Greatly appreciate some help, pointers and / or links. Thank you,
Stuart

Signature · 8 lines
Jord Tanner 


_______________________________________________
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/
#4 lore raw
In reply to Luca Berra

Luca,

I think you may be off here. It was RedHat9 that gave me the option of using LVM.
I've gone to the 2.4.23 kernel with devfs and lvm support. I know there is alot or a good amount of controvery around devfs but I think I'll ride it out and see how it works for me. Thank you for your response.

Stuart

Luca Berra <[email protected]> wrote:
- devfs in not supported on redhat 9
- lvm created on a non devfs system do not work on a devfs system without tinkering and vice versa. devfs=nomount yelds even worse results
remove devfs from your kernel

L.

Signature · 12 lines
Luca Berra -- [email protected]
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \

_______________________________________________
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/
#5 lore raw
Quoted 2 lines · Stuart Felenstein

I think you may be off here. It was RedHat9 that gave me the option of using LVM.

i said _devfs_ is not supported,
_lvm_ is.

Quoted 4 lines

I've gone to the 2.4.23 kernel with devfs and lvm support. I know there is alot or a good amount of controvery around devfs but I think I'll ride it out and see how it works for me.

lvm1 tools do have a problem with switching from devfs to non-devfs, and vice-versa since they use /proc/partitions to find pvs, and do write the pv name in the metadata. (read the list archives for the gory details)

L.

Signature · 6 lines
Luca Berra -- [email protected]
       Communication Media & Services S.r.l.
/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \
#6 lore raw
Quoted 13 lines · Luca Berra
Quoted 2 lines · Stuart Felenstein

I think you may be off here. It was RedHat9 that gave me the option of using LVM.

i said _devfs_ is not supported,
_lvm_ is.

Quoted 4 lines

I've gone to the 2.4.23 kernel with devfs and lvm support. I know there is alot or a good amount of controvery around devfs but I think I'll ride it out and see how it works for me.

Quoted 8 lines

lvm1 tools do have a problem with switching from devfs to non-devfs, and vice-versa since they use /proc/partitions to find pvs, and do write the pv name in the metadata. (read the list archives for the gory details)

L.

I have looked for this info, and haven't foud a conclusive answer. Is there a recipe (no matter how convoluted) for migrating from a devfs+lvm system to a non-devfs lvm system?

-Tupshin

#7 lore raw
In reply to Luca Berra

Hi.

Quoted 11 lines · On Mon, 15 Dec 2003 23:48:41 +0100 Luca Berra <[email protected]> wrote:
Quoted 2 lines · Stuart Felenstein

I think you may be off here. It was RedHat9 that gave me the option of using LVM.

i said _devfs_ is not supported,
_lvm_ is.

Quoted 4 lines

I've gone to the 2.4.23 kernel with devfs and lvm support. I know there is alot or a good amount of controvery around devfs but I think I'll ride it out and see how it works for me.

Quoted 8 lines

lvm1 tools do have a problem with switching from devfs to non-devfs, and vice-versa since they use /proc/partitions to find pvs, and do write the pv name in the metadata. (read the list archives for the gory details)

L.

I use lvm1+devfs on a few (Gentoo, 2.4.23) systems and I had no problems so far. I even switched the drives around, e.g. making primary master secondary slave and so on, and to my suprise it just worked as if I didn't do anything. So I don't understand why there are troubles moving from lvm1 with devfs to lvm without devfs. I even used KNOPPIX in one of the systems, which has devfs disabled AFAIK, and still had no problems getting access on my data besides doing manual "vgscan ; vgchange -a y" and mounting.

Just my 0,02 Euro.

Greetings

Frank Benkstein.