Skip to contentSkip to conversation

unable to create physical volume

linux-lvm rich turner 2 participants 3 messages Nov 5, 2004

lore
Share & tools
lore
#0 lore raw

i am using 4 etherdrives that are block devices and present in the /dev directory as:

brw-rw----  1 root root 152,  0 Nov  5 16:34 /dev/etherd/e0.0
brw-rw----  1 root root 152, 16 Nov  5 16:34 /dev/etherd/e0.1
brw-rw----  1 root root 152, 32 Nov  5 16:34 /dev/etherd/e0.2
brw-rw----  1 root root 152, 48 Nov  5 16:34 /dev/etherd/e0.3

when i try to create a physical volume out of one of them:
[root@redhat proc]# pvcreate /dev/etherd/e0.1
/dev/etherd/e0.1: Couldn't find device.

when i scan for available disks with "lvmdiskscan" these disks do not display.

it looks like a filter problem within lvm.conf but i have made some changes and it doesnt seem to work. these are the lines in my lvm.conf file that i believe are responsible for finding block devices:
scan = [ "/dev" ]
filter = [ "a/.*/" ] (all other filters are commented out)

not sure if it helps but in /sys/block i can see entries like this:
[root@redhat block]# ls -l /sys/block/etherd\!e0.0/ total 0

-r--r--r--  1 root root 4096 Nov  5 16:35 dev
drwxr-xr-x  3 root root    0 Nov  5 16:35 queue
-r--r--r--  1 root root 4096 Nov  5 16:35 range
-r--r--r--  1 root root 4096 Nov  5 16:35 size
-r--r--r--  1 root root 4096 Nov  5 16:35 stat
#1 lore raw
Quoted 2 lines · rich turner

[root@redhat proc]# pvcreate /dev/etherd/e0.1
/dev/etherd/e0.1: Couldn't find device.

Does 'cat /proc/devices' have a special entry for them?

If so, then you'll need to update the 'types' line in the config file to include them.

Alasdair

Signature · 1 line
[email protected]
#2 lore raw

it does have a special entry in /proc/devices -> aoe (ata-over-ethernet). added this type in lvm.conf and BINGO. thanks for the help.

Quoted 10 lines · Alasdair G Kergon
Quoted 2 lines · rich turner

[root@redhat proc]# pvcreate /dev/etherd/e0.1
/dev/etherd/e0.1: Couldn't find device.

Does 'cat /proc/devices' have a special entry for them?

If so, then you'll need to update the 'types' line in the config file to include them.

Alasdair