Skip to contentSkip to conversation

Debian (Sarge) 2.6.8 lvm2 on software raid

linux-lvm [email protected] 3 participants 3 messages Apr 6, 2005 – Apr 8, 2005

lore
Share & tools
lore
#0 lore raw

to all,

I am sorry if I am repeating an earlier thread but if it exists I haven't found it yet.

I am running Debian (sarge) on a self-compiled 2.6.8. I have installed

	 lvm2 (lvm2_2.01.04-3_i386.deb) and 
	mdadm (mdadm_1.9.0-1_i386.deb).

I have created a raid5 disc and am attempting to do a pvcreate upon it.

Here are my attempts.

# vgscan
  Reading all physical volumes.  This may take a while...
# pvcreate /dev/md2
  Physical volume "/dev/md2" successfully created
# vgcreate -v /dev/vg00 /dev/md2
    Adding physical volume '/dev/md2' to volume group 'vg00'
    Archiving volume group "vg00" metadata.
    Creating volume group backup "/etc/lvm/backup/vg00"
  Volume group "vg00" successfully created
# lvcreate -L 500 /dev/vg00
  Volume group "vg00" doesn't exist

After that failed a couple of times I found on the web to add this line in lvm.conf

filter = [ "a|^/dev/md|", "r|.*|" ]

Is this bug?
Any time you spend on this is appreciated.

Brian

#1 lore raw
Quoted 4 lines · On Wed, Apr 06, 2005 at 03:15:03PM -0400, [email protected] wrote:

I am running Debian (sarge) on a self-compiled 2.6.8. I have installed

	 lvm2 (lvm2_2.01.04-3_i386.deb) and 
	mdadm (mdadm_1.9.0-1_i386.deb).

Suggestions:

1) Check lvm.conf has md_component_detection = 1

2) Run lvcreate with -vvvv and look for clues (ie what reason does it give for ignoring the device?)

3) Upgrade to lvm2 2.01.09 and see if is still a problem

Alasdair

#2 lore raw
In reply to [email protected]

Hi,

Quoted 2 lines
# lvcreate -L 500 /dev/vg00
  Volume group "vg00" doesn't exist

Did you try : lvcreate -L 500 vg00
I think you don't need the /dev

About the change in lvm.conf, I had to do it once, for using LVM over a /dev/mapper device. Anyway it's just a filter you can change to tell LVM what device it can or canot use for creating VG. I'm quite sure you don't need to change anything to be abble to use LVM over a software raid device.