LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-06-2008, 02:57 AM   #1
zaxonus
Member
 
Registered: Jul 2005
Posts: 68

Rep: Reputation: 15
mdadm - pvcreate, problem.


Hello,

I created a RAID array with this command :
TheBestBox:~# mdadm -C /dev/md0 -l 5 -n 4 ... the 4 disk partitions blah blah ...

It went fine, as this shows :
TheBestBox:~# TheBestBox:~# mdadm -Q /dev/md0
/dev/md0: 2794.53GiB raid5 4 devices, 0 spares. Use mdadm --detail for more detail.

But after that, come the troubles. Here is what I get when I want to use pvcreate.

TheBestBox:~# pvcreate /dev/md0
Device /dev/md0 not found (or ignored by filtering).
TheBestBox:~#

Does anyone know how to handle this ?

Before doing this I messed around a bit, using the
"mdadm -C /dev/md0 -l 5 -n 4 ...." command a few times failing and recreating.
Could it be that I need to erase some files or junk left somewhere on the way ?

Thanks for any help.
 
Old 11-06-2008, 08:45 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
I don't see where you did a simple "ls -l /dev/md0" to verify the device exists. The error you're getting suggests it doesn't (or that it is excluded by filtering). Since you say you did the create multiple times there's no reason to assume it doesn't exist but its always best to start with the simplest things in troubleshooting. (You'd be amazed how many computer problems I've solved by asking someone "is the plug secure in the wall socket").

The "filtering" part of your message may however be the issue. On setting up some hardware RAID from an EMC Clariion I had ugly error messages because LVM didn't recognize the devices. This required me to modify /etc/lvm/lvm.conf to filter them out. Perhaps your lvm.conf filters out software raid devices?


So in my lvm.conf on RHEL5 I have the following information:
Code:
    # By default we accept every block device:
    # filter = [ "a/.*/" ]
    # Commented out default - added below line - jlightner 
    filter = [ "a|/dev/sda.*|", "a|/dev/sdb.*|", "r/.*/" ]
    #
    # Modified filer accepts /dev/sda & /dev/sdb which are PERC RAID LUNs
    # It restricts all other /dev/sd* and /dev/emcpower* which are presumed to
    # be Clariion LUNs
    # It also restricts /dev/disk* which are just links back to /dev/sd*.
Also on my RHEL5 system I find the following:
Code:
    # By default, LVM2 will ignore devices used as components of
    # software RAID (md) devices by looking for md superblocks.
    # 1 enables; 0 disables.
    md_component_detection = 1
I read the latter to mean that it will ignore the 4 devices you used as components but NOT ignore the md0 unless your filter line ignores them.

Note that if you change this file you have to make a new initrd that includes the modified version otherwise it won't be picked up during the boot. (See mkinitrd) Also it may be in a slightly different location depending on your distro.

Last edited by MensaWater; 11-06-2008 at 08:46 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
pvcreate + multipath hphinizy Linux - Server 2 09-12-2008 03:11 PM
unable to load MDADM module BUT mdadm works?!?!?! alirezan1 Linux - Software 2 09-08-2008 07:58 PM
mdadm says "mdadm: /dev/md1 not identified in config file" when booting FC7 raffeD Linux - Server 1 08-11-2008 11:47 AM
pvcreate: device not found kpachopoulos Linux - General 1 02-11-2006 04:34 AM
coulodnt find device - pvcreate nidhigupta80 Linux - Newbie 0 04-21-2005 09:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:23 AM.

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