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

Luca Berra bluca at comedia.it
Fri Oct 5 19:31:21 UTC 2001


On Fri, Oct 05, 2001 at 11:13:35AM +0200, yves.alloyer wrote:
> I did a quick and dirty patch which fixed it for me.
> Please be aware: I am new to this list, new to linux LVM...
> I know the patch will prevent you from using any partitioned MD device in
> LVM. I have no idea of further implications.
Yves, thanks this seems to have fixed this, i still agree with Andreas that lvm_check_partitioned_dev should be
checked.
i wuld use LVM_DEVICE_TYPE_MD instead of 2 in the patch
as for partitioned md device i believe the major is different from 9, but i would not suggest using them
with lvm anyway.

patch with my mod follows for the lazy,
pleas check it in cvs for the time being.

--- tools/lib/lvm_check_partitioned_dev.c.bluca	Thu Aug 23 07:51:53 2001
+++ tools/lib/lvm_check_partitioned_dev.c	Fri Oct  5 21:18:51 2001
@@ -55,6 +55,8 @@
 	switch (lvm_get_device_type(st_rdev)) {
 	case LVM_DEVICE_TYPE_INVALID:
 	    break;
+	case LVM_DEVICE_TYPE_MD:
+	    break;
 	default:
 	    ret = TRUE;
 	}

-- 
Luca Berra -- bluca at comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \




More information about the linux-lvm mailing list