Bug 573240
Summary: | pvcreate fails to create a physical volume on large RADI1 volume | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jerry Feldman <gaf> |
Component: | lvm2 | Assignee: | LVM and device-mapper development team <lvm-team> |
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 12 | CC: | agk, bmarzins, bmr, dwysocha, heinzm, jonathan, lvm-team, mbroz, msnitzer, prajnoha, prockai |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-06-23 15:43:05 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jerry Feldman
2010-03-13 16:23:01 UTC
(In reply to comment #0) > Description of problem: > pvcreate fails on a large RAID1 volume > [root@gaf gaf]# pvcreate -v -f /dev/md1 > /dev/md1: pe_align (128 sectors) must not be less than pe_align_offset > (36028797018963967 sectors) > /dev/md1: Format-specific setup of physical volume failed. > Failed to setup physical volume "/dev/md1" I believe there is a combination of failures here. 1) LVM2 had an issue where a pvcreate would fail if the underlying device (e.g. /dev/md1) was misaligned (aka: alignment_offset=-1). This has since been fixed and is available in LVM2 2.02.62, see: http://sources.redhat.com/git/gitweb.cgi?p=lvm2.git;a=commit;h=8cb8f65010c (NOTE: please verify that /sys/block/md1/alignment_offset is -1) 2) The kernel (2.6.32.9-70.fc12.x86_64) does not contain the latest upstream fixes that were made to blk_stack_limits(). Without these fixes the stacking of limits (by MD) is prone to failure (resulting in alignment_offset=-1), see: http://git.kernel.org/linus/81744ee44ab284 http://git.kernel.org/linus/fe0b393f2c0a0d This should be fixed in new kernel and lvm2. |