Skip to contentSkip to conversation

Need help with LVM on RedHat 7.1

linux-lvm Medi Montaseri 3 participants 6 messages Apr 23, 2001 – Apr 24, 2001

lore
Share & tools
lore
#0 lore raw

I have been holding my breath for 2.4 for so long and as I download and install RedHat 7.1 with 2.4.2-2, I find that LVM is not by default configured.
vgscan(1) reports no lvm.o module found.

So I get the sources and compile with RAID and LVM marked as modules.

#
# Multi-device support (RAID and LVM)
#
CONFIG_MD=y
CONFIG_BLK_DEV_MD=m
CONFIG_MD_LINEAR=m
CONFIG_MD_RAID0=m
CONFIG_MD_RAID1=m
CONFIG_MD_RAID5=m
# CONFIG_MD_MULTIPATH is not set
CONFIG_BLK_DEV_LVM=m

My make menuconfig; make dep; make clean; make bzImage are all fine. Based on some docs, I was now supposed to do 'make modules'. this part is breaking with some errors from 'drivers/md/linear.c"

Other documents say, one has to install the kernel and reboot and then make modules.

Can someone help me with this.
Is RedHat planning to include LVM in their kernel. I don't like to have to build kernel
for production. (just in case I have to bring one up fast as a replacement).

Thanks

--
=======================================================================
Medi Montaseri, [email protected], 408-450-7114
Prepass Inc, IT/Operations, Software Eng.
=======================================================================

#2 lore raw
In reply to Carlo Marcelo Arenas Belon

Thanks, but I usually don't use Beta on a production box and also RedHat 7.1 comes with a rather old version of lvm, I think 0.8final.

But the compile errors I'm getting are two basics to have passed QA of any distributor...I just recompiled again with only LVM enabled and not RAID and MD
and was getting syntactical errors (compile errors) leaving to belive that some .h
file is missing.

I will try the 'make mrproprer', maybe that'll fix it...

Quoted 48 lines · Carlo Marcelo Arenas Belon
Quoted 3 lines

I have been holding my breath for 2.4 for so long and as I download and install RedHat 7.1 with 2.4.2-2, I find that LVM is not by default configured.

LVM is not by default configured because the lvm on the kernel (0.9.1beta2) is broken AFAIK.

Quoted 1 line

vgscan(1) reports no lvm.o module found.

you should appy this patch to the initscripts also AFAIK

rc.d/init.d/halt Mon Apr 23 20:15:51 2001 renamed from rc.d/init.d/halt.lvm Wed Feb 28 17:18:49 2001 +3 -1
@@ -163,6 +163,9 @@
 
 [ -f /proc/bus/usb/devices ] && umount /proc/bus/usb
 
+# LVM shutdown
+[ -e /proc/lvm -a -x /sbin/vgchange -a -f /etc/lvmtab ] && /sbin/vgchange
-a n
+
 # Remount read only anything that's left mounted.
 #echo $"Remounting remaining filesystems (if any) readonly"
 mount | awk '/ext2/ { print $3 }' | while read line; do
Quoted 2 lines

So I get the sources and compile with RAID and LVM marked as modules.

you should get the new lvm userland programas and kernel module from :

ftp://ftp.sistina.com/pub/LVM/0.9.1_beta/

until the upgraded kernel module and programs get into the oficial kernel.

<SNIP>

Quoted 2 lines

My make menuconfig; make dep; make clean; make bzImage are all fine. Based on some docs, I was now supposed to do 'make modules'.

while building a RH kernel don't forget to copy your configuration to a safe place and do a $(make mrproprer) before a $(make menuconfig) or you could end having strange dependency problems from what is left on the kernel-source RPM

if you follow the LVM documentation you are going to be safe, i just happened to make it work for RH7.1beta and LVM 0.9.1beta6.

and for sure, adding a new patch to the kernel SPEC and rebuilding to get new RPMS is a nice way to get it working.

Quoted 8 lines

best regards,

Carlo

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm

--
=======================================================================
Medi Montaseri, [email protected], 408-450-7114
Prepass Inc, IT/Operations, Software Eng.
=======================================================================

#1 lore raw
In reply to Medi Montaseri
Quoted 3 lines

I have been holding my breath for 2.4 for so long and as I download and install RedHat 7.1 with 2.4.2-2, I find that LVM is not by default configured.

LVM is not by default configured because the lvm on the kernel (0.9.1beta2) is broken AFAIK.

Quoted 1 line

vgscan(1) reports no lvm.o module found.

you should appy this patch to the initscripts also AFAIK

rc.d/init.d/halt renamed from rc.d/init.d/halt.lvm +3 -1
@@ -163,6 +163,9 @@
 
 [ -f /proc/bus/usb/devices ] && umount /proc/bus/usb
 
+# LVM shutdown
+[ -e /proc/lvm -a -x /sbin/vgchange -a -f /etc/lvmtab ] && /sbin/vgchange
-a n
+
 # Remount read only anything that's left mounted.
 #echo $"Remounting remaining filesystems (if any) readonly"

mount | awk '/ext2/ { print $3 }' | while read line; do

Quoted 1 line

