Skip to contentSkip to conversation

vgcreate -- no valid physical volumes in command line

linux-lvm Daniel Gardner 3 participants 7 messages Sep 8, 2002

lore
Share & tools
lore
#0 lore raw

Hi,

I'm new to this whole LVM lark, and something isn't working right for me...

I've got a partition, /dev/hda2, which I'm trying to put LVM stuff on.

cfdisk says:

First Last
# Type Sector Sector Offset Length Filesystem Type (ID)
-- ------- -------- --------- ------ --------- ----------------------
2 Primary 6249285 12466439 0 6217155 Linux LVM (8E)

Then I do:

root@gentoo daniel # pvcreate /dev/hda2
pvcreate -- physical volume "/dev/hda2" successfully created

root@gentoo daniel # pvdisplay /dev/hda2
pvdisplay -- "/dev/hda2" is a new physical volume of 2.96 GB

root@gentoo daniel # pvscan
pvscan -- reading all physical volumes (this may take a while...) pvscan -- inactive PV "/dev/ide/host0/bus0/target0/lun0/part2" is in no VG [2.96 GB]
pvscan -- total: 1 [2.96 GB] / in use: 0 [0] / in no VG: 1 [2.96 GB]

All looking good... now here's the weird one:

root@gentoo daniel # vgcreate main /dev/hda2 vgcreate -- no valid physical volumes in command line

This is where I'm getting my baby steps from
http://www-106.ibm.com/developerworks/linux/library/l-lvm2.html?dwzone=linux

I was using stock kernel 2.4.18 and tools 1.0.5 to start with, but just tried 1.1-rc2 with the same results on both.

I don't really know where to go further with this, don't know if it's just me being stupid or what. Anyone got any ideas? I'll provide any info that I need to - just let me know what's needed!

Thanks awfully,
Daniel

#1 lore raw

Are you running DevFS by chance?

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Gardner
Sent: Sunday, September 08, 2002 7:34 AM
To: [email protected]
Subject: [linux-lvm] vgcreate -- no valid physical volumes in command line

Hi,

I'm new to this whole LVM lark, and something isn't working right for me...

I've got a partition, /dev/hda2, which I'm trying to put LVM stuff on.

cfdisk says:

First Last
# Type Sector Sector Offset Length Filesystem Type (ID)
-- ------- -------- --------- ------ --------- ----------------------
2 Primary 6249285 12466439 0 6217155 Linux LVM (8E)

Then I do:

root@gentoo daniel # pvcreate /dev/hda2
pvcreate -- physical volume "/dev/hda2" successfully created

root@gentoo daniel # pvdisplay /dev/hda2
pvdisplay -- "/dev/hda2" is a new physical volume of 2.96 GB

root@gentoo daniel # pvscan
pvscan -- reading all physical volumes (this may take a while...) pvscan -- inactive PV "/dev/ide/host0/bus0/target0/lun0/part2" is in no VG
[2.96 GB]
pvscan -- total: 1 [2.96 GB] / in use: 0 [0] / in no VG: 1 [2.96 GB]

All looking good... now here's the weird one:

root@gentoo daniel # vgcreate main /dev/hda2 vgcreate -- no valid physical volumes in command line

This is where I'm getting my baby steps from
http://www-106.ibm.com/developerworks/linux/library/l-lvm2.html?dwzone=l
inux

I was using stock kernel 2.4.18 and tools 1.0.5 to start with, but just tried
1.1-rc2 with the same results on both.

I don't really know where to go further with this, don't know if it's just me
being stupid or what. Anyone got any ideas? I'll provide any info that I need
to - just let me know what's needed!

Thanks awfully,
Daniel

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

#2 lore raw
Quoted 1 line · Glenn Shannon

Are you running DevFS by chance?

Yes - is that bad? :S

Daniel

Quoted 74 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Gardner
Sent: Sunday, September 08, 2002 7:34 AM
To: [email protected]
Subject: [linux-lvm] vgcreate -- no valid physical volumes in command line

Hi,

I'm new to this whole LVM lark, and something isn't working right for me...

I've got a partition, /dev/hda2, which I'm trying to put LVM stuff on.

cfdisk says:

First Last
# Type Sector Sector Offset Length Filesystem Type (ID)
-- ------- -------- --------- ------ --------- ----------------------
2 Primary 6249285 12466439 0 6217155 Linux LVM (8E)

Then I do:

root@gentoo daniel # pvcreate /dev/hda2
pvcreate -- physical volume "/dev/hda2" successfully created

root@gentoo daniel # pvdisplay /dev/hda2
pvdisplay -- "/dev/hda2" is a new physical volume of 2.96 GB

root@gentoo daniel # pvscan
pvscan -- reading all physical volumes (this may take a while...) pvscan -- inactive PV "/dev/ide/host0/bus0/target0/lun0/part2" is in no VG
[2.96 GB]
pvscan -- total: 1 [2.96 GB] / in use: 0 [0] / in no VG: 1 [2.96 GB]

