<div dir="auto">Hi Eric,<div dir="auto">    Thanks for answering! Here are the details:</div><div dir="auto"><br></div><div dir="auto"># lvm version<div dir="auto">  LVM version:     2.02.176(2) (2017-11-03)</div><div dir="auto">  Library version: 1.02.145 (2017-11-03)</div><div dir="auto">  Driver version:  4.37.0</div><div dir="auto">  Configuration:   ./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libdir=${prefix}/lib/x86_64-linux-gnu --libexecdir=${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking --exec-prefix= --bindir=/bin --libdir=/lib/x86_64-linux-gnu --sbindir=/sbin --with-usrlibdir=/usr/lib/x86_64-linux-gnu --with-optimisation=-O2 --with-cache=internal --with-clvmd=corosync --with-cluster=internal --with-device-uid=0 --with-device-gid=6 --with-device-mode=0660 --with-default-pid-dir=/run --with-default-run-dir=/run/lvm --with-default-locking-dir=/run/lock/lvm --with-thin=internal --with-thin-check=/usr/sbin/thin_check --with-thin-dump=/usr/sbin/thin_dump --with-thin-repair=/usr/sbin/thin_repair --enable-applib --enable-blkid_wiping --enable-cmdlib --enable-cmirrord --enable-dmeventd --enable-dbus-service --enable-lvmetad --enable-lvmlockd-dlm --enable-lvmlockd-sanlock --enable-lvmpolld --enable-notify-dbus --enable-pkgconfig --enable-readline --enable-udev_rules --enable-udev_sync</div><div dir="auto"><br></div><div dir="auto"># uname -a<br></div><div dir="auto">Linux dataserv 4.14.0-3-amd64 #1 SMP Debian 4.14.13-1 (2018-01-14) x86_64 GNU/Linux</div><div dir="auto"><br></div><div dir="auto">Warm regards, </div><div dir="auto">Liwei</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 5 Feb 2018 15:27, "Eric Ren" <<a href="mailto:zren@suse.com">zren@suse.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Your LVM version and kernel version please?<br>
<br>
like:<br>
""""<br>
# lvm version<br>
  LVM version:     2.02.177(2) (2017-12-18)<br>
  Library version: 1.03.01 (2017-12-18)<br>
  Driver version:  4.35.0<br>
<br>
# uname -a<br>
Linux sle15-c1-n1 4.12.14-9.1-default #1 SMP Fri Jan 19 09:13:51 UTC 2018 (849a2fe) x86_64 x86_64 x86_64 GNU/Linux<br>
"""<br>
<br>
Eric<br>
<br>
On 02/03/2018 05:43 PM, Liwei wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi list,<br>
     I had a LV that I was converting from linear to mirrored (not<br>
raid1) whose source device failed partway-through during the initial<br>
sync.<br>
<br>
     I've since recovered the source device, but it seems like the<br>
