Skip to contentSkip to conversation

Installed the lvm on the Red Hat 7.1 then what to do

linux-lvm Erik Bågfors 7 participants 8 messages Jul 1, 2001 – Aug 27, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 9 lines · RAGHVENDRA SHUKLA

Hello,
Thanks austin for the tech. help you have provided , But still i am not clear about the difference between the already created partitions ( which are created during the Installation of linux ) and those created by the lvm , also can i increase only those partitions which are created by the Lvm ?? Please Reply and help .

with normal partitioning you have
* disks
* partitions (on those disks)
* filesystems (on those partitions)

example

    hda            (disk)
     |
     /\
 hda1  hda2        (partitions)
  |      |
 ext2  reiserfs    (filesystems)

with (linux-)lvm you have

* physical disks (PV) (on a partition or on a whole disk)
* volume groups (VG) (consists of one of more PV:s, think of them as virtual disks)
* Logival volumes (LV) (on those VG:s. think of them as virtual partitions)

So..

    hda1   hdc1      (PV:s on partitions or whole disks)
       \   /
        \ /
       diskvg        (VG)
       /  |  \
      /   |   \
  usrlv rootlv varlv (resizeable LV:s, think of them as resizeable virtual partitions)
    |      |     |
 ext2  reiserfs  xfs (filesystems)

So you need to
1) create a pv
2) create a vg on that pv
3) create lv:s on that vg
4) create a filesystem on those lv:s
5) mount the lv:s

Hope that helps

/Erik

Signature · 4 lines
Erik B�gfors               | http://erik.bagfors.nu/    
[email protected]            | [email protected]
Supporter of free software | GSM +46 733 279 273
fingerprint: 6666 A85B 95D3 D26B 296B 6C60 4F32 2C0B 693D 6E32
#1 lore raw

[linux-lvm] LVM on Redhat 2.4.3-12 Kernel

I never could get LVM working on the 2.2.19 Redhat kernel. I had to download the generic 2.2.19 kernel from kernel.org and then patch it. Those same patches didn't work on RH's kernel.

I have now upgraded from RH 7.0 to 7.1 and compiled LVM statically in the 2.4.3-12 kernel that came with RH 7.1. When I boot using this kernel LVM doesn't work. It still works if I go back to the 2.2.19 kernel.

My questions....
1. will LVM actually work with RH's 2.4.3-12 kernel?
2. does this kernel have to be patched?
3. do I just need updated LVM software?

In other words, how do I get this going under the new kernel???

Thanks! Gerry

Signature · 1 line
"The lyf so short, the craft so long to learne."   Geoffrey Chaucer
#2 lore raw

Re: [linux-lvm] LVM on Redhat 2.4.3-12 Kernel

Quoted 2 lines · On Tue, Jul 03, 2001 at 05:13:57PM -0400, [email protected] wrote:

In other words, how do I get this going under the new kernel???

We always recommend downloading kernel source from kernel.org, get a copy of the latest released source from ftp.sistina.com and follow the steps in the howto.

RedHat applies tons of custom patches ( 200+ ) to the vanilla source tree in an attempt to one-up thier competition. While this is not inherintly bad, it can make things difficult to sort out when you start trying to apply patches that were generated based off of stock linus brand kernels. Also there may be some hidden differences which let you think everything is working while it in fact is not.

Signature · 3 lines
Ben Lutgens		
Sistina Software Inc.	
Kernel panic: I have no root and I want to scream
#3 lore raw

Re: [linux-lvm] LVM on Redhat 2.4.3-12 Kernel

In reply to [email protected]
Quoted 7 lines · On Tue, Jul 03, 2001 at 05:13:57PM -0400, [email protected] wrote:

I never could get LVM working on the 2.2.19 Redhat kernel. I had to download the generic 2.2.19 kernel from kernel.org and then patch it. Those same patches didn't work on RH's kernel.

I have now upgraded from RH 7.0 to 7.1 and compiled LVM statically in the 2.4.3-12 kernel that came with RH 7.1. When I boot using this kernel LVM doesn't work. It still works if I go back to the 2.2.19 kernel.

All the major distributions have their own versions of the kernel. We do not develop or test against these. So there are no guarantees that LVM will work out of the box with anything other than Linus' kernels. Some distributions, notably SuSE, work at making sure that LVM integrates with their kernel.

