* [linux-lvm] pvmove does not work at all with version 2.02.177(2)
@ 2018-05-30 9:23 Gang He
2018-05-30 10:37 ` Marian Csontos
2018-05-30 14:12 ` Zdenek Kabelac
0 siblings, 2 replies; 7+ messages in thread
From: Gang He @ 2018-05-30 9:23 UTC (permalink / raw)
To: linux-lvm
Hello List,
As you know, I ever reported that lvcreate could not create a mirrored LV, the root cause is a configure building item "--enable-cmirrord" was missed.
Now, I encounter another problem, pvmove does not work at all.
The detailed information/procedure is as below,
sle-nd1:/ # pvs
PV VG Fmt Attr PSize PFree
/dev/sda1 cluster-vg2 lvm2 a-- 120.00g 120.00g
/dev/sda2 cluster-vg2 lvm2 a-- 30.00g 20.00g
/dev/sdb cluster-vg2 lvm2 a-- 40.00g 30.00g
sle-nd1:/ # vgs
VG #PV #LV #SN Attr VSize VFree
cluster-vg2 3 2 0 wz--nc 189.99g 169.99g
sle-nd1:/ # lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
test-lv2 cluster-vg2 -wi-a----- 10.00g
sle-nd1:/ # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 160G 0 disk
├─sda1 8:1 0 120G 0 part
├─sda2 8:2 0 30G 0 part
└─sda3 8:3 0 10G 0 part
sdb 8:16 0 40G 0 disk
└─cluster--vg2-test--lv2 254:0 0 10G 0 lvm
vda 253:0 0 40G 0 disk
├─vda1 253:1 0 4G 0 part [SWAP]
├─vda2 253:2 0 23.6G 0 part /
└─vda3 253:3 0 12.4G 0 part /home
sle-nd1:/ # pvmove -i 5 -v /dev/sdb /dev/sda1
Executing: /sbin/modprobe dm-mirror
Executing: /sbin/modprobe dm-log-userspace
Wiping internal VG cache
Wiping cache of LVM-capable devices
Archiving volume group "cluster-vg2" metadata (seqno 19).
Creating logical volume pvmove0
Moving 2560 extents of logical volume cluster-vg2/test-lv2.
Increasing mirror region size from 0 to 8.00 KiB
Error locking on node a431232: Device or resource busy
Failed to activate cluster-vg2/test-lv2
sle-nd1:/ # lvm version
LVM version: 2.02.177(2) (2017-12-18)
Library version: 1.03.01 (2017-12-18)
Driver version: 4.37.0
Configuration: ./configure --host=x86_64-suse-linux-gnu --build=x86_64-suse-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --enable-dmeventd --enable-cmdlib --enable-udev_rules --enable-udev_sync --with-udev-prefix=/usr/ --enable-selinux --enable-pkgconfig --with-usrlibdir=/usr/lib64 --with-usrsbindir=/usr/sbin --with-default-dm-run-dir=/run --with-tmpfilesdir=/usr/lib/tmpfiles.d --with-thin=internal --with-device-gid=6 --with-device-mode=0640 --with-device-uid=0 --with-dmeventd-path=/usr/sbin/dmeventd --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-lvmetad --enable-lvmpolld --enable-realtime --with-default-locking-dir=/run/lock/lvm --with-default-pid-dir=/run --with-default-run-dir=/run/lvm --with-clvmd=corosync --with-cluster=internal --enable-cmirrord --enable-lvmlockd-dlm
So, I want to know if this problem is also a configuration problem when building lvm2? or this problem is caused by the source code?
Thanks
Gang
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] pvmove does not work at all with version 2.02.177(2)
2018-05-30 9:23 [linux-lvm] pvmove does not work at all with version 2.02.177(2) Gang He
@ 2018-05-30 10:37 ` Marian Csontos
2018-06-11 6:13 ` Gang He
2018-05-30 14:12 ` Zdenek Kabelac
1 sibling, 1 reply; 7+ messages in thread
From: Marian Csontos @ 2018-05-30 10:37 UTC (permalink / raw)
To: LVM general discussion and development, Gang He
On 05/30/2018 11:23 AM, Gang He wrote:
> Hello List,
>
> As you know, I ever reported that lvcreate could not create a mirrored LV, the root cause is a configure building item "--enable-cmirrord" was missed.
> Now, I encounter another problem, pvmove does not work at all.
> The detailed information/procedure is as below,
> sle-nd1:/ # pvs
> PV VG Fmt Attr PSize PFree
> /dev/sda1 cluster-vg2 lvm2 a-- 120.00g 120.00g
> /dev/sda2 cluster-vg2 lvm2 a-- 30.00g 20.00g
> /dev/sdb cluster-vg2 lvm2 a-- 40.00g 30.00g
> sle-nd1:/ # vgs
> VG #PV #LV #SN Attr VSize VFree
> cluster-vg2 3 2 0 wz--nc 189.99g 169.99g
> sle-nd1:/ # lvs
> LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
> test-lv2 cluster-vg2 -wi-a----- 10.00g
> sle-nd1:/ # lsblk
> NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
> sda 8:0 0 160G 0 disk
> ├─sda1 8:1 0 120G 0 part
> ├─sda2 8:2 0 30G 0 part
> └─sda3 8:3 0 10G 0 part
> sdb 8:16 0 40G 0 disk
> └─cluster--vg2-test--lv2 254:0 0 10G 0 lvm
> vda 253:0 0 40G 0 disk
> ├─vda1 253:1 0 4G 0 part [SWAP]
> ├─vda2 253:2 0 23.6G 0 part /
> └─vda3 253:3 0 12.4G 0 part /home
>
> sle-nd1:/ # pvmove -i 5 -v /dev/sdb /dev/sda1
> Executing: /sbin/modprobe dm-mirror
> Executing: /sbin/modprobe dm-log-userspace
> Wiping internal VG cache
> Wiping cache of LVM-capable devices
> Archiving volume group "cluster-vg2" metadata (seqno 19).
> Creating logical volume pvmove0
> Moving 2560 extents of logical volume cluster-vg2/test-lv2.
> Increasing mirror region size from 0 to 8.00 KiB
> Error locking on node a431232: Device or resource busy
> Failed to activate cluster-vg2/test-lv2
>
> sle-nd1:/ # lvm version
> LVM version: 2.02.177(2) (2017-12-18)
> Library version: 1.03.01 (2017-12-18)
> Driver version: 4.37.0
> Configuration: ./configure --host=x86_64-suse-linux-gnu --build=x86_64-suse-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --enable-dmeventd --enable-cmdlib --enable-udev_rules --enable-udev_sync --with-udev-prefix=/usr/ --enable-selinux --enable-pkgconfig --with-usrlibdir=/usr/lib64 --with-usrsbindir=/usr/sbin --with-default-dm-run-dir=/run --with-tmpfilesdir=/usr/lib/tmpfiles.d --with-thin=internal --with-device-gid=6 --with-device-mode=0640 --with-device-uid=0 --with-dmeventd-path=/usr/sbin/dmeventd --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-lvmetad --enable-lvmpolld --enable-realtime --with-default-locking-dir=/run/lock/lvm --with-default-pid-dir=/run --with-default-run-dir=/run/lvm --with-clvmd=corosync --with-cluster=internal --enable-cmirrord --enable-lvmlockd-dlm
>
> So, I want to know if this problem is also a configuration problem when building lvm2? or this problem is caused by the source code?
Hi Gang, it is an issue with the codebase, where exclusive activation
was required where it should not.
You will need to backport some additional patches - see CentOS SRPM. And
I should do the same for Fedora.
-- Martian
>
> Thanks
> Gang
>
> _______________________________________________
> 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/
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] pvmove does not work at all with version 2.02.177(2)
2018-05-30 10:37 ` Marian Csontos
@ 2018-06-11 6:13 ` Gang He
2018-06-11 13:20 ` Marian Csontos
0 siblings, 1 reply; 7+ messages in thread
From: Gang He @ 2018-06-11 6:13 UTC (permalink / raw)
To: linux-lvm
Hi Martian,
>>> On 2018/5/30 at 18:37, in message
<2397dd2b-deef-2bf2-47ca-51fb6f880cf4@redhat.com>, Marian Csontos
<mcsontos@redhat.com> wrote:
> On 05/30/2018 11:23 AM, Gang He wrote:
>> Hello List,
>>
>> As you know, I ever reported that lvcreate could not create a mirrored LV,
> the root cause is a configure building item "--enable-cmirrord" was missed.
>> Now, I encounter another problem, pvmove does not work at all.
>> The detailed information/procedure is as below,
>> sle-nd1:/ # pvs
>> PV VG Fmt Attr PSize PFree
>> /dev/sda1 cluster-vg2 lvm2 a-- 120.00g 120.00g
>> /dev/sda2 cluster-vg2 lvm2 a-- 30.00g 20.00g
>> /dev/sdb cluster-vg2 lvm2 a-- 40.00g 30.00g
>> sle-nd1:/ # vgs
>> VG #PV #LV #SN Attr VSize VFree
>> cluster-vg2 3 2 0 wz--nc 189.99g 169.99g
>> sle-nd1:/ # lvs
>> LV VG Attr LSize Pool Origin Data% Meta% Move Log
> Cpy%Sync Convert
>> test-lv2 cluster-vg2 -wi-a----- 10.00g
>> sle-nd1:/ # lsblk
>> NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
>> sda 8:0 0 160G 0 disk
>> ├─sda1 8:1 0 120G 0 part
>> ├─sda2 8:2 0 30G 0 part
>> └─sda3 8:3 0 10G 0 part
>> sdb 8:16 0 40G 0 disk
>> └─cluster--vg2-test--lv2 254:0 0 10G 0 lvm
>> vda 253:0 0 40G 0 disk
>> ├─vda1 253:1 0 4G 0 part [SWAP]
>> ├─vda2 253:2 0 23.6G 0 part /
>> └─vda3 253:3 0 12.4G 0 part /home
>>
>> sle-nd1:/ # pvmove -i 5 -v /dev/sdb /dev/sda1
>> Executing: /sbin/modprobe dm-mirror
>> Executing: /sbin/modprobe dm-log-userspace
>> Wiping internal VG cache
>> Wiping cache of LVM-capable devices
>> Archiving volume group "cluster-vg2" metadata (seqno 19).
>> Creating logical volume pvmove0
>> Moving 2560 extents of logical volume cluster-vg2/test-lv2.
>> Increasing mirror region size from 0 to 8.00 KiB
>> Error locking on node a431232: Device or resource busy
>> Failed to activate cluster-vg2/test-lv2
>>
>> sle-nd1:/ # lvm version
>> LVM version: 2.02.177(2) (2017-12-18)
>> Library version: 1.03.01 (2017-12-18)
>> Driver version: 4.37.0
>> Configuration: ./configure --host=x86_64-suse-linux-gnu
> --build=x86_64-suse-linux-gnu --program-prefix= --disable-dependency-tracking
> --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
> --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include
> --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var
> --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info
> --disable-dependency-tracking --enable-dmeventd --enable-cmdlib
> --enable-udev_rules --enable-udev_sync --with-udev-prefix=/usr/
> --enable-selinux --enable-pkgconfig --with-usrlibdir=/usr/lib64
> --with-usrsbindir=/usr/sbin --with-default-dm-run-dir=/run
> --with-tmpfilesdir=/usr/lib/tmpfiles.d --with-thin=internal
> --with-device-gid=6 --with-device-mode=0640 --with-device-uid=0
> --with-dmeventd-path=/usr/sbin/dmeventd
> --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-lvmetad --enable-lvmpolld --enable-realtime
> --with-default-locking-dir=/run/lock/lvm --with-default-pid-dir=/run
> --with-default-run-dir=/run/lvm --with-clvmd=corosync --with-cluster=internal
> --enable-cmirrord --enable-lvmlockd-dlm
>>
>> So, I want to know if this problem is also a configuration problem when
> building lvm2? or this problem is caused by the source code?
>
> Hi Gang, it is an issue with the codebase, where exclusive activation
> was required where it should not.
>
> You will need to backport some additional patches - see CentOS SRPM. And
> I should do the same for Fedora.
Could you help to paste the links, which are related to this back-port?
Thanks a lot.
Gang
>
> -- Martian
>
>>
>> Thanks
>> Gang
>>
>> _______________________________________________
>> 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/
>>
>
> _______________________________________________
> 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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] pvmove does not work at all with version 2.02.177(2)
2018-06-11 6:13 ` Gang He
@ 2018-06-11 13:20 ` Marian Csontos
2018-06-12 2:57 ` Gang He
0 siblings, 1 reply; 7+ messages in thread
From: Marian Csontos @ 2018-06-11 13:20 UTC (permalink / raw)
To: LVM general discussion and development, Gang He
On 06/11/2018 08:13 AM, Gang He wrote:
> Hi Martian,
>
>>>> On 2018/5/30 at 18:37, in message
> <2397dd2b-deef-2bf2-47ca-51fb6f880cf4@redhat.com>, Marian Csontos
> <mcsontos@redhat.com> wrote:
>> On 05/30/2018 11:23 AM, Gang He wrote:
>>> Hello List,
>>>
>>> As you know, I ever reported that lvcreate could not create a mirrored LV,
>> the root cause is a configure building item "--enable-cmirrord" was missed.
>>> Now, I encounter another problem, pvmove does not work at all.
>>> The detailed information/procedure is as below,
>>> sle-nd1:/ # pvs
>>> PV VG Fmt Attr PSize PFree
>>> /dev/sda1 cluster-vg2 lvm2 a-- 120.00g 120.00g
>>> /dev/sda2 cluster-vg2 lvm2 a-- 30.00g 20.00g
>>> /dev/sdb cluster-vg2 lvm2 a-- 40.00g 30.00g
>>> sle-nd1:/ # vgs
>>> VG #PV #LV #SN Attr VSize VFree
>>> cluster-vg2 3 2 0 wz--nc 189.99g 169.99g
>>> sle-nd1:/ # lvs
>>> LV VG Attr LSize Pool Origin Data% Meta% Move Log
>> Cpy%Sync Convert
>>> test-lv2 cluster-vg2 -wi-a----- 10.00g
>>> sle-nd1:/ # lsblk
>>> NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
>>> sda 8:0 0 160G 0 disk
>>> ├─sda1 8:1 0 120G 0 part
>>> ├─sda2 8:2 0 30G 0 part
>>> └─sda3 8:3 0 10G 0 part
>>> sdb 8:16 0 40G 0 disk
>>> └─cluster--vg2-test--lv2 254:0 0 10G 0 lvm
>>> vda 253:0 0 40G 0 disk
>>> ├─vda1 253:1 0 4G 0 part [SWAP]
>>> ├─vda2 253:2 0 23.6G 0 part /
>>> └─vda3 253:3 0 12.4G 0 part /home
>>>
>>> sle-nd1:/ # pvmove -i 5 -v /dev/sdb /dev/sda1
>>> Executing: /sbin/modprobe dm-mirror
>>> Executing: /sbin/modprobe dm-log-userspace
>>> Wiping internal VG cache
>>> Wiping cache of LVM-capable devices
>>> Archiving volume group "cluster-vg2" metadata (seqno 19).
>>> Creating logical volume pvmove0
>>> Moving 2560 extents of logical volume cluster-vg2/test-lv2.
>>> Increasing mirror region size from 0 to 8.00 KiB
>>> Error locking on node a431232: Device or resource busy
>>> Failed to activate cluster-vg2/test-lv2
>>>
>>> sle-nd1:/ # lvm version
>>> LVM version: 2.02.177(2) (2017-12-18)
>>> Library version: 1.03.01 (2017-12-18)
>>> Driver version: 4.37.0
>>> Configuration: ./configure --host=x86_64-suse-linux-gnu
>> --build=x86_64-suse-linux-gnu --program-prefix= --disable-dependency-tracking
>> --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
>> --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include
>> --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var
>> --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info
>> --disable-dependency-tracking --enable-dmeventd --enable-cmdlib
>> --enable-udev_rules --enable-udev_sync --with-udev-prefix=/usr/
>> --enable-selinux --enable-pkgconfig --with-usrlibdir=/usr/lib64
>> --with-usrsbindir=/usr/sbin --with-default-dm-run-dir=/run
>> --with-tmpfilesdir=/usr/lib/tmpfiles.d --with-thin=internal
>> --with-device-gid=6 --with-device-mode=0640 --with-device-uid=0
>> --with-dmeventd-path=/usr/sbin/dmeventd
>> --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-lvmetad --enable-lvmpolld --enable-realtime
>> --with-default-locking-dir=/run/lock/lvm --with-default-pid-dir=/run
>> --with-default-run-dir=/run/lvm --with-clvmd=corosync --with-cluster=internal
>> --enable-cmirrord --enable-lvmlockd-dlm
>>>
>>> So, I want to know if this problem is also a configuration problem when
>> building lvm2? or this problem is caused by the source code?
>>
>> Hi Gang, it is an issue with the codebase, where exclusive activation
>> was required where it should not.
>>
>> You will need to backport some additional patches - see CentOS SRPM. And
>> I should do the same for Fedora.
> Could you help to paste the links, which are related to this back-port?
Is this good enough?
http://vault.centos.org/7.5.1804/os/Source/SPackages/lvm2-2.02.177-4.el7.src.rpm
>
> Thanks a lot.
> Gang
>
>>
>> -- Martian
>>
>>>
>>> Thanks
>>> Gang
>>>
>>> _______________________________________________
>>> 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/
>>>
>>
>> _______________________________________________
>> 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/
>
> _______________________________________________
> 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/
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] pvmove does not work at all with version 2.02.177(2)
2018-06-11 13:20 ` Marian Csontos
@ 2018-06-12 2:57 ` Gang He
0 siblings, 0 replies; 7+ messages in thread
From: Gang He @ 2018-06-12 2:57 UTC (permalink / raw)
To: linux-lvm
Hi Martion,
>>> On 2018/6/11 at 21:20, in message
<a749f8a8-7438-dd9a-31ad-02cd4e0f0a38@redhat.com>, Marian Csontos
<mcsontos@redhat.com> wrote:
> On 06/11/2018 08:13 AM, Gang He wrote:
>> Hi Martian,
>>
>>>>> On 2018/5/30 at 18:37, in message
>> <2397dd2b-deef-2bf2-47ca-51fb6f880cf4@redhat.com>, Marian Csontos
>> <mcsontos@redhat.com> wrote:
>>> On 05/30/2018 11:23 AM, Gang He wrote:
>>>> Hello List,
>>>>
>>>> As you know, I ever reported that lvcreate could not create a mirrored LV,
>>> the root cause is a configure building item "--enable-cmirrord" was missed.
>>>> Now, I encounter another problem, pvmove does not work at all.
>>>> The detailed information/procedure is as below,
>>>> sle-nd1:/ # pvs
>>>> PV VG Fmt Attr PSize PFree
>>>> /dev/sda1 cluster-vg2 lvm2 a-- 120.00g 120.00g
>>>> /dev/sda2 cluster-vg2 lvm2 a-- 30.00g 20.00g
>>>> /dev/sdb cluster-vg2 lvm2 a-- 40.00g 30.00g
>>>> sle-nd1:/ # vgs
>>>> VG #PV #LV #SN Attr VSize VFree
>>>> cluster-vg2 3 2 0 wz--nc 189.99g 169.99g
>>>> sle-nd1:/ # lvs
>>>> LV VG Attr LSize Pool Origin Data% Meta% Move
> Log
>>> Cpy%Sync Convert
>>>> test-lv2 cluster-vg2 -wi-a----- 10.00g
>>>> sle-nd1:/ # lsblk
>>>> NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
>>>> sda 8:0 0 160G 0 disk
>>>> ├─sda1 8:1 0 120G 0 part
>>>> ├─sda2 8:2 0 30G 0 part
>>>> └─sda3 8:3 0 10G 0 part
>>>> sdb 8:16 0 40G 0 disk
>>>> └─cluster--vg2-test--lv2 254:0 0 10G 0 lvm
>>>> vda 253:0 0 40G 0 disk
>>>> ├─vda1 253:1 0 4G 0 part [SWAP]
>>>> ├─vda2 253:2 0 23.6G 0 part /
>>>> └─vda3 253:3 0 12.4G 0 part /home
>>>>
>>>> sle-nd1:/ # pvmove -i 5 -v /dev/sdb /dev/sda1
>>>> Executing: /sbin/modprobe dm-mirror
>>>> Executing: /sbin/modprobe dm-log-userspace
>>>> Wiping internal VG cache
>>>> Wiping cache of LVM-capable devices
>>>> Archiving volume group "cluster-vg2" metadata (seqno 19).
>>>> Creating logical volume pvmove0
>>>> Moving 2560 extents of logical volume cluster-vg2/test-lv2.
>>>> Increasing mirror region size from 0 to 8.00 KiB
>>>> Error locking on node a431232: Device or resource busy
>>>> Failed to activate cluster-vg2/test-lv2
>>>>
>>>> sle-nd1:/ # lvm version
>>>> LVM version: 2.02.177(2) (2017-12-18)
>>>> Library version: 1.03.01 (2017-12-18)
>>>> Driver version: 4.37.0
>>>> Configuration: ./configure --host=x86_64-suse-linux-gnu
>>> --build=x86_64-suse-linux-gnu --program-prefix=
> --disable-dependency-tracking
>>> --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
>>> --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include
>>> --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var
>>> --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info
>>> --disable-dependency-tracking --enable-dmeventd --enable-cmdlib
>>> --enable-udev_rules --enable-udev_sync --with-udev-prefix=/usr/
>>> --enable-selinux --enable-pkgconfig --with-usrlibdir=/usr/lib64
>>> --with-usrsbindir=/usr/sbin --with-default-dm-run-dir=/run
>>> --with-tmpfilesdir=/usr/lib/tmpfiles.d --with-thin=internal
>>> --with-device-gid=6 --with-device-mode=0640 --with-device-uid=0
>>> --with-dmeventd-path=/usr/sbin/dmeventd
>>> --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-lvmetad --enable-lvmpolld --enable-realtime
>>> --with-default-locking-dir=/run/lock/lvm --with-default-pid-dir=/run
>>> --with-default-run-dir=/run/lvm --with-clvmd=corosync
> --with-cluster=internal
>>> --enable-cmirrord --enable-lvmlockd-dlm
>>>>
>>>> So, I want to know if this problem is also a configuration problem when
>>> building lvm2? or this problem is caused by the source code?
>>>
>>> Hi Gang, it is an issue with the codebase, where exclusive activation
>>> was required where it should not.
>>>
>>> You will need to backport some additional patches - see CentOS SRPM. And
>>> I should do the same for Fedora.
>> Could you help to paste the links, which are related to this back-port?
>
> Is this good enough?
Thanks a lot.
Gang
>
> http://vault.centos.org/7.5.1804/os/Source/SPackages/lvm2-2.02.177-4.el7.src
> .rpm
>
>
>
>>
>> Thanks a lot.
>> Gang
>>
>>>
>>> -- Martian
>>>
>>>>
>>>> Thanks
>>>> Gang
>>>>
>>>> _______________________________________________
>>>> 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/
>>>>
>>>
>>> _______________________________________________
>>> 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/
>>
>> _______________________________________________
>> 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/
>>
>
> _______________________________________________
> 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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] pvmove does not work at all with version 2.02.177(2)
2018-05-30 9:23 [linux-lvm] pvmove does not work at all with version 2.02.177(2) Gang He
2018-05-30 10:37 ` Marian Csontos
@ 2018-05-30 14:12 ` Zdenek Kabelac
2018-05-31 1:53 ` Gang He
1 sibling, 1 reply; 7+ messages in thread
From: Zdenek Kabelac @ 2018-05-30 14:12 UTC (permalink / raw)
To: LVM general discussion and development, Gang He
Dne 30.5.2018 v 11:23 Gang He napsal(a):
> Hello List,
>
> As you know, I ever reported that lvcreate could not create a mirrored LV, the root cause is a configure building item "--enable-cmirrord" was missed.
> Now, I encounter another problem, pvmove does not work at all.
> The detailed information/procedure is as below,
Hi
Can you try to compile 2.02.178 ?
I believe there were some more fixes for reworked pvmove locking.
Regards
Zdenek
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] pvmove does not work at all with version 2.02.177(2)
2018-05-30 14:12 ` Zdenek Kabelac
@ 2018-05-31 1:53 ` Gang He
0 siblings, 0 replies; 7+ messages in thread
From: Gang He @ 2018-05-31 1:53 UTC (permalink / raw)
To: linux-lvm
Ok, I will try.
Thanks
Gang
>>> On 5/30/2018 at 10:12 pm, in message
<c7364072-150e-e3ea-3eda-01c601729758@redhat.com>, Zdenek Kabelac
<zkabelac@redhat.com> wrote:
> Dne 30.5.2018 v 11:23 Gang He napsal(a):
>> Hello List,
>>
>> As you know, I ever reported that lvcreate could not create a mirrored LV,
> the root cause is a configure building item "--enable-cmirrord" was missed.
>> Now, I encounter another problem, pvmove does not work at all.
>> The detailed information/procedure is as below,
>
>
> Hi
>
> Can you try to compile 2.02.178 ?
>
> I believe there were some more fixes for reworked pvmove locking.
>
> Regards
>
> Zdenek
>
> _______________________________________________
> 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/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2018-06-12 2:57 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-30 9:23 [linux-lvm] pvmove does not work at all with version 2.02.177(2) Gang He
2018-05-30 10:37 ` Marian Csontos
2018-06-11 6:13 ` Gang He
2018-06-11 13:20 ` Marian Csontos
2018-06-12 2:57 ` Gang He
2018-05-30 14:12 ` Zdenek Kabelac
2018-05-31 1:53 ` Gang He
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.