Bug 820237
Summary: | vgcfgrestore fails with division by zero if metadata-only PV with no physical extents present in VG | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Alasdair Kergon <agk> | |
Component: | lvm2 | Assignee: | Alasdair Kergon <agk> | |
Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> | |
Severity: | low | Docs Contact: | ||
Priority: | low | |||
Version: | 5.8 | CC: | agk, cmarthal, dwysocha, heinzm, jbrassow, jiri.lunacek, mbroz, msnitzer, nperic, prajnoha, prockai, thornber, zkabelac | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | lvm2-2.02.88-8.el5 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | 820116 | |||
: | 824813 (view as bug list) | Environment: | ||
Last Closed: | 2013-01-08 07:11:51 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: | ||||
Bug Depends On: | 820116 | |||
Bug Blocks: | 824813 |
Description
Alasdair Kergon
2012-05-09 12:56:16 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release. Fixed in lvm2-2.02.88-8.el5 (09:13:27) [root@node01:/usr/tests/sts-rhel5.8/bin]$ pvcreate /dev/sdf1 --metadatasize 128m Writing physical volume data to disk "/dev/sdf1" Physical volume "/dev/sdf1" successfully created (09:13:53) [root@node01:/usr/tests/sts-rhel5.8/bin]$ pvcreate /dev/sdf2 --metadatasize 128m Writing physical volume data to disk "/dev/sdf2" Physical volume "/dev/sdf2" successfully created (09:14:18) [root@node01:/usr/tests/sts-rhel5.8/bin]$ vgcreate -s 128m myVG /dev/sdf1 /dev/sdf2 Volume group "myVG" successfully created (09:14:40) [root@node01:/usr/tests/sts-rhel5.8/bin]$ vgcfgbackup myVG Volume group "myVG" successfully backed up. Backup file contents: =============================================================================== # Generated by LVM2 version 2.02.88(2)-RHEL5 (2012-01-20): Tue Jun 5 09:15:20 2012 contents = "Text Format Volume Group" version = 1 description = "Created *after* executing 'vgs'" creation_host = "node01" # Linux node01 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 creation_time = 1338905720 # Tue Jun 5 09:15:20 2012 myVG { id = "Rm7bEs-oKYQ-nU8f-anuG-FvMP-M0wu-V2RETe" seqno = 2 status = ["RESIZEABLE", "READ", "WRITE"] flags = [] extent_size = 262144 # 128 Megabytes max_lv = 0 max_pv = 0 metadata_copies = 0 physical_volumes { pv0 { id = "QgvzP3-Anvk-lhmm-BJ8T-oox1-Bw7K-zDhLrq" device = "/dev/sdf1" # Hint only status = ["ALLOCATABLE"] flags = [] dev_size = 393184 # 191.984 Megabytes pe_start = 262272 pe_count = 0 # 0 Kilobytes } pv1 { id = "ALkiPq-D63Y-DAjf-Uvq0-7NUk-NP1a-hPragh" device = "/dev/sdf2" # Hint only status = ["ALLOCATABLE"] flags = [] dev_size = 19605504 # 9.34863 Gigabytes pe_start = 262272 pe_count = 73 # 9.125 Gigabytes } } } =============================================================================== (09:14:58) [root@node01:~]$ vgcfgrestore myVG Restored volume group myVG Tested with the following packages installed: lvm2-2.02.88-8.el5 lvm2-cluster-2.02.88-8.el5 kmod-cmirror-0.1.22-3.el5 cmirror-1.1.39-15.el5 device-mapper-multipath-0.4.7-49.el5 device-mapper-1.02.67-2.el5 device-mapper-event-1.02.67-2.el5 kernel-2.6.18-308.el5 No errors reported. 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, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0023.html |