Skip to contentSkip to conversation

volume group not found????

linux-lvm Alexander Bruns 3 participants 4 messages Aug 1, 2001 – Aug 13, 2001

lore
Share & tools
lore
#0 lore raw

Hi,

I am new to this group an new to lvm. I reinstalled my personal server with redhat 7.1 an wanted to get lvm run over my three large discs.

I had the following things running for a short while:

- RedHat 7.1 with all updates.
- self-compiled Kernel 2.4.6 with patched lvm 0.9.1_beta7

On my first HD Igave the rest space to hda7 with fdisk and set the partition to "8e" lvm.

The i followed the howto at sistina at:
file://sistina.com/lvm/doc/lvm_howto/Common_tasks.html

- I initalized the Partition:
pvcreate /dev/hda7

- I added the partition to a new volume group:
vgcreate lvm_volume_01 /dev(hda7

- then o activated the volume group:
vgchange -a y lvm_volume_01

- The I put a logical volume on the volume group:
lvcrate -L50G -nlvm_lv_01 lvm_volume_01

This logical Volume was then at /dev/lvm_volume_01/lvm_lv_01 and o formated it woith reiserfs an mounted it! Evething runs fine.

I copied the old contents of hdb5 and hdc5 of the smaller HDs to this logical volume. on hda7.

Then I added deleted the partition on hdc5, made a new one, set it to 8e an added it to the volume group as explained at:
file://sistina.com/lvm/doc/lvm_howto/Common_tasks.html

pvcreate /dev/hdc5
vgextend lvm_volume_01
lvextend -L30G /dev/lvm_volume_01/lvm_lv_01
resize_reiserfs -f /dev/lvm_volume_01/lvm_lv_01

That was all fine and i could mount the lvm_lv_01 without any problems.

The same I then wanted to manage with the thirt HD at hdb5, but then something went wrong??

Resize reiserfs did something but when i wanted to mount the LV it did not work. reiserfs-checks did not found a problem but the mount-binary told my something about a superblock......

Abter a reboot I now have the following:

[root@holodeck lvmconf]# pvdisplay /dev/hda7
pvdisplay
--- Physical volume ---

PV Name               /dev/hda7
VG Name               lvm_volume_01
PV Size               48.54 GB / NOT usable 1.06 MB [LVM: 169 KB]
PV#                   1
PV Status             available
Allocatable           yes (but full)
Cur LV                1
PE Size (KByte)       4096
Total PE              12425
Free PE               0
Allocated PE          12425
PV UUID               cFFBJX-aqxr-P7kU-71OY-pgpX-rvtA-XxVpoc

But for /dev/hdb5 and /ev/hdc5 it does not show the same. NOTHING!!

And becouse I did not write anything to the volumegroup or logical volume after the added two partition al my data must still be on hda7. But how do I manage to get on it?

The following commands say the folling:
#####################################################

[root@holodeck lvmconf]# vgscan
vgscan
vgscan -- reading all physical volumes (this may take a while...) vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your volume group

lvm_volume_01 is not found

[root@holodeck lvmconf]# vgchange -a y lvm_volume_01 vgchange
vgchange -- volume group "lvm_volume_01" does not exist

[root@holodeck lvmconf]# ls -al /dev/lvm*
crw-r----- 1 root root 109, 0 Jul 20 16:39 /dev/lvm

/dev/lvm_volume_01:
insgesamt 88

dr-xr-xr-x    2 root     root         4096 Jul 20 23:06 .
drwxr-xr-x   15 root     root        81920 Jul 28 13:12 ..
crw-r-----    1 root     disk     109,   0 Jul 20 23:02 group
brw-rw----    1 root     disk      58,   0 Jul 20 23:06 lvm_lv_01

[root@holodeck lvmconf]# ls -al /dev/lvm_volume_01/ insgesamt 88

dr-xr-xr-x    2 root     root         4096 Jul 20 23:06 .
drwxr-xr-x   15 root     root        81920 Jul 28 13:12 ..
crw-r-----    1 root     disk     109,   0 Jul 20 23:02 group
brw-rw----    1 root     disk      58,   0 Jul 20 23:06 lvm_lv_01

SHIT!

How do I get on my Data at lvm_volume_01 bzw lvm_lv_01. lvm_lv_01 was formated with reiserfs

Greetings from Germany from Alex

_______________________________________________
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

#1 lore raw

It looks like you have hit the bug 193 in bugzilla.

/Magnus

Quoted 148 lines · Alexander Bruns

Hi,

I am new to this group an new to lvm. I reinstalled my personal server with redhat 7.1 an wanted to get lvm run over my three large discs.

I had the following things running for a short while:

- RedHat 7.1 with all updates.
- self-compiled Kernel 2.4.6 with patched lvm 0.9.1_beta7

On my first HD Igave the rest space to hda7 with fdisk and set the partition to "8e" lvm.

The i followed the howto at sistina at:
file://sistina.com/lvm/doc/lvm_howto/Common_tasks.html

- I initalized the Partition:
pvcreate /dev/hda7

- I added the partition to a new volume group:
vgcreate lvm_volume_01 /dev(hda7

- then o activated the volume group:
vgchange -a y lvm_volume_01

- The I put a logical volume on the volume group:
lvcrate -L50G -nlvm_lv_01 lvm_volume_01

This logical Volume was then at /dev/lvm_volume_01/lvm_lv_01 and o formated it woith reiserfs an mounted it! Evething runs fine.

I copied the old contents of hdb5 and hdc5 of the smaller HDs to this logical volume. on hda7.

Then I added deleted the partition on hdc5, made a new one, set it to 8e an added it to the volume group as explained at:
file://sistina.com/lvm/doc/lvm_howto/Common_tasks.html

pvcreate /dev/hdc5
vgextend lvm_volume_01
lvextend -L30G /dev/lvm_volume_01/lvm_lv_01
resize_reiserfs -f /dev/lvm_volume_01/lvm_lv_01

That was all fine and i could mount the lvm_lv_01 without any problems.

The same I then wanted to manage with the thirt HD at hdb5, but then something went wrong??

Resize reiserfs did something but when i wanted to mount the LV it did not work. reiserfs-checks did not found a problem but the mount-binary told my something about a superblock......

Abter a reboot I now have the following:

[root@holodeck lvmconf]# pvdisplay /dev/hda7
pvdisplay
--- Physical volume ---

PV Name               /dev/hda7
VG Name               lvm_volume_01
PV Size               48.54 GB / NOT usable 1.06 MB [LVM: 169 KB]
PV#                   1
PV Status             available
Allocatable           yes (but full)
Cur LV                1
PE Size (KByte)       4096
Total PE              12425
Free PE               0
Allocated PE          12425
PV UUID               cFFBJX-aqxr-P7kU-71OY-pgpX-rvtA-XxVpoc

But for /dev/hdb5 and /ev/hdc5 it does not show the same. NOTHING!!

And becouse I did not write anything to the volumegroup or logical volume after the added two partition al my data must still be on hda7. But how do I manage to get on it?

The following commands say the folling:
#####################################################

[root@holodeck lvmconf]# vgscan
vgscan
vgscan -- reading all physical volumes (this may take a while...) vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your volume group

lvm_volume_01 is not found

[root@holodeck lvmconf]# vgchange -a y lvm_volume_01 vgchange
vgchange -- volume group "lvm_volume_01" does not exist

[root@holodeck lvmconf]# ls -al /dev/lvm*
crw-r----- 1 root root 109, 0 Jul 20 16:39 /dev/lvm

/dev/lvm_volume_01:
insgesamt 88

dr-xr-xr-x    2 root     root         4096 Jul 20 23:06 .
drwxr-xr-x   15 root     root        81920 Jul 28 13:12 ..
crw-r-----    1 root     disk     109,   0 Jul 20 23:02 group
brw-rw----    1 root     disk      58,   0 Jul 20 23:06 lvm_lv_01

[root@holodeck lvmconf]# ls -al /dev/lvm_volume_01/ insgesamt 88

dr-xr-xr-x    2 root     root         4096 Jul 20 23:06 .
drwxr-xr-x   15 root     root        81920 Jul 28 13:12 ..
crw-r-----    1 root     disk     109,   0 Jul 20 23:02 group
brw-rw----    1 root     disk      58,   0 Jul 20 23:06 lvm_lv_01

SHIT!

How do I get on my Data at lvm_volume_01 bzw lvm_lv_01. lvm_lv_01 was formated with reiserfs

Greetings from Germany from Alex

_______________________________________________
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

#2 lore raw

Hi,

Quoted 2 lines

It looks like you have hit the bug 193 in bugzilla.

Okey, I read about this Bug. But where do i found a way to get on my data on the lvm-partition?

Greetings, Alex

Quoted 7 lines

/Magnus

Quoted 3 lines · Alexander Bruns

Hi,

I am new to this group an new to lvm. I reinstalled my personal

server

Quoted 1 line
Quoted 1 line

with redhat 7.1 an wanted to get lvm run over my three large

discs.

Quoted 22 lines
Quoted 22 lines

I had the following things running for a short while:

- RedHat 7.1 with all updates.
- self-compiled Kernel 2.4.6 with patched lvm 0.9.1_beta7

On my first HD Igave the rest space to hda7 with fdisk and set the partition to "8e" lvm.

The i followed the howto at sistina at:
file://sistina.com/lvm/doc/lvm_howto/Common_tasks.html

- I initalized the Partition:
pvcreate /dev/hda7

- I added the partition to a new volume group:
vgcreate lvm_volume_01 /dev(hda7

- then o activated the volume group:
vgchange -a y lvm_volume_01

Quoted 7 lines
Quoted 7 lines

- The I put a logical volume on the volume group:
lvcrate -L50G -nlvm_lv_01 lvm_volume_01

This logical Volume was then at /dev/lvm_volume_01/lvm_lv_01 and o formated it woith reiserfs an mounted it! Evething runs fine.

I copied the old contents of hdb5 and hdc5 of the smaller HDs to

this

Quoted 5 lines
Quoted 5 lines

logical volume. on hda7.

Then I added deleted the partition on hdc5, made a new one, set it

to

Quoted 9 lines
Quoted 9 lines

8e an added it to the volume group as explained at:
file://sistina.com/lvm/doc/lvm_howto/Common_tasks.html

pvcreate /dev/hdc5
vgextend lvm_volume_01
lvextend -L30G /dev/lvm_volume_01/lvm_lv_01
resize_reiserfs -f /dev/lvm_volume_01/lvm_lv_01

Quoted 5 lines
Quoted 5 lines

That was all fine and i could mount the lvm_lv_01 without any problems.

The same I then wanted to manage with the thirt HD at hdb5, but

then

Quoted 3 lines
Quoted 3 lines

something went wrong??

Resize reiserfs did something but when i wanted to mount the LV it

did

Quoted 1 line
Quoted 1 line

not work. reiserfs-checks did not found a problem but the

mount-binary

Quoted 21 lines
Quoted 21 lines

told my something about a superblock......

Abter a reboot I now have the following:

[root@holodeck lvmconf]# pvdisplay /dev/hda7
pvdisplay
--- Physical volume ---

PV Name               /dev/hda7
VG Name               lvm_volume_01
PV Size               48.54 GB / NOT usable 1.06 MB [LVM: 169 KB]
PV#                   1
PV Status             available
Allocatable           yes (but full)
Cur LV                1
PE Size (KByte)       4096
Total PE              12425
Free PE               0
Allocated PE          12425
PV UUID               cFFBJX-aqxr-P7kU-71OY-pgpX-rvtA-XxVpoc
Quoted 1 line
Quoted 1 line

But for /dev/hdb5 and /ev/hdc5 it does not show the same.

NOTHING!!

Quoted 5 lines
Quoted 5 lines

And becouse I did not write anything to the volumegroup or logical volume after the added two partition al my data must still be on

hda7.

Quoted 73 lines
Quoted 58 lines

But how do I manage to get on it?

The following commands say the folling:
#####################################################

[root@holodeck lvmconf]# vgscan
vgscan
vgscan -- reading all physical volumes (this may take a while...) vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your volume group

lvm_volume_01 is not found

[root@holodeck lvmconf]# vgchange -a y lvm_volume_01 vgchange
vgchange -- volume group "lvm_volume_01" does not exist

[root@holodeck lvmconf]# ls -al /dev/lvm*
crw-r----- 1 root root 109, 0 Jul 20 16:39 /dev/lvm

/dev/lvm_volume_01:
insgesamt 88

dr-xr-xr-x    2 root     root         4096 Jul 20 23:06 .
drwxr-xr-x   15 root     root        81920 Jul 28 13:12 ..
crw-r-----    1 root     disk     109,   0 Jul 20 23:02 group
brw-rw----    1 root     disk      58,   0 Jul 20 23:06 lvm_lv_01

[root@holodeck lvmconf]# ls -al /dev/lvm_volume_01/ insgesamt 88

dr-xr-xr-x    2 root     root         4096 Jul 20 23:06 .
drwxr-xr-x   15 root     root        81920 Jul 28 13:12 ..
crw-r-----    1 root     disk     109,   0 Jul 20 23:02 group
brw-rw----    1 root     disk      58,   0 Jul 20 23:06 lvm_lv_01

SHIT!

How do I get on my Data at lvm_volume_01 bzw lvm_lv_01. lvm_lv_01 was formated with reiserfs

Greetings from Germany from Alex

_______________________________________________
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 7 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

#3 lore raw

The group (sadly) didn't have much info for me. As such, I'll relay on to you what I found to work.

I was able to restore my volume group by:
vgcfgrestore -v -d -n group1 /dev/hdg1

For some reason, when I used vgcfgrestore and specified the group1.conf file name it didn't work.

I've noticed the error logs generated from the vg*, pv*, and lv* commands aren't very helpful. For example, say you vgextend an additional 30G. Then if you lvextend -L+30G the error message you get isn't an "error: you attempted to allocate more space to the LV than exists in the group". You get something like "allocation of 688502 physical blocks warning". Not very intuitive.

Best of Luck Alexander,
Chris

Quoted 28 lines · --- Alexander Bruns

Hi,

Quoted 1 line

It looks like you have hit the bug 193 in

bugzilla.

Quoted 1 line

Okey, I read about this Bug. But where do i found a way to get on my
data on the lvm-partition?

Greetings, Alex

Quoted 7 lines

/Magnus

Quoted 3 lines · Alexander Bruns

Hi,

I am new to this group an new to lvm. I

reinstalled my personal
server

Quoted 1 line
Quoted 1 line

with redhat 7.1 an wanted to get lvm run over my

three large
discs.

Quoted 2 lines
Quoted 2 lines

I had the following things running for a short

Quoted 13 lines

while:

Quoted 3 lines
Quoted 3 lines

- RedHat 7.1 with all updates.
- self-compiled Kernel 2.4.6 with patched lvm

0.9.1_beta7

Quoted 2 lines
Quoted 2 lines

On my first HD Igave the rest space to hda7 with

fdisk and set the

Quoted 4 lines
Quoted 4 lines

partition to "8e" lvm.

The i followed the howto at sistina at:

file://sistina.com/lvm/doc/lvm_howto/Common_tasks.html

Quoted 27 lines
Quoted 5 lines
Quoted 5 lines

- I initalized the Partition:
pvcreate /dev/hda7

Quoted 7 lines
Quoted 7 lines

- I added the partition to a new volume group:
vgcreate lvm_volume_01 /dev(hda7

- then o activated the volume group:
vgchange -a y lvm_volume_01

- The I put a logical volume on the volume

group:

Quoted 3 lines
Quoted 3 lines

lvcrate -L50G -nlvm_lv_01 lvm_volume_01

This logical Volume was then at

/dev/lvm_volume_01/lvm_lv_01 and o

Quoted 1 line
Quoted 1 line

formated it woith reiserfs an mounted it!

Evething runs fine.

Quoted 2 lines
Quoted 2 lines

I copied the old contents of hdb5 and hdc5 of

the smaller HDs to
this

Quoted 4 lines
Quoted 4 lines

logical volume. on hda7.

Quoted 7 lines
Quoted 1 line
Quoted 1 line

Then I added deleted the partition on hdc5, made

a new one, set it
to

Quoted 1 line
Quoted 1 line

8e an added it to the volume group as explained

at:

Quoted 1 line
Quoted 1 line

file://sistina.com/lvm/doc/lvm_howto/Common_tasks.html

Quoted 52 lines
Quoted 8 lines
Quoted 8 lines

pvcreate /dev/hdc5
vgextend lvm_volume_01
lvextend -L30G /dev/lvm_volume_01/lvm_lv_01
resize_reiserfs -f /dev/lvm_volume_01/lvm_lv_01

That was all fine and i could mount the

lvm_lv_01 without any

Quoted 4 lines
Quoted 4 lines

problems.

The same I then wanted to manage with the thirt

HD at hdb5, but
then

Quoted 3 lines
Quoted 3 lines

something went wrong??

Resize reiserfs did something but when i wanted

to mount the LV it
did

Quoted 1 line
Quoted 1 line

not work. reiserfs-checks did not found a

problem but the
mount-binary

Quoted 11 lines
Quoted 11 lines

told my something about a superblock......

Abter a reboot I now have the following:

[root@holodeck lvmconf]# pvdisplay /dev/hda7
pvdisplay
--- Physical volume ---

PV Name               /dev/hda7
VG Name               lvm_volume_01
PV Size               48.54 GB / NOT usable 1.06

MB [LVM: 169 KB]

Quoted 9 lines
Quoted 9 lines
PV#                   1
PV Status             available
Allocatable           yes (but full)
Cur LV                1
PE Size (KByte)       4096
Total PE              12425
Free PE               0
Allocated PE          12425

PV UUID

cFFBJX-aqxr-P7kU-71OY-pgpX-rvtA-XxVpoc

Quoted 2 lines
Quoted 2 lines

But for /dev/hdb5 and /ev/hdc5 it does not show

the same.
NOTHING!!

Quoted 3 lines
Quoted 3 lines
Quoted 10 lines
Quoted 1 line
Quoted 1 line

And becouse I did not write anything to the

volumegroup or logical

Quoted 1 line
Quoted 1 line

volume after the added two partition al my data

must still be on
hda7.

Quoted 4 lines
Quoted 4 lines

But how do I manage to get on it?

The following commands say the folling:

#####################################################

Quoted 54 lines
Quoted 6 lines
Quoted 6 lines

[root@holodeck lvmconf]# vgscan
vgscan
vgscan -- reading all physical volumes (this may

take a while...)

Quoted 1 line
Quoted 1 line

vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d"

successfully created

Quoted 1 line
Quoted 1 line

vgscan -- WARNING: This program does not do a

VGDA backup of your

Quoted 5 lines
Quoted 5 lines

volume group

lvm_volume_01 is not found

[root@holodeck lvmconf]# vgchange -a y

lvm_volume_01

Quoted 2 lines
Quoted 2 lines

vgchange
vgchange -- volume group "lvm_volume_01" does

not exist

Quoted 5 lines
Quoted 5 lines

[root@holodeck lvmconf]# ls -al /dev/lvm*
crw-r----- 1 root root 109, 0 Jul

20 16:39 /dev/lvm

Quoted 4 lines
Quoted 4 lines

/dev/lvm_volume_01:
insgesamt 88
dr-xr-xr-x 2 root root 4096 Jul

20 23:06 .

Quoted 1 line
Quoted 1 line

drwxr-xr-x 15 root root 81920 Jul

28 13:12 ..

Quoted 1 line
Quoted 1 line

crw-r----- 1 root disk 109, 0 Jul

20 23:02 group

Quoted 1 line
Quoted 1 line

brw-rw---- 1 root disk 58, 0 Jul

20 23:06 lvm_lv_01

Quoted 3 lines
Quoted 3 lines

[root@holodeck lvmconf]# ls -al

/dev/lvm_volume_01/

Quoted 2 lines
Quoted 2 lines

insgesamt 88
dr-xr-xr-x 2 root root 4096 Jul

20 23:06 .

Quoted 1 line
Quoted 1 line

drwxr-xr-x 15 root root 81920 Jul

28 13:12 ..

Quoted 1 line
Quoted 1 line

crw-r----- 1 root disk 109, 0 Jul

20 23:02 group

Quoted 1 line
Quoted 1 line

brw-rw---- 1 root disk 58, 0 Jul

20 23:06 lvm_lv_01

Quoted 4 lines
Quoted 4 lines
Quoted 11 lines
Quoted 3 lines
Quoted 3 lines

SHIT!

How do I get on my Data at lvm_volume_01 bzw

lvm_lv_01.

Quoted 6 lines
Quoted 6 lines

lvm_lv_01 was formated with reiserfs

Greetings from Germany from Alex

=== message truncated ===

__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/