Bug 248191 - vgck appears to be of no use when vg is actually corrupted
Summary: vgck appears to be of no use when vg is actually corrupted
Keywords:
Status: CLOSED DUPLICATE of bug 185526
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: lvm2
Version: 5.7
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: LVM and device-mapper development team
QA Contact: Corey Marthaler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-07-13 19:43 UTC by Corey Marthaler
Modified: 2010-06-23 15:34 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-06-23 15:34:29 UTC


Attachments (Terms of Use)

Description Corey Marthaler 2007-07-13 19:43:00 UTC
Description of problem:
vgck fails just like any other lvm cmd when there is an actual corruption. So
what's the point of this cmd? 

[root@link-08 ~]# vgck helter_skelter

Corrupt a vg by writing over a pv in that vg:
[root@link-08 ~]# dd if=/dev/zero of=/dev/sdf1 count=1000
1000+0 records in
1000+0 records out
[root@link-08 ~]# sync

[root@link-08 ~]# vgck helter_skelter
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Volume group "helter_skelter" not found

[root@link-08 ~]# vgs
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Couldn't find device with uuid 'XEpeSh-dIcc-Z3kg-4kYv-kpdH-bvbH-1BO8rF'.
  Couldn't find all physical volumes for volume group helter_skelter.
  Volume group "helter_skelter" not found
  VG         #PV #LV #SN Attr   VSize  VFree
  VolGroup00   1   2   0 wz--n- 74.41G 32.00M

Version-Release number of selected component (if applicable):
lvm2-2.02.21-5.el4

Comment 1 Dave Wysochanski 2009-12-08 22:26:02 UTC
I have another bz for vgck so I'll see if I can't make this command do something more useful in the near future.

Comment 2 Dave Wysochanski 2010-05-17 12:13:11 UTC
No upstream fix in rhel4 - moving to rhel5.

Comment 3 Milan Broz 2010-06-23 15:34:29 UTC

*** This bug has been marked as a duplicate of bug 185526 ***


Note You need to log in before you can comment on or make changes to this bug.