Skip to contentSkip to conversation

Cannot create a Volume Group

linux-lvm Fernando Ruza 2 participants 4 messages Dec 14, 2004 – Dec 23, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I have the following problem:

sol:~# pvcreate /dev/hda1 /dev/hda4 /dev/hdb1
  Physical volume "/dev/hda1" successfully created
  Physical volume "/dev/hda4" successfully created
  Physical volume "/dev/hdb1" successfully created
sol:~# vgcreate vg1 /dev/hda1 /dev/hda4 /dev/hdb1
  Volume group "vg1" successfully created

Everything seems to be create properly, however when now I'm trying to activate the volume group or to scan it, it says it cannot found it:

sol:~# vgchange -a y vg1
  Unable to find volume group "vg1"
sol:~# vgscan
 No volume groups found

What's wrong here ?? Do I missing something ??

The versions I have are:

lvm-common 1.5.17
lvm2 2.00.29-1
libdevmapper1. 1.00.19-4

Thanks for any reply.

Regards.

Signature · 12 lines
Yo uso software libre, �Y tu?
�Qu� es el software libre? consulta: http://www.gnu.org/philosophy/free-sw.es.html

Fernando Ruza 
e-mail: [email protected]
jabber: [email protected]
web: http://guada24.guadawireless.net
Tlf: 661123845
Linux user: #273644 (http://counter.li.org)
Debian Sid (Kernel 2.4.20 & ext3)

"In an internet without fences ... who needs 'gates'"
#1 lore raw
Quoted 9 lines · Fernando Ruza

Everything seems to be create properly, however when now I'm trying to activate the volume group or to scan it, it says it cannot found it:

sol:~# vgchange -a y vg1
  Unable to find volume group "vg1"
sol:~# vgscan
 No volume groups found

lvm2 2.00.29-1

Firstly, there's a bug in pvcreate 2.00.29 (it'll sometimes fail with an error message when it shouldn't) - upgrade to .31.

Use -vvv options to see what's going on and why it ignores things. e.g. pvscan --partial -vvv

Alasdair

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

Hi,

El mi�, 15-12-2004 a las 01:08, Alasdair G Kergon escribi�:

Quoted 9 lines · Fernando Ruza
Quoted 7 lines

Everything seems to be create properly, however when now I'm trying to activate the volume group or to scan it, it says it cannot found it:

sol:~# vgchange -a y vg1
  Unable to find volume group "vg1"
sol:~# vgscan
 No volume groups found
Quoted 4 lines
Quoted 1 line

lvm2 2.00.29-1

Firstly, there's a bug in pvcreate 2.00.29 (it'll sometimes fail with an error message when it shouldn't) - upgrade to .31.

Well, I don't think is the version. I've just upgrade to 2.00.29 before writing to the list and with the version I had before it happened the same.

Quoted 3 lines

Use -vvv options to see what's going on and why it ignores things. e.g. pvscan --partial -vvv

After doing the pvcreate /dev/hda1 /dev/hda4 /dev/hdb1, pvscan --partial
-vvv lists me all the devices y /dev and at the end says:

  PV /dev/hda1         lvm2 [7,96 GB]
  PV /dev/hda4         lvm2 [15,48 GB]
  PV /dev/hdb1         lvm2 [3,00 GB]

Total: 3 [26,44 GB] / in use: 0 [0 ] / in no VG: 3 [26,44 GB]

After doing the vgcreate /dev/vg1 /dev/hda1 /dev/hda4 /dev/hdb1,
vgscan --partial -vvv lists me all the devices y /dev and at the end
says: No volume groups found

The device /dev/vg1 is not created although vgcreate says Volume group "vg1" successfully created.

Quoted 1 line

Alasdair

Signature · 12 lines
Yo uso software libre, �Y tu?
�Qu� es el software libre? consulta: http://www.gnu.org/philosophy/free-sw.es.html

Fernando Ruza 
e-mail: [email protected]
jabber: [email protected]
web: http://guada24.guadawireless.net
Tlf: 661123845
Linux user: #273644 (http://counter.li.org)
Debian Sid (Kernel 2.4.20 & ext3)

"In an internet without fences ... who needs 'gates'"
#3 lore raw

Hi again,

I solved my problem. The issue was that I had not applied the device mapper patch to my kernel. I did it and every thing worked right.

Best regards,

Fernando.

El mi�, 15-12-2004 a las 01:29, Fernando Ruza escribi�:

Quoted 42 lines

Hi,

El mi�, 15-12-2004 a las 01:08, Alasdair G Kergon escribi�:

Quoted 9 lines · Fernando Ruza
Quoted 7 lines

Everything seems to be create properly, however when now I'm trying to activate the volume group or to scan it, it says it cannot found it:

sol:~# vgchange -a y vg1
  Unable to find volume group "vg1"
sol:~# vgscan
 No volume groups found
Quoted 4 lines
Quoted 1 line

lvm2 2.00.29-1

Firstly, there's a bug in pvcreate 2.00.29 (it'll sometimes fail with an error message when it shouldn't) - upgrade to .31.

Well, I don't think is the version. I've just upgrade to 2.00.29 before writing to the list and with the version I had before it happened the same.

Quoted 3 lines

Use -vvv options to see what's going on and why it ignores things. e.g. pvscan --partial -vvv

After doing the pvcreate /dev/hda1 /dev/hda4 /dev/hdb1, pvscan --partial
-vvv lists me all the devices y /dev and at the end says:

  PV /dev/hda1         lvm2 [7,96 GB]
  PV /dev/hda4         lvm2 [15,48 GB]
  PV /dev/hdb1         lvm2 [3,00 GB]

Total: 3 [26,44 GB] / in use: 0 [0 ] / in no VG: 3 [26,44 GB]

After doing the vgcreate /dev/vg1 /dev/hda1 /dev/hda4 /dev/hdb1,
vgscan --partial -vvv lists me all the devices y /dev and at the end
says: No volume groups found

The device /dev/vg1 is not created although vgcreate says Volume group "vg1" successfully created.

Quoted 1 line

Alasdair

Signature · 12 lines
Yo uso software libre, �Y tu?
�Qu� es el software libre? consulta: http://www.gnu.org/philosophy/free-sw.es.html

Fernando Ruza 
e-mail: [email protected]
jabber: [email protected]
web: http://guada24.guadawireless.net
Tlf: 661123845
Linux user: #273644 (http://counter.li.org)
Debian Sid (Kernel 2.4.20 & ext3)

"In an internet without fences ... who needs 'gates'"