LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-16-2006, 10:20 PM   #1
xdragon
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Rep: Reputation: 0
newbie - need help to configure RAID1


i have problem to setup new server with RAID1. Server PC model is HP ProLiant M110 G3. After install the Fedora core 5, the error occur "Disk /dev/md3 doesn't contain a valid partition table". I check the mdstat by enter this command line "cat /proc/mdstat", the result listed as below:
Personalities : [raid1]
md0 : active raid1 sdb1[1] sda1[0]
200704 blocks [2/2] [UU]

md2 : active raid1 sdb3[1] sda3[0]
34812736 blocks [2/2] [UU]

md3 : active raid1 sdb5[1] sda5[0]
1052160 blocks [2/2] [UU]

md4 : active raid1 sdb6[1] sda6[0]
1124416 blocks [2/2] [UU]

md1 : active raid1 sdb2[1] sda2[0]
40957632 blocks [2/2] [UU]

if enter "fdisk -l" it will have this problem.
Disk /dev/md0: 205 MB, 205520896 bytes
2 heads, 4 sectors/track, 50176 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md0 doesn't contain a valid partition table

i check /etc/mdadm.conf
DEVICE /dev/sda2 /dev/sdb2 /dev/sda1 /dev/sdb1 /dev/sda3 /dev/sdb3 /dev/sda6 /dev/sdb6 /dev/sda5 /dev/sdb5
ARRAY /dev/md1 level=raid1 num-devices=2 UUID=9085a26b:45047086:54104233:1fe52da8
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=f8839477:c84153f4:24ee3d61:dce62e21
ARRAY /dev/md2 level=raid1 num-devices=2 UUID=2542be4f:f2787dbf:4fbba4b9:62b20aa7
ARRAY /dev/md4 level=raid1 num-devices=2 UUID=5f7b49ee:9be6bb8d:713df29e:97c64ea5
ARRAY /dev/md3 level=raid1 num-devices=2 UUID=c80d208d:6f7dbe47:27d00e30:e935722b

does anyone can help me to solve this problem?

Devin
 
Old 07-17-2006, 07:05 PM   #2
i_grok
Member
 
Registered: Jun 2006
Location: Massachusetts
Distribution: Gentoo
Posts: 79

Rep: Reputation: 16
Actually, this isn't really a problem. Your md devices aren't supposed to have a partition table on them. For some reason, fdisk continues to look for one.

If you do a
Code:
df -h
you will see that the md devices are already mounted and working fine.

Were there an actual problem with /dev/md3, you would see something like this in /proc/mstat:
Code:
md3 : active raid1 sdb5[1]
1052160 blocks [1/2] [_U]
I assume the reason you even realized this was happening is that you saw an error message on boot? You should be able to fix the issue by editting /etc/init.d/boot.swap. You need find the line where it calls
Code:
fdisk -l
and change it to
Code:
fdisk -l 2> /dev/null
.
 
Old 07-17-2006, 09:01 PM   #3
xdragon
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Hi i_grok,
thank you for helping me, i have found the /dev/mdx is mounted working properly by giving the command as what you suggested "df -h", but i can't find the "/etc/init.d/boot.swap" file. how should i do to fix this problem?

I have other problems, when i type the command "dmraid -ay", the error is listed as below:-
dmraid -ay
No RAID disks
Does it cause the problem?

I get this error message by issue this command "dmesg | tail". this kind of message also occur when boot up server, but is another type of message.
audit(1153185060.063:288): avc: denied { execmod } for pid=4084 comm="firefox-bin" name="libflashplayer.so" dev=md1 ino=916827 scontext=root:system_r:unconfined_t:s0-s0:c0.c255 tcontext=rootbject_r:user_home_t:s0 tclass=file

Any idea of this error?



Devin
 
Old 07-18-2006, 01:00 AM   #4
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
Quote:
/etc/mdadm.conf
Quote:
dmraid -ay error
This is normal.
I do not think you can use mdadm and dmraid.
Most people prefer mdadm anyway.
Have a look at the mdadm man page if you have not already

PS: raid1 is no substitute for good backups
 
Old 07-18-2006, 02:02 PM   #5
i_grok
Member
 
Registered: Jun 2006
Location: Massachusetts
Distribution: Gentoo
Posts: 79

Rep: Reputation: 16
I agree with Emmanuel_uk - you should use mdadm. It will do everything you need.

As for the errors you see on boot, I still wouldn't worry about them. If you want to know what is causing them, you might be able to find them with:
Code:
cd /etc/init.d
grep "fdisk -l" *
What you are seeing in dmesg looks like selinux messages. It is a security feature, but if all it is printing is warnings, it probably isn't a big issue. You can disable selinux if you wish - I don't personally have much experience with it.
 
Old 07-18-2006, 03:40 PM   #6
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
Quote:
What you are seeing in dmesg looks like selinux messages.
Yes it does
xdragon, you need serious reading about security on server
if you are not used to things like SELinux.
I think there are 2 modes in SELinux, one where you just check what would be
locked, and what sort of rights are granted, then there is the mode
where this is enabled. Watch out because as a beginner one can lock oneself out
in some circumstances, with possibly no way back.
Sorry cannot help more, have done some reading on SEL but not implemented it ever/yet.

Happy linux to you
 
Old 07-18-2006, 08:37 PM   #7
xdragon
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Original Poster
Rep: Reputation: 0
thank you (i_grok & Emmanuel_uk), I will use mdadm. Do you have any best web site regarding the selinux?

by the way, how to install the modules.cgz driver? what is the proper step to install driver?
 
Old 07-19-2006, 01:06 AM   #8
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
There is the NSA website for SEL, there might be a few tutorials around
(one by IBM, some publications by the Linux Journal). Do not know more than that.

re modules, loading them in memory is with modprobe, usually automated
via /etc/modules.conf
re install ang dz file, see the sticky in mandriva forum about tar.gz for example,
or better look in LQ bookmark for rute, and also newbie admin guide.
 
  


Reply

Tags
fdisk, raid, selinux



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie needs help for hardware RAID1 installation xpucto Linux - Hardware 0 03-30-2006 03:28 AM
newbie configure speedtouch router help turntonight Mandriva 2 11-24-2005 12:20 PM
newbie ./configure problems.... Maverick1182 Mandriva 9 07-31-2005 05:42 PM
Newbie needs help to configure router TheSwine Linux - Networking 9 01-02-2004 07:50 PM
newbie ./configure compile error Gumz Linux - Newbie 1 11-14-2003 02:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration