I'm trying to create a single LVM volume on my SD card, using Ubuntu Netbook Remix. The SD card is at /dev/mmcblk0. So far, I've used fdisk to create a partition (type 8e - Linux LVM) on the device. The partiton is /dev/mmcblk0p1. However, when I run
sudo pvcreate /dev/mmcblk0p1
I only get this response:
Device /dev/mmcblk0p1 not found (or ignored by filtering).
As the Ubuntu Guide suggests, I've tried looking at my /etc/lvm/lvm.conf, but the filter seems to be ok - the problem remains even when the default option is enabled.
# By default we accept every block device:
filter = [ "a/.*/" ]
# Only devices beginning with "mmcblk":
# filter = [ "a|/dev/mmcblk.*|", "r/.*/" ]
I assume the problem is somewhere within the LVM configuration, since when I run sudo vgscan -vv with the default "accept every block device" configuration, it lists many devices being scanned - however not the /dev/mmcblk devices. When using the more restrictive filter, it scans no devices.
My complete /etc/lvm/lvm.conf is available online for inspection.
I've tried reading multiple guides about setting up LVM ([1],[2],[3]), but none of them seem to be of help with this issue.
Any ideas what is going wrong? How would I troubleshoot this issue further?
"Fixed in lvm2-2.02.45-4.fc11". Now I'll just have to see how to get that version on Ubuntu Netbook Remix... – Ilari Kajaste Sep 20 '09 at 7:10types = [ "mmc", 16 ]... I'd post as an answer, but I have no way to test either of those. – derobert Sep 20 '09 at 21:40/etc/lvm/lvm.confto include thetypesdefinition worked! So feel free to post is as an answer to get the reputation. :) – Ilari Kajaste Sep 23 '09 at 10:40