1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

tests: add clvm case to system_id.sh

This commit is contained in:
David Teigland 2015-03-31 14:45:14 -05:00
parent 20c6192fbb
commit bf2d831e7e

View File

@ -13,11 +13,28 @@ test_description='Test system_id'
. lib/inittest
# Should 'system_id' be usable in cluster ??
test -e LOCAL_CLVMD && skip
aux prepare_devs 1
# with clvm enabled, vgcreate with no -c option creates a clustered vg,
# which should have no system id
if [ -e LOCAL_CLVMD ]; then
SID1=sidfoolocal
SID2=""
LVMLOCAL=etc/lvmlocal.conf
rm -f $LVMLOCAL
echo "local {" > $LVMLOCAL
echo " system_id = $SID1" >> $LVMLOCAL
echo "}" >> $LVMLOCAL
aux lvmconf "global/system_id_source = lvmlocal"
vgcreate $vg1 "$dev1"
vgs -o+systemid $vg1
check vg_field $vg1 systemid $SID2
vgremove $vg1
rm -f $LVMLOCAL
exit 0
fi
# create vg with system_id using each source
## none