Quoted 3 lines

My questions....
1. will LVM actually work with RH's 2.4.3-12 kernel?

I don't know, perhaps we need a volunteer to deal with RedHat issues.

Quoted 1 line

2. does this kernel have to be patched?

Yes.

Quoted 1 line

3. do I just need updated LVM software?

Please use the latest tools.

Quoted 1 line

In other words, how do I get this going under the new kernel???

Personally I would just use a vanilla kernel.

- Joe

#4 lore raw

Re: [linux-lvm] LVM on Redhat 2.4.3-12 Kernel

<SNIP>

Quoted 3 lines
Quoted 3 lines

I have now upgraded from RH 7.0 to 7.1 and compiled LVM statically in the 2.4.3-12 kernel that came with RH 7.1. When I boot using this kernel LVM doesn't work. It still works if I go back to the 2.2.19 kernel.

weird, i have RH7.1 with a RH7.1beta kernel and running lvm0.9.1_beta6 without problems.

surelly the lvm patch could fit better on a linus kernel, but IMHO RedHat's kernels are easy to patch and rebuild from the package.

and once you have a package it is far easier to duplicate the installation on several machines that doing tar/patch/make.

actually i've been waiting for lvm 1.0.0 to make a new rpm to replace my old kernel with a new 2.4.3-12 based one (no need to hurry so far)

if someone is interested i will post the tested packages when ready (BTW anyone knows what happened to the 1.0 release that was supposed to be yesterday?)

regards,

Carlo

#5 lore raw

Re: [linux-lvm] LVM on Redhat 2.4.3-12 Kernel

Quoted 3 lines · Carlo Marcelo Arenas Belon

<SNIP>
(BTW anyone knows what happened to the 1.0 release that was supposed to be yesterday?)

The release is delayed :( I think we're going to need another beta release before the great 1.0. We want to be careful that we can still support existing systems with the bad alignments, as well as newly created LV's that have correct alignment. This is going to involve an upgrade tool that will be run on existing VG's before the new software (beta8) can be used.

- Joe

#6 lore raw

Re: [linux-lvm] LVM on Redhat 2.4.3-12 Kernel

Quoted 11 lines · Joe Thornber
Quoted 3 lines · Carlo Marcelo Arenas Belon

<SNIP>
(BTW anyone knows what happened to the 1.0 release that was supposed to be yesterday?)

The release is delayed :( I think we're going to need another beta release before the great 1.0. We want to be careful that we can still support existing systems with the bad alignments, as well as newly created LV's that have correct alignment. This is going to involve an upgrade tool that will be run on existing VG's before the new software (beta8) can be used.

Think creating this tool is a very good idea. Suggest that you use beta8 in a very dirrected way - possibly publicly stating that the beta8 release is to test X, Y and Z and will last N weeks/days (if no serious problems are found). Alternatly you could use rc1 instead of beta8 and work from there.

Thanks
Ed Tomlinson

#7 lore raw
In reply to Erik Bågfors
Quoted 9 lines · Erik Bågfors
    hda1   hdc1      (PV:s on partitions or whole disks)
       \   /
        \ /
       diskvg        (VG)
       /  |  \
      /   |   \
  usrlv rootlv varlv (resizeable LV:s, think of them as resizeable virtual partitions)
    |      |     |
 ext2  reiserfs  xfs (filesystems)

I hope you don't mind, but I've stuck this diagram in the LVM howto. Is that ok, or should i pull it out?

Signature · 13 lines
AJ Lewis
Sistina Software Inc.                  Voice:  612-638-0500
1313 5th St SE, Suite 111              Fax:    612-638-0500
Minneapolis, MN 55414                  E-Mail: [email protected]
http://www.sistina.com

Current GPG fingerprint = 3B5F 6011 5216 76A5 2F6B  52A0 941E 1261 0029 2648
Get my key at: http://www.sistina.com/~lewis/gpgkey
 (Unfortunately, the PKS-type keyservers do not work with multiple sub-keys)

-----Begin Obligatory Humorous Quote----------------------------------------
Programming graphics in X is like finding sqrt(pi) using Roman numerals.
-----End Obligatory Humorous Quote------------------------------------------