vgcfgrestore error !
Hi,
After a reboot I have lost a volume (/dev/lvm1) but not an other (/dev/lvm2) (vgscan doesn't see lvm1 !)
I am trying to restore it, using vgcfgrestore, but I have the message below :
# vgcfgrestore -n lvm1 /dev/lvm1
vgcfgrestore -- can't restore part of active volume group "lvm1"
vgcfgrestore [-d|--debug] [-f|--file VGConfPath] [-l[l]|--list [--list]]
[-n|--name VolumeGroupName] [-h|--help]
[-o|--oldpath OldPhysicalVolumePath] [-t|--test] [-v|--verbose]
[--version] [PhysicalVolumePath]# vgcfgrestore -n lvm1 /dev/lvmOLD
vgcfgrestore -- invalid physical volume "/dev/lvmOLD"
vgcfgrestore [-d|--debug] [-f|--file VGConfPath] [-l[l]|--list [--list]]
[-n|--name VolumeGroupName] [-h|--help]
[-o|--oldpath OldPhysicalVolumePath] [-t|--test] [-v|--verbose]
[--version] [PhysicalVolumePath]WHY this message !
What do I do ?
# 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
# vgdisplay --- 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
# vgdisplay lvm1 vgdisplay -- volume group "lvm1" not found
Thanks for your help.
Signature · 4 lines
Igor Dumaire www.LTUtech.com - Making Sense of Visual Content ------------------------------------------------
Igor,
you need to figure out, which Physical Volumes (PVs) belong to your VG lvm1 by running 'vgcfgrestore -ll -n lvm1'. Please check for the PV list at the end of the output.
Then restore the LVM metadata by running 'vgcfgrestore -n lvm1 /dev/hdWhatever` on every of those.
Afterwards run 'vgscan;vgchange -ay lvm1', which should revive lvm1.
What error happend in the first place causing lvm1 to disapear? Do you use recent LVM software?
Regards,
Heinz -- The LVM Guy --
Quoted 67 lines · Igor Dumaire
Hi,
After a reboot I have lost a volume (
/dev/lvm1) but not an other (/dev/lvm2) (vgscan doesn't see lvm1 !)I am trying to restore it, using vgcfgrestore, but I have the message below :
# vgcfgrestore -n lvm1 /dev/lvm1 vgcfgrestore -- can't restore part of active volume group "lvm1" vgcfgrestore [-d|--debug] [-f|--file VGConfPath] [-l[l]|--list [--list]] [-n|--name VolumeGroupName] [-h|--help] [-o|--oldpath OldPhysicalVolumePath] [-t|--test] [-v|--verbose] [--version] [PhysicalVolumePath]# vgcfgrestore -n lvm1 /dev/lvmOLD vgcfgrestore -- invalid physical volume "/dev/lvmOLD" vgcfgrestore [-d|--debug] [-f|--file VGConfPath] [-l[l]|--list [--list]] [-n|--name VolumeGroupName] [-h|--help] [-o|--oldpath OldPhysicalVolumePath] [-t|--test] [-v|--verbose] [--version] [PhysicalVolumePath]WHY this message !
What do I do ?# 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# vgdisplay --- 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
Quoted 17 lines
# vgdisplay lvm1 vgdisplay -- volume group "lvm1" not foundThanks for your help.
Signature · 10 lines
Igor Dumaire www.LTUtech.com - Making Sense of Visual Content ------------------------------------------------ _______________________________________________ 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
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Quoted 4 lines
you need to figure out, which Physical Volumes (PVs) belong to your VG lvm1 by running 'vgcfgrestore -ll -n lvm1'. Please check for the PV list at the end of the output.
the PV list it' OK. (hde1, hdf1 and hdc1)
# vgcfgrestore -ll -n lvm1 --- Volume group --- VG Name lvm1 VG Access read/write VG Status NOT available/resizable VG # 0 MAX LV 255 Cur LV 1 Open LV 0 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 iwDjRO-WlFd-GZUw-DU20-GP8C-mMwV-MkzCeR
--- Logical volume ---
LV Name /dev/lvm1/Data VG Name lvm1 LV Write Access read/write LV Status available LV # 1 # open 0 LV Size 171.00 GB Current LE 43776 Allocated LE 43776 Allocation next free Read ahead sectors 120 Block device 58:0
--- Physical volume ---
PV Name /dev/hde1 VG Name lvm1 PV Size 57.27 GB / NOT usable 8.11 MB [LVM: 181.00 KB] PV# 1 PV Status NOT available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 4096 Total PE 14659 Free PE 0 Allocated PE 14659 PV UUID kbvz5r-hJlN-WU9Q-7xwj-alJ6-8UfO-jopMFc
--- Physical volume ---
PV Name /dev/hdf1 VG Name lvm1 PV Size 57.27 GB / NOT usable 8.11 MB [LVM: 181.00 KB] PV# 2 PV Status NOT available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 4096 Total PE 14659 Free PE 0 Allocated PE 14659 PV UUID weQY7t-7II0-7t74-hVI5-Dj8Y-CV0O-8CyGqh
--- Physical volume ---
PV Name /dev/hdc1 VG Name lvm1 PV Size 57.27 GB / NOT usable 8.11 MB [LVM: 181.00 KB] PV# 3 PV Status available Allocatable yes Cur LV 1 PE Size (KByte) 4096 Total PE 14659 Free PE 201 Allocated PE 14458 PV UUID BFvA7F-ccvF-e5r1-3QH7-02JG-dH4r-AOYF64
Quoted 1 line
What error happend in the first place causing lvm1 to disapear?
I don't known.
Quoted 1 line
Do you use recent LVM software?
LVM version 1.0.1-rc4(03/10/2001)
vgcreate: Logical Volume Manager 1.0.1-rc4 Heinz Mauelshagen, Sistina Software 03/10/2001 (IOP 10)
Regards,
Signature · 4 lines
Igor Dumaire www.LTUtech.com - Making Sense of Visual Content ------------------------------------------------
Quoted 7 lines
you need to figure out, which Physical Volumes (PVs) belong to your VG lvm1 by running 'vgcfgrestore -ll -n lvm1'. Please check for the PV list at the end of the output.
Then restore the LVM metadata by running 'vgcfgrestore -n lvm1 /dev/hdWhatever` on every of those.
# vgcfgrestore -n lvm1 /dev/hde1
vgcfgrestore -- can't restore part of active volume group "lvm1"
vgcfgrestore [-d|--debug] [-f|--file VGConfPath] [-l[l]|--list [--list]]
[-n|--name VolumeGroupName] [-h|--help]
[-o|--oldpath OldPhysicalVolumePath] [-t|--test] [-v|--verbose]
[--version] [PhysicalVolumePath]
# vgcfgrestore -n lvm1 /dev/hdf1
vgcfgrestore -- can't restore part of active volume group "lvm1"
vgcfgrestore [-d|--debug] [-f|--file VGConfPath] [-l[l]|--list [--list]]
[-n|--name VolumeGroupName] [-h|--help]
[-o|--oldpath OldPhysicalVolumePath] [-t|--test] [-v|--verbose]
[--version] [PhysicalVolumePath]
# vgcfgrestore -n lvm1 /dev/hdc1
vgcfgrestore -- can't restore part of active volume group "lvm1"
vgcfgrestore [-d|--debug] [-f|--file VGConfPath] [-l[l]|--list [--list]]
[-n|--name VolumeGroupName] [-h|--help]
[-o|--oldpath OldPhysicalVolumePath] [-t|--test] [-v|--verbose]
[--version] [PhysicalVolumePath]What's about "PV Status NOT available" in vgcfgrestore -ll -n lvm1
message ?!
--- Volume group ---
VG Name lvm1 VG Access read/write VG Status NOT available/resizable VG # 0 MAX LV 255 Cur LV 1 Open LV 0 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 iwDjRO-WlFd-GZUw-DU20-GP8C-mMwV-MkzCeR
--- Logical volume ---
LV Name /dev/lvm1/Data VG Name lvm1 LV Write Access read/write LV Status available LV # 1 # open 0 LV Size 171.00 GB Current LE 43776 Allocated LE 43776 Allocation next free Read ahead sectors 120 Block device 58:0
--- Physical volume ---
PV Name /dev/hde1 VG Name lvm1 PV Size 57.27 GB / NOT usable 8.11 MB [LVM: 181.00 KB] PV# 1 PV Status NOT available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 4096 Total PE 14659 Free PE 0 Allocated PE 14659 PV UUID kbvz5r-hJlN-WU9Q-7xwj-alJ6-8UfO-jopMFc
--- Physical volume ---
PV Name /dev/hdf1 VG Name lvm1 PV Size 57.27 GB / NOT usable 8.11 MB [LVM: 181.00 KB] PV# 2 PV Status NOT available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 4096 Total PE 14659 Free PE 0 Allocated PE 14659 PV UUID weQY7t-7II0-7t74-hVI5-Dj8Y-CV0O-8CyGqh
--- Physical volume ---
PV Name /dev/hdc1 VG Name lvm1 PV Size 57.27 GB / NOT usable 8.11 MB [LVM: 181.00 KB] PV# 3 PV Status available Allocatable yes Cur LV 1 PE Size (KByte) 4096 Total PE 14659 Free PE 201 Allocated PE 14458 PV UUID BFvA7F-ccvF-e5r1-3QH7-02JG-dH4r-AOYF64
Signature · 4 lines
Igor Dumaire www.LTUtech.com - Making Sense of Visual Content ------------------------------------------------
Igor,
I overlooked the 'active VG' message vgcfgrestore is displaying. Because 'vgchange -an lvm1' wont't work in your situation I am afraid you need to reboot before being able to run vgcfgrestore successfully.
Regards,
Heinz -- The LVM Guy --
Quoted 93 lines · Igor Dumaire
Quoted 7 lines
you need to figure out, which Physical Volumes (PVs) belong to your VG lvm1 by running 'vgcfgrestore -ll -n lvm1'. Please check for the PV list at the end of the output.
Then restore the LVM metadata by running 'vgcfgrestore -n lvm1 /dev/hdWhatever` on every of those.
# vgcfgrestore -n lvm1 /dev/hde1 vgcfgrestore -- can't restore part of active volume group "lvm1" vgcfgrestore [-d|--debug] [-f|--file VGConfPath] [-l[l]|--list [--list]] [-n|--name VolumeGroupName] [-h|--help] [-o|--oldpath OldPhysicalVolumePath] [-t|--test] [-v|--verbose] [--version] [PhysicalVolumePath] # vgcfgrestore -n lvm1 /dev/hdf1 vgcfgrestore -- can't restore part of active volume group "lvm1" vgcfgrestore [-d|--debug] [-f|--file VGConfPath] [-l[l]|--list [--list]] [-n|--name VolumeGroupName] [-h|--help] [-o|--oldpath OldPhysicalVolumePath] [-t|--test] [-v|--verbose] [--version] [PhysicalVolumePath] # vgcfgrestore -n lvm1 /dev/hdc1 vgcfgrestore -- can't restore part of active volume group "lvm1" vgcfgrestore [-d|--debug] [-f|--file VGConfPath] [-l[l]|--list [--list]] [-n|--name VolumeGroupName] [-h|--help] [-o|--oldpath OldPhysicalVolumePath] [-t|--test] [-v|--verbose] [--version] [PhysicalVolumePath]What's about "PV Status NOT available" in vgcfgrestore -ll -n lvm1
message ?!--- Volume group ---
VG Name lvm1 VG Access read/write VG Status NOT available/resizable VG # 0 MAX LV 255 Cur LV 1 Open LV 0 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 iwDjRO-WlFd-GZUw-DU20-GP8C-mMwV-MkzCeR--- Logical volume ---
LV Name /dev/lvm1/Data VG Name lvm1 LV Write Access read/write LV Status available LV # 1 # open 0 LV Size 171.00 GB Current LE 43776 Allocated LE 43776 Allocation next free Read ahead sectors 120 Block device 58:0--- Physical volume ---
PV Name /dev/hde1 VG Name lvm1 PV Size 57.27 GB / NOT usable 8.11 MB [LVM: 181.00 KB] PV# 1 PV Status NOT available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 4096 Total PE 14659 Free PE 0 Allocated PE 14659 PV UUID kbvz5r-hJlN-WU9Q-7xwj-alJ6-8UfO-jopMFc--- Physical volume ---
PV Name /dev/hdf1 VG Name lvm1 PV Size 57.27 GB / NOT usable 8.11 MB [LVM: 181.00 KB] PV# 2 PV Status NOT available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 4096 Total PE 14659 Free PE 0 Allocated PE 14659 PV UUID weQY7t-7II0-7t74-hVI5-Dj8Y-CV0O-8CyGqh--- Physical volume ---
Quoted 25 lines
PV Name /dev/hdc1 VG Name lvm1 PV Size 57.27 GB / NOT usable 8.11 MB [LVM: 181.00 KB] PV# 3 PV Status available Allocatable yes Cur LV 1 PE Size (KByte) 4096 Total PE 14659 Free PE 201 Allocated PE 14458 PV UUID BFvA7F-ccvF-e5r1-3QH7-02JG-dH4r-AOYF64Signature · 10 lines
Igor Dumaire www.LTUtech.com - Making Sense of Visual Content ------------------------------------------------ _______________________________________________ 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
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Quoted 5 lines
I overlooked the 'active VG' message vgcfgrestore is displaying. Because 'vgchange -an lvm1' wont't work in your situation I am afraid you need to reboot before being able to run vgcfgrestore successfully.
After the reboot vgcfgrestore doesn't work !
# vgchange -an lvm1 vgchange -- volume group "lvm1" does not exist
# vgcfgrestore -n lvm1 /dev/hde1 vgcfgrestore -- can't restore part of active volume group "lvm1"
What do I do ?
Regards,
Signature · 4 lines
Igor Dumaire www.LTUtech.com - Making Sense of Visual Content ------------------------------------------------
Quoted 5 lines · Igor Dumaire
Quoted 5 lines
I overlooked the 'active VG' message vgcfgrestore is displaying. Because 'vgchange -an lvm1' wont't work in your situation I am afraid you need to reboot before being able to run vgcfgrestore successfully.
Quoted 7 lines
After the reboot vgcfgrestore doesn't work !
# vgchange -an lvm1 vgchange -- volume group "lvm1" does not exist# vgcfgrestore -n lvm1 /dev/hde1 vgcfgrestore -- can't restore part of active volume group "lvm1"
Strange.
Please provide "vgdisplay -v;pvscan;lvmdiskscan" and "pvdata -PP" for all PVs belonging to the missing VG.
Thanks,
Heinz -- The LVM Guy --
Quoted 15 lines
What do I do ?
Regards,
Signature · 10 lines
Igor Dumaire www.LTUtech.com - Making Sense of Visual Content ------------------------------------------------ _______________________________________________ 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
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Quoted 4 lines
Strange.
Please provide "vgdisplay -v;pvscan;lvmdiskscan" and "pvdata -PP" for all PVs belonging to the missing VG.
# vgdisplay -v --- 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
--- Logical volume ---
LV Name /dev/lvm2/Backup VG Name lvm2 LV Write Access read/write LV Status available LV # 1 # open 1 LV Size 171.00 GB Current LE 43776 Allocated LE 43776 Allocation next free Read ahead sectors 120 Block device 58:0
--- Physical volumes ---
PV Name (#) /dev/hdd1 (3) PV Status available / allocatable Total PE / Free PE 14659 / 201
PV Name (#) /dev/hdg1 (1) PV Status available / allocatable Total PE / Free PE 14659 / 0
PV Name (#) /dev/hdh1 (2) PV Status available / allocatable Total PE / Free PE 14659 / 0
# pvscan pvscan -- reading all physical volumes (this may take a while...) pvscan -- inactive PV "/dev/hdc1" is associated to an unknown VG (run vgscan) pvscan -- ACTIVE PV "/dev/hdd1" of VG "lvm2" [57.26 GB / 804.00 MB free] pvscan -- inactive PV "/dev/hde1" is associated to an unknown VG (run vgscan) pvscan -- inactive PV "/dev/hdf1" is associated to an unknown VG (run vgscan) pvscan -- ACTIVE PV "/dev/hdg1" of VG "lvm2" [57.26 GB / 0 free] pvscan -- ACTIVE PV "/dev/hdh1" of VG "lvm2" [57.26 GB / 0 free] pvscan -- total: 6 [343.62 GB] / in use: 6 [343.62 GB] / in no VG: 0 [0]
# man pvdata # pvdata -PP /dev/hde1 --- Physical volume --- PV Name /dev/hde1 VG Name lvm1 PV Size 57.27 GB / NOT usable 8.11 MB [LVM: 181.00 KB] PV# 1 PV Status NOT available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 4096 Total PE 14659 Free PE 0 Allocated PE 14659 PV UUID kbvz5r-hJlN-WU9Q-7xwj-alJ6-8UfO-jopMFc pv_dev 0:33 system_id courcelles.ltutech.com1004974292 pv_on_disk.base 0 pv_on_disk.size 1024 vg_on_disk.base 4096 vg_on_disk.size 4096 pv_uuidlist_on_disk.base 8192 pv_uuidlist_on_disk.size 32768 lv_on_disk.base 40960 lv_on_disk.size 83968 pe_on_disk.base 126976 pe_on_disk.size 4259840
# pvdata -PP /dev/hdf1 --- Physical volume --- PV Name /dev/hdf1 VG Name lvm1 PV Size 57.27 GB / NOT usable 8.11 MB [LVM: 181.00 KB] PV# 2 PV Status NOT available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 4096 Total PE 14659 Free PE 0 Allocated PE 14659 PV UUID weQY7t-7II0-7t74-hVI5-Dj8Y-CV0O-8CyGqh pv_dev 0:33 system_id courcelles.ltutech.com1004974293 pv_on_disk.base 0 pv_on_disk.size 1024 vg_on_disk.base 4096 vg_on_disk.size 4096 pv_uuidlist_on_disk.base 8192 pv_uuidlist_on_disk.size 32768 lv_on_disk.base 40960 lv_on_disk.size 83968 pe_on_disk.base 126976 pe_on_disk.size 4259840
# pvdata -PP /dev/hdc1 --- Physical volume --- PV Name /dev/hdc1 VG Name lvm1 PV Size 57.27 GB / NOT usable 8.11 MB [LVM: 181.00 KB] PV# 3 PV Status available Allocatable yes Cur LV 1 PE Size (KByte) 4096 Total PE 14659 Free PE 201 Allocated PE 14458 PV UUID BFvA7F-ccvF-e5r1-3QH7-02JG-dH4r-AOYF64 pv_dev 0:22 system_id courcelles.ltutech.com1004974291 pv_on_disk.base 0 pv_on_disk.size 1024 vg_on_disk.base 4096 vg_on_disk.size 4096 pv_uuidlist_on_disk.base 8192 pv_uuidlist_on_disk.size 32768 lv_on_disk.base 40960 lv_on_disk.size 83968 pe_on_disk.base 126976 pe_on_disk.size 4259840
Thanks a lot for your help. I have lost (can't acces) a lot of data ! Best regards.
Signature · 4 lines
Igor Dumaire www.LTUtech.com - Making Sense of Visual Content ------------------------------------------------
Hello !
I got strang stuff going on with my lvm groups...
It crashed after a reboot and i also lost lvm files in /etc.
Now my group is unrecognized...
look at this : (the vg name is lithium)
the devices are /dev/hdf1 /dev/hdg1 /dev/hdh1 /dev/hdc1 /dev/hdb1
vgimport -f lithium /dev/hdf1
vgimport -- ERROR "pv_read_all_pv_of_vg(): PV number" reading data of volume group "l"
vgimport -f lithium /dev/hdh1
vgimport -- ERROR: wrong number of physical volumes to import volume group "lithium"
It seems that volume group name that vgimport reports for /dev/hdf1 is "l" (as you can see with the vgimport utility outpout)
and the rests of the disks report it as "lithium", which is the correct name.
Now if try to import the vg with all the devices, it says that /dev/hdf1 is not in the same volume group than /dev/hdg1
But if i pvdisplay hdf1 and hdg1 :
--- Physical volume ---
PV Name /dev/hdf1 VG Name lithium PV Size 38.18 GB / NOT usable 1.44 MB [LVM: 159.00 KB] PV# 1 PV Status available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 4096 Total PE 9773 Free PE 0 Allocated PE 9773 PV UUID RxtFHo-8a4T-2HgW-UaRb-ECvU-tZaG-ZfKDDN
PV Name /dev/hdg1 VG Name lithium PV Size 38.30 GB / NOT usable 3.99 MB [LVM: 159.00 KB] PV# 2 PV Status available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 4096 Total PE 9803 Free PE 0 Allocated PE 9803 PV UUID 15PNMd-VnLP-XbWe-2cyU-A0Ia-xCxI-COXaMG
How is it possible that group names match with pvdisplay, but vgimport tells me hdf1 is in group "l" ?????
Can you help ?
Thanks !
When I try :
# vgimport -v lvm1 /dev/hde1 vgimport -- locking logical volume manager vgimport -- checking volume group name vgimport -- checking volume group "lvm1" existence vgimport -- trying to read physical volume vgimport -- checking for duplicate physical volumes vgimport -- checking physical volume name "/dev/hde1" vgimport -- reading data of physical volume "/dev/hde1" from disk vgimport -- checking for exported physical volume "/dev/hde1" vgimport -- ERROR: physical volume "/dev/hde1" doesn't belong to an exported volume group
Ok, I hadn't used vgexport !
# vgimport -f -v lvm1 /dev/hde1 vgimport -- locking logical volume manager vgimport -- checking volume group name vgimport -- checking volume group "lvm1" existence vgimport -- trying to read physical volume vgimport -- checking for duplicate physical volumes vgimport -- checking physical volume name "/dev/hde1" vgimport -- reading data of physical volume "/dev/hde1" from disk vgimport -- checking for exported physical volume "/dev/hde1" vgimport -- reallocating memory vgimport -- checking consistency of physical volume "/dev/hde1" Segmentation fault
why "Segmentation fault" ?
An idea ?
Thanks.
Signature · 4 lines
Igor Dumaire www.LTUtech.com - Making Sense of Visual Content ------------------------------------------------
# vgimport -f -v lvm1 /dev/hdc1
vgimport -- locking logical volume manager
vgimport -- checking volume group name
vgimport -- checking volume group "lvm1" existence
vgimport -- trying to read physical volume
vgimport -- checking for duplicate physical volumes
vgimport -- checking physical volume name "/dev/hdc1"
vgimport -- reading data of physical volume "/dev/hdc1" from disk vgimport -- checking for exported physical volume "/dev/hdc1" vgimport -- reallocating memory
vgimport -- checking consistency of physical volume "/dev/hdc1" vgimport -- ERROR: wrong number of physical volumes to import volume group "lvm1"
I try vgimport on the three disks :
# vgimport -f -v lvm1 /dev/hde1
vgimport -- locking logical volume manager
vgimport -- checking volume group name
vgimport -- checking volume group "lvm1" existence vgimport -- trying to read physical volume
vgimport -- checking for duplicate physical volumes vgimport -- checking physical volume name "/dev/hde1" vgimport -- reading data of physical volume "/dev/hde1" from disk vgimport -- checking for exported physical volume "/dev/hde1" vgimport -- reallocating memory
vgimport -- checking consistency of physical volume "/dev/hde1" Segmentation fault
# vgimport -f -v lvm1 /dev/hdf1
vgimport -- locking logical volume manager
vgimport -- checking volume group name
vgimport -- checking volume group "lvm1" existence
vgimport -- trying to read physical volume
vgimport -- checking for duplicate physical volumes
vgimport -- checking physical volume name "/dev/hdf1"
vgimport -- reading data of physical volume "/dev/hdf1" from disk vgimport -- checking for exported physical volume "/dev/hdf1" vgimport -- reallocating memory
vgimport -- checking consistency of physical volume "/dev/hdf1" vgimport -- ERROR: wrong number of physical volumes to import volume group "lvm1"
# vgimport -f -v lvm1 /dev/hdc1
vgimport -- locking logical volume manager
vgimport -- checking volume group name
vgimport -- checking volume group "lvm1" existence
vgimport -- trying to read physical volume
vgimport -- checking for duplicate physical volumes
vgimport -- checking physical volume name "/dev/hdc1"
vgimport -- reading data of physical volume "/dev/hdc1" from disk vgimport -- checking for exported physical volume "/dev/hdc1" vgimport -- reallocating memory
vgimport -- checking consistency of physical volume "/dev/hdc1" vgimport -- ERROR: wrong number of physical volumes to import volume group "lvm1"
Why ERROR? Why coredump ?!
Signature · 4 lines
Igor Dumaire www.LTUtech.com - Making Sense of Visual Content ------------------------------------------------
Igor,
pvdata output looks fine.
Could you send me the metadata for further investigation in private email, please?
You can retrieve 3 files with the metadata of your PVs by " for d in /dev/hd[cef]1
do
dd if=$d of=basename $d.lvm bs=1k count=512
done
Regards,
Heinz -- The LVM Guy --
Quoted 152 lines · Igor Dumaire
Quoted 5 lines
Strange.
Please provide "vgdisplay -v;pvscan;lvmdiskscan" and "pvdata -PP" for all PVs belonging to the missing VG.# vgdisplay -v --- 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--- Logical volume ---
LV Name /dev/lvm2/Backup VG Name lvm2 LV Write Access read/write LV Status available LV # 1 # open 1 LV Size 171.00 GB Current LE 43776 Allocated LE 43776 Allocation next free Read ahead sectors 120 Block device 58:0--- Physical volumes ---
PV Name (#) /dev/hdd1 (3) PV Status available / allocatable Total PE / Free PE 14659 / 201PV Name (#) /dev/hdg1 (1) PV Status available / allocatable Total PE / Free PE 14659 / 0PV Name (#) /dev/hdh1 (2) PV Status available / allocatable Total PE / Free PE 14659 / 0# pvscan pvscan -- reading all physical volumes (this may take a while...) pvscan -- inactive PV "/dev/hdc1" is associated to an unknown VG (run vgscan) pvscan -- ACTIVE PV "/dev/hdd1" of VG "lvm2" [57.26 GB / 804.00 MB free] pvscan -- inactive PV "/dev/hde1" is associated to an unknown VG (run vgscan) pvscan -- inactive PV "/dev/hdf1" is associated to an unknown VG (run vgscan) pvscan -- ACTIVE PV "/dev/hdg1" of VG "lvm2" [57.26 GB / 0 free] pvscan -- ACTIVE PV "/dev/hdh1" of VG "lvm2" [57.26 GB / 0 free] pvscan -- total: 6 [343.62 GB] / in use: 6 [343.62 GB] / in no VG: 0 [0]# man pvdata # pvdata -PP /dev/hde1 --- Physical volume --- PV Name /dev/hde1 VG Name lvm1 PV Size 57.27 GB / NOT usable 8.11 MB [LVM: 181.00 KB] PV# 1 PV Status NOT available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 4096 Total PE 14659 Free PE 0 Allocated PE 14659 PV UUID kbvz5r-hJlN-WU9Q-7xwj-alJ6-8UfO-jopMFc pv_dev 0:33 system_id courcelles.ltutech.com1004974292 pv_on_disk.base 0 pv_on_disk.size 1024 vg_on_disk.base 4096 vg_on_disk.size 4096 pv_uuidlist_on_disk.base 8192 pv_uuidlist_on_disk.size 32768 lv_on_disk.base 40960 lv_on_disk.size 83968 pe_on_disk.base 126976 pe_on_disk.size 4259840# pvdata -PP /dev/hdf1 --- Physical volume --- PV Name /dev/hdf1 VG Name lvm1 PV Size 57.27 GB / NOT usable 8.11 MB [LVM: 181.00 KB] PV# 2 PV Status NOT available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 4096 Total PE 14659 Free PE 0 Allocated PE 14659 PV UUID weQY7t-7II0-7t74-hVI5-Dj8Y-CV0O-8CyGqh pv_dev 0:33 system_id courcelles.ltutech.com1004974293 pv_on_disk.base 0 pv_on_disk.size 1024 vg_on_disk.base 4096 vg_on_disk.size 4096 pv_uuidlist_on_disk.base 8192 pv_uuidlist_on_disk.size 32768 lv_on_disk.base 40960 lv_on_disk.size 83968 pe_on_disk.base 126976 pe_on_disk.size 4259840# pvdata -PP /dev/hdc1 --- Physical volume --- PV Name /dev/hdc1 VG Name lvm1 PV Size 57.27 GB / NOT usable 8.11 MB [LVM: 181.00 KB] PV# 3 PV Status available Allocatable yes Cur LV 1 PE Size (KByte) 4096 Total PE 14659 Free PE 201 Allocated PE 14458 PV UUID BFvA7F-ccvF-e5r1-3QH7-02JG-dH4r-AOYF64 pv_dev 0:22 system_id courcelles.ltutech.com1004974291 pv_on_disk.base 0 pv_on_disk.size 1024 vg_on_disk.base 4096 vg_on_disk.size 4096 pv_uuidlist_on_disk.base 8192 pv_uuidlist_on_disk.size 32768 lv_on_disk.base 40960 lv_on_disk.size 83968 pe_on_disk.base 126976 pe_on_disk.size 4259840
Quoted 14 lines
Thanks a lot for your help. I have lost (can't acces) a lot of data ! Best regards.
Signature · 10 lines
Igor Dumaire www.LTUtech.com - Making Sense of Visual Content ------------------------------------------------ _______________________________________________ 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
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-