Commit 960ecb3a authored by David Johnson's avatar David Johnson

Docker clientside bugfix: explicitly create LVM thinpool in GBs.

parent 21d93581
......@@ -1645,8 +1645,8 @@ sub rootPreConfig($)
}
$tps = $thinpoolsize - $tpms;
# XXX: --wipesignatures y ?
mysystem("lvcreate -n thinpool $VGNAME -L $tps");
mysystem("lvcreate -n thinpoolmeta $VGNAME -L $tpms");
mysystem("lvcreate -n thinpool $VGNAME -L ${tps}G");
mysystem("lvcreate -n thinpoolmeta $VGNAME -L ${tpms}G");
mysystem("lvconvert -y --zero n -c 512K".
" --thinpool $VGNAME/thinpool".
" --poolmetadata $VGNAME/thinpoolmeta");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment