All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Need help with LVM on RedHat 7.1
@ 2001-04-23 17:56 Medi Montaseri
  2001-04-24  1:33 ` Carlo Marcelo Arenas Belon
  0 siblings, 1 reply; 7+ messages in thread
From: Medi Montaseri @ 2001-04-23 17:56 UTC (permalink / raw)
  To: LVM

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, medi@prepass.com, 408-450-7114
Prepass Inc, IT/Operations, Software Eng.
=======================================================================

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

* Re: [linux-lvm] Need help with LVM on RedHat 7.1
  2001-04-24  1:33 ` Carlo Marcelo Arenas Belon
@ 2001-04-23 19:04   ` Medi Montaseri
  2001-04-24  2:47     ` Carlo Marcelo Arenas Belon
  2001-04-24  6:49     ` Luca Berra
  0 siblings, 2 replies; 7+ messages in thread
From: Medi Montaseri @ 2001-04-23 19:04 UTC (permalink / raw)
  To: linux-lvm

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...


Carlo Marcelo Arenas Belon wrote:

> > 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.
>
> > vgscan(1) reports no lvm.o module found.
>
> you should appy this patch to the initscripts also AFAIK
>
> --- initscripts-5.83/rc.d/init.d/halt.lvm       Wed Feb 28 17:18:49 2001
> +++ initscripts-5.83/rc.d/init.d/halt   Mon Apr 23 20:15:51 2001
> @@ -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
>
> > 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>
> > 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
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm

--
=======================================================================
Medi Montaseri, medi@prepass.com, 408-450-7114
Prepass Inc, IT/Operations, Software Eng.
=======================================================================

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

* Re: [linux-lvm] Need help with LVM on RedHat 7.1
  2001-04-23 17:56 [linux-lvm] Need help with LVM on RedHat 7.1 Medi Montaseri
@ 2001-04-24  1:33 ` Carlo Marcelo Arenas Belon
  2001-04-23 19:04   ` Medi Montaseri
  0 siblings, 1 reply; 7+ messages in thread
From: Carlo Marcelo Arenas Belon @ 2001-04-24  1:33 UTC (permalink / raw)
  To: LVM

> 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.

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

you should appy this patch to the initscripts also AFAIK

--- initscripts-5.83/rc.d/init.d/halt.lvm	Wed Feb 28 17:18:49 2001
+++ initscripts-5.83/rc.d/init.d/halt	Mon Apr 23 20:15:51 2001
@@ -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

> 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>
> 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

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

* Re: [linux-lvm] Need help with LVM on RedHat 7.1
  2001-04-23 19:04   ` Medi Montaseri
@ 2001-04-24  2:47     ` Carlo Marcelo Arenas Belon
  2001-04-24 12:09       ` Medi Montaseri
  2001-04-24  6:49     ` Luca Berra
  1 sibling, 1 reply; 7+ messages in thread
From: Carlo Marcelo Arenas Belon @ 2001-04-24  2:47 UTC (permalink / raw)
  To: linux-lvm

> 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.

> 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 ;)

> 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

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

* Re: [linux-lvm] Need help with LVM on RedHat 7.1
  2001-04-23 19:04   ` Medi Montaseri
  2001-04-24  2:47     ` Carlo Marcelo Arenas Belon
@ 2001-04-24  6:49     ` Luca Berra
  1 sibling, 0 replies; 7+ messages in thread
From: Luca Berra @ 2001-04-24  6:49 UTC (permalink / raw)
  To: linux-lvm

On Mon, Apr 23, 2001 at 12:04:35PM -0700, Medi Montaseri wrote:
> 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.
-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

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

* Re: [linux-lvm] Need help with LVM on RedHat 7.1
  2001-04-24  2:47     ` Carlo Marcelo Arenas Belon
@ 2001-04-24 12:09       ` Medi Montaseri
  0 siblings, 0 replies; 7+ messages in thread
From: Medi Montaseri @ 2001-04-24 12:09 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 2544 bytes --]

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.

Carlo Marcelo Arenas Belon wrote:

> > 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.
>
> > 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 ;)
>
> > 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
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm

--
=======================================================================
Medi Montaseri, medi@prepass.com, 408-450-7114
Prepass Inc, IT/Operations, Software Eng.
=======================================================================



[-- Attachment #2: Type: text/html, Size: 2781 bytes --]

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

* RE: [linux-lvm] Need help with LVM on RedHat 7.1
@ 2001-04-24 20:37 Paulo Fessel
  0 siblings, 0 replies; 7+ messages in thread
From: Paulo Fessel @ 2001-04-24 20:37 UTC (permalink / raw)
  To: 'linux-lvm@sistina.com'

[-- Attachment #1: Type: text/plain, Size: 4170 bytes --]

Opposed to RAID-0 or Linear, the LVM allows you to grow both your physical
and logical storage dynamically. Without (very) alpha patches, md drivers
won't permit you to do this. Also, Mandrake 8.0 permits you to create PV's
and LV's at installation time (no / in rootvg yet, though; also, no
ext2resize installed per default nor 2.4.3-20mdk supports ext2online).
 
Also, I work on an IDC, and here we have EMC equipment. I've found that md
(at least that of kernel 2.2.18-linus) refuses to work with direct
attachment (Emulex LP8000 FCAL board), and thus it's impossible to join
multiple 50 GB volumes in one (for database storage, for example). So, I am
researching LVM to do this noble task.
 
(I know, I know, I could use QLogic that has built-in kernels and the like,
but people here hate QLogic for a number of reasons. And here in Brazil,
FCAL boards have tag prices of multiple thousand dollars.)
 
HugZ,
Paulo

Paulo Afonso Graner Fessel 
Suporte de Sistemas 
OptiGlobe Telecom, Ltda. - The Internet Lives Here 
R.Bento Branco de Andrade Filho, 621 
São Paulo, SP, 04757-000 
Brasil 
http://www.optiglobe.com.br <http://www.optiglobe.com.br/>  

Tel.:+55 11 3365-4478 
Fax:+55 11 3365-4445 
Cel.:+55 11 9198-9985 
E-mail: paulo_fessel@optiglobe.com.br 

-----Original Message-----
From: Medi Montaseri [mailto:medi@sc.prepass.com]
Sent: Tuesday, April 24, 2001 9:09 AM
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Need help with LVM on RedHat 7.1


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. 


Carlo Marcelo Arenas Belon wrote: 


> 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. 


> 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 ;) 


> 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 


_______________________________________________ 
linux-lvm mailing list 
linux-lvm@sistina.com 
http://lists.sistina.com/mailman/listinfo/linux-lvm
<http://lists.sistina.com/mailman/listinfo/linux-lvm> 

-- 

=======================================================================

Medi Montaseri, medi@prepass.com, 408-450-7114

Prepass Inc, IT/Operations, Software Eng.

=======================================================================
  


[-- Attachment #2: Type: text/html, Size: 6263 bytes --]

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

end of thread, other threads:[~2001-04-24 20:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-23 17:56 [linux-lvm] Need help with LVM on RedHat 7.1 Medi Montaseri
2001-04-24  1:33 ` Carlo Marcelo Arenas Belon
2001-04-23 19:04   ` Medi Montaseri
2001-04-24  2:47     ` Carlo Marcelo Arenas Belon
2001-04-24 12:09       ` Medi Montaseri
2001-04-24  6:49     ` Luca Berra
  -- strict thread matches above, loose matches on Subject: below --
2001-04-24 20:37 Paulo Fessel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.