Resolving LVM: Unrecognised LVM device type 259
Random March 20th, 2010
Trying to create a md raid1 device for 2 phyiscal 1TB disks failed unexpectedly with a strange (and very undescriptive error, that is only revealed when running with the verbose option (-vvv):
Wiping internal VG cache
/dev/md0p2: Skipping: Unrecognised LVM device type 259
Device /dev/md0p2 not found (or ignored by filtering).
The problem seems to be that the type 259 is simply not recognized, although it is defined in /proc/devices and known as blkext there.
So adding this to /etc/lvm/lvm.conf in the devices section:
types = [ "blkext", 64 ]
After adding this the mdadm command to create the md device succeeds:
mdadm --create /dev/md0 --level=1 --raid-disks=2 /dev/sda /dev/sdb
- Category: Bits & Bytes S-Tags: Debian, Linux, SysAdmin
- Comments(2)
And what about when it says “Skipping: Unrecognised LVM device type 8”? :(
Just check what device type 8 refers too (do a cat /proc/devices for that).
And then also add that reference to the /etc/lvm/lvm.conf file in the devices section.
If your are unsure, post the output of mdadm –examine –scan -vvv and cat /proc/devices