All looking good... now here's the weird one:

root@gentoo daniel # vgcreate main /dev/hda2 vgcreate -- no valid physical volumes in command line

This is where I'm getting my baby steps from
http://www-106.ibm.com/developerworks/linux/library/l-lvm2.html?dwzone=l
inux

I was using stock kernel 2.4.18 and tools 1.0.5 to start with, but just tried
1.1-rc2 with the same results on both.

I don't really know where to go further with this, don't know if it's just me
being stupid or what. Anyone got any ideas? I'll provide any info that I need
to - just let me know what's needed!

Thanks awfully,
Daniel

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

#3 lore raw

It's not bad, I use it. It just takes a couple of tweaks.

For one, the actual devices are in subdirs now. Like what was /dev/hda2 is now /dev/ide/host0/bus0/target0/lun0/part2.

So one needs to pass the devfs'ed name for the device to the lvmtools.

:)

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Gardner
Sent: Sunday, September 08, 2002 7:51 AM
To: [email protected]
Subject: Re: [linux-lvm] vgcreate -- no valid physical volumes in command line

Quoted 1 line · Glenn Shannon

Are you running DevFS by chance?

Yes - is that bad? :S

Daniel

Quoted 28 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Gardner
Sent: Sunday, September 08, 2002 7:34 AM
To: [email protected]
Subject: [linux-lvm] vgcreate -- no valid physical volumes in command line

Hi,

I'm new to this whole LVM lark, and something isn't working right for me...

I've got a partition, /dev/hda2, which I'm trying to put LVM stuff on.

cfdisk says:

First Last
# Type Sector Sector Offset Length Filesystem Type (ID)
-- ------- -------- --------- ------ --------- ----------------------
2 Primary 6249285 12466439 0 6217155 Linux LVM (8E)

Then I do:

root@gentoo daniel # pvcreate /dev/hda2
pvcreate -- physical volume "/dev/hda2" successfully created

Quoted 6 lines

root@gentoo daniel # pvdisplay /dev/hda2
pvdisplay -- "/dev/hda2" is a new physical volume of 2.96 GB

root@gentoo daniel # pvscan
pvscan -- reading all physical volumes (this may take a while...) pvscan -- inactive PV "/dev/ide/host0/bus0/target0/lun0/part2" is in

no

Quoted 11 lines

VG
[2.96 GB]
pvscan -- total: 1 [2.96 GB] / in use: 0 [0] / in no VG: 1 [2.96 GB]

All looking good... now here's the weird one:

root@gentoo daniel # vgcreate main /dev/hda2 vgcreate -- no valid physical volumes in command line

This is where I'm getting my baby steps from

http://www-106.ibm.com/developerworks/linux/library/l-lvm2.html?dwzone=l

Quoted 3 lines

inux

I was using stock kernel 2.4.18 and tools 1.0.5 to start with, but

just

Quoted 6 lines

tried
1.1-rc2 with the same results on both.

I don't really know where to go further with this, don't know if it's just me
being stupid or what. Anyone got any ideas? I'll provide any info that

I

Quoted 15 lines

need
to - just let me know what's needed!

Thanks awfully,
Daniel

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

Quoted 5 lines

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

#4 lore raw
Quoted 6 lines · Glenn Shannon

It's not bad, I use it. It just takes a couple of tweaks.

For one, the actual devices are in subdirs now. Like what was /dev/hda2 is now /dev/ide/host0/bus0/target0/lun0/part2.

So one needs to pass the devfs'ed name for the device to the lvmtools.

ahh, symlinks, i see... yes... I'd read about devfs back when there was argument about wether it should be in the kernel or not, but gentoo finally dragged me into the modern age. I presume it's the symlinks that vgcreate doesn't like... could that be construed as a bug?

Right, onwards for fun and games with grub and lvmcreate_initrd :)

Thanks for the help,
Daniel

#5 lore raw
In reply to Daniel Gardner
Quoted 1 line · Daniel Gardner

Hi,

[..]

Quoted 2 lines

root@gentoo daniel # vgcreate main /dev/hda2 vgcreate -- no valid physical volumes in command line

try:
vgcreate main /dev/ide/host0/bus0/target0/lun0/part2

are you using devfs?:)

NagyZ

#6 lore raw
Quoted 8 lines · NagyZ
Quoted 2 lines · Daniel Gardner

root@gentoo daniel # vgcreate main /dev/hda2 vgcreate -- no valid physical volumes in command line

try:
vgcreate main /dev/ide/host0/bus0/target0/lun0/part2

are you using devfs?:)

ooooh! Shiny things :)

I've just mounted a nice new XFS filesystem, thanks so much!

Daniel