Skip to contentSkip to conversation

Can't install LVM 1.0.7 on Redhat Advanced Server 2.1 Please help.

linux-lvm Gene 4 participants 8 messages Sep 10, 2003

lore
Share & tools
lore

Gene

author
#0 lore raw

I have been struggling over the past 5 hours to get LVM installed on my RH AS 2.1 server but it's just no go. I have the 2.4.9-e.25enterprise kernel installed, and when I am done un-tarring the files.

I run the ./configure --with-kernel_dir=/boot command, as I could not find a /usr/src/linux directory.. (There are no directories under /usr/src)

Apparently, half-way during there was an error saying

=====
linuxver - /boot/Makefile does not exist
*** Unable to determine version of linux to build patches for ***
*** Consider using the --with-kernel_dir flag

       ***

=========
Does anyone know where the kernel_dir for RH AS is? I would think it's in the /boot folder.

grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to
/boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro
root=/dev/ida/c0d5p3
# initrd /initrd-version.img
#boot=/dev/ida/c0d0
default=1
timeout=10 splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.9-e.25enterprise)

        root (hd0,0)
        kernel /vmlinuz-2.4.9-e.25enterprise ro
root=/dev/ida/c0d5p3
        initrd /initrd-2.4.9-e.25enterprise.img

]# ll /boot
total 18930
-rw-r--r-- 1 root root 5824 Jun 25
2001 boot.b
-rw-r--r-- 1 root root 612 Jun 25
2001 chain.b
drwxr-xr-x 2 root root 1024 Sep 10
19:42 grub
-rw-r--r-- 1 root root 249577 Sep 10
16:47 initrd-2.4.9-e.25enterprise.img
-rw-r--r-- 1 root root 246403 Sep 10
2003 initrd-2.4.9-e.3enterprise.img
-rw-r--r-- 1 root root 241848 Sep 10
2003 initrd-2.4.9-e.3.img
-rw-r--r-- 1 root root 246381 Sep 10
2003 initrd-2.4.9-e.3smp.img
lrwxrwxrwx 1 root root 14 Sep 10
17:55 kernel.h -> kernel.h-2.4.9
-rw-r--r-- 1 root root 428 Sep 10
18:39 kernel.h-2.4.9
drwx------ 2 root root 12288 Sep 10
2003 lost+found
-rw-r--r-- 1 root root 23108 Jun 25
2001 message
lrwxrwxrwx 1 root root 21 Sep 10
2003 module-info -> module-info-2.4.9-e.3
-rw-r--r-- 1 root root 13599 Jun 7
06:07 module-info-2.4.9-e.25enterprise
-rw-r--r-- 1 root root 13599 May 4
2002 module-info-2.4.9-e.3
-rw-r--r-- 1 root root 13599 May 4
2002 module-info-2.4.9-e.3enterprise
-rw-r--r-- 1 root root 13599 May 4
2002 module-info-2.4.9-e.3smp
-rw-r--r-- 1 root root 640 Jun 25
2001 os2_d.b
lrwxrwxrwx 1 root root 31 Sep 10
17:19 System.map -> System.map-2.4.9-e.25enterprise
-rw-r--r-- 1 root root 469339 Jun 7
06:07 System.map-2.4.9-e.25enterprise
-rw-r--r-- 1 root root 444721 May 4
2002 System.map-2.4.9-e.3
-rw-r--r-- 1 root root 466214 May 4
2002 System.map-2.4.9-e.3enterprise
-rw-r--r-- 1 root root 466091 May 4
2002 System.map-2.4.9-e.3smp
-rwxr-xr-x 1 root root 3138379 Jun 7
06:07 vmlinux-2.4.9-e.25enterprise
-rwxr-xr-x 1 root root 2767809 May 4
2002 vmlinux-2.4.9-e.3
-rwxr-xr-x 1 root root 3105369 May 4
2002 vmlinux-2.4.9-e.3enterprise
-rwxr-xr-x 1 root root 3097034 May 4
2002 vmlinux-2.4.9-e.3smp
lrwxrwxrwx 1 root root 17 Sep 10
2003 vmlinuz -> vmlinuz-2.4.9-e.3
-rw-r--r-- 1 root root 1088359 Jun 7
06:07 vmlinuz-2.4.9-e.25enterprise
-rw-r--r-- 1 root root 997736 May 4
2002 vmlinuz-2.4.9-e.3
-rw-r--r-- 1 root root 1076755 May 4
2002 vmlinuz-2.4.9-e.3enterprise
-rw-r--r-- 1 root root 1073371 May 4
2002 vmlinuz-2.4.9-e.3smp
[root@test grub]#

If the kernel is located at the boot, how come I can't seem to configure it right? I need to get the patch done for my kernel before it works, right now none of the LVM commands work.

I have read the INSTALL and README file but still have no clues.

Appreciate any help rendered.

Thanks in Advance.

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

#1 lore raw

