[lvm-devel] pvcreate problem with 2 metadata areas.

John Drescher drescherjm at gmail.com
Fri Feb 25 14:30:11 UTC 2011


On Tue, Feb 22, 2011 at 10:25 AM, Peter Rajnoha <prajnoha at redhat.com> wrote:
> On 02/22/2011 03:57 PM +0100, John Drescher wrote:
>> localhost ~ # pvcreate /dev/md0 --pvmetadatacopies 2
>>   Physical volume "/dev/md0" successfully created
>> localhost ~ # pvck -v /dev/md0
>>     Scanning /dev/md0
>>   Found label on /dev/md0, sector 1, type=LVM2 001
>>   Found text metadata area: offset=4096, size=1044480
>>   Found text metadata area: offset=3215852032, size=1048576
>>   /dev/md0: lseek 3216900096 failed: Invalid argument
>>   Read from /dev/md0 failed
>>
>> It looks like the second metadata copy is 4096 bytes too large.
>>
>
> The last patches sent upstream yesterday are quite risky and we
> are still testing these changes. However, the best way we found
> was to put these changes upstream directly for even more thorough
> testing.
>
> We're still working on this and we expect some time (hopefully
> short) to catch and fix all remaining bugs.
>
> Thank you very much for the feedback. You're welcome to report
> any other issues you hit. This will help us a lot to resolve all
> remaining problems.
>

With todays update the creation of 2 pvmetadataareas works for me.

localhost ~ # pvcreate /dev/md0 --pvmetadatacopies 2
  Physical volume "/dev/md0" successfully created
localhost ~ # pvck -v /dev/md0
    Scanning /dev/md0
  Found label on /dev/md0, sector 1, type=LVM2 001
  Found text metadata area: offset=4096, size=1044480
  Found text metadata area: offset=3214934016, size=1048576
localhost ~ #

I will now try expanding the array. This failed before this change
with a checksum error. I will test and get back to you in a few
minutes.

John




More information about the lvm-devel mailing list