* [linux-lvm] Can't install LVM 1.0.7 on Redhat Advanced Server 2.1 Please help.
@ 2003-09-10 6:49 Gene
2003-09-10 8:05 ` [linux-lvm] Devices seen twice - how does LVM handle ? Markus Baertschi
2003-09-10 8:15 ` [linux-lvm] Can't install LVM 1.0.7 on Redhat Advanced Server 2.1 Please help Luca Berra
0 siblings, 2 replies; 8+ messages in thread
From: Gene @ 2003-09-10 6:49 UTC (permalink / raw)
To: linux-lvm
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
^ permalink raw reply [flat|nested] 8+ messages in thread* [linux-lvm] Devices seen twice - how does LVM handle ?
2003-09-10 6:49 [linux-lvm] Can't install LVM 1.0.7 on Redhat Advanced Server 2.1 Please help Gene
@ 2003-09-10 8:05 ` Markus Baertschi
2003-09-10 8:21 ` Luca Berra
2003-09-10 8:15 ` [linux-lvm] Can't install LVM 1.0.7 on Redhat Advanced Server 2.1 Please help Luca Berra
1 sibling, 1 reply; 8+ messages in thread
From: Markus Baertschi @ 2003-09-10 8:05 UTC (permalink / raw)
To: linux-lvm@sistina.com
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: markus@markus.org
Switzerland Homepage: www.markus.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [linux-lvm] Devices seen twice - how does LVM handle ?
2003-09-10 8:05 ` [linux-lvm] Devices seen twice - how does LVM handle ? Markus Baertschi
@ 2003-09-10 8:21 ` Luca Berra
2003-09-10 11:29 ` Markus Baertschi
2003-09-10 11:58 ` Rainer Krienke
0 siblings, 2 replies; 8+ messages in thread
From: Luca Berra @ 2003-09-10 8:21 UTC (permalink / raw)
To: linux-lvm
On Wed, Sep 10, 2003 at 03:04:25PM +0200, Markus Baertschi wrote:
>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
>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.
>- Are there risks of corruption ?
i don't think so.
>- 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.
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [linux-lvm] Devices seen twice - how does LVM handle ?
2003-09-10 8:21 ` Luca Berra
@ 2003-09-10 11:29 ` Markus Baertschi
2003-09-10 11:58 ` Rainer Krienke
1 sibling, 0 replies; 8+ messages in thread
From: Markus Baertschi @ 2003-09-10 11:29 UTC (permalink / raw)
To: linux-lvm@sistina.com
Hi Luca,
On Wed, 10 Sep 2003 15:20:11 +0200, Luca Berra wrote:
>>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 ?
>>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.
>>- Are there risks of corruption ?
>i don't think so.
Why ?
>>- 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.
>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...).
>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: markus@markus.org
Switzerland Homepage: www.markus.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [linux-lvm] Devices seen twice - how does LVM handle ?
2003-09-10 8:21 ` Luca Berra
2003-09-10 11:29 ` Markus Baertschi
@ 2003-09-10 11:58 ` Rainer Krienke
2003-09-10 13:24 ` Markus Baertschi
1 sibling, 1 reply; 8+ messages in thread
From: Rainer Krienke @ 2003-09-10 11:58 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: signed data --]
[-- Type: text/plain, Size: 2184 bytes --]
On Mittwoch, 10. September 2003 15:20, Luca Berra wrote:
> On Wed, Sep 10, 2003 at 03:04:25PM +0200, Markus Baertschi wrote:
> >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
>
> >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.
>
> >- Are there risks of corruption ?
>
> i don't think so.
>
> >- 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
--
---------------------------------------------------------------------------
Rainer Krienke, Universitaet Koblenz, Rechenzentrum
Universitaetsstrasse 1, 56070 Koblenz, Tel: +49 261287 -1312, Fax: -1001312
Mail: krienke@uni-koblenz.de, Web: http://www.uni-koblenz.de/~krienke
Get my public PGP key: http://www.uni-koblenz.de/~krienke/mypgp.html
---------------------------------------------------------------------------
[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [linux-lvm] Devices seen twice - how does LVM handle ?
2003-09-10 11:58 ` Rainer Krienke
@ 2003-09-10 13:24 ` Markus Baertschi
0 siblings, 0 replies; 8+ messages in thread
From: Markus Baertschi @ 2003-09-10 13:24 UTC (permalink / raw)
To: linux-lvm@sistina.com
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
>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
>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: markus@markus.org
Switzerland Homepage: www.markus.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [linux-lvm] Can't install LVM 1.0.7 on Redhat Advanced Server 2.1 Please help.
2003-09-10 6:49 [linux-lvm] Can't install LVM 1.0.7 on Redhat Advanced Server 2.1 Please help Gene
2003-09-10 8:05 ` [linux-lvm] Devices seen twice - how does LVM handle ? Markus Baertschi
@ 2003-09-10 8:15 ` Luca Berra
2003-09-10 8:30 ` Gene
1 sibling, 1 reply; 8+ messages in thread
From: Luca Berra @ 2003-09-10 8:15 UTC (permalink / raw)
To: linux-lvm
On Wed, Sep 10, 2003 at 04:48:40AM -0700, Gene wrote:
>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
>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.
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [linux-lvm] Can't install LVM 1.0.7 on Redhat Advanced Server 2.1 Please help.
2003-09-10 8:15 ` [linux-lvm] Can't install LVM 1.0.7 on Redhat Advanced Server 2.1 Please help Luca Berra
@ 2003-09-10 8:30 ` Gene
0 siblings, 0 replies; 8+ messages in thread
From: Gene @ 2003-09-10 8:30 UTC (permalink / raw)
To: linux-lvm
Thanks Luca, have you tried installing LVM2 on a RH AS
2.1 server?
Regards,
Gene
--- Luca Berra <bluca@comedia.it> wrote:
> On Wed, Sep 10, 2003 at 04:48:40AM -0700, Gene
> wrote:
> >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
>
> >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.
>
> --
> Luca Berra -- bluca@comedia.it
> Communication Media & Services S.r.l.
> /"\
> \ / ASCII RIBBON CAMPAIGN
> X AGAINST HTML MAIL
> / \
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2003-09-10 13:24 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-10 6:49 [linux-lvm] Can't install LVM 1.0.7 on Redhat Advanced Server 2.1 Please help Gene
2003-09-10 8:05 ` [linux-lvm] Devices seen twice - how does LVM handle ? Markus Baertschi
2003-09-10 8:21 ` Luca Berra
2003-09-10 11:29 ` Markus Baertschi
2003-09-10 11:58 ` Rainer Krienke
2003-09-10 13:24 ` Markus Baertschi
2003-09-10 8:15 ` [linux-lvm] Can't install LVM 1.0.7 on Redhat Advanced Server 2.1 Please help Luca Berra
2003-09-10 8:30 ` Gene
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.