[linux-lvm] Devices seen twice - how does LVM handle ?

For reasons too complicate to explain here our SAN configuration is broken. The effect is that linux sees the san disks twice. The originally installed 'vgscan' was responding with a segfault to this situation. After the installation of the latest release (1.0.7) vgscan is fine and the volumegroup comes up.

However, does LVM handles this situation (disks visible twice) nicely ? or should I continue to use my workaround (pull a fiber) to make sure the disks are visible only once ?
- Are there risks of corruption ?
- What happens if the path the LVM happens to use breaks, but the other is still up. Will LVM handle fail-over ?

Markus

--
Markus Baertschi Phone: ++41 (21) 807 1677
Bas du Rossé 14b Fax : ++41 (21) 807 1678
CH-1163, Etoy Email: [email protected]
Switzerland Homepage: www.markus.org

#2 lore raw

Re: [linux-lvm] Devices seen twice - how does LVM handle ?

Quoted 4 lines · Markus Baertschi

For reasons too complicate to explain here our SAN configuration is broken. The effect is that linux sees the san disks twice. The originally

However, does LVM handles this situation (disks visible twice) nicely ?

does not seem broken to me if you have two hba.
lvm does not support multipath

Quoted 2 lines

or should I continue to use my workaround (pull a fiber) to make sure the disks are visible only once ?

it is not a nice workaround.

Quoted 1 line

- Are there risks of corruption ?

i don't think so.

Quoted 2 lines

- What happens if the path the LVM happens to use breaks, but the other is still up. Will LVM handle fail-over ?

lvm does not support multipath

at the moment your best chance is setting up an md multipath and building your lvm over the md devices. be sure to use mdadm instead of raidtools to manage the md.

i have this setup (2 hbas to same storage with lvm over md multipath) in production, and it works fine.

another option could be if your hba driver handles multipath. i know some qlogic boards do.

regards,
L.

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

Re: [linux-lvm] Devices seen twice - how does LVM handle ?

Hi Luca,

Quoted 3 lines · Luca Berra
Quoted 1 line

However, does LVM handles this situation (disks visible twice) nicely ?

does not seem broken to me if you have two hba.
lvm does not support multipath

What does LVM do if it sees two paths (/dev/sdx1 entries) to the same virtual disk ?

Quoted 3 lines
Quoted 2 lines

or should I continue to use my workaround (pull a fiber) to make sure the disks are visible only once ?

it is not a nice workaround.

Yes, but the only one I got to work in the timeframe I had to get the machines up and running again.

Quoted 2 lines
Quoted 1 line

- Are there risks of corruption ?

i don't think so.

Why ?

Quoted 3 lines
Quoted 2 lines

- What happens if the path the LVM happens to use breaks, but the other is still up. Will LVM handle fail-over ?

lvm does not support multipath

OK.

Quoted 3 lines

at the moment your best chance is setting up an md multipath and building your lvm over the md devices. be sure to use mdadm instead of raidtools to manage the md.

I'm not familiar with md. The volumes are already there and in production, If possible I don't want to reconfigure (downtime...).

Quoted 4 lines

i have this setup (2 hbas to same storage with lvm over md multipath) in production, and it works fine.
another option could be if your hba driver handles multipath. i know some qlogic boards do.

I'm using qlogic boards with the qla2300 failover driver. This was working perfectly until someone installed a blade center on unrelated ports of the same storage box and changed the WWN of the box in the process. The linux servers were rebooted three months (!) later for an unrelated purpose and promptly failed to come up (vgscan segfault...). The failover driver now thinks we have two storage boxes...

In the short run the only solution I had was to remove one path/fiber.

The real fix is to reconfigure the storage box, but this has to be done when I can stop all servers connected to it (sunday 02:00 AM...).

In the meantime I installed the latest LVM and this fixes the segfault problem. My main priority is stability right now and I prefer running on one fiber than in a potentially dangerous configuration. The fiber can be switched in a hurry (just plug in the other one), software needs skills the local people don't have (I'm most of the time not on site).

Markus

--
Markus Baertschi Phone: ++41 (21) 807 1677
Bas du Rossé 14b Fax : ++41 (21) 807 1678
CH-1163, Etoy Email: [email protected]
Switzerland Homepage: www.markus.org

#4 lore raw

Re: [linux-lvm] Devices seen twice - how does LVM handle ?

In reply to Luca Berra
Quoted 14 lines · Luca Berra
Quoted 4 lines · Markus Baertschi

For reasons too complicate to explain here our SAN configuration is broken. The effect is that linux sees the san disks twice. The originally

However, does LVM handles this situation (disks visible twice) nicely ?

does not seem broken to me if you have two hba.
lvm does not support multipath

Quoted 2 lines

or should I continue to use my workaround (pull a fiber) to make sure the disks are visible only once ?

it is not a nice workaround.

Quoted 8 lines
Quoted 1 line

- Are there risks of corruption ?

i don't think so.

Quoted 2 lines

