LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 04-21-2008, 05:43 PM   #1
jalla2000
LQ Newbie
 
Registered: Sep 2007
Posts: 14

Rep: Reputation: 0
Missing LV from LVM volume group


One of my disks died but resurrected and I was stupid enough to run some vgchangle --removemissing command that removed the faulty disk from the array. Now i got the faulty disk back up and it is now a part of the volume group but the volume group has no allocated PEs. lvdisplay outputs nothing... my main_disk_group_0000 even contains a description of the logical volume:

logical_volumes {

diskarray {
id = "KrYHQE-dQzy-mVsY-CmOj-rN37-O1X7-BD9Adb"
status = ["READ", "WRITE", "VISIBLE"]
segment_count = 4

segment1 {
start_extent = 0
extent_count = 119234 # 465.758
(and so on)

if i can ever access my terabyte of precious data again i would rejoice!

vgdisplay shows:

--- Volume group ---
VG Name main_disk_group
System ID
Format lvm2
Metadata Areas 4
Metadata Sequence No 78
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 4
Act PV 4
VG Size 1.28 TB
PE Size 4.00 MB
Total PE 336242
Alloc PE / Size 0 / 0
Free PE / Size 336242 / 1.28 TB
VG UUID EaYeB6-uFHx-d2p2-TVFl-dyom-fQee-OxXbTF


pvdisplay shows:

--- Physical volume ---
PV Name /dev/sdb
VG Name main_disk_group
PV Size 465.76 GB / not usable 0
Allocatable yes
PE Size (KByte) 4096
Total PE 119234
Free PE 119234
Allocated PE 0
PV UUID 14AP4R-X75R-94Dx-Pk5g-HU0e-F6yh-8tQoEz

--- Physical volume ---
PV Name /dev/mapper/hdc1
VG Name main_disk_group
PV Size 232.88 GB / not usable 0
Allocatable yes
PE Size (KByte) 4096
Total PE 59618
Free PE 59618
Allocated PE 0
PV UUID JDMxOF-84VA-Ir6e-tAeB-LAKj-gy4J-7GXspF

--- Physical volume ---
PV Name /dev/sda
VG Name main_disk_group
PV Size 465.76 GB / not usable 0
Allocatable yes
PE Size (KByte) 4096
Total PE 119234
Free PE 119234
Allocated PE 0
PV UUID F87gox-1Z8e-eDcZ-QUxW-9gLI-XJLp-ySl017

--- Physical volume ---
PV Name /dev/mapper/hdb1
VG Name main_disk_group
PV Size 149.05 GB / not usable 0
Allocatable yes
PE Size (KByte) 4096
Total PE 38156
Free PE 38156
Allocated PE 0
PV UUID kUgW4k-AO0G-qRS0-0cH8-VkzD-Xjfj-ZjzZVL
 
Old 04-21-2008, 05:50 PM   #2
jalla2000
LQ Newbie
 
Registered: Sep 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Lightbulb Vgcfgrestore

I tried doing vgcfgrestore -f main_disk_group_0000 main_disk_group and this outputs:

Cannot change metadata for partial volume group main_disk_group
Restore failed.

Why does the config restore fail??

Here's the very very verbose output:

/dev/sdb: Found metadata at 84480 size 1003 for main_disk_group (EaYeB6-uFHx-d2p2-TVFl-dyom-fQee-OxXbTF)
/dev/mapper/hdb1: lvm2 label detected
/dev/mapper/hdb1: Found metadata at 11776 size 1003 for main_disk_group (EaYeB6-uFHx-d2p2-TVFl-dyom-fQee-OxXbTF)
/dev/mapper/hdc1: lvm2 label detected
/dev/mapper/hdc1: Found metadata at 79872 size 1003 for main_disk_group (EaYeB6-uFHx-d2p2-TVFl-dyom-fQee-OxXbTF)
/dev/sda: lvm2 label detected
/dev/sda: Found metadata at 76800 size 1003 for main_disk_group (EaYeB6-uFHx-d2p2-TVFl-dyom-fQee-OxXbTF)
Read volume group main_disk_group from main_disk_group_0000
/dev/sdb 0: 0 119234: diskarray(0:0)
/dev/mapper/hdb1 0: 0 38156: diskarray(119234:0)
/dev/mapper/hdc1 0: 0 59618: diskarray(157390:0)
/dev/sda 0: 0 118537: diskarray(217008:0)
/dev/sda 1: 118537 697: NULL(0:0)
Cannot change metadata for partial volume group main_disk_group
Unlocking /var/lock/lvm/V_main_disk_group
Unlocking /var/lock/lvm/P_orphans
Closed /dev/sda
Closed /dev/hdc1
Closed /dev/mapper/hdb1
Closed /dev/mapper/hdc1
Closed /dev/sdb
Restore failed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I resize LVM volume group? rconan Fedora 5 04-22-2009 07:45 PM
change LVM volume group to use more stripes wolfipa Linux - General 2 11-30-2007 10:17 AM
lvm:didn't do pvcreate on partition, before adding it to volume group kpachopoulos Linux - General 3 03-11-2007 08:22 AM
Partitions under LVM Volume Group won't mount after install jimisola Mandriva 4 11-16-2005 04:17 PM
LVM Problem - vgimport - wrong number of physical volumes to import volume group Anything1 Linux - Software 0 09-06-2003 07:18 PM


All times are GMT -5. The time now is 07:53 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration