diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2014-01-28 13:21:39 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2014-01-28 13:21:39 +0100 |
commit | e9d9852c55cbc2c509c293691287fa5443868926 (patch) | |
tree | 1c913f9bf0baac27fce20a3a47b2489fab288425 /test/shell/lvconvert-thin-external.sh | |
parent | bc5f40ee1c7c409c17f85a55f6a8b2606067e76e (diff) | |
download | lvm2-e9d9852c55cbc2c509c293691287fa5443868926.tar.gz |
thin: more validation of thin name
Avoid starting conversion of the LV to the thin pool and thin volume
at the same time. Since this is mostly a user mistake, do not try
to just convert to one of those type, since we cannot assume if the
user wanted LV to become thin volume or thin pool.
Before the fix tool reported pretty strange internal error:
Internal error: Referenced LV lvol1_tdata not listed in VG mvg.
Fixed output:
lvconvert --thinpool lvol0 -T mvg/lvol0
Can't use same LV mvg/lvol0 for thin pool and thin volume.
Diffstat (limited to 'test/shell/lvconvert-thin-external.sh')
-rw-r--r-- | test/shell/lvconvert-thin-external.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/shell/lvconvert-thin-external.sh b/test/shell/lvconvert-thin-external.sh index d9d4d1949..53758fcc3 100644 --- a/test/shell/lvconvert-thin-external.sh +++ b/test/shell/lvconvert-thin-external.sh @@ -56,6 +56,10 @@ lvremove -f $vg/pool1 # create plain LV (will be used for external origin) lvcreate -L8M -n $lv1 $vg +# Can't convert same LV to the thin pool and thin volume +not lvconvert --thinpool $vg/$lv1 -T $vg/$lv1 +check lv_field $vg/$lv1 segtype linear + mkfs.ext2 $DM_DEV_DIR/$vg/$lv1 mkdir mnt mount $DM_DEV_DIR/$vg/$lv1 mnt |