Comment # 12 on bug 1033691 from
lvchange-raid.sh failed:

- ndev flavor
# lvm2-testsuite --only lvchange-raid.sh
running 1 tests
###       passed: [ndev-vanilla] shell/lvchange-raid.sh 78

### 1 tests: 1 passed, 0 skipped, 0 timed out, 0 warned, 0 failed

- udev lvmetad
# lvm2-testsuite --only lvchange-raid.sh --flavours udev-lvmetad
### 1 tests: 0 passed, 0 skipped, 0 timed out, 0 warned, 1 failed
...
[ 0:01]   Unable to change writemostly on @PREFIX@vg/LV1 while it is not
in-sync.

[ 0:01] test ! -e LOCAL_CLVMD -a aux have_thin 1 8 0 && TEST_TYPE="$TEST_TYPES
thinpool_data thinpool_meta"
[ 0:01] #lvchange-raid.sh:333+ test '!' -e LOCAL_CLVMD -a aux have_thin 1 8 0
[ 0:01] /usr/share/lvm2-testsuite/shell/lvchange-raid.sh: line 333: test: too
many arguments

....

- no problem manually
tw1:~/loopdevs # vgcreate testvg /dev/loop0 /dev/loop1
    Physical volume "/dev/loop0" successfully created.
    Physical volume "/dev/loop1" successfully created.
    Volume group "testvg" successfully created
tw1:~/loopdevs # lvcreate -n LV1 testvg -L2M --type raid1 -m 1 /dev/loop0
/dev/loop1
    Rounding up size to full physical extent 4.00 MiB
    Logical volume "LV1" created.
tw1:~/loopdevs # lvchange --writemostly /dev/loop0 testvg/LV1
    Logical volume testvg/LV1 changed.

It seemingly has something to do with lvmetad...


You are receiving this mail because: