Bug 2188718
Summary: | 'pvck --dump -f <file>' should give a better error when the file already exists | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Corey Marthaler <cmarthal> |
Component: | lvm2 | Assignee: | LVM Team <lvm-team> |
lvm2 sub component: | Command-line tools | QA Contact: | cluster-qe <cluster-qe> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | low | ||
Priority: | low | CC: | agk, heinzm, jbrassow, mcsontos, msnitzer, prajnoha, teigland, thornber, zkabelac |
Version: | 9.3 | Keywords: | Triaged |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | lvm2-2.03.21-2.el9 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-11-07 08:53:33 UTC | 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-04-21 20:40:45 UTC
fix in main https://sourceware.org/git/?p=lvm2.git;a=commit;h=c4440b5b495a2d11ff541dd7e7791e2a83c83609 $ touch foo $ pvck --dump metadata -f foo /dev/sdb File already exists. $ echo $? 5 Marking Verified:Tested in the latest rpms. # before fix (lvm2-2.03.17-7.el9) [root@virt-030 ~]# pvck --dump metadata /dev/sda -f /tmp/pvck_meta.459.1767298 metadata text at 4608 crc 0xc6449eab # vgname df seqno 1 [root@virt-030 ~]# pvck --dump metadata /dev/sda -f /tmp/pvck_meta.459.1767298 metadata text at 4608 crc 0xc6449eab # vgname df seqno 1 Failed to create file /tmp/pvck_meta.459.1767298 [root@virt-030 ~]# echo $? 0 # after fix (lvm2-2.03.21-2.el9) [root@virt-521 ~]# pvck --dump metadata /dev/sda -f /tmp/pvck_meta.459.1767298 metadata text at 4608 crc 0x71775faf # vgname df seqno 1 [root@virt-521 ~]# pvck --dump metadata /dev/sda -f /tmp/pvck_meta.459.1767298 File already exists. [root@virt-521 ~]# echo $? 5 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (lvm2 bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:6633 |