pvcreate not locating drive

Bug #136830 reported by mohnkern
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Undecided
mohnkern

Bug Description

I recently installed a SATA drive on a SYBA controller.

I partitioned the drive as a 500 GB partition type 8e (LVM) then ran mke2fs -j /dev/sda1 to write the file system,

However, when I run sudo pvcreate /dev/sda1 I get the following error:

 Device /dev/sda1 not found (or ignored by filtering).

here's the result of and fdisk -l

mohnkern@Casa-Scott:~$ sudo fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot Start End Blocks Id System
/dev/sda1 1 60801 488384001 8e Linux LVM

Disk /dev/hda: 160.0 GB, 160041885696 bytes
102 heads, 51 sectors/track, 60088 cylinders
Units = cylinders of 5202 * 512 = 2663424 bytes

   Device Boot Start End Blocks Id System
/dev/hda1 1 11811 30720385+ 8e Linux LVM
/dev/hda2 59338 60088 1953351 82 Linux swap / Solaris
/dev/hda3 11812 59337 123615126 83 Linux

Partition table entries are not in disk order

Disk /dev/hdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot Start End Blocks Id System
/dev/hdb1 1 14593 117218241 83 Linux
mohnkern@Casa-Scott:~$

I read in one bug where one should try doing a

dd if=/dev/zero of=/dev/sda

to blank out the partition table, and then run pvcreate.

I tried that, received the same error.

Just as a test, I made the drive a normal Linux partition, and I was able to mount to it and create files, so I doubt it's the drive.

There doesn't appear to be anything regarding an error in /var/log.

and a fsck comes up clean:

 Device /dev/sda1 not found (or ignored by filtering).

Revision history for this message
mohnkern (mohnkern) wrote :

I ran dd if=/dev/zero again and then attempted a pvcreate without installing a partiion, and it still is generating this error.

Revision history for this message
mohnkern (mohnkern) wrote :

I discovered the problem.

The default lvm.conf file (/etc/lvm/lvm.conf) contained the following line:

filter = [ "a|/dev/hd[ab]|", "r/.*/" ]

This had to be changed to:

filter = [ "a|/dev/[hs[d[ab]|", "r/.*/" ]

or commented out.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.