echo "#create and set nodemapA fileset"
ssh mdsb1 lctl nodemap_add nodemapA
sleep 10

ssh mdsb1 lctl set_param -P nodemap.nodemapA.fileset=/testnodemapA
sleep 10

echo "#check mds nodemapA fileset"
ssh mdsb2 lctl get_param nodemap.nodemapA.* | grep fileset

echo "#create nodemapB fileset"
ssh mdsb1 lctl nodemap_add nodemapB
sleep 10

echo "check mds nodemapA fileset, missing?"
ssh mdsb2 lctl get_param nodemap.nodemapA.* | grep fileset

echo "#delete nodemap"
ssh mdsb1 lctl nodemap_del nodemapA
ssh mdsb1 lctl nodemap_del nodemapB
