repair a damaged vg
Maurizio Marini
maumar at datalogica.com
Sun Dec 20 14:17:39 UTC 2009
On Sunday 20 December 2009, Tom H wrote:
Thnx Tom for trying to help me :)
> Have you tried vgreduce and then vgextend again before the lvextend?
no, sadly
this was the sequence
[23:08:12 root at xxx ~ ]# pvcreate /dev/sdc
Physical volume "/dev/sdc" successfully created
[23:08:27 root at xxx ~ ]# vgextend /dev/mapper/VolGroup01 /dev/sdc
Volume group "VolGroup01" successfully extended
[23:08:48 root at xxx ~ ]# lvextend -l 100%VG /dev/mapper/VolGroup01-lvol0
Couldn't find device with uuid 'qf0ApW-42u1-nlyq-2TTn-MIgB-3dT1-BNe3GF'.
Extending logical volume lvol0 to 329,99 GB
Cannot update volume group VolGroup01 while physical volumes are missing.
[23:09:19 root at xxx ~ ]# lvextend -l 100%VG VolGroup01-lvol0
Path required for Logical Volume "VolGroup01-lvol0"
Please provide a volume group name
Run `lvextend --help' for more information.
[23:09:47 root at xxx ~ ]# lvextend -l 100%VG /dev/mapper/VolGroup01-lvol0
Couldn't find device with uuid 'qf0ApW-42u1-nlyq-2TTn-MIgB-3dT1-BNe3GF'.
Extending logical volume lvol0 to 329,99 GB
Cannot update volume group VolGroup01 while physical volumes are missing.
[23:10:01 root at xxx ~ ]# lvextend -l 100%free /dev/mapper/VolGroup01-lvol0
Couldn't find device with uuid 'qf0ApW-42u1-nlyq-2TTn-MIgB-3dT1-BNe3GF'.
New size given (20479 extents) not larger than existing size (63999 extents)
Run `lvextend --help' for more information.
[23:10:20 root at xxx ~ ]# lvextend -l 100%free /dev/VolGroup01/lvol0
Couldn't find device with uuid 'qf0ApW-42u1-nlyq-2TTn-MIgB-3dT1-BNe3GF'.
New size given (20479 extents) not larger than existing size (63999 extents)
Run `lvextend --help' for more information.
[23:11:01 root at xxx ~ ]# lvextend -l 100%VG /dev/VolGroup01/lvol0
Couldn't find device with uuid 'qf0ApW-42u1-nlyq-2TTn-MIgB-3dT1-BNe3GF'.
Extending logical volume lvol0 to 329,99 GB
Cannot update volume group VolGroup01 while physical volumes are missing.
[23:11:08 root at xxx ~ ]# lvdisplay
Couldn't find device with uuid 'qf0ApW-42u1-nlyq-2TTn-MIgB-3dT1-BNe3GF'.
--- Logical volume ---
LV Name /dev/VolGroup01/lvol0
VG Name VolGroup01
LV UUID A507we-8Kda-srlT-1MjO-lR7F-k0Xo-powd5x
LV Write Access read/write
LV Status available
# open 1
LV Size 250,00 GB
Current LE 63999
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID vbuKvi-Kf9H-R8LV-iLH6-x1tp-5xdl-Zt1Pad
LV Write Access read/write
LV Status available
# open 1
LV Size 6,88 GB
Current LE 220
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID LA27jO-aQbW-jlSn-5JrP-Cp2T-K3pS-vw7BnP
LV Write Access read/write
LV Status available
# open 1
LV Size 1,00 GB
Current LE 32
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
[23:11:19 root at xxx ~ ]#
[23:11:44 root at xxx ~ ]# vgs
Couldn't find device with uuid 'qf0ApW-42u1-nlyq-2TTn-MIgB-3dT1-BNe3GF'.
VG #PV #LV #SN Attr VSize VFree
VolGroup00 1 2 0 wz--n- 7,88G 0
VolGroup01 2 1 0 wz-pn- 329,99G 80,00G
[23:11:59 root at xxx ~ ]# lvextend -l 100%VG /dev/mapper/VolGroup01-lvol0
Couldn't find device with uuid 'qf0ApW-42u1-nlyq-2TTn-MIgB-3dT1-BNe3GF'.
Extending logical volume lvol0 to 329,99 GB
Cannot update volume group VolGroup01 while physical volumes are missing.
[23:14:03 root at xxx ~ ]# pvs
Couldn't find device with uuid 'qf0ApW-42u1-nlyq-2TTn-MIgB-3dT1-BNe3GF'.
Couldn't find device with uuid 'qf0ApW-42u1-nlyq-2TTn-MIgB-3dT1-BNe3GF'.
Couldn't find device with uuid 'qf0ApW-42u1-nlyq-2TTn-MIgB-3dT1-BNe3GF'.
PV VG Fmt Attr PSize PFree
/dev/sda2 VolGroup00 lvm2 a- 7,88G 0
/dev/sdc VolGroup01 lvm2 a- 80,00G 80,00G
unknown device VolGroup01 lvm2 a- 250,00G 0
[23:14:21 root at xxx ~ ]# vgs
Couldn't find device with uuid 'qf0ApW-42u1-nlyq-2TTn-MIgB-3dT1-BNe3GF'.
VG #PV #LV #SN Attr VSize VFree
VolGroup00 1 2 0 wz--n- 7,88G 0
VolGroup01 2 1 0 wz-pn- 329,99G 80,00G
[23:15:13 root at xxx ~ ]# vgreduce VolGroup01 /dev/sdc
Couldn't find device with uuid 'qf0ApW-42u1-nlyq-2TTn-MIgB-3dT1-BNe3GF'.
Cannot remove final metadata area on "/dev/sdc" from "VolGroup01"
i am searching help on linux-lvm mlist, now
Maurizio
More information about the users
mailing list