Skip to contentSkip to conversation

vgcreate problem

linux-lvm Qv6 3 participants 4 messages Sep 23, 2003 – Sep 28, 2003

lore
Share & tools
lore

Qv6

author
#0 lore raw

Hi,

I just created 2 PVs with the following commands:

pvcreate /dev/hda6

pvcreate /dev/hdb

When I ran vgcreate, I got this error:

vgcreate gentis /dev/hda6 /dev/hdb

vgcreate -- no valid physical volumes in command line

Any help to resolve this error will be appreciated.

Qv6

#1 lore raw
Quoted 5 lines · On Tue, Sep 23, 2003 at 01:22:09AM -0400, Qv6 wrote:

vgcreate gentis /dev/hda6 /dev/hdb

vgcreate -- no valid physical volumes in command line

Any help to resolve this error will be appreciated.

you are using lvm 1 with a kernel compiled with devfs you have to use the long devfs names, check /proc/partitions

regards,
L.

Signature · 6 lines
Luca Berra -- [email protected]
       Communication Media & Services S.r.l.
/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \
author
#2 lore raw
Quoted 4 lines · Luca Berra

you are using lvm 1 with a kernel compiled with devfs you have to use the long devfs names, check /proc/partitions

Thanks for the tip.
Tried this:

vgcreate genis /dev/ide/host0/bus0/target0/lun0/part6

vgcreate genis /dev/ide/host0/bus0/target1/lun0/disc

and got the same error message (vgcreate -- no valid physical volumes in command line)

Any clues as to what is going on here?

Qv6

#3 lore raw
In reply to Qv6
Quoted 11 lines · Qv6 wrote:

Hi,

I just created 2 PVs with the following commands:

pvcreate /dev/hda6

pvcreate /dev/hdb

When I ran vgcreate, I got this error:

Quoted 9 lines

vgcreate gentis /dev/hda6 /dev/hdb

vgcreate -- no valid physical volumes in command line

Any help to resolve this error will be appreciated.

Qv6

You might get this if /dev/hda6 and /dev/hdb are symlinks (for example, if you are using devfs). Do an ls -l on those and see if they actually point to something like /dev/ide/host0/bus0/target0/lun0/disc.

If they are symlinks, calling vgcreate with the full, real path to those volumes would work. If that's not it, I'm stumped.

-Tupshin