From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (ext-mx12.extmail.prod.ext.phx2.redhat.com [10.5.110.41]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DEEF55D75D for ; Wed, 31 Oct 2018 08:29:04 +0000 (UTC) Received: from mail-it1-f170.google.com (mail-it1-f170.google.com [209.85.166.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1FAB1309174F for ; Wed, 31 Oct 2018 08:29:03 +0000 (UTC) Received: by mail-it1-f170.google.com with SMTP id k206-v6so17124684ite.0 for ; Wed, 31 Oct 2018 01:29:03 -0700 (PDT) MIME-Version: 1.0 From: Gang He Date: Wed, 31 Oct 2018 16:28:51 +0800 Message-ID: Content-Type: multipart/alternative; boundary="00000000000031df6b05798218c9" Subject: [linux-lvm] About --mirrorlog mirrored option in the latest lvm2 Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: linux-lvm@redhat.com --00000000000031df6b05798218c9 Content-Type: text/plain; charset="UTF-8" Hello List, As you know, in the past versions(e.g. v2.02.120), lvcreate supports creating a mirror type LV with "--mirrorlog mirrored" option, But in the latest versions(e.g. v2.02.180), lvm2 says "mirrored is a persistent log that is itself mirrored, but should be avoided. Instead, use the raid1 type for log redundancy." Then, my questions are as below, 1)The latest lvm2 does not allow creating this kind of LV, or just not recommended? In my test environment, it looks that LVM2 can not create this kind of LV. tb0307-nd1:/ # lvcreate --type mirror -m1 --mirrorlog mirrored -L 2G -n mirr-lv cluster-vg2 Log type, "mirrored", is unavailable to cluster mirrors. If I try to create this kind of LV in local VG (not cluster VG), this operation will be supported? 2)If we can not create this kind of LV, how can we migrate these existing LVs after we upgrade LVM2 to the latest version (e.g. v2.02.180)? e.g. we need to convert this kind of LV to "RAID1 type LV, I want to know if there is a suggested guide for this scenario. Thanks Gang --00000000000031df6b05798218c9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello List,

As= you know, in the past versions(e.g. v2.02.120), lvcreate supports creating= a mirror type LV with "--mirrorlog mirrored" option,=C2=A0
But = in the latest versions(e.g. v2.02.180), lvm2 says "mirrored is a persi= stent log that is itself mirrored, but should be avoided. Instead, use the = raid1 type for log redundancy."
Then,=C2=A0 my questions are as below= ,
1)The latest lvm2 does not allow creating this kind of LV, or just not r= ecommended?
In my test environment, it looks that LVM2 can not create this= kind of LV.
tb0307-nd1:/ # lvcreate --type mirror -m1 --mirrorlog mirrore= d -L 2G -n mirr-lv cluster-vg2
=C2=A0 Log type, "mirrored", is u= navailable to cluster mirrors.
If I try to create this kind of LV in local= VG (not cluster VG), this operation will be supported?

<= div class=3D"gmail_default">2)If we can = not create this kind of LV, how can we migrate these existing LVs after we = upgrade LVM2 to the latest version (e.g. v2.02.180)?
e.g. we need to conve= rt this kind of LV to "RAID1 type LV, I want to know if there is a sug= gested guide for this scenario.

Thanks
Gang
--00000000000031df6b05798218c9--