~ubuntu-branches/debian/sid/lvm2/sid

« back to all changes in this revision

Viewing changes to test/shell/lvconvert-mirror.sh

  • Committer: Package Import Robot
  • Author(s): Bastian Blank
  • Date: 2014-08-19 15:37:06 UTC
  • mfrom: (1.1.18)
  • Revision ID: package-import@ubuntu.com-20140819153706-i1gaio8lg534dara
Tags: 2.02.109-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
# along with this program; if not, write to the Free Software Foundation,
10
10
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
11
11
 
12
 
. lib/test
 
12
. lib/inittest
13
13
 
14
14
aux prepare_pvs 5 10
15
15
# proper DEVRANGE needs to be set according to extent size
191
191
# "remove from original mirror (the original becomes linear)"
192
192
lvcreate -aey -l2 --type mirror -m1 -n $lv1 $vg "$dev1" "$dev2" "$dev3:$DEVRANGE"
193
193
lvconvert -m+1 -b $vg/$lv1 "$dev4"
 
194
# FIXME: Extra wait here for mirror upconvert synchronization
 
195
# otherwise we may fail her on parallel upconvert and downconvert
 
196
# lvconvert-mirror-updown.sh tests this errornous case separately
 
197
lvconvert $vg/$lv1
194
198
lvconvert -m-1 $vg/$lv1 "$dev2"
195
199
lvconvert $vg/$lv1
196
200