Skip to contentSkip to conversation

VG is not found !

linux-lvm Igor Dumaire 2 participants 3 messages Nov 15, 2001 – Nov 16, 2001

lore
Share & tools
lore
#0 lore raw

Hi,

I had created 2 VG and worked sometime with its.
I have stopped the server and at the reboot the first VG have disappeared ! The second it's OK !!

(perhaps, two drives (on 3) have been switched ) How can I restore the VG (vgrestore ?!) and the DATA ?

RH 7.1
LVM version 1.0.1-rc4(03/10/2001)
ReiserFS version 3.6.25
Linux 2.4.9

Thanks a lot for your help gays .

Signature · 4 lines
Igor Dumaire

www.LTUtech.com - Making Sense of Visual Content
------------------------------------------------
#1 lore raw
Quoted 3 lines · Igor Dumaire

I had created 2 VG and worked sometime with its. I have stopped the server and at the reboot the first VG have disappeared ! The second it's OK !!

Start with these commands:

lvmdiskscan
vgscan
vgdisplay
vgchange -ay

Do not just blindly try the commands if you are not familiar with them;
read the manual pages first. Try the '--verbose' switch with each for more info.

Signature · 4 lines
Ben Scott <[email protected]>
| The opinions expressed in this message are those of the author and do not |
| necessarily represent the views or policy of any other person, entity or  |
| organization.  All information is provided without warranty of any kind.  |
#2 lore raw

Hi,

I can see all drives :

# lvmdiskscan
lvmdiskscan -- reading all disks / partitions (this may take a while...)
lvmdiskscan -- /dev/hda1 [      70.57 MB] Primary  LINUX native partition [0x83]
lvmdiskscan -- /dev/hda2 [      19.07 GB] DOS extended partition [0x05]
lvmdiskscan -- /dev/hda5 [       2.01 GB] Extended LINUX native partition [0x83]
lvmdiskscan -- /dev/hda6 [       1.00 GB] Extended LINUX native partition [0x83]
lvmdiskscan -- /dev/hda7 [       1.00 GB] Extended LINUX native partition [0x83]
lvmdiskscan -- /dev/hda8 [     517.69 MB] Extended LINUX native partition [0x83]
lvmdiskscan -- /dev/hda9 [      14.55 GB] Extended LINUX native partition [0x83]
lvmdiskscan -- /dev/hdc1 [      57.27 GB] Primary  LVM partition [0x8E]
lvmdiskscan -- /dev/hdd1 [      57.27 GB] Primary  LVM partition [0x8E]
lvmdiskscan -- /dev/hde1 [      57.27 GB] Primary  LVM partition [0x8E]
lvmdiskscan -- /dev/hdf1 [      57.27 GB] Primary  LVM partition [0x8E]
lvmdiskscan -- /dev/hdg1 [      57.27 GB] Primary  LVM partition [0x8E]
lvmdiskscan -- /dev/hdh1 [      57.27 GB] Primary  LVM partition [0x8E]
lvmdiskscan -- 7 disks
lvmdiskscan -- 0 whole disks
lvmdiskscan -- 0 loop devices
lvmdiskscan -- 0 multiple devices
lvmdiskscan -- 0 network block devices
lvmdiskscan -- 13 partitions
lvmdiskscan -- 6 LVM physical volume partitions

I can see volume group "lvm2" but not "lvm1"

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

I can display lvm2 info

# vgdisplay lvm2
--- Volume group ---
VG Name               lvm2
VG Access             read/write
VG Status             available/resizable
VG #                  0
MAX LV                255
Cur LV                1
Open LV               1
MAX LV Size           255.99 GB
Max PV                255
Cur PV                3
Act PV                3
VG Size               171.79 GB
PE Size               4.00 MB
Total PE              43977
Alloc PE / Size       43776 / 171.00 GB
Free  PE / Size       201 / 804.00 MB
VG UUID               Jp3gDv-ib7D-p5te-FFLZ-lNjI-5brK-fzjEM6

but, not lvm1 info !

# vgdisplay lvm1
vgdisplay -- volume group "lvm1" not found

So, What do I do?

Thanks,

Quoted 17 lines · Benjamin Scott
Quoted 3 lines · Igor Dumaire

I had created 2 VG and worked sometime with its. I have stopped the server and at the reboot the first VG have disappeared ! The second it's OK !!

Start with these commands:

lvmdiskscan
vgscan
vgdisplay
vgchange -ay

Do not just blindly try the commands if you are not familiar with them;
read the manual pages first. Try the '--verbose' switch with each for more info.

Signature · 4 lines
Igor Dumaire

www.LTUtech.com - Making Sense of Visual Content
------------------------------------------------