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

« back to all changes in this revision

Viewing changes to test/shell/lvconvert-thin-external.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:
12
12
 
13
13
# Test conversion to thin external origin
14
14
 
15
 
. lib/test
 
15
. lib/inittest
16
16
 
17
17
which mkfs.ext2 || skip
18
18
which fsck || skip
109
109
lvs -a -o+origin_size,seg_size $vg
110
110
 
111
111
# Chain external origins
112
 
lvconvert --originname extorg1 --thinpool $vg/pool -T $vg/extorg
 
112
lvconvert --type thin --originname extorg1 --thinpool $vg/pool $vg/extorg
113
113
check inactive $vg extorg1
114
114
 
115
115
lvconvert --originname extorg2 --thinpool $vg/pool -T $vg/extorg1
157
157
# Test conversion to the pool and thin external at the same time (rhbz #1003461)
158
158
lvcreate -l50 -n pool $vg
159
159
lvcreate -l100 -n thin $vg
160
 
lvconvert --thin --thinpool $vg/pool $vg/thin --originname thin-origin
 
160
lvconvert --yes --thin --thinpool $vg/pool $vg/thin --originname thin-origin
161
161
check lv_field $vg/thin segtype thin
162
162
check lv_field $vg/thin-origin segtype linear
163
163