Skip to contentSkip to conversation

dac960+2.2.19 issue with 1.0.1-rc2

linux-lvm Jesse Sipprell 1 participant 1 message Sep 15, 2001

lore
Share & tools
lore
#0 lore raw

It appears that rc2 consults /proc/devices when determining the block type of a device in lvm_get_device_type(). The device_names[] array in this function indicates that the device name for a mylex dac960 array controller should be "dac960", however under 2.2.19, /proc/devices indicates that the "name" for major device 48 is "rd" and not "dac960".

I'm assuming that the code was based on a 2.4 kernel, however I don't have a 2.4 box handy that has dac960 support compiled in, so I cannot verify this.

The end result is that PV operations cannot be performed on a dac960 device; tools typically emit "invalid physical volume name".

The following patch addresses the issue although, as should be obvious from above, I have in no way verified this under kernels > 2.2.19.

1.0.1-rc2/tools/lib/lvm_check_partitioned_dev.c renamed from 1.0.1-rc2/tools/lib/lvm_check_partitioned_dev.c.orig +4 -0
@@ -134,7 +134,11 @@
 	"md",			/* Multiple Disk driver (SoftRAID)   */
 	"loop",			/* Loop device              */
 	"dasd",			/* DASD disk (IBM S/390, zSeries)      */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 3, 0)
+	"rd",
+#else  /* kernel > 2.2.x */
 	"dac960",		/* DAC960              */
+#endif 
 	"nbd",			/* Network Block Device              */
 	"ida",			/* Compaq SMART2              */
 	"cciss",		/* Compaq CCISS array              */
Signature · 6 lines
Jesse Sipprell
Technical Operations Director
Evolution Communications, Inc.
800.496.4736

* Finger [email protected] for my PGP Public Key *