Bug 2193241

Summary: It appears 'vgck --updatemetadata' isn't updating anything
Product: Red Hat Enterprise Linux 9 Reporter: Corey Marthaler <cmarthal>
Component: lvm2Assignee: LVM Team <lvm-team>
lvm2 sub component: Command-line tools QA Contact: cluster-qe <cluster-qe>
Status: NEW --- Docs Contact:
Severity: unspecified    
Priority: unspecified CC: agk, heinzm, jbrassow, msnitzer, prajnoha, thornber, zkabelac
Version: 9.3   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Corey Marthaler 2023-05-04 19:56:51 UTC
Description of problem:
Should 'vgck --updatemetadata' either fail here, if it can't update anything or actually update something so that following 'vgck' commands no longer fail? 


[root@grant-03 ~]# vgck vdo_sanity
  WARNING: Couldn't find device with uuid rA54WT-eGJ6-RCcv-V2Ki-Fmll-UwKg-vmrX6b.
  WARNING: VG vdo_sanity is missing PV rA54WT-eGJ6-RCcv-V2Ki-Fmll-UwKg-vmrX6b (last written to [unknown]).
  The volume group is missing 1 physical volumes.
[root@grant-03 ~]# echo $?
5

[root@grant-03 ~]# vgck --updatemetadata vdo_sanity
  WARNING: Couldn't find device with uuid rA54WT-eGJ6-RCcv-V2Ki-Fmll-UwKg-vmrX6b.
  WARNING: VG vdo_sanity is missing PV rA54WT-eGJ6-RCcv-V2Ki-Fmll-UwKg-vmrX6b (last written to [unknown]).
  WARNING: Couldn't find device with uuid rA54WT-eGJ6-RCcv-V2Ki-Fmll-UwKg-vmrX6b.
  WARNING: Couldn't find device with uuid rA54WT-eGJ6-RCcv-V2Ki-Fmll-UwKg-vmrX6b.
[root@grant-03 ~]# echo $?
0

[root@grant-03 ~]# vgck vdo_sanity
  WARNING: Couldn't find device with uuid rA54WT-eGJ6-RCcv-V2Ki-Fmll-UwKg-vmrX6b.
  WARNING: VG vdo_sanity is missing PV rA54WT-eGJ6-RCcv-V2Ki-Fmll-UwKg-vmrX6b (last written to [unknown]).
  The volume group is missing 1 physical volumes.
[root@grant-03 ~]# echo $?
5


Version-Release number of selected component (if applicable):
lvm2-2.03.21-1.el9    BUILT: Fri Apr 21 02:33:33 PM CEST 2023
lvm2-libs-2.03.21-1.el9    BUILT: Fri Apr 21 02:33:33 PM CEST 2023