mirror is still acting as if some blocks are not readable? I'm getting<br>
this in my logs, and the FS is full of errors:<br>
<br>
[  +1.613126] device-mapper: raid1: Unable to read primary mirror<br>
during recovery<br>
[  +0.000278] device-mapper: raid1: Primary mirror (253:25) failed<br>
while out-of-sync: Reads may fail.<br>
[  +0.085916] device-mapper: raid1: Mirror read failed.<br>
[  +0.196562] device-mapper: raid1: Mirror read failed.<br>
[  +0.000237] Buffer I/O error on dev dm-27, logical block 5371800560,<br>
async page read<br>
[  +0.592135] device-mapper: raid1: Unable to read primary mirror<br>
during recovery<br>
[  +0.082882] device-mapper: raid1: Unable to read primary mirror<br>
during recovery<br>
[  +0.246945] device-mapper: raid1: Unable to read primary mirror<br>
during recovery<br>
[  +0.107374] device-mapper: raid1: Unable to read primary mirror<br>
during recovery<br>
[  +0.083344] device-mapper: raid1: Unable to read primary mirror<br>
during recovery<br>
[  +0.114949] device-mapper: raid1: Unable to read primary mirror<br>
during recovery<br>
[  +0.085056] device-mapper: raid1: Unable to read primary mirror<br>
during recovery<br>
[  +0.203929] device-mapper: raid1: Unable to read primary mirror<br>
during recovery<br>
[  +0.157953] device-mapper: raid1: Unable to read primary mirror<br>
during recovery<br>
[  +3.065247] recovery_complete: 23 callbacks suppressed<br>
[  +0.000001] device-mapper: raid1: Unable to read primary mirror<br>
during recovery<br>
[  +0.128064] device-mapper: raid1: Unable to read primary mirror<br>
during recovery<br>
[  +0.103100] device-mapper: raid1: Unable to read primary mirror<br>
during recovery<br>
[  +0.107827] device-mapper: raid1: Unable to read primary mirror<br>
during recovery<br>
[  +0.140871] device-mapper: raid1: Unable to read primary mirror<br>
during recovery<br>
[  +0.132844] device-mapper: raid1: Unable to read primary mirror<br>
during recovery<br>
[  +0.124698] device-mapper: raid1: Unable to read primary mirror<br>
during recovery<br>
[  +0.138502] device-mapper: raid1: Unable to read primary mirror<br>
during recovery<br>
[  +0.117827] device-mapper: raid1: Unable to read primary mirror<br>
during recovery<br>
[  +0.125705] device-mapper: raid1: Unable to read primary mirror<br>
during recovery<br>
[Feb 3 17:09] device-mapper: raid1: Mirror read failed.<br>
[  +0.167553] device-mapper: raid1: Mirror read failed.<br>
[  +0.000268] Buffer I/O error on dev dm-27, logical block 5367765816,<br>
async page read<br>
[  +0.135138] device-mapper: raid1: Mirror read failed.<br>
[  +0.000238] Buffer I/O error on dev dm-27, logical block 5367765816,<br>
async page read<br>
[  +0.000365] device-mapper: raid1: Mirror read failed.<br>
[  +0.000315] device-mapper: raid1: Mirror read failed.<br>
[  +0.000213] Buffer I/O error on dev dm-27, logical block 5367896888,<br>
async page read<br>
[  +0.000276] device-mapper: raid1: Mirror read failed.<br>
[  +0.000199] Buffer I/O error on dev dm-27, logical block 5367765816,<br>
async page read<br>
<br>
     However, if I take down the destination device and restart the LV<br>
with --activateoption partial, I can read my data and everything<br>
checks out.<br>
<br>
     My theory (and what I observed) is that lvm continued the initial<br>
sync even after the source drive stopped responding, and has now<br>
mapped the blocks that it 'synced' as dead. How can I make lvm retry<br>
those blocks again?<br>
<br>
     In fact, I don't trust the mirror anymore, is there a way I can<br>
conduct a scrub of the mirror after the initial sync is done? I read<br>
about --syncaction check, but seems like it only notes the number of<br>
inconsistencies. Can I have lvm re-mirror the inconsistencies from the<br>
source to destination device? I trust the source device because we ran<br>
a btrfs scrub on it and it reported that all checksums are valid.<br>
<br>
     It took months for the mirror sync to get to this stage (actually,<br>
why does it take months to mirror 20TB?), I don't want to start it all<br>
over again.<br>
<br>
Warm regards,<br>
Liwei<br>
<br>
______________________________<wbr>_________________<br>
linux-lvm mailing list<br>
<a href="mailto:linux-lvm@redhat.com" target="_blank">linux-lvm@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-lvm" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/linux-lvm</a><br>
read the LVM HOW-TO at <a href="http://tldp.org/HOWTO/LVM-HOWTO/" rel="noreferrer" target="_blank">http://tldp.org/HOWTO/LVM-HOWT<wbr>O/</a><br>
<br>
</blockquote>
<br>
</blockquote></div></div>