So I get the sources and compile with RAID and LVM marked as modules.

you should get the new lvm userland programas and kernel module from :

ftp://ftp.sistina.com/pub/LVM/0.9.1_beta/

until the upgraded kernel module and programs get into the oficial kernel.

<SNIP>

Quoted 2 lines

My make menuconfig; make dep; make clean; make bzImage are all fine. Based on some docs, I was now supposed to do 'make modules'.

while building a RH kernel don't forget to copy your configuration to a safe place and do a $(make mrproprer) before a $(make menuconfig) or you could end having strange dependency problems from what is left on the kernel-source RPM

if you follow the LVM documentation you are going to be safe, i just happened to make it work for RH7.1beta and LVM 0.9.1beta6.

and for sure, adding a new patch to the kernel SPEC and rebuilding to get new RPMS is a nice way to get it working.

best regards,

Carlo

#3 lore raw
In reply to Medi Montaseri
Quoted 2 lines

Thanks, but I usually don't use Beta on a production box and also RedHat 7.1 comes with a rather old version of lvm, I think 0.8final.

sorry, i think i didn't make myself clear.

RedHat 7.1 DOESN'T come with lvm enabled, because the lvm that is inside the kernel (not RedHat's but the one from Linus) and that they ship (2.4.2-2) is a broken one (0.9.1beta2)

they didn't package the lvm userland utilities neither, i guess because of that.

BUT, you can make it work easily if you download the kernel module and userland utilities and patch your kernel as explained on sistina's documentation.

i just happened to make it work this way on a Red Hat 7.1 beta system using the 0.9.1beta6 tar from sistina, so i think this should work on a Red Hat 7.1 final system.

Quoted 6 lines

But the compile errors I'm getting are two basics to have passed QA of any distributor...I just recompiled again with only LVM enabled and not RAID and MD
and was getting syntactical errors (compile errors) leaving to belive that some .h
file is missing.

i guess just because noone even QA this kind of configuration ;)

Quoted 1 line

I will try the 'make mrproprer', maybe that'll fix it...

i hope so, as the kernel should compile, after all, RedHat need to compile it in order to package.

but as i explained before, having an lvm module on your kernel is just one step on having an lvm working system, you are going to need the lvm userland utilities, and the ones that match your kernel module.

that is why i sugested to better download a new kernel module/userland and patch your kernel before even compiling.

also don't forget to change your /etc/init.d/halt script as explained on the sistina's documentation.

and as for running "betas" on production, don't forget that the 0.9.1lvm is still on beta.

best regards,

Carlo

#5 lore raw
In reply to Medi Montaseri
Quoted 6 lines · Medi Montaseri

But the compile errors I'm getting are two basics to have passed QA of any distributor...I just recompiled again with only LVM enabled and not RAID and MD
and was getting syntactical errors (compile errors) leaving to belive that some .h
file is missing.

1st, remember developers hate answering questions on specific distro problems 2nd, please post or make available some output, so ppl can understand what
your problems are
3rd, just a stab in the dark, confirm that you are using kggc to build the kernel

	and not gcc-2.96.

L.

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

I appreciate your support on this...

What is your opinion on RAID-0 or Linear vs LVM.
In my application, I was simply trying to concatnate four 75Gig disks to create one large disk for a backup server. I decided on RAID-0.

Quoted 47 lines · Carlo Marcelo Arenas Belon
Quoted 2 lines

Thanks, but I usually don't use Beta on a production box and also RedHat 7.1 comes with a rather old version of lvm, I think 0.8final.

sorry, i think i didn't make myself clear.

RedHat 7.1 DOESN'T come with lvm enabled, because the lvm that is inside the kernel (not RedHat's but the one from Linus) and that they ship (2.4.2-2) is a broken one (0.9.1beta2)

they didn't package the lvm userland utilities neither, i guess because of that.

BUT, you can make it work easily if you download the kernel module and userland utilities and patch your kernel as explained on sistina's documentation.

i just happened to make it work this way on a Red Hat 7.1 beta system using the 0.9.1beta6 tar from sistina, so i think this should work on a Red Hat 7.1 final system.

Quoted 6 lines

But the compile errors I'm getting are two basics to have passed QA of any distributor...I just recompiled again with only LVM enabled and not RAID and MD
and was getting syntactical errors (compile errors) leaving to belive that some .h
file is missing.

i guess just because noone even QA this kind of configuration ;)

Quoted 1 line

I will try the 'make mrproprer', maybe that'll fix it...

i hope so, as the kernel should compile, after all, RedHat need to compile it in order to package.

but as i explained before, having an lvm module on your kernel is just one step on having an lvm working system, you are going to need the lvm userland utilities, and the ones that match your kernel module.

that is why i sugested to better download a new kernel module/userland and patch your kernel before even compiling.

also don't forget to change your /etc/init.d/halt script as explained on the sistina's documentation.

and as for running "betas" on production, don't forget that the 0.9.1lvm is still on beta.

Quoted 8 lines

best regards,

Carlo

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm

--
=======================================================================
Medi Montaseri, [email protected], 408-450-7114
Prepass Inc, IT/Operations, Software Eng.
=======================================================================