- What happens if the path the LVM happens to use breaks, but the other is still up. Will LVM handle fail-over ?

lvm does not support multipath

It did not follow this discussion right from the start, so I might have missed something...

We are running 3 fileservers with raid devices attached by fibrechannel. Since each divice can be reached by 2 seperate io paths we are using a multipath setup based on the md interface (on top of the multipath md devices we finally run a software mirror (raid1)). This works just fine for our servers (running suse8.2) . At the beginning we also had trouble with lvm1 since it was able to see the volume on different levels of abstraction: lvm scanned the real disks, it also scanned the md multipath metadevice and this probably led to the bad behaviour that whenever creating new logical volumes the complete configuration was invalid and so all data lost.

We then changed to lvm2 since it has the ability to specify which devices to scan for lvm metadata and since then everything works fine.

Rainer

Signature · 6 lines
---------------------------------------------------------------------------
Rainer Krienke, Universitaet Koblenz, Rechenzentrum
Universitaetsstrasse 1, 56070 Koblenz, Tel: +49 261287 -1312, Fax: -1001312
Mail: [email protected], Web: http://www.uni-koblenz.de/~krienke
Get my public PGP key: http://www.uni-koblenz.de/~krienke/mypgp.html
---------------------------------------------------------------------------
#5 lore raw

Re: [linux-lvm] Devices seen twice - how does LVM handle ?

Rainer,

I'm using fiber cards coming with a load-balancing driver and a SAN-Storage box (IBM FastT 700) box. Unfortunately the storage-controlles got reconfigured to accommodate more devices on other ports. This broke the configuration for me. As it happens I found out a couple of months later when the new devices were in production (We reboot out servers only when necessary). I can not fix the configuration immediately and am trying to find out how to survive best until I can fix the real problem it.

At the moment I'm pulling a fiber to have only one path as the installed LVM version (0.9beta ?) just crashes if is sees two devices pointing to the same disk.
The most recent version (1.0.7) does not have this problem. It allows me the keep both fibers connected. But I don't know how it handles this situation and started this discussion to find out.

Markus

Quoted 20 lines

It did not follow this discussion right from the start, so I might have mis= sed=20
something...

We are running 3 fileservers with raid devices attached by fibrechannel. Si= nce=20
each divice can be reached by 2 seperate io paths we are using a multipath= =20
setup based on the md interface (on top of the multipath md devices we=20 finally run a software mirror (raid1)). This works just fine for our server= s=20
(running suse8.2) . At the beginning we also had trouble with lvm1 since i= t=20
was able to see the volume on different levels of abstraction: lvm scanned= =20
the real disks, it also scanned the md multipath metadevice and this probab= ly=20
led to the bad behaviour that whenever creating new logical volumes the=20 complete configuration was invalid and so all data lost.=20

Quoted 5 lines

We then changed to lvm2 since it has the ability to specify which devices t= o=20
scan for lvm metadata and since then everything works fine. =20

Rainer

--
Markus Baertschi Phone: ++41 (21) 807 1677
Bas du Rossé 14b Fax : ++41 (21) 807 1678
CH-1163, Etoy Email: [email protected]
Switzerland Homepage: www.markus.org

#6 lore raw
In reply to Gene
Quoted 2 lines · Gene

I run the ./configure --with-kernel_dir=/boot command, as I could not find a /usr/src/linux
directory.. (There are no directories under /usr/src)

install the kernel-source rpm

Quoted 2 lines

Does anyone know where the kernel_dir for RH AS is? I would think it's in the /boot folder.

/usr/src/linux, if you install the rpm.
but you will soon discover that lvm 1.0.7 patches won't apply cleanly to the redhat patched kernel, and running a RHAS with a vanilla kernel is kinda silly.
so, either you are prepared to fix the build by hand, or you wait for RHAS 3.0

regards,
L.
no, i don't have a RHAS handy anymore, so cannot give you a proper patch, besides i am not at all interested in lvm 1 since lvm 2 rocks.

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

Thanks Luca, have you tried installing LVM2 on a RH AS 2.1 server?

Regards,
Gene

Quoted 21 lines · --- Luca Berra
Quoted 3 lines · Gene

I run the ./configure --with-kernel_dir=/boot
command, as I could not find a /usr/src/linux
directory.. (There are no directories under

/usr/src)
install the kernel-source rpm

Quoted 1 line

Does anyone know where the kernel_dir for RH AS is?

I

Quoted 1 line

would think it's in the /boot folder.

/usr/src/linux, if you install the rpm. but you will soon discover that lvm 1.0.7 patches won't apply cleanly
to the redhat patched kernel, and running a RHAS with a vanilla kernel
is kinda silly.
so, either you are prepared to fix the build by hand, or you wait for
RHAS 3.0

Quoted 21 lines

regards,
L.
no, i don't have a RHAS handy anymore, so cannot give you a proper
patch, besides i am not at all interested in lvm 1 since lvm 2
rocks.

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/

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com