1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00
lvm2/test/shell
Zdenek Kabelac 98414ca7dd vgchange: support clustered conversion for active lv
If we want to support conversion of VG to clustered type,
we currently need to relock active LV to get proper DLM lock.

So add extra loop after change of VG clustered attribute
to exlusively activate all active top level LVs.

When doing change -cy -> -cn  we should validate LVs are not
active on other cluster nodes - we could be sure about this only
when with local exclusive activation - for other types
we require user to deactivate volumes first.

As a workaround for this limitation there is always
locking_type = 0 which amongs other skip the detection
of active LVs.

FIXME:
 clvmd should handle looks for cluster locking type all the time.
2014-09-17 14:41:42 +02:00
..
000-basic.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
activate-minor.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
activate-missing-segment.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
activate-missing.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
activate-partial.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
activation-skip.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
clvmd-restart.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
covercmd.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
discards-thin.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
dmeventd-restart.sh tests: replace cat with $(< 2014-07-02 10:45:44 +02:00
dumpconfig.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
error-usage.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
fsadm.sh tests: avoid hiding results in local 2014-07-02 10:45:43 +02:00
inconsistent-metadata.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
listings.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lock-blocking.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lock-parallel.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvchange-mirror.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvchange-partial-raid10.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvchange-partial.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvchange-raid10.sh tests: add have_cache and have_raid 2014-05-20 21:50:30 +02:00
lvchange-raid456.sh tests: add have_cache and have_raid 2014-05-20 21:50:30 +02:00
lvchange-raid.sh tests: avoid hiding results in local 2014-07-02 10:45:43 +02:00
lvchange-syncaction-raid.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvchange-thin.sh tests: fix volume list test 2014-08-26 14:13:07 +02:00
lvconvert-cache.sh tests: new lvconvert features 2014-07-22 22:41:41 +02:00
lvconvert-mirror-basic-0.sh tests: updates 2014-02-27 13:01:04 +01:00
lvconvert-mirror-basic-1.sh tests: updates 2014-02-27 13:01:04 +01:00
lvconvert-mirror-basic-2.sh tests: updates 2014-02-27 13:01:04 +01:00
lvconvert-mirror-basic-3.sh tests: updates 2014-02-27 13:01:04 +01:00
lvconvert-mirror-basic.sh tests: avoid hiding results in local 2014-07-02 10:45:43 +02:00
lvconvert-mirror-updown.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-mirror.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-raid10.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-raid456.sh test: Test failing due to too few PVs 2014-07-10 18:53:46 -05:00
lvconvert-raid-allocation.sh tests: use exclusive activation 2014-07-22 23:44:06 +02:00
lvconvert-raid.sh test: Test failing due to too few PVs 2014-07-10 18:53:46 -05:00
lvconvert-repair-dmeventd.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-repair-policy.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-repair-raid-dmeventd.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-repair-raid.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-repair-replace.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-repair-snapshot.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-repair-thin.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-repair-transient-dmeventd.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-repair-transient.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-repair.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvconvert-snapshot.sh lvconvert: snapshot prompts to confirm conversion 2014-07-11 12:49:55 +02:00
lvconvert-thin-external.sh tests: new lvconvert features 2014-07-22 22:41:41 +02:00
lvconvert-thin-raid.sh tests: updates for new lvconvert 2014-07-11 13:32:52 +02:00
lvconvert-thin.sh tests: new lvconvert features 2014-07-22 22:41:41 +02:00
lvconvert-twostep.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-cache.sh tests: support cluster run 2014-07-23 00:25:49 +02:00
lvcreate-large-raid10.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-large-raid.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-large.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-mirror.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-missing.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-operation.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-pvtags.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-raid10.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-raid.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-repair.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-signature-wiping.sh tests: avoid hiding results in local 2014-07-02 10:45:43 +02:00
lvcreate-small-snap.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-striped-mirror.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-thin-external.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-thin-power2.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-thin-snap.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvcreate-thin.sh tests: update lvcreate-thin for latest changes 2014-06-17 18:20:08 +02:00
lvcreate-usage.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvextend-percent-extents.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvextend-snapshot-dmeventd.sh tests: ensure data hits cow 2014-07-02 15:10:10 +02:00
lvextend-snapshot-policy.sh tests: remove dmeventd usage 2014-06-19 12:48:21 +02:00
lvextend-thin-metadata-dmeventd.sh tests: detect version of thin_restore command 2014-06-17 13:43:05 +02:00
lvextend-thin.sh test: Skip lvextend-thin when thin not available 2014-07-31 22:56:19 +02:00
lvm-init.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvmcache-exercise.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvmetad-ambiguous.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvmetad-client-filter.sh lvmetad: Differentiate between filtered and truly missing devices. 2014-09-10 22:58:22 +01:00
lvmetad-disabled.sh tests: replace cat with $(< 2014-07-02 10:45:44 +02:00
lvmetad-dump.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvmetad-lvm1.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvmetad-lvscan-cache.sh test: Add a test for lvscan --cache. 2014-08-04 17:03:17 +02:00
lvmetad-no-cluster.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvmetad-override.sh tests: replace cat with $(< 2014-07-02 10:45:44 +02:00
lvmetad-pvs.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvmetad-pvscan-cache.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvmetad-pvscan-filter.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvmetad-pvscan-md.sh test: Add a test for MD component detection in pvscan --cache. 2014-09-10 22:58:12 +01:00
lvmetad-pvscan-nomda.sh tests: replace cat with $(< 2014-07-02 10:45:44 +02:00
lvmetad-restart.sh tests: replace cat with $(< 2014-07-02 10:45:44 +02:00
lvmetad-test.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvmetad-warning.sh tests: replace cat with $(< 2014-07-02 10:45:44 +02:00
lvresize-mirror.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvresize-raid10.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvresize-raid.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvresize-rounding.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvresize-thin-external-origin.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
lvresize-thin-metadata.sh tests: use full option name 2014-07-22 22:41:41 +02:00
lvresize-usage.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
mda-rollback.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
mdata-strings.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
metadata-balance.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
metadata-dirs.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
metadata.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
mirror-names.sh tests: avoid hiding results in local 2014-07-02 10:45:43 +02:00
mirror-vgreduce-removemissing.sh tests: avoid hiding results in local 2014-07-02 10:45:43 +02:00
name-mangling.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
nomda-missing.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
nomda-restoremissing.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
orphan-ondisk.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pool-labels.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
process-each-duplicate-vgnames.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
process-each-lv.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
process-each-vg.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
profiles-thin.sh tests: LV's zero field now reported as binary field 2014-07-10 15:30:28 +02:00
profiles.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pv-duplicate-uuid.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pv-duplicate.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pv-min-size.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pv-range-overflow.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pvchange-usage.sh metadata: fix regression causing PVs not in VGs to be marked as allocatable 2014-07-07 14:07:21 +02:00
pvcreate-bootloaderarea.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pvcreate-ff.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pvcreate-metadata0.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pvcreate-operation-md.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pvcreate-operation.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pvcreate-usage.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pvmove-all-segtypes.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pvmove-background.sh pvmove: Enable all-or-nothing (atomic) pvmoves 2014-06-17 22:59:36 -05:00
pvmove-basic.sh test: Clean-up pvmove-basic for atomic pvmove test 2014-06-18 15:40:06 -05:00
pvmove-cache-segtypes.sh tests: use bigger metadata 2014-07-17 16:27:39 +02:00
pvmove-raid-segtypes.sh pvmove: Enable all-or-nothing (atomic) pvmoves 2014-06-17 22:59:36 -05:00
pvmove-restart.sh tests: proper /dev access 2014-08-20 14:37:41 +02:00
pvmove-thin-segtypes.sh pvmove: Enable all-or-nothing (atomic) pvmoves 2014-06-17 22:59:36 -05:00
pvremove-thin.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
pvremove-usage.sh test: pvs bz1108394 2014-06-12 11:56:06 +02:00
pvremove-warnings.sh tests: change to inittest 2014-06-11 17:46:55 +02:00
read-ahead.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
report-select.sh tests: update report-select test for latest changes 2014-08-13 17:20:09 +02:00
snapshot-autoumount-dmeventd.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
snapshot-cluster.sh tests: test for rename of snapshot 2014-09-09 20:17:47 +02:00
snapshot-lvm1.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
snapshot-maxsize.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
snapshot-merge.sh tests: avoid hiding results in local 2014-07-02 10:45:43 +02:00
snapshot-reactivate.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
snapshot-rename.sh tests: test for rename of snapshot 2014-09-10 22:59:13 +01:00
snapshot-usage.sh tests: add udev sync point 2014-06-20 11:14:29 +02:00
snapshots-of-mirrors.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
stray-device-node.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
tags.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
test-partition.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
thin-autoumount-dmeventd.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
thin-defaults.sh tests: LV's zero field now reported as binary field 2014-07-10 15:30:28 +02:00
thin-merge.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
thin-restore.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
thin-vglock.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
thin-volume-list.sh test: test there is no leak of LV on error path 2014-09-15 13:51:19 +02:00
topology-support.sh tests: avoid hiding results in local 2014-07-02 10:45:43 +02:00
unknown-segment.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
unlost-pv.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vg-name-from-env.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgcfgbackup-usage.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgchange-many.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgchange-maxlv.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgchange-partial.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgchange-sysinit.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgchange-usage.sh vgchange: support clustered conversion for active lv 2014-09-17 14:41:42 +02:00
vgck.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgcreate-usage.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgextend-restoremissing.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgextend-usage.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgimportclone.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgmerge-operation.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgmerge-usage.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgreduce-removemissing-snapshot.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgreduce-usage.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgremove-corrupt-vg.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgrename-usage.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgsplit-operation.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgsplit-raid.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgsplit-stacked.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgsplit-thin.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
vgsplit-usage.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00
zero-usage.sh tests: rename test to inittest 2014-06-10 10:51:27 +02:00