Consider a real semisimple Lie algebra $\mathfrak{g}$ and a toral subalgebra $\mathfrak{h}$, which in this case is equivalent to being abelian and made of ad-semisimple elements (i.e. they are ad-diagonalizable over the complex field).
If the dimension of $\mathfrak{h}$ is equal to the rank of $\mathfrak{g}$, is it a Cartan subalgebra? (i.e. a maximal toral subalgebra with respect to inclusion)
In general, an abelian subalgebra may have dimension equal or larger than that of a Cartan subalgebra (or rank). A common example I see is that of the strictly upper-block-triangular matrices in $\mathfrak{sl}(2n,\mathbb{R})$ (also its complexification). Therefore, it is clear that in general an abelian subalgebra of a semisimple Lie algebra with dimension equal to the rank need not be a Cartan subalgebra.
However, if we add the additional requirement of semisimple elements, i.e. a toral subalgebra, not just abelian, is this still true?
Namely, is a Cartan subalgebra in a real semisimple Lie algebra a toral subalgebra of maximal dimension? If not, could you give a counterexample?