[linux-lvm] pvcreate fails on a software RAID metadisk

Bill Ellis bill_ellis at legis.state.ak.us
Thu Oct 4 16:16:27 UTC 2001


Hi,

I'm trying to set up lvm 1.01rc4 under a 2.4.10 kernel.  I'm getting an
error when I try to use pvcreate on a software RAID metadisk.  From the
'-v' output of pvcreate, it appears that pvcreate thinks my metadisk is
zero-length.

Here's an example:

root at tik-tok:~# pvcreate /dev/md7
pvcreate -- ERROR "parameter error" setting up  physical volume "/dev/md7"

root at tik-tok:~# pvcreate -v /dev/md7
pvcreate -- locking logical volume manager
pvcreate -- checking physical volume name "/dev/md7"
pvcreate -- getting physical volume size
pvcreate -- checking partition type
pvcreate -- creating new physical volume
pvcreate -- setting up physical volume for /dev/md7 with 0 sectors
pvcreate -- ERROR "parameter error" setting up  physical volume "/dev/md7"

root at tik-tok:~# pvcreate --version
pvcreate: Logical Volume Manager 1.0.1-rc4
Heinz Mauelshagen, Sistina Software  03/10/2001 (IOP 10)
root at tik-tok:~# cat /proc/mdstat | grep -A2 md7
md7 : active raid5 sde7[4] sdd7[3] sdc7[2] sdb7[1] sda7[0]
      24575488 blocks level 5, 128k chunk, algorithm 0 [5/5] [UUUUU]

root at tik-tok:~# grep md7 /proc/partitions
   9     7   24575488 md7

Any tips on what might be going on here would be appreciated...

Thanks,
Bill Ellis






More information about the linux-lvm mailing list