OpenVZ Forum


Home » General » Support » software raid on Fedora core 6 and OpenVZ
software raid on Fedora core 6 and OpenVZ [message #8449] Mon, 20 November 2006 11:27 Go to next message
jean1971 is currently offline  jean1971
Messages: 30
Registered: November 2006
Member
Hi there
I tried the last kernel on FC6
It works fine, but I can't manage software RAID

any suggestion
(with a FC6 kernel it works !!)

Thanks
Gianni
Re: software raid on Fedora core 6 and OpenVZ [message #8453 is a reply to message #8449] Mon, 20 November 2006 12:04 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
What openVZ kernel version do you use?

Thanks!
Re: software raid on Fedora core 6 and OpenVZ [message #8458 is a reply to message #8453] Mon, 20 November 2006 13:17 Go to previous messageGo to next message
jean1971 is currently offline  jean1971
Messages: 30
Registered: November 2006
Member
here you are...

title OpenVZ (2.6.18-ovz028test003.1-smp)
root (hd0,1)
kernel /vmlinuz-2.6.18-ovz028test003.1-smp ro root=LABEL=/
initrd /initrd-2.6.18-ovz028test003.1-smp.img

I know is a testing version.... but I think this is a bug or a missing feature.
since...

title Fedora Core (2.6.18-1.2849.fc6)
root (hd0,1)
kernel /vmlinuz-2.6.18-1.2849.fc6 ro root=LABEL=/
initrd /initrd-2.6.18-1.2849.fc6.img

works

thanks...
Gianni
Re: software raid on Fedora core 6 and OpenVZ [message #8462 is a reply to message #8449] Mon, 20 November 2006 13:46 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
Quote:

I can't manage software RAID


Whats the specific error?
What mdadm arguments are you running?
Output of /proc/mdstat
dmesg
fdisk -l

Send us more details so we can understand your situation.


-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: software raid on Fedora core 6 and OpenVZ [message #8464 is a reply to message #8462] Mon, 20 November 2006 14:08 Go to previous messageGo to next message
jean1971 is currently offline  jean1971
Messages: 30
Registered: November 2006
Member
If I try

mdadm --create --verbose /dev/md0 --level=5 --raid-devices=4 /dev/sdc /dev/sdd /dev/sde /dev/sdf
I have this error:

mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: /dev/sdc appears to be part of a raid array:
level=raid5 devices=4 ctime=Mon Nov 20 14:48:46 2006
mdadm: /dev/sdd appears to be part of a raid array:
level=raid5 devices=4 ctime=Mon Nov 20 14:48:46 2006
mdadm: /dev/sde appears to be part of a raid array:
level=raid5 devices=4 ctime=Mon Nov 20 14:48:46 2006
mdadm: /dev/sdf appears to be part of a raid array:
level=raid5 devices=4 ctime=Mon Nov 20 14:48:46 2006
mdadm: size set to 143374656K
Continue creating array? y
mdadm: RUN_ARRAY failed: Invalid argument
mdadm: stopped /dev/md0

[root@sci-crem ~]# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [multipath]
unused devices: <none>

I attach dmesg

fdisk -l
Disk /dev/sda: 73.4 GB, 73407868928 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 389 8924 68565420 83 Linux
/dev/sda2 * 1 127 1020096 83 Linux
/dev/sda3 128 388 2096482+ 82 Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/sdb: 73.4 GB, 73407868928 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 389 8924 68565420 83 Linux
/dev/sdb2 * 1 127 1020096 83 Linux
/dev/sdb3 128 388 2096482+ 82 Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/sdc: 146.8 GB, 146815737856 bytes
255 heads, 63 sectors/track, 17849 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 17849 143372061 fd Linux raid autodetect

Disk /dev/sdd: 146.8 GB, 146815737856 bytes
255 heads, 63 sectors/track, 17849 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdd1 * 1 17849 143372061 fd Linux raid autodetect

Disk /dev/sde: 146.8 GB, 146815737856 bytes
255 heads, 63 sectors/track, 17849 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sde1 * 1 17849 143372061 fd Linux raid autodetect

Disk /dev/sdf: 146.8 GB, 146815737856 bytes
255 heads, 63 sectors/track, 17849 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdf1 * 1 17849 143372061 fd Linux raid autodetect


thank you
  • Attachment: dmesg
    (Size: 19.06KB, Downloaded 318 times)
Re: software raid on Fedora core 6 and OpenVZ [message #8466 is a reply to message #8464] Mon, 20 November 2006 14:43 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
Does the same error appear when running the same mdadm in redhat/centos kernel?



-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: software raid on Fedora core 6 and OpenVZ [message #8467 is a reply to message #8466] Mon, 20 November 2006 14:57 Go to previous messageGo to next message
jean1971 is currently offline  jean1971
Messages: 30
Registered: November 2006
Member
when I start my FC6 server with the kernel-2.6.18-1.2849.fc6
I don't have any problem

In VE Centos:

[root@sci-crem 101]# ssh 172.21.4.74
root@172.21.4.74's password:
Last login: Mon Nov 20 17:52:34 2006 from 172.21.4.70
[root@ldapcrem ~]# mdadm --detail /dev/md0
-bash: mdadm: command not found
[root@ldapcrem ~]#

but I dont' care this, I need to manage raid in host machine
Re: software raid on Fedora core 6 and OpenVZ [message #8470 is a reply to message #8467] Mon, 20 November 2006 16:01 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
I was kind of wondering if you were trying to manage the raid in the VE. Basically you shouldn't do this, I can't think of any reason why you would want to.

Can you verify that, when booted into the OVZ kernel, you are trying to build the raid from inside a VE or from the HN context?



-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: software raid on Fedora core 6 and OpenVZ [message #8471 is a reply to message #8470] Mon, 20 November 2006 16:04 Go to previous messageGo to next message
jean1971 is currently offline  jean1971
Messages: 30
Registered: November 2006
Member
the Vz is not started At boot
sure i'm trying to use raid from the HN context

the raid array WORKS not using ovz kernel !!! :-/
when I change kernel the raid array stops working...

Thanks
Bye
Gianni
Re: software raid on Fedora core 6 and OpenVZ [message #8474 is a reply to message #8449] Mon, 20 November 2006 16:21 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
Ok, I see the prob..

In your dmesg:

"md: personality for level 5 is not loaded!"

and in your mdstat:

"Personalities : [linear] [raid0] [raid1] [raid10] [multipath]"

You have no raid5 module. Did you build this openvz kernel from source code or are you using the RPM.

source code:
grep CONFIG_MD_RAID5 .config

rpm:
shouldn't happen, maybe:
modprobe raid5




-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: software raid on Fedora core 6 and OpenVZ [message #8476 is a reply to message #8474] Mon, 20 November 2006 16:36 Go to previous messageGo to next message
jean1971 is currently offline  jean1971
Messages: 30
Registered: November 2006
Member
rickb wrote on Mon, 20 November 2006 11:21

Ok, I see the prob..

You have no raid5 module.



i think so !!!
modprobe raid5
FATAL: Module raid5 not found.
[root@sci-crem ~]# locate raid5
/usr/src/kernels/2.6.18-1.2849.fc6-x86_64/include/config/md/ raid5
/usr/src/kernels/2.6.18-1.2849.fc6-x86_64/include/config/md/ raid5/reshape.h
/usr/src/kernels/2.6.18-1.2849.fc6-x86_64/include/linux/raid /raid5.h
/vz/private/101/usr/lib/perl5/5.8.5/i386-linux-thread-multi/ linux/raid/raid5.ph
/vz/root/101/usr/lib/perl5/5.8.5/i386-linux-thread-multi/lin ux/raid/raid5.ph
[root@sci-crem ~]#


rickb wrote on Mon, 20 November 2006 11:21


Did you build this openvz kernel from source code or are you using the RPM.



RPM !!!
uname -a
Linux sci-crem.provincia.cr.lan 2.6.18-ovz028test005.1-smp #1 SMP Fri Nov 17 18:31:05 MSK 2006 x86_64 x86_64 x86_64 GNU/Linux

[root@sci-crem ~]# rpm -qa | grep kernel
kernel-xen-2.6.18-1.2849.fc6
kernel-devel-2.6.18-1.2849.fc6
kernel-smp-2.6.18-ovz028test005.1
kernel-2.6.18-1.2849.fc6
kernel-headers-2.6.18-1.2849.fc6

it's an x86_64 kernel !!!

Bye
Thanks
Gianni


Re: software raid on Fedora core 6 and OpenVZ [message #8483 is a reply to message #8476] Mon, 20 November 2006 20:37 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

.config from 2.6.18-ovz:
# CONFIG_MD_RAID456 is not set
it looks like the option name was changed (there were separate options for RAID 4,5,6) and this caused it to be lost.
please, recompile a kernel with this options set.

I added bug:
http://bugzilla.openvz.org/show_bug.cgi?id=360
so that next kernel will have a fix.


http://static.openvz.org/userbars/openvz-developer.png
Re: software raid on Fedora core 6 and OpenVZ [message #8486 is a reply to message #8483] Mon, 20 November 2006 20:50 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
He's using the prebuilt RPM and not source rpm/source code.

jean1971, the easiest way to get you up right now is to install the 2.6.9 openvz kernel rpm. The next 2.6.18 will have the fixed raid5 module.



-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: software raid on Fedora core 6 and OpenVZ [message #8496 is a reply to message #8486] Tue, 21 November 2006 11:21 Go to previous messageGo to next message
jean1971 is currently offline  jean1971
Messages: 30
Registered: November 2006
Member
thank you very much....but the 2.6.9 openvz kernel rpm run over FC6??

I must rpm -e --nodeps kernel-smp-2.6.18-ovz028test005.1 ??
Re: software raid on Fedora core 6 and OpenVZ [message #8507 is a reply to message #8496] Wed, 22 November 2006 05:21 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
I haven't used FC6 on HN yet, but 2.6.9 openvz kernel should work fine and you can't cause any destruction trying. You don't need to remove any kernels, download 2.6.9 and:

rpm -ivh FILE --force

Boot off the 2.6.9 in grub.conf and you should be rocking.


-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: software raid on Fedora core 6 and OpenVZ [message #8817 is a reply to message #8507] Thu, 07 December 2006 09:36 Go to previous message
jean1971 is currently offline  jean1971
Messages: 30
Registered: November 2006
Member
Solved with new KERNEL .....
Previous Topic: *SOLVED* nmap: Failed to find interface venet0 mentioned in /proc/net/route
Next Topic: Variable Configuration
Goto Forum:
  


Current Time: Tue Aug 13 19:27:30 GMT 2024

Total time taken to generate the page: 0.02770 seconds