[Users] Fibre channel - LVM problems
Peter Rajnoha
prajnoha at redhat.com
Mon Aug 5 10:27:15 EDT 2013
On 07/30/2013 06:14 PM, Łukasz Faber wrote:
> Hi Ayal,
>
> On Mon, 2013-07-29 at 10:13 -0400, Ayal Baron wrote:>
>>> I have found a similar issue here:
>>> https://www.redhat.com/archives/lvm-devel/2011-February/msg00127.html
>>
>> After discussing this with Peter Rajnoha, it looks like the specific issue in the above thread has been resolved and your issue is probably a reincarnation of the problem. Can you manually run the pvchange with -vvvv to get more info?
>>
>> Thanks.
>>
>
> I'm attaching logs from manual executions of both pvcreate and pvchange.
So, looking at the logs, it looks like lvmetad might be the culprit here.
Is it reproducible if you use global/use_lvmetad=0 in /etc/lvm/lvm.conf?
The pvcreate log:
21 #device/dev-io.c:271 /dev/mapper/3600a0b800074a36e000006e951f14e7d: size is 209715200 sectors
...
97 #format_text/format-text.c:1324 Creating metadata area on /dev/mapper/3600a0b800074a36e000006e951f14e7d at sector 8 size 264184 sectors
98 #metadata/metadata.c:4468 Setting ignored flag for mda /dev/mapper/3600a0b800074a36e000006e951f14e7d at offset 4096.
99 #format_text/format-text.c:1324 Creating metadata area on /dev/mapper/3600a0b800074a36e000006e951f14e7d at sector 209453056 size 262144 sectors
100 #metadata/metadata.c:4468 Setting ignored flag for mda /dev/mapper/3600a0b800074a36e000006e951f14e7d at offset 107239964672.
The pvcreate looks OK.
Now, the pvchange:
<STILL OK HERE>
16 #device/dev-io.c:271 /dev/mapper/3600a0b800074a36e000006e951f14e7d: size is 209715200 sectors
27 #metadata/metadata.c:4468 Setting ignored flag for mda /dev/mapper/3600a0b800074a36e000006e951f14e7d at offset 4096.
28 #format_text/text_label.c:299 Ignoring mda on device /dev/mapper/3600a0b800074a36e000006e951f14e7d at offset 4096
29 #metadata/metadata.c:4468 Setting ignored flag for mda /dev/mapper/3600a0b800074a36e000006e951f14e7d at offset 107239964672.
30 #format_text/text_label.c:299 Ignoring mda on device /dev/mapper/3600a0b800074a36e000006e951f14e7d at offset 107239964672
<LVMETAD COMMUNICATION - UPDATE LVMETAD CACHE STATE>
32 #libdm-config.c:768 Setting response to OK
33 #libdm-config.c:768 Setting response to OK
34 #libdm-config.c:768 Setting id to wiCjbg-mYay-0NQf-r4qu-xK1Y-Lc8K-KxhmIc
35 #libdm-config.c:768 Setting format to lvm2
36 #libdm-config.c:799 Setting device to 64770
37 #libdm-config.c:799 Setting dev_size to 107374182400
38 #libdm-config.c:799 Setting label_sector to 1
39 #ioctl/libdm-iface.c:1724 dm status (253:2) OF [16384] (*1)
40 #device/dev-io.c:524 Opened /dev/mapper/3600a0b800074a36e000006e951f14e7d RO O_DIRECT
41 #device/dev-io.c:271 /dev/mapper/3600a0b800074a36e000006e951f14e7d: size is 209715200 sectors
42 #device/dev-io.c:577 Closed /dev/mapper/3600a0b800074a36e000006e951f14e7d
43 #device/dev-io.c:271 /dev/mapper/3600a0b800074a36e000006e951f14e7d: size is 209715200 sectors
44 #device/dev-io.c:524 Opened /dev/mapper/3600a0b800074a36e000006e951f14e7d RO O_DIRECT
45 #device/dev-io.c:137 /dev/mapper/3600a0b800074a36e000006e951f14e7d: block size is 4096 bytes
46 #device/dev-io.c:577 Closed /dev/mapper/3600a0b800074a36e000006e951f14e7d
47 #filters/filter-composite.c:31 Using /dev/mapper/3600a0b800074a36e000006e951f14e7d
48 #libdm-config.c:799 Setting size to 135262208
49 #libdm-config.c:799 Setting start to 4096
50 #libdm-config.c:799 Setting ignore to 1
51 #metadata/metadata.c:4468 Setting ignored flag for mda /dev/mapper/3600a0b800074a36e000006e951f14e7d at offset 4096.
52 #libdm-config.c:799 Setting size to 134217728
53 #libdm-config.c:799 Setting start to 107239964672
54 #libdm-config.c:799 Setting ignore to 1
<AND NOW IT GOES WRONG AS IT READS INFO FROM LVMETAD - offset 18446744073575333888 IS INCORRECT>
55 #metadata/metadata.c:4468 Setting ignored flag for mda /dev/mapper/3600a0b800074a36e000006e951f14e7d at offset 18446744073575333888.
156 #pvchange.c:157 Updating physical volume "/dev/mapper/3600a0b800074a36e000006e951f14e7d"
157 #format_text/format-text.c:1324 Creating metadata area on /dev/mapper/3600a0b800074a36e000006e951f14e7d at sector 8 size 264184 sectors
158 #format_text/format-text.c:1324 Creating metadata area on /dev/mapper/3600a0b800074a36e000006e951f14e7d at sector 36028797018701824 size 262144 sectors
159 #device/dev-io.c:577 Closed /dev/mapper/3600a0b800074a36e000006e951f14e7d
160 #device/dev-io.c:524 Opened /dev/mapper/3600a0b800074a36e000006e951f14e7d RW O_DIRECT
161 #device/dev-io.c:137 /dev/mapper/3600a0b800074a36e000006e951f14e7d: block size is 4096 bytes
162 #device/dev-io.c:89 /dev/mapper/3600a0b800074a36e000006e951f14e7d: lseek 18446744073575333888 failed: Invalid argument
163 #device/dev-io.c:89 /dev/mapper/3600a0b800074a36e000006e951f14e7d: lseek 18446744073575333888 failed: Invalid argument
Peter
More information about the Users
mailing list