diff options
author | Jonathan Brassow <jbrassow@redhat.com> | 2013-09-10 16:33:22 -0500 |
---|---|---|
committer | Jonathan Brassow <jbrassow@redhat.com> | 2013-09-10 16:33:22 -0500 |
commit | 2691f1d764182722195cda80be1f511e968480aa (patch) | |
tree | 3f6f62ac45a91c78b4c4fcf26a14416171d50bb0 /test/shell/lvcreate-large-raid.sh | |
parent | 8d1d83504dcf9c86ad42d34d3bd0b201d7bab8f6 (diff) | |
download | lvm2-2691f1d764182722195cda80be1f511e968480aa.tar.gz |
RAID: Make RAID single-machine-exclusive capable in a cluster
Creation, deletion, [de]activation, repair, conversion, scrubbing
and changing operations are all now available for RAID LVs in a
cluster - provided that they are activated exclusively.
The code has been changed to ensure that no LV or sub-LV activation
is attempted cluster-wide. This includes the often overlooked
operations of activating metadata areas for the brief time it takes
to clear them. Additionally, some 'resume_lv' operations were
replaced with 'activate_lv_excl_local' when sub-LVs were promoted
to top-level LVs for removal, clearing or extraction. This was
necessary because it forces the appropriate renaming actions the
occur via resume in the single-machine case, but won't happen in
a cluster due to the necessity of acquiring a lock first.
The *raid* tests have been updated to allow testing in a cluster.
For the most part, this meant creating devices with '-aey' if they
were to be converted to RAID. (RAID requires the converting LV to
be EX because it is a condition of activation for the RAID LV in
a cluster.)
Diffstat (limited to 'test/shell/lvcreate-large-raid.sh')
-rw-r--r-- | test/shell/lvcreate-large-raid.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/shell/lvcreate-large-raid.sh b/test/shell/lvcreate-large-raid.sh index c0b40db67..a91da05d2 100644 --- a/test/shell/lvcreate-large-raid.sh +++ b/test/shell/lvcreate-large-raid.sh @@ -13,7 +13,6 @@ . lib/test -test -e LOCAL_CLVMD && skip aux target_at_least dm-raid 1 1 0 || skip aux prepare_vg 5 @@ -51,7 +50,7 @@ done # # Convert large linear to RAID1 (belong in different test script?) # -lvcreate -L 200T -n $lv1 $vg1 +lvcreate -aey -L 200T -n $lv1 $vg1 # Need to deactivate or the up-convert will start sync'ing lvchange -an $vg1/$lv1 lvconvert --type raid1 -m 1 $vg1/$lv1 |