OpenVZ Forum


Home » General » Support » LVM problem - CentOS 4.3 x86 - openvz 2.6.8-022stab072-smp
LVM problem - CentOS 4.3 x86 - openvz 2.6.8-022stab072-smp [message #2495] Fri, 07 April 2006 19:33 Go to next message
miroslawgon is currently offline  miroslawgon
Messages: 16
Registered: April 2006
Junior Member
I have problem with LVM on CentOS 4.3 x86 with openvz 2.6.8-022stab072-smp

I can't create logial volume in lvm (I can create pv, vg)
I get error message (Clipboard.jpg)

In original distribution kernel everything works fine, a can create, format and mount lv.

I'm using HighPoint 2220 raid card, driver is loaded, system can see the drive (raid5 array). I am able to create, format and mount normal partitions on both kernels.

What is the problem?
Do I have change something in lvm config?
  • Attachment: Clipboard.jpg
    (Size: 12.13KB, Downloaded 361 times)
Re: LVM problem - CentOS 4.3 x86 - openvz 2.6.8-022stab072-smp [message #2519 is a reply to message #2495] Sat, 08 April 2006 18:39 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

RedHat has broken LVM compatibility in RHEL4.3:
http://bugzilla.openvz.org/show_bug.cgi?id=120

Can you check, please, that coming soon 075 kernel with fixed bug mentioned above helps your issue?
http://download.openvz.org/~dev/075/


http://static.openvz.org/userbars/openvz-developer.png
Re: LVM problem - CentOS 4.3 x86 - openvz 2.6.8-022stab072-smp [message #2572 is a reply to message #2519] Mon, 10 April 2006 12:03 Go to previous messageGo to next message
miroslawgon is currently offline  miroslawgon
Messages: 16
Registered: April 2006
Junior Member
I tried to use the 075 kernel but when I try modprobe highpoint raid card driver I get incompatible version error(the module compilation process works fine, I don't get error messages). I had the same
problem on 072 kernel, the solution is to build kernel form sources. For now I will wait for official release of 075 kernel.


Can you add HighPoint open source drivers to the kernel?
http://www.highpoint-tech.com/BIOS%20+%20Driver/rr2224/Linux /rr222x-linux-src-1.03-060328-1734.tar.gz

Thanks for your help.
Re: LVM problem - CentOS 4.3 x86 - openvz 2.6.8-022stab072-smp [message #2573 is a reply to message #2572] Mon, 10 April 2006 12:05 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

does RHEL4 supports this hardware?


http://static.openvz.org/userbars/openvz-developer.png
Re: LVM problem - CentOS 4.3 x86 - openvz 2.6.8-022stab072-smp [message #2574 is a reply to message #2573] Mon, 10 April 2006 12:46 Go to previous messageGo to next message
miroslawgon is currently offline  miroslawgon
Messages: 16
Registered: April 2006
Junior Member
I searched the RedHat compability list
http://bugzilla.redhat.com/hwcert/
and couldn't find any HighPoint devices.

The card isn't supported in RHEL
Re: LVM problem - CentOS 4.3 x86 - openvz 2.6.8-022stab072-smp [message #2575 is a reply to message #2574] Mon, 10 April 2006 13:03 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Oh, god, this driver comes with binary only modules Confused
Have you tried compiling it? Did it work?


http://static.openvz.org/userbars/openvz-developer.png
Re: LVM problem - CentOS 4.3 x86 - openvz 2.6.8-022stab072-smp [message #2588 is a reply to message #2575] Mon, 10 April 2006 20:46 Go to previous messageGo to next message
miroslawgon is currently offline  miroslawgon
Messages: 16
Registered: April 2006
Junior Member
There are binary modules for RHEL, Fedora and SUSE

The binary modules worked fine, the only problem is that they are
for 2.8.9-22 kernel (I sue CentOS 4.3) they won't work with other kernels lile 2.8.9-34 (version compatibility error).

You can also download source code HPT Open Source driver ( http://www.highpoint-tech.com/BIOS%20+%20Driver/rr2224/Linux /rr222x-linux-src-1.03-060328-1734.tar.gz)

On ovz kernel I can compile them, no errors during compilation, but I can't modprobe or insmod the module - version compatibility error.

The soulution is to compile ovz kernel form sources and then compile the module (modprobe works)

There is also option to patch the kernel

part of README file
############################################################ #################
3. Using the driver as a kernel patch
############################################################ #################

You must have a full kernel source tree to use the driver as a patch.
To patch a kernel source tree, run the command

# cd rr222x-linux-src-1.xx/product/rr2220/linux/
# make patchkernel KERNELDIR=<kernel-source-dir>

For an unconfigured 2.6 kernel source tree, include/linux/version.h may
not exist so you should add "KERNEL_VER=2.6" to the command:

# make patchkernel KERNELDIR=<kernel-source-dir> KERNEL_VER=2.6

Then you can configure the driver into kernel during the kernel
configuration process (e.g. "make menuconfig"). It is listed under
scsi low level drivers.

Below is an example to make and install a kernel with the driver built-in:

# cd /usr/src/linux-2.6.11
# make menuconfig

Select "Device Drivers --->" and press enter.
Select "SCSI device support", then press 'Y' to make it built-in.
Select "SCSI disk support" then press 'Y' to make it build-in.
Select "SCSI low-level drivers --->" and press enter.
Select "HighPoint RocketRAID 2220 support" and press 'Y'.
Exit and save the kernel configuration.

# make
# make modules_install
# make install

Then you can reboot from the new kernel.
----------------------------------------------

Kernel (ovz) compiled without errors, but after reboot, during system boot kernel crashed, it wasn't kernel panic, it looked like assemble registry dump or something like that (I an not sure). The same kernel without hpt patch works fine.

Now my system is running ovz kernel + hpt raid module. I'm just waiting for official release of 075 kernel to solve LVM problem.

Link to the product page:
http://www.highpoint-tech.com/USA/bios_rr2220.htm
Re: LVM problem - CentOS 4.3 x86 - openvz 2.6.8-022stab072-smp [message #2600 is a reply to message #2588] Tue, 11 April 2006 07:53 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

miroslawgon,

you can download 076 kernel and its sources from here:
http://download.openvz.org/~dev/076/
it will be released tomorrow.

About driver, I'm not sure, we will include it to official builds, as binary drivers are always a bit of pain and require correct ABI settings (regparams etc.). Maybe a bit later.


http://static.openvz.org/userbars/openvz-developer.png
Re: LVM problem - CentOS 4.3 x86 - openvz 2.6.8-022stab072-smp [message #2693 is a reply to message #2600] Mon, 17 April 2006 10:12 Go to previous message
miroslawgon is currently offline  miroslawgon
Messages: 16
Registered: April 2006
Junior Member
The 076 kernel solved all my problems with LVM, I can now create, resize and mount LV's.

There is only one problem:
After system reboot there are no LVM devices in /dev, system drops me to single user mode with message that's somethings wrong with hard drive and fsck can't read some sectors.

Solution to this problem:
edit /etc/lvm/lvm.conf

# Where do you want your volume groups to appear ?
dir = "/lvm" <--- change this to some directory outside /dev

# An array of directories that contain the device nodes you wish
# to use with LVM2.
scan = [ "/lvm" ] <--- change this to some directory outside /dev

Reboot and everything works now.

Tip for users with HighPoint RR2220 RAID card:

If you use module drivers and LVM
edit the /etc/rc.sysinit

add

echo "Loading HPT RR2220 module ..."
modprobe hptmv6

before LVM section (# LVM2 initialization)

dev, thanks for your help!
Previous Topic: vps memory leak
Next Topic: No module aic7xxx found for kernel 2.6.8-022stab076.1
Goto Forum:
  


Current Time: Tue Jul 30 02:32:26 GMT 2024

Total time taken to generate the page: 0.02836 seconds