From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (ext-mx06.extmail.prod.ext.phx2.redhat.com [10.5.110.30]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6BC4A600CD for ; Thu, 24 May 2018 08:14:01 +0000 (UTC) Received: from mail-qk0-f172.google.com (mail-qk0-f172.google.com [209.85.220.172]) (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 9D9BB7E54A for ; Thu, 24 May 2018 08:13:49 +0000 (UTC) Received: by mail-qk0-f172.google.com with SMTP id 185-v6so558702qkk.11 for ; Thu, 24 May 2018 01:13:49 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: emmanuel segura Date: Thu, 24 May 2018 10:13:47 +0200 Message-ID: Content-Type: multipart/alternative; boundary="00000000000011b12a056cef3b39" Subject: Re: [linux-lvm] Move LV with GFS to new LUN (pvmove) in the cluster 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: LVM general discussion and development --00000000000011b12a056cef3b39 Content-Type: text/plain; charset="UTF-8" I used this procedure to archive what you need to do. 1: active cmirror on every cluster nodes 2: lvconvert -m 1 vg00/lvdata /dev/mapper/mapth1 --corelog #where mpath1 is the new lun When the lvdata lv is in sync, now you can the dettach the old lun with lvconvert -m 0 vg00/lvdata /dev/mapper/mapth0 2018-05-23 14:31 GMT+02:00 kAja Ziegler : > Hi all, > > I want to ask if it is possible and safe to move online the clustered LV > with GFS on the one PV (multipathed LUN from the old storage) to an other > one (multipathed LUN on the new storage)? > > I found these articles in Red Hat knowledgebase: > > - Can I perform a pvmove on a clustered logical volume? - > https://access.redhat.com/solutions/39894 > - How to migrate SAN LUNs which has Clustered LVM configured on it? - > https://access.redhat.com/solutions/466533 > > With regard to the mentioned articles it can be done, it is only needed > to install and run the cmirror service. Should I expect any problems or > other prerequisites? > > > My clustered environment: > > - 8 nodes - CentOS 6.9 > - LVM version: 2.02.143(2)-RHEL6 (2016-12-13) > Library version: 1.02.117-RHEL6 (2016-12-13) > Driver version: 4.33.1 > - 7 clustered VGs overall > - 1 LV with GFS mounted on all nodes > > > - 1 clustered VG with 1 PV and 1 LV on which it is GFS: > > [root@...]# pvdisplay /dev/mapper/35001b4d01b1da512 > --- Physical volume --- > PV Name /dev/mapper/35001b4d01b1da512 > VG Name vg_1 > PV Size 4.55 TiB / not usable 2.00 MiB > Allocatable yes > PE Size 4.00 MiB > Total PE 1192092 > Free PE 1115292 > Allocated PE 76800 > PV UUID jH1ubM-ElJv-632D-NG8x-jzgJ-mwtA-pxxL90 > > [root@...]# lvdisplay vg_1/lv_gfs > --- Logical volume --- > LV Path /dev/vg_1/lv_gfs > LV Name lv_gfs > VG Name vg_1 > LV UUID OsJ8hM-sH9k-KNs1-B1UD-3qe2-6vja-hLsrYY > LV Write Access read/write > LV Creation host, time , > LV Status available > # open 1 > LV Size 300.00 GiB > Current LE 76800 > Segments 1 > Allocation inherit > Read ahead sectors auto > - currently set to 256 > Block device 253:418 > > [root@...]# vgdisplay vg_1 > --- Volume group --- > VG Name vg_1 > System ID > Format lvm2 > Metadata Areas 1 > Metadata Sequence No 3898 > VG Access read/write > VG Status resizable > Clustered yes > Shared no > MAX LV 0 > Cur LV 1 > Open LV 1 > Max PV 0 > Cur PV 1 > Act PV 1 > VG Size 4.55 TiB > PE Size 4.00 MiB > Total PE 1192092 > Alloc PE / Size 76800 / 300.00 GiB > Free PE / Size 1115292 / 4.25 TiB > VG UUID PtMo7F-XIbC-YSA0-rCQQ-R1oE-g8B7-PiAeIR > > > - IO activity on the PV (LUN) is very low - from iostat and average per > node: 2.5 tps , 20.03 Blk_read/s and 0 Blk_wrtn/s in 1 minute. > > > Thank you for your opinions and experience. > > Have a great day and with best regards, > -- > Karel Ziegler > > > _______________________________________________ > linux-lvm mailing list > linux-lvm@redhat.com > https://www.redhat.com/mailman/listinfo/linux-lvm > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/ > -- .~. /V\ // \\ /( )\ ^`~'^ --00000000000011b12a056cef3b39 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I used this procedure to archive what you need t= o do.

1: active cmirror on every cluster nodes
2: lvc= onvert -m 1 vg00/lvdata /dev/mapper/mapth1 --corelog #where mpath1 is the n= ew lun

When the lvdata lv is in sync, now you can= the dettach the old lun with

lvconvert -m 0 vg00/lvdata /dev/= mapper/mapth0


2018-05-23 14:31 GMT+02:00 kAja Ziegler = <ziegleka@gmail.com>:
Hi all,

=C2=A0I want to ask= if it is possible and safe to move online the clustered LV with GFS on the= one PV (multipathed LUN from the old storage) to an other one (multipathed= LUN on the new storage)?

I found these articles i= n Red Hat knowledgebase:

- Can I perform a pvmove on a clustered l= ogical volume? - https://access.redhat.com/solutions/39894
- How t= o migrate SAN LUNs which has Clustered LVM configured on it? - https://access= .redhat.com/solutions/466533

With regard to= the mentioned articles it can be done, it is only needed to install and run = the cmirror service. Should I expect any problems or other prerequisites?


My clustered environment:

- 8 nodes - CentOS 6.9
- LVM versio= n:=C2=A0=C2=A0=C2=A0=C2=A0 2.02.143(2)-RHEL6 (2016-12-13)
=C2=A0 Library= version: 1.02.117-RHEL6 (2016-12-13)

=C2=A0 Dr= iver version: =C2=A04.33.1
- 7 clustered VGs overall
- 1 L= V with GFS mounted on all nodes


-= 1 clustered VG with 1 PV and 1 LV on which it is GFS:
<= div>
[root@...]# pvdisplay /dev/mapper/35001b4d01b1= da512
=C2=A0 --- Physical volume ---
=C2=A0 PV Name=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /dev/map= per/35001b4d01b1da512
=C2=A0 VG Name=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=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=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 vg_1
=C2=A0 LV UUID=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Os= J8hM-sH9k-KNs1-B1UD-3qe2-6vja-hLsrYY
=C2=A0 LV Write Access=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 read/write
=C2=A0 LV Creation host,= time ,
=C2=A0 LV Status=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 available
=C2=A0 # open=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 1
=C2=A0 LV Size=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 300.00 GiB
=C2=A0 Current LE=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 76800=
=C2=A0 Segments=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1
=C2=A0 Allocation=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 inherit
=C2=A0 Read = ahead sectors=C2=A0=C2=A0=C2=A0=C2=A0 auto
=C2=A0 - currently set to=C2= =A0=C2=A0=C2=A0=C2=A0 256
=C2=A0 Block device=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 253:418

[root@...]# vgdisplay vg_1
=C2=A0 --- Volume group -= --
=C2=A0 VG Name=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 vg_1
=C2=A0 System ID
=C2=A0 Format=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 lvm2
=C2=A0 Metadata Areas=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 1
=C2=A0 Metadata Sequence No=C2=A0 3898
=C2=A0 VG Access= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 re= ad/write
=C2=A0 VG Status=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 resizable
=C2=A0 Clustered=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 yes
=C2=A0 Shared= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 no
=C2=A0 MAX LV=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0
=C2=A0 Cur LV=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 1
=C2=A0 Open LV=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1
=C2=A0 Max PV=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 0
=C2=A0 Cur PV=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1
=C2=A0 Act PV=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= 1
=C2=A0 VG Size=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 4.55 TiB
=C2=A0 PE Size=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 4.00 MiB=
=C2=A0 Total PE=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 1192092
=C2=A0 Alloc PE / Size=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 76800 / 300.00 GiB
=C2=A0 Free=C2=A0 PE / Size=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1115292 / 4.25 TiB
=C2=A0 VG UUID=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 PtMo7F-XIbC-YSA0-rCQQ-R1oE-g8B7-PiAeIR
<= div>=

- IO = activity on the PV (LUN) is very low - from iostat and average per node: 2.= 5 tps , 20.03 Blk_read/s and 0 Blk_wrtn/s in 1 minute.


Thank you for your opinions and experienc= e.

Hav= e a great day and with best regards,
--
Karel Ziegler


_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-= lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
=



--
=C2=A0 .~.
=C2=A0 /V\
=C2= =A0// =C2=A0\\
/( =C2=A0 )\
^`~'^
--00000000000011b12a056